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 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;