astro-vscode 2.0.0-next.9 → 2.0.13

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/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "color": "#17191E",
25
25
  "theme": "dark"
26
26
  },
27
- "version": "2.0.0-next.9",
27
+ "version": "2.0.13",
28
28
  "author": "withastro",
29
29
  "license": "MIT",
30
30
  "publisher": "astro-build",
@@ -68,6 +68,14 @@
68
68
  {
69
69
  "command": "astro.findFileReferences",
70
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"
71
79
  }
72
80
  ],
73
81
  "menus": {
@@ -79,6 +87,14 @@
79
87
  {
80
88
  "command": "astro.findFileReferences",
81
89
  "when": "editorLangId == astro"
90
+ },
91
+ {
92
+ "command": "astro.selectTypescriptVersion",
93
+ "when": "editorLangId == astro"
94
+ },
95
+ {
96
+ "command": "astro.openTsConfig",
97
+ "when": "editorLangId == astro"
82
98
  }
83
99
  ],
84
100
  "editor/context": [
@@ -192,7 +208,7 @@
192
208
  ]
193
209
  },
194
210
  "devDependencies": {
195
- "@astrojs/language-server": "^2.0.0-next.9",
211
+ "@astrojs/language-server": "^2.0.0",
196
212
  "@types/glob": "^8.1.0",
197
213
  "@types/mocha": "^10.0.1",
198
214
  "@types/node": "^16.18.26",
@@ -214,7 +230,7 @@
214
230
  "dependencies": {
215
231
  "@astrojs/ts-plugin": "^1.0.7",
216
232
  "prettier": "^2.8.8",
217
- "prettier-plugin-astro": "^0.9.1"
233
+ "prettier-plugin-astro": "^0.10.0"
218
234
  },
219
235
  "scripts": {
220
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: