astro-vscode 2.0.0-next.8 → 2.0.12
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 -12
- package/dist/astro.wasm +0 -0
- package/dist/node/client.js +1889 -2014
- package/dist/node/server.js +3017 -2077
- package/package.json +21 -4
- package/syntaxes/astro.tmLanguage.json +55 -1
- package/syntaxes/astro.tmLanguage.src.yaml +19 -1
package/package.json
CHANGED
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"node",
|
|
14
14
|
"typescript",
|
|
15
15
|
"javascript",
|
|
16
|
+
"react",
|
|
16
17
|
"vue",
|
|
17
18
|
"svelte",
|
|
18
19
|
"Static site generator"
|
|
@@ -23,7 +24,7 @@
|
|
|
23
24
|
"color": "#17191E",
|
|
24
25
|
"theme": "dark"
|
|
25
26
|
},
|
|
26
|
-
"version": "2.0.
|
|
27
|
+
"version": "2.0.12",
|
|
27
28
|
"author": "withastro",
|
|
28
29
|
"license": "MIT",
|
|
29
30
|
"publisher": "astro-build",
|
|
@@ -67,6 +68,14 @@
|
|
|
67
68
|
{
|
|
68
69
|
"command": "astro.findFileReferences",
|
|
69
70
|
"title": "Astro: Find File References"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"command": "astro.selectTypescriptVersion",
|
|
74
|
+
"title": "Astro: Select Typescript Version..."
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"command": "astro.openTsConfig",
|
|
78
|
+
"title": "Astro: Open TypeScript config"
|
|
70
79
|
}
|
|
71
80
|
],
|
|
72
81
|
"menus": {
|
|
@@ -78,6 +87,14 @@
|
|
|
78
87
|
{
|
|
79
88
|
"command": "astro.findFileReferences",
|
|
80
89
|
"when": "editorLangId == astro"
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"command": "astro.selectTypescriptVersion",
|
|
93
|
+
"when": "editorLangId == astro"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"command": "astro.openTsConfig",
|
|
97
|
+
"when": "editorLangId == astro"
|
|
81
98
|
}
|
|
82
99
|
],
|
|
83
100
|
"editor/context": [
|
|
@@ -191,7 +208,7 @@
|
|
|
191
208
|
]
|
|
192
209
|
},
|
|
193
210
|
"devDependencies": {
|
|
194
|
-
"@astrojs/language-server": "^2.0.0
|
|
211
|
+
"@astrojs/language-server": "^2.0.0",
|
|
195
212
|
"@types/glob": "^8.1.0",
|
|
196
213
|
"@types/mocha": "^10.0.1",
|
|
197
214
|
"@types/node": "^16.18.26",
|
|
@@ -211,9 +228,9 @@
|
|
|
211
228
|
"vscode-tmgrammar-test": "^0.1.1"
|
|
212
229
|
},
|
|
213
230
|
"dependencies": {
|
|
214
|
-
"@astrojs/ts-plugin": "^1.0.
|
|
231
|
+
"@astrojs/ts-plugin": "^1.0.7",
|
|
215
232
|
"prettier": "^2.8.8",
|
|
216
|
-
"prettier-plugin-astro": "^0.
|
|
233
|
+
"prettier-plugin-astro": "^0.10.0"
|
|
217
234
|
},
|
|
218
235
|
"scripts": {
|
|
219
236
|
"build": "node scripts/build.mjs",
|
|
@@ -324,7 +324,7 @@
|
|
|
324
324
|
}
|
|
325
325
|
},
|
|
326
326
|
{
|
|
327
|
-
"begin": "([
|
|
327
|
+
"begin": "([\"])",
|
|
328
328
|
"end": "\\1",
|
|
329
329
|
"beginCaptures": {
|
|
330
330
|
"0": {
|
|
@@ -376,6 +376,60 @@
|
|
|
376
376
|
"name": "comment.block.js"
|
|
377
377
|
}
|
|
378
378
|
]
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
"begin": "(['])",
|
|
382
|
+
"end": "\\1",
|
|
383
|
+
"beginCaptures": {
|
|
384
|
+
"0": {
|
|
385
|
+
"name": "punctuation.definition.string.begin.astro"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
"endCaptures": {
|
|
389
|
+
"0": {
|
|
390
|
+
"name": "punctuation.definition.string.end.astro"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"name": "string.quoted.astro",
|
|
394
|
+
"patterns": [
|
|
395
|
+
{
|
|
396
|
+
"match": "([^\\n\\'/]|/(?![/*]))+",
|
|
397
|
+
"captures": {
|
|
398
|
+
"0": {
|
|
399
|
+
"patterns": [
|
|
400
|
+
{
|
|
401
|
+
"include": "source.js"
|
|
402
|
+
}
|
|
403
|
+
]
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
"begin": "//",
|
|
409
|
+
"beginCaptures": {
|
|
410
|
+
"0": {
|
|
411
|
+
"name": "punctuation.definition.comment.js"
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
"end": "(?=\\')|\\n",
|
|
415
|
+
"name": "comment.line.double-slash.js"
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
"begin": "/\\*",
|
|
419
|
+
"beginCaptures": {
|
|
420
|
+
"0": {
|
|
421
|
+
"name": "punctuation.definition.comment.begin.js"
|
|
422
|
+
}
|
|
423
|
+
},
|
|
424
|
+
"end": "(?=\\')|\\*/",
|
|
425
|
+
"endCaptures": {
|
|
426
|
+
"0": {
|
|
427
|
+
"name": "punctuation.definition.comment.end.js"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"name": "comment.block.js"
|
|
431
|
+
}
|
|
432
|
+
]
|
|
379
433
|
}
|
|
380
434
|
]
|
|
381
435
|
}
|
|
@@ -268,7 +268,7 @@ repository:
|
|
|
268
268
|
captures:
|
|
269
269
|
0: { name: source.js }
|
|
270
270
|
1: { patterns: [{ include: source.js }] }
|
|
271
|
-
- begin: ([
|
|
271
|
+
- begin: (["])
|
|
272
272
|
end: \1
|
|
273
273
|
beginCaptures: { 0: { name: punctuation.definition.string.begin.astro } }
|
|
274
274
|
endCaptures: { 0: { name: punctuation.definition.string.end.astro } }
|
|
@@ -286,6 +286,24 @@ repository:
|
|
|
286
286
|
end: (?=\")|\*/
|
|
287
287
|
endCaptures: { 0: { name: punctuation.definition.comment.end.js } }
|
|
288
288
|
name: comment.block.js
|
|
289
|
+
- begin: (['])
|
|
290
|
+
end: \1
|
|
291
|
+
beginCaptures: { 0: { name: punctuation.definition.string.begin.astro } }
|
|
292
|
+
endCaptures: { 0: { name: punctuation.definition.string.end.astro } }
|
|
293
|
+
name: string.quoted.astro
|
|
294
|
+
patterns:
|
|
295
|
+
- match: ([^\n\'/]|/(?![/*]))+
|
|
296
|
+
captures: { 0: { patterns: [{ include: source.js }] } }
|
|
297
|
+
# Special handling for comments so they stay scoped inside the quotes
|
|
298
|
+
- begin: //
|
|
299
|
+
beginCaptures: { 0: { name: punctuation.definition.comment.js } }
|
|
300
|
+
end: (?=\')|\n
|
|
301
|
+
name: comment.line.double-slash.js
|
|
302
|
+
- begin: /\*
|
|
303
|
+
beginCaptures: { 0: { name: punctuation.definition.comment.begin.js } }
|
|
304
|
+
end: (?=\')|\*/
|
|
305
|
+
endCaptures: { 0: { name: punctuation.definition.comment.end.js } }
|
|
306
|
+
name: comment.block.js
|
|
289
307
|
|
|
290
308
|
# Interpolated shorthand attributes, like `{variable}` sitting by itself.
|
|
291
309
|
attributes-interpolated:
|