vscode-css-languageservice 6.2.6 → 6.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/lib/esm/beautify/beautify-css.js +53 -31
- package/lib/esm/cssLanguageTypes.d.ts +1 -0
- package/lib/esm/data/webCustomData.js +848 -338
- package/lib/esm/services/lessCompletion.js +1 -2
- package/lib/esm/services/lint.js +1 -2
- package/lib/esm/services/scssCompletion.js +1 -2
- package/lib/umd/beautify/beautify-css.js +53 -31
- package/lib/umd/cssLanguageTypes.d.ts +1 -0
- package/lib/umd/cssLanguageTypes.js +2 -2
- package/lib/umd/data/webCustomData.js +848 -338
- package/lib/umd/parser/cssNodes.js +3 -3
- package/lib/umd/parser/cssScanner.js +1 -1
- package/lib/umd/services/lessCompletion.js +1 -1
- package/lib/umd/services/lint.js +1 -1
- package/lib/umd/services/scssCompletion.js +1 -1
- package/package.json +8 -8
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
NodeType[NodeType["LayerNameList"] = 84] = "LayerNameList";
|
|
109
109
|
NodeType[NodeType["LayerName"] = 85] = "LayerName";
|
|
110
110
|
NodeType[NodeType["PropertyAtRule"] = 86] = "PropertyAtRule";
|
|
111
|
-
})(NodeType
|
|
111
|
+
})(NodeType || (exports.NodeType = NodeType = {}));
|
|
112
112
|
var ReferenceType;
|
|
113
113
|
(function (ReferenceType) {
|
|
114
114
|
ReferenceType[ReferenceType["Mixin"] = 0] = "Mixin";
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
ReferenceType[ReferenceType["Forward"] = 7] = "Forward";
|
|
122
122
|
ReferenceType[ReferenceType["ForwardVisibility"] = 8] = "ForwardVisibility";
|
|
123
123
|
ReferenceType[ReferenceType["Property"] = 9] = "Property";
|
|
124
|
-
})(ReferenceType
|
|
124
|
+
})(ReferenceType || (exports.ReferenceType = ReferenceType = {}));
|
|
125
125
|
function getNodeAtOffset(node, offset) {
|
|
126
126
|
let candidate = null;
|
|
127
127
|
if (!node || offset < node.offset || offset > node.end) {
|
|
@@ -1409,7 +1409,7 @@
|
|
|
1409
1409
|
Level[Level["Ignore"] = 1] = "Ignore";
|
|
1410
1410
|
Level[Level["Warning"] = 2] = "Warning";
|
|
1411
1411
|
Level[Level["Error"] = 4] = "Error";
|
|
1412
|
-
})(Level
|
|
1412
|
+
})(Level || (exports.Level = Level = {}));
|
|
1413
1413
|
class Marker {
|
|
1414
1414
|
constructor(node, rule, level, message, offset = node.offset, length = node.length) {
|
|
1415
1415
|
this.node = node;
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
TokenType[TokenType["SingleLineComment"] = 40] = "SingleLineComment";
|
|
60
60
|
TokenType[TokenType["EOF"] = 41] = "EOF";
|
|
61
61
|
TokenType[TokenType["CustomToken"] = 42] = "CustomToken";
|
|
62
|
-
})(TokenType
|
|
62
|
+
})(TokenType || (exports.TokenType = TokenType = {}));
|
|
63
63
|
class MultiLineStream {
|
|
64
64
|
constructor(source) {
|
|
65
65
|
this.source = source;
|
|
@@ -55,6 +55,7 @@
|
|
|
55
55
|
return super.getCompletionsForDeclarationProperty(declaration, result);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
+
exports.LESSCompletion = LESSCompletion;
|
|
58
59
|
LESSCompletion.builtInProposals = [
|
|
59
60
|
// Boolean functions
|
|
60
61
|
{
|
|
@@ -386,5 +387,4 @@
|
|
|
386
387
|
'example': 'negation(@color1, @color2);'
|
|
387
388
|
}
|
|
388
389
|
];
|
|
389
|
-
exports.LESSCompletion = LESSCompletion;
|
|
390
390
|
});
|
package/lib/umd/services/lint.js
CHANGED
|
@@ -569,9 +569,9 @@
|
|
|
569
569
|
return true;
|
|
570
570
|
}
|
|
571
571
|
}
|
|
572
|
+
exports.LintVisitor = LintVisitor;
|
|
572
573
|
LintVisitor.prefixes = [
|
|
573
574
|
'-ms-', '-moz-', '-o-', '-webkit-', // Quite common
|
|
574
575
|
// '-xv-', '-atsc-', '-wap-', '-khtml-', 'mso-', 'prince-', '-ah-', '-hp-', '-ro-', '-rim-', '-tc-' // Quite un-common
|
|
575
576
|
];
|
|
576
|
-
exports.LintVisitor = LintVisitor;
|
|
577
577
|
});
|
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
return result;
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
+
exports.SCSSCompletion = SCSSCompletion;
|
|
121
122
|
SCSSCompletion.variableDefaults = {
|
|
122
123
|
'$red': '1',
|
|
123
124
|
'$green': '2',
|
|
@@ -344,7 +345,6 @@
|
|
|
344
345
|
references: [{ name: sassDocumentationName, url: 'https://sass-lang.com/documentation/modules/meta' }]
|
|
345
346
|
},
|
|
346
347
|
];
|
|
347
|
-
exports.SCSSCompletion = SCSSCompletion;
|
|
348
348
|
/**
|
|
349
349
|
* Todo @Pine: Remove this and do it through custom data
|
|
350
350
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vscode-css-languageservice",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.7",
|
|
4
4
|
"description": "Language service for CSS, LESS and SCSS",
|
|
5
5
|
"main": "./lib/umd/cssLanguageService.js",
|
|
6
6
|
"typings": "./lib/umd/cssLanguageService",
|
|
@@ -17,18 +17,18 @@
|
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@types/mocha": "^10.0.1",
|
|
19
19
|
"@types/node": "16.x",
|
|
20
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
21
|
-
"@typescript-eslint/parser": "^5.
|
|
22
|
-
"@vscode/web-custom-data": "^0.4.
|
|
23
|
-
"eslint": "^8.
|
|
24
|
-
"js-beautify": "^1.14.
|
|
20
|
+
"@typescript-eslint/eslint-plugin": "^6.5.0",
|
|
21
|
+
"@typescript-eslint/parser": "^6.5.0",
|
|
22
|
+
"@vscode/web-custom-data": "^0.4.7",
|
|
23
|
+
"eslint": "^8.48.0",
|
|
24
|
+
"js-beautify": "^1.14.9",
|
|
25
25
|
"mocha": "^10.2.0",
|
|
26
26
|
"rimraf": "^5.0.1",
|
|
27
27
|
"source-map-support": "^0.5.21",
|
|
28
|
-
"typescript": "^5.
|
|
28
|
+
"typescript": "^5.2.2"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@vscode/l10n": "^0.0.
|
|
31
|
+
"@vscode/l10n": "^0.0.16",
|
|
32
32
|
"vscode-languageserver-textdocument": "^1.0.8",
|
|
33
33
|
"vscode-languageserver-types": "^3.17.3",
|
|
34
34
|
"vscode-uri": "^3.0.7"
|