vscode-css-languageservice 6.3.5 → 6.3.6
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 +4 -4
- package/docs/customData.schema.json +39 -0
- package/lib/esm/cssLanguageTypes.d.ts +12 -0
- package/lib/esm/data/webCustomData.js +1878 -306
- package/lib/esm/languageFacts/colors.js +199 -74
- package/lib/esm/services/cssCompletion.js +43 -0
- package/lib/esm/services/cssNavigation.js +8 -2
- package/lib/umd/cssLanguageTypes.d.ts +12 -0
- package/lib/umd/data/webCustomData.js +1878 -306
- package/lib/umd/languageFacts/colors.js +205 -74
- package/lib/umd/services/cssCompletion.js +43 -0
- package/lib/umd/services/cssNavigation.js +7 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -27,19 +27,19 @@ Installation
|
|
|
27
27
|
------------
|
|
28
28
|
|
|
29
29
|
npm install --save vscode-css-languageservice
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
|
|
31
|
+
|
|
32
32
|
API
|
|
33
33
|
---
|
|
34
34
|
|
|
35
|
-
For the complete API see [cssLanguageService.ts](./src/cssLanguageService.ts) and [cssLanguageTypes.ts](./src/cssLanguageTypes.ts)
|
|
35
|
+
For the complete API see [cssLanguageService.ts](./src/cssLanguageService.ts) and [cssLanguageTypes.ts](./src/cssLanguageTypes.ts)
|
|
36
36
|
|
|
37
37
|
|
|
38
38
|
Development
|
|
39
39
|
-----------
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
- clone this repo, run `npm install
|
|
42
|
+
- clone this repo, run `npm install`
|
|
43
43
|
- `npm test` to compile and run tests
|
|
44
44
|
|
|
45
45
|
How can I run and debug the service?
|
|
@@ -37,6 +37,38 @@
|
|
|
37
37
|
"description": "Description shown in completion and hover"
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
|
+
},
|
|
41
|
+
"descriptor": {
|
|
42
|
+
"type": "object",
|
|
43
|
+
"required": ["name"],
|
|
44
|
+
"properties": {
|
|
45
|
+
"name": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"description": "The name of the descriptor."
|
|
48
|
+
},
|
|
49
|
+
"description": {
|
|
50
|
+
"description": "Description of at descriptor shown in completion and hover",
|
|
51
|
+
"anyOf": [
|
|
52
|
+
{
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
{ "$ref": "#/definitions/markupDescription" }
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"status": {
|
|
59
|
+
"$ref": "#/properties/properties/items/properties/status"
|
|
60
|
+
},
|
|
61
|
+
"browsers": {
|
|
62
|
+
"$ref": "#/properties/properties/items/properties/browsers"
|
|
63
|
+
},
|
|
64
|
+
"references": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"description": "A list of references for the descriptor shown in completion and hover",
|
|
67
|
+
"items": {
|
|
68
|
+
"$ref": "#/definitions/references"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
40
72
|
}
|
|
41
73
|
},
|
|
42
74
|
"properties": {
|
|
@@ -168,6 +200,13 @@
|
|
|
168
200
|
"items": {
|
|
169
201
|
"$ref": "#/definitions/references"
|
|
170
202
|
}
|
|
203
|
+
},
|
|
204
|
+
"descriptors": {
|
|
205
|
+
"type": "array",
|
|
206
|
+
"description": "A list of descriptors for the at-directive, for example prefers-reduced-motion for @media",
|
|
207
|
+
"items": {
|
|
208
|
+
"$ref": "#/definitions/descriptor"
|
|
209
|
+
}
|
|
171
210
|
}
|
|
172
211
|
}
|
|
173
212
|
}
|
|
@@ -134,6 +134,17 @@ export interface IPropertyData {
|
|
|
134
134
|
relevance?: number;
|
|
135
135
|
atRule?: string;
|
|
136
136
|
}
|
|
137
|
+
export interface IDescriptorData {
|
|
138
|
+
name: string;
|
|
139
|
+
description?: string;
|
|
140
|
+
references?: IReference[];
|
|
141
|
+
syntax?: string;
|
|
142
|
+
type?: string;
|
|
143
|
+
values?: IValueData[];
|
|
144
|
+
browsers?: string[];
|
|
145
|
+
baseline?: BaselineStatus;
|
|
146
|
+
status?: EntryStatus;
|
|
147
|
+
}
|
|
137
148
|
export interface IAtDirectiveData {
|
|
138
149
|
name: string;
|
|
139
150
|
description?: string | MarkupContent;
|
|
@@ -141,6 +152,7 @@ export interface IAtDirectiveData {
|
|
|
141
152
|
baseline?: BaselineStatus;
|
|
142
153
|
status?: EntryStatus;
|
|
143
154
|
references?: IReference[];
|
|
155
|
+
descriptors?: IDescriptorData[];
|
|
144
156
|
}
|
|
145
157
|
export interface IPseudoClassData {
|
|
146
158
|
name: string;
|