@master/css-vscode 0.0.0-stage → 2.0.0
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/LICENSE +21 -0
- package/README.md +253 -2
- package/dist/extension.min.js +206 -0
- package/dist/server.min.js +219 -0
- package/icon.png +0 -0
- package/package.json +493 -5
package/icon.png
ADDED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,494 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
"name": "@master/css-vscode",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"build": "bun --bun tsdown && bun run generate",
|
|
6
|
+
"generate": "bun ./generate.ts",
|
|
7
|
+
"dev": "bun --bun tsdown --watch",
|
|
8
|
+
"test": "node ../../node_modules/vitest/vitest.mjs run",
|
|
9
|
+
"type-check": "bun --bun tsc -b tsconfig.typecheck.json",
|
|
10
|
+
"lint": "bun --bun eslint",
|
|
11
|
+
"vscode:package": "node scripts/package-targets.js package",
|
|
12
|
+
"vscode:publish": "node scripts/package-targets.js publish",
|
|
13
|
+
"vsce": "node ../../node_modules/@vscode/vsce/vsce",
|
|
14
|
+
"release": "node scripts/release.js"
|
|
15
|
+
},
|
|
16
|
+
"version": "2.0.0",
|
|
17
|
+
"description": "Master CSS for Visual Studio Code",
|
|
18
|
+
"displayName": "Master CSS",
|
|
19
|
+
"author": "Aoyue Design LLC.",
|
|
20
|
+
"homepage": "https://css.master.co/guide/language-service",
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"publisher": "masterco",
|
|
23
|
+
"icon": "icon.png",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/master-co/css.git",
|
|
27
|
+
"directory": "packages/vscode"
|
|
28
|
+
},
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": "^24",
|
|
31
|
+
"vscode": "^1.123.0"
|
|
32
|
+
},
|
|
33
|
+
"activationEvents": [
|
|
34
|
+
"onStartupFinished"
|
|
35
|
+
],
|
|
36
|
+
"main": "./dist/extension.min.js",
|
|
37
|
+
"exports": {
|
|
38
|
+
".": "./dist/extension.min.js",
|
|
39
|
+
"./server": "./dist/server.min.js"
|
|
40
|
+
},
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"LICENSE",
|
|
44
|
+
"icon.png"
|
|
45
|
+
],
|
|
46
|
+
"capabilities": {
|
|
47
|
+
"virtualWorkspaces": {
|
|
48
|
+
"supported": false,
|
|
49
|
+
"description": "Using Master CSS is not possible in virtual workspaces."
|
|
50
|
+
},
|
|
51
|
+
"untrustedWorkspaces": {
|
|
52
|
+
"supported": false,
|
|
53
|
+
"description": "The extension requires workspace trust because it loads configuration files and code from the workspace and executes it."
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"contributes": {
|
|
57
|
+
"commands": [
|
|
58
|
+
{
|
|
59
|
+
"title": "Restart Language Server",
|
|
60
|
+
"command": "masterCSS.restart",
|
|
61
|
+
"category": "Master CSS"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"configuration": {
|
|
65
|
+
"title": "Master CSS",
|
|
66
|
+
"properties": {
|
|
67
|
+
"masterCSS.includedLanguages": {
|
|
68
|
+
"type": "array",
|
|
69
|
+
"items": {
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
"default": [
|
|
73
|
+
"html",
|
|
74
|
+
"php",
|
|
75
|
+
"javascript",
|
|
76
|
+
"typescript",
|
|
77
|
+
"javascriptreact",
|
|
78
|
+
"typescriptreact",
|
|
79
|
+
"css",
|
|
80
|
+
"scss",
|
|
81
|
+
"less",
|
|
82
|
+
"vue",
|
|
83
|
+
"svelte",
|
|
84
|
+
"rust",
|
|
85
|
+
"astro",
|
|
86
|
+
"markdown",
|
|
87
|
+
"mdx",
|
|
88
|
+
"astro"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
"masterCSS.exclude": {
|
|
92
|
+
"type": "array",
|
|
93
|
+
"items": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"default": [
|
|
97
|
+
"**/.git/**",
|
|
98
|
+
"**/node_modules/**",
|
|
99
|
+
"**/.hg/**"
|
|
100
|
+
],
|
|
101
|
+
"description": "Configure glob patterns to exclude from all Master Language Service features."
|
|
102
|
+
},
|
|
103
|
+
"masterCSS.classAttributes": {
|
|
104
|
+
"type": "array",
|
|
105
|
+
"items": {
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
"default": [
|
|
109
|
+
"class",
|
|
110
|
+
"className"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"masterCSS.classAttributeBindings": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"default": {
|
|
116
|
+
"className": [
|
|
117
|
+
"{",
|
|
118
|
+
"}"
|
|
119
|
+
],
|
|
120
|
+
"class": [
|
|
121
|
+
"{",
|
|
122
|
+
"}"
|
|
123
|
+
],
|
|
124
|
+
"class:list": [
|
|
125
|
+
"{",
|
|
126
|
+
"}"
|
|
127
|
+
],
|
|
128
|
+
":class": [
|
|
129
|
+
"\"",
|
|
130
|
+
"\""
|
|
131
|
+
],
|
|
132
|
+
"v-bind:class": [
|
|
133
|
+
"\"",
|
|
134
|
+
"\""
|
|
135
|
+
],
|
|
136
|
+
"[class]": [
|
|
137
|
+
"\"",
|
|
138
|
+
"\""
|
|
139
|
+
],
|
|
140
|
+
"[className]": [
|
|
141
|
+
"\"",
|
|
142
|
+
"\""
|
|
143
|
+
],
|
|
144
|
+
"[ngClass]": [
|
|
145
|
+
"\"",
|
|
146
|
+
"\""
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
"masterCSS.classDeclarations": {
|
|
151
|
+
"type": "array",
|
|
152
|
+
"items": {
|
|
153
|
+
"type": "string"
|
|
154
|
+
},
|
|
155
|
+
"default": []
|
|
156
|
+
},
|
|
157
|
+
"masterCSS.classFunctions": {
|
|
158
|
+
"type": "array",
|
|
159
|
+
"items": {
|
|
160
|
+
"type": "string"
|
|
161
|
+
},
|
|
162
|
+
"default": [
|
|
163
|
+
"clsx",
|
|
164
|
+
"cva",
|
|
165
|
+
"ctl",
|
|
166
|
+
"cv",
|
|
167
|
+
"class",
|
|
168
|
+
"classnames",
|
|
169
|
+
"classVariant",
|
|
170
|
+
"styled(?:\\s+)?(?:\\.\\w+)?",
|
|
171
|
+
"classList(?:\\s+)?\\.(?:add|remove|toggle|replace)"
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
"masterCSS.suggestSyntax": {
|
|
175
|
+
"type": "boolean",
|
|
176
|
+
"default": true
|
|
177
|
+
},
|
|
178
|
+
"masterCSS.inspectSyntax": {
|
|
179
|
+
"type": "boolean",
|
|
180
|
+
"default": true
|
|
181
|
+
},
|
|
182
|
+
"masterCSS.renderSyntaxColors": {
|
|
183
|
+
"type": "boolean",
|
|
184
|
+
"default": true
|
|
185
|
+
},
|
|
186
|
+
"masterCSS.formatDirectives": {
|
|
187
|
+
"type": "boolean",
|
|
188
|
+
"default": true,
|
|
189
|
+
"description": "Enables Master CSS directive formatting in CSS-family documents."
|
|
190
|
+
},
|
|
191
|
+
"masterCSS.embeddedSyntaxHighlighting": {
|
|
192
|
+
"type": "string",
|
|
193
|
+
"enum": [
|
|
194
|
+
"active",
|
|
195
|
+
"always",
|
|
196
|
+
"off"
|
|
197
|
+
],
|
|
198
|
+
"default": "active",
|
|
199
|
+
"description": "Controls embedded Master CSS utility highlighting in markup and scripts. Active highlights the class context at the active editor selection, always highlights all discovered embedded utilities, and off disables embedded utility highlighting. Master CSS syntax inside CSS documents is always highlighted."
|
|
200
|
+
},
|
|
201
|
+
"masterCSS.workspaces": {
|
|
202
|
+
"type": [
|
|
203
|
+
"string",
|
|
204
|
+
"array"
|
|
205
|
+
],
|
|
206
|
+
"default": "auto",
|
|
207
|
+
"description": "Configure Master CSS workspaces. The default auto mode detects CSS files with @import \"@master/css\", and package.json files that declare Master CSS package dependencies."
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"semanticTokenModifiers": [
|
|
212
|
+
{
|
|
213
|
+
"id": "component",
|
|
214
|
+
"description": "Master CSS component semantic token modifier."
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "directive",
|
|
218
|
+
"description": "Master CSS directive semantic token modifier."
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"id": "important",
|
|
222
|
+
"description": "Master CSS important semantic token modifier."
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"id": "pseudoClass",
|
|
226
|
+
"description": "Master CSS pseudoClass semantic token modifier."
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
"id": "pseudoElement",
|
|
230
|
+
"description": "Master CSS pseudoElement semantic token modifier."
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"id": "query",
|
|
234
|
+
"description": "Master CSS query semantic token modifier."
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
"id": "quoted",
|
|
238
|
+
"description": "Master CSS quoted semantic token modifier."
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"id": "selector",
|
|
242
|
+
"description": "Master CSS selector semantic token modifier."
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"id": "unit",
|
|
246
|
+
"description": "Master CSS unit semantic token modifier."
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"id": "blockBrace",
|
|
250
|
+
"description": "Master CSS blockBrace semantic token modifier."
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"id": "declarationSeparator",
|
|
254
|
+
"description": "Master CSS declarationSeparator semantic token modifier."
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"id": "declarationTerminator",
|
|
258
|
+
"description": "Master CSS declarationTerminator semantic token modifier."
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"id": "directiveTerminator",
|
|
262
|
+
"description": "Master CSS directiveTerminator semantic token modifier."
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"id": "functionPunctuation",
|
|
266
|
+
"description": "Master CSS functionPunctuation semantic token modifier."
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"id": "valueSeparator",
|
|
270
|
+
"description": "Master CSS valueSeparator semantic token modifier."
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"id": "valueOperator",
|
|
274
|
+
"description": "Master CSS valueOperator semantic token modifier."
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"id": "queryOperator",
|
|
278
|
+
"description": "Master CSS queryOperator semantic token modifier."
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"id": "queryPunctuation",
|
|
282
|
+
"description": "Master CSS queryPunctuation semantic token modifier."
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"id": "selectorCombinator",
|
|
286
|
+
"description": "Master CSS selectorCombinator semantic token modifier."
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"id": "selectorPunctuation",
|
|
290
|
+
"description": "Master CSS selectorPunctuation semantic token modifier."
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"id": "pseudoClassDelimiter",
|
|
294
|
+
"description": "Master CSS pseudoClassDelimiter semantic token modifier."
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"id": "pseudoElementDelimiter",
|
|
298
|
+
"description": "Master CSS pseudoElementDelimiter semantic token modifier."
|
|
299
|
+
}
|
|
300
|
+
],
|
|
301
|
+
"semanticTokenScopes": [
|
|
302
|
+
{
|
|
303
|
+
"scopes": {
|
|
304
|
+
"class": [
|
|
305
|
+
"entity.other.attribute-name.class.css"
|
|
306
|
+
],
|
|
307
|
+
"class.component": [
|
|
308
|
+
"entity.other.attribute-name.class.css"
|
|
309
|
+
],
|
|
310
|
+
"class.declaration": [
|
|
311
|
+
"entity.other.attribute-name.class.css"
|
|
312
|
+
],
|
|
313
|
+
"class.selector": [
|
|
314
|
+
"entity.other.attribute-name.class.css"
|
|
315
|
+
],
|
|
316
|
+
"enumMember": [
|
|
317
|
+
"support.constant.property-value.css"
|
|
318
|
+
],
|
|
319
|
+
"enumMember.directive": [
|
|
320
|
+
"support.constant.property-value.css"
|
|
321
|
+
],
|
|
322
|
+
"enumMember.query": [
|
|
323
|
+
"support.constant.property-value.css"
|
|
324
|
+
],
|
|
325
|
+
"enumMember.unit": [
|
|
326
|
+
"keyword.other.unit"
|
|
327
|
+
],
|
|
328
|
+
"property": [
|
|
329
|
+
"support.type.property-name.css"
|
|
330
|
+
],
|
|
331
|
+
"property.directive": [
|
|
332
|
+
"support.type.property-name.css"
|
|
333
|
+
],
|
|
334
|
+
"property.query": [
|
|
335
|
+
"support.type.property-name.css"
|
|
336
|
+
],
|
|
337
|
+
"variable": [
|
|
338
|
+
"variable.other.master-css.css",
|
|
339
|
+
"variable.css"
|
|
340
|
+
],
|
|
341
|
+
"variable.directive": [
|
|
342
|
+
"variable.parameter.master-css.css"
|
|
343
|
+
],
|
|
344
|
+
"variable.selector": [
|
|
345
|
+
"entity.other.attribute-name.id.css"
|
|
346
|
+
],
|
|
347
|
+
"function": [
|
|
348
|
+
"support.function.misc.css"
|
|
349
|
+
],
|
|
350
|
+
"number": [
|
|
351
|
+
"constant.numeric.css"
|
|
352
|
+
],
|
|
353
|
+
"number.query": [
|
|
354
|
+
"constant.numeric.css"
|
|
355
|
+
],
|
|
356
|
+
"string": [
|
|
357
|
+
"string.quoted.css",
|
|
358
|
+
"string.quoted.html"
|
|
359
|
+
],
|
|
360
|
+
"string.quoted": [
|
|
361
|
+
"string.quoted.css",
|
|
362
|
+
"string.quoted.html"
|
|
363
|
+
],
|
|
364
|
+
"keyword": [
|
|
365
|
+
"keyword.control.at-rule"
|
|
366
|
+
],
|
|
367
|
+
"keyword.directive": [
|
|
368
|
+
"keyword.control.at-rule.master-css.css"
|
|
369
|
+
],
|
|
370
|
+
"keyword.query": [
|
|
371
|
+
"keyword.control.at-rule"
|
|
372
|
+
],
|
|
373
|
+
"modifier": [
|
|
374
|
+
"entity.other.attribute-name.pseudo-class.css"
|
|
375
|
+
],
|
|
376
|
+
"modifier.directive": [
|
|
377
|
+
"storage.modifier.master-css.css"
|
|
378
|
+
],
|
|
379
|
+
"modifier.pseudoClass": [
|
|
380
|
+
"entity.other.attribute-name.pseudo-class.css"
|
|
381
|
+
],
|
|
382
|
+
"modifier.pseudoElement": [
|
|
383
|
+
"entity.other.attribute-name.pseudo-element.css"
|
|
384
|
+
],
|
|
385
|
+
"operator": [
|
|
386
|
+
"keyword.operator.css"
|
|
387
|
+
],
|
|
388
|
+
"operator.directive": [
|
|
389
|
+
"punctuation.section.property-list.begin.bracket.curly.css"
|
|
390
|
+
],
|
|
391
|
+
"operator.blockBrace": [
|
|
392
|
+
"punctuation.section.property-list.begin.bracket.curly.css",
|
|
393
|
+
"punctuation.section.property-list.end.bracket.curly.css"
|
|
394
|
+
],
|
|
395
|
+
"operator.declarationSeparator": [
|
|
396
|
+
"punctuation.separator.key-value.css"
|
|
397
|
+
],
|
|
398
|
+
"operator.declarationTerminator": [
|
|
399
|
+
"punctuation.terminator.rule.css"
|
|
400
|
+
],
|
|
401
|
+
"operator.directiveTerminator": [
|
|
402
|
+
"punctuation.terminator.rule.css"
|
|
403
|
+
],
|
|
404
|
+
"operator.functionPunctuation": [
|
|
405
|
+
"punctuation.section.function.begin.bracket.round.css",
|
|
406
|
+
"punctuation.section.function.end.bracket.round.css"
|
|
407
|
+
],
|
|
408
|
+
"operator.important": [
|
|
409
|
+
"keyword.other.important.css",
|
|
410
|
+
"keyword.operator.important.css"
|
|
411
|
+
],
|
|
412
|
+
"operator.pseudoClass": [
|
|
413
|
+
"entity.other.attribute-name.pseudo-class.css"
|
|
414
|
+
],
|
|
415
|
+
"operator.pseudoClassDelimiter": [
|
|
416
|
+
"punctuation.definition.entity.css"
|
|
417
|
+
],
|
|
418
|
+
"operator.pseudoElement": [
|
|
419
|
+
"entity.other.attribute-name.pseudo-element.css"
|
|
420
|
+
],
|
|
421
|
+
"operator.pseudoElementDelimiter": [
|
|
422
|
+
"punctuation.definition.entity.css"
|
|
423
|
+
],
|
|
424
|
+
"operator.query": [
|
|
425
|
+
"keyword.operator.css"
|
|
426
|
+
],
|
|
427
|
+
"operator.queryOperator": [
|
|
428
|
+
"keyword.operator.comparison.css",
|
|
429
|
+
"keyword.operator.css"
|
|
430
|
+
],
|
|
431
|
+
"operator.queryPunctuation": [
|
|
432
|
+
"punctuation.separator.list.comma.css",
|
|
433
|
+
"punctuation.separator.key-value.css",
|
|
434
|
+
"punctuation.definition.parameters.begin.bracket.round.css",
|
|
435
|
+
"punctuation.definition.parameters.end.bracket.round.css",
|
|
436
|
+
"punctuation.section.function.begin.bracket.round.css",
|
|
437
|
+
"punctuation.section.function.end.bracket.round.css"
|
|
438
|
+
],
|
|
439
|
+
"operator.selector": [
|
|
440
|
+
"keyword.operator.combinator.css"
|
|
441
|
+
],
|
|
442
|
+
"operator.selectorCombinator": [
|
|
443
|
+
"keyword.operator.combinator.css"
|
|
444
|
+
],
|
|
445
|
+
"operator.selectorPunctuation": [
|
|
446
|
+
"punctuation.separator.list.comma.css",
|
|
447
|
+
"punctuation.definition.entity.css",
|
|
448
|
+
"punctuation.section.function.begin.bracket.round.css",
|
|
449
|
+
"punctuation.section.function.end.bracket.round.css",
|
|
450
|
+
"punctuation.definition.entity.begin.bracket.square.css",
|
|
451
|
+
"punctuation.definition.entity.end.bracket.square.css"
|
|
452
|
+
],
|
|
453
|
+
"operator.unit": [
|
|
454
|
+
"keyword.operator.css"
|
|
455
|
+
],
|
|
456
|
+
"operator.valueOperator": [
|
|
457
|
+
"keyword.operator.css"
|
|
458
|
+
],
|
|
459
|
+
"operator.valueSeparator": [
|
|
460
|
+
"punctuation.separator.list.comma.css"
|
|
461
|
+
],
|
|
462
|
+
"type": [
|
|
463
|
+
"entity.name.tag.css"
|
|
464
|
+
],
|
|
465
|
+
"type.selector": [
|
|
466
|
+
"entity.name.tag.css"
|
|
467
|
+
]
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
],
|
|
471
|
+
"grammars": [
|
|
472
|
+
{
|
|
473
|
+
"scopeName": "master-css.directive.injection",
|
|
474
|
+
"path": "./node_modules/@master/css-language-service/syntaxes/master-css.tmLanguage.json",
|
|
475
|
+
"injectTo": [
|
|
476
|
+
"source.css",
|
|
477
|
+
"source.css.scss",
|
|
478
|
+
"source.css.less",
|
|
479
|
+
"source.css.postcss"
|
|
480
|
+
]
|
|
481
|
+
}
|
|
482
|
+
],
|
|
483
|
+
"configurationDefaults": {
|
|
484
|
+
"css.lint.unknownAtRules": "ignore",
|
|
485
|
+
"scss.lint.unknownAtRules": "ignore",
|
|
486
|
+
"less.lint.unknownAtRules": "ignore"
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
"publishConfig": {
|
|
490
|
+
"access": "public",
|
|
491
|
+
"provenance": true
|
|
492
|
+
},
|
|
493
|
+
"gitHead": "6bf9adc4432b67e62613caea59d3b554711b4d54"
|
|
494
|
+
}
|