monaco-css
Advanced tools
Comparing version 3.2.0 to 3.3.0
{ | ||
"name": "monaco-css", | ||
"version": "3.2.0", | ||
"version": "3.3.0", | ||
"description": "CSS, LESS and SCSS plugin for the Monaco Editor", | ||
@@ -25,5 +25,5 @@ "scripts": { | ||
"devDependencies": { | ||
"husky": "^4.3.8", | ||
"monaco-editor-core": "0.22.0", | ||
"monaco-languages": "2.2.0", | ||
"husky": "^5.1.3", | ||
"monaco-editor-core": "0.23.0", | ||
"monaco-languages": "2.3.0", | ||
"monaco-plugin-helpers": "^1.0.3", | ||
@@ -33,5 +33,5 @@ "prettier": "^2.2.1", | ||
"requirejs": "^2.3.6", | ||
"typescript": "4.1.3", | ||
"terser": "^5.5.1", | ||
"vscode-css-languageservice": "5.0.3", | ||
"typescript": "4.2.3", | ||
"terser": "^5.6.0", | ||
"vscode-css-languageservice": "5.1.0", | ||
"vscode-languageserver-types": "3.16.0", | ||
@@ -38,0 +38,0 @@ "vscode-languageserver-textdocument": "^1.0.1" |
@@ -33,3 +33,4 @@ /*--------------------------------------------------------------------------------------------- | ||
validation.configure(settings); | ||
completion.configure(settings); | ||
completion.configure(settings === null || settings === void 0 ? void 0 : settings.completion); | ||
hover.configure(settings === null || settings === void 0 ? void 0 : settings.hover); | ||
}, | ||
@@ -36,0 +37,0 @@ setDataProviders: cssDataManager.setDataProviders.bind(cssDataManager), |
@@ -6,5 +6,5 @@ /*--------------------------------------------------------------------------------------------- | ||
'use strict'; | ||
import { MarkupKind } from './../vscode-languageserver-types/main'; | ||
export { TextDocument } from './../vscode-languageserver-textdocument/lib/esm/main'; | ||
export * from './../vscode-languageserver-types/main'; | ||
import { Range, Position, MarkupContent, MarkupKind, Color, ColorInformation, ColorPresentation, FoldingRange, FoldingRangeKind, SelectionRange, Diagnostic, DiagnosticSeverity, CompletionItem, CompletionItemKind, CompletionList, CompletionItemTag, InsertTextFormat, SymbolInformation, SymbolKind, DocumentSymbol, Location, Hover, MarkedString, CodeActionContext, Command, CodeAction, DocumentHighlight, DocumentLink, WorkspaceEdit, TextEdit, CodeActionKind, TextDocumentEdit, VersionedTextDocumentIdentifier, DocumentHighlightKind } from './../vscode-languageserver-types/main'; | ||
import { TextDocument } from './../vscode-languageserver-textdocument/lib/esm/main'; | ||
export { TextDocument, Range, Position, MarkupContent, MarkupKind, Color, ColorInformation, ColorPresentation, FoldingRange, FoldingRangeKind, SelectionRange, Diagnostic, DiagnosticSeverity, CompletionItem, CompletionItemKind, CompletionList, CompletionItemTag, InsertTextFormat, SymbolInformation, SymbolKind, DocumentSymbol, Location, Hover, MarkedString, CodeActionContext, Command, CodeAction, DocumentHighlight, DocumentLink, WorkspaceEdit, TextEdit, CodeActionKind, TextDocumentEdit, VersionedTextDocumentIdentifier, DocumentHighlightKind }; | ||
export var ClientCapabilities; | ||
@@ -11,0 +11,0 @@ (function (ClientCapabilities) { |
@@ -14,2 +14,4 @@ /*--------------------------------------------------------------------------------------------- | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -16,0 +18,0 @@ function __() { this.constructor = d; } |
@@ -14,2 +14,4 @@ /*--------------------------------------------------------------------------------------------- | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -16,0 +18,0 @@ function __() { this.constructor = d; } |
@@ -14,2 +14,4 @@ /*--------------------------------------------------------------------------------------------- | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -16,0 +18,0 @@ function __() { this.constructor = d; } |
@@ -14,2 +14,4 @@ /*--------------------------------------------------------------------------------------------- | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -16,0 +18,0 @@ function __() { this.constructor = d; } |
@@ -14,2 +14,4 @@ /*--------------------------------------------------------------------------------------------- | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -16,0 +18,0 @@ function __() { this.constructor = d; } |
@@ -70,3 +70,3 @@ /*--------------------------------------------------------------------------------------------- | ||
CSSCompletion.prototype.configure = function (settings) { | ||
this.settings = settings; | ||
this.defaultSettings = settings; | ||
}; | ||
@@ -82,3 +82,4 @@ CSSCompletion.prototype.getSymbolContext = function () { | ||
}; | ||
CSSCompletion.prototype.doComplete2 = function (document, position, styleSheet, documentContext) { | ||
CSSCompletion.prototype.doComplete2 = function (document, position, styleSheet, documentContext, completionSettings) { | ||
if (completionSettings === void 0) { completionSettings = this.defaultSettings; } | ||
return __awaiter(this, void 0, void 0, function () { | ||
@@ -90,3 +91,3 @@ var participant, contributedParticipants, result, pathCompletionResult; | ||
if (!this.lsOptions.fileSystemProvider || !this.lsOptions.fileSystemProvider.readDirectory) { | ||
return [2 /*return*/, this.doComplete(document, position, styleSheet)]; | ||
return [2 /*return*/, this.doComplete(document, position, styleSheet, completionSettings)]; | ||
} | ||
@@ -96,3 +97,3 @@ participant = new PathCompletionParticipant(this.lsOptions.fileSystemProvider.readDirectory); | ||
this.completionParticipants = [participant].concat(contributedParticipants); | ||
result = this.doComplete(document, position, styleSheet); | ||
result = this.doComplete(document, position, styleSheet, completionSettings); | ||
_a.label = 1; | ||
@@ -116,3 +117,3 @@ case 1: | ||
}; | ||
CSSCompletion.prototype.doComplete = function (document, position, styleSheet) { | ||
CSSCompletion.prototype.doComplete = function (document, position, styleSheet, documentSettings) { | ||
this.offset = document.offsetAt(position); | ||
@@ -124,2 +125,3 @@ this.position = position; | ||
this.styleSheet = styleSheet; | ||
this.documentSettings = documentSettings; | ||
try { | ||
@@ -312,8 +314,4 @@ var result = { isIncomplete: false, items: [] }; | ||
get: function () { | ||
if (!this.settings || | ||
!this.settings.completion || | ||
this.settings.completion.triggerPropertyValueCompletion === undefined) { | ||
return true; | ||
} | ||
return this.settings.completion.triggerPropertyValueCompletion; | ||
var _a, _b; | ||
return (_b = (_a = this.documentSettings) === null || _a === void 0 ? void 0 : _a.triggerPropertyValueCompletion) !== null && _b !== void 0 ? _b : true; | ||
}, | ||
@@ -325,8 +323,4 @@ enumerable: false, | ||
get: function () { | ||
if (!this.settings || | ||
!this.settings.completion || | ||
this.settings.completion.completePropertyWithSemicolon === undefined) { | ||
return true; | ||
} | ||
return this.settings.completion.completePropertyWithSemicolon; | ||
var _a, _b; | ||
return (_b = (_a = this.documentSettings) === null || _a === void 0 ? void 0 : _a.completePropertyWithSemicolon) !== null && _b !== void 0 ? _b : true; | ||
}, | ||
@@ -333,0 +327,0 @@ enumerable: false, |
@@ -18,3 +18,7 @@ /*--------------------------------------------------------------------------------------------- | ||
} | ||
CSSHover.prototype.configure = function (settings) { | ||
this.defaultSettings = settings; | ||
}; | ||
CSSHover.prototype.doHover = function (document, position, stylesheet, settings) { | ||
if (settings === void 0) { settings = this.defaultSettings; } | ||
function getRange(node) { | ||
@@ -21,0 +25,0 @@ return Range.create(document.positionAt(node.offset), document.positionAt(node.end)); |
@@ -14,2 +14,4 @@ /*--------------------------------------------------------------------------------------------- | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -16,0 +18,0 @@ function __() { this.constructor = d; } |
@@ -527,3 +527,4 @@ /*--------------------------------------------------------------------------------------------- | ||
LintVisitor.prefixes = [ | ||
'-ms-', '-moz-', '-o-', '-webkit-', | ||
'-ms-', '-moz-', '-o-', '-webkit-', // Quite common | ||
// '-xv-', '-atsc-', '-wap-', '-khtml-', 'mso-', 'prince-', '-ah-', '-hp-', '-ro-', '-rim-', '-tc-' // Quite un-common | ||
]; | ||
@@ -530,0 +531,0 @@ return LintVisitor; |
@@ -14,2 +14,4 @@ /*--------------------------------------------------------------------------------------------- | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -16,0 +18,0 @@ function __() { this.constructor = d; } |
@@ -14,2 +14,4 @@ /*--------------------------------------------------------------------------------------------- | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -16,0 +18,0 @@ function __() { this.constructor = d; } |
@@ -14,2 +14,4 @@ /*--------------------------------------------------------------------------------------------- | ||
return function (d, b) { | ||
if (typeof b !== "function" && b !== null) | ||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); | ||
extendStatics(d, b); | ||
@@ -16,0 +18,0 @@ function __() { this.constructor = d; } |
@@ -5,8 +5,6 @@ /*--------------------------------------------------------------------------------------------- | ||
*--------------------------------------------------------------------------------------------*/ | ||
var __spreadArrays = (this && this.__spreadArrays) || function () { | ||
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; | ||
for (var r = Array(s), k = 0, i = 0; i < il; i++) | ||
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) | ||
r[k] = a[j]; | ||
return r; | ||
var __spreadArray = (this && this.__spreadArray) || function (to, from) { | ||
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) | ||
to[j] = from[i]; | ||
return to; | ||
}; | ||
@@ -22,3 +20,3 @@ import { URI, Utils } from './../../vscode-uri/index'; | ||
} | ||
return Utils.joinPath.apply(Utils, __spreadArrays([URI.parse(uriString)], paths)).toString(); | ||
return Utils.joinPath.apply(Utils, __spreadArray([URI.parse(uriString)], paths)).toString(); | ||
} |
/*!----------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* monaco-css version: 3.2.0(34339c7214de33ed59198877f683e3fd27e168f6) | ||
* monaco-css version: 3.3.0(ed57760e69ec24098de2b4e49fa5be7f48be019a) | ||
* Released under the MIT license | ||
@@ -5,0 +5,0 @@ * https://github.com/Microsoft/monaco-css/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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6415197
111274