monaco-html
Advanced tools
Comparing version 3.1.0 to 3.1.1
{ | ||
"name": "monaco-html", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "HTML plugin for the Monaco Editor", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -5,2 +5,13 @@ /*--------------------------------------------------------------------------------------------- | ||
*--------------------------------------------------------------------------------------------*/ | ||
var __assign = (this && this.__assign) || function () { | ||
__assign = Object.assign || function(t) { | ||
for (var s, i = 1, n = arguments.length; i < n; i++) { | ||
s = arguments[i]; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) | ||
t[p] = s[p]; | ||
} | ||
return t; | ||
}; | ||
return __assign.apply(this, arguments); | ||
}; | ||
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -70,6 +81,7 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
return __awaiter(this, void 0, void 0, function () { | ||
var document, textEdits; | ||
var document, formattingOptions, textEdits; | ||
return __generator(this, function (_a) { | ||
document = this._getTextDocument(uri); | ||
textEdits = this._languageService.format(document, range, this._languageSettings && this._languageSettings.format); | ||
formattingOptions = __assign(__assign({}, this._languageSettings.format), options); | ||
textEdits = this._languageService.format(document, range, formattingOptions); | ||
return [2 /*return*/, Promise.resolve(textEdits)]; | ||
@@ -76,0 +88,0 @@ }); |
/*!----------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* monaco-html version: 3.1.0(09fc70312781a93a311e452cdcaa57b49a9f5666) | ||
* monaco-html version: 3.1.1(bdd3de5f00a5a44a97984a14ab3e8ffb128c8e5a) | ||
* Released under the MIT license | ||
@@ -5,0 +5,0 @@ * https://github.com/Microsoft/monaco-html/blob/master/LICENSE.md |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3592235
57060