astro-vscode 2.16.7 → 2.16.9-beta.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.
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Astro global available in all contexts in .astro files
3
3
  *
4
- * [Astro documentation](https://docs.astro.build/reference/api-reference/#astro-global)
4
+ * [Astro documentation](https://docs.astro.build/en/reference/api-reference/)
5
5
  */
6
6
  declare const Astro: any;
7
7
  declare const Fragment: any;
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "color": "#17191E",
25
25
  "theme": "dark"
26
26
  },
27
- "version": "2.16.7",
27
+ "version": "2.16.9-beta.0",
28
28
  "author": "withastro",
29
29
  "license": "MIT",
30
30
  "publisher": "astro-build",
@@ -236,14 +236,13 @@
236
236
  ]
237
237
  },
238
238
  "devDependencies": {
239
- "@astrojs/language-server": "^2.16.1",
239
+ "@astrojs/language-server": "^2.16.1-alpha.0",
240
240
  "@astrojs/ts-plugin": "^1.10.6",
241
- "@types/glob": "^8.1.0",
242
241
  "@types/mocha": "^10.0.10",
243
242
  "@types/node": "^20.9.0",
244
243
  "@types/vscode": "^1.90.0",
245
- "@volar/language-server": "~2.4.27",
246
- "@volar/vscode": "~2.4.27",
244
+ "@volar/language-server": "~2.4.28",
245
+ "@volar/vscode": "~2.4.28",
247
246
  "@vscode/test-electron": "^2.5.2",
248
247
  "@vscode/test-cli": "^0.0.12",
249
248
  "@vscode/vsce": "2.32.0",
@@ -251,14 +250,14 @@
251
250
  "esbuild-plugin-copy": "^2.1.1",
252
251
  "js-yaml": "^4.1.1",
253
252
  "kleur": "^4.1.5",
254
- "mocha": "^10.8.2",
255
- "ovsx": "^0.10.7",
253
+ "mocha": "^11.7.5",
254
+ "ovsx": "^0.10.9",
256
255
  "vscode-languageclient": "^9.0.1",
257
256
  "vscode-tmgrammar-test": "^0.1.3"
258
257
  },
259
258
  "dependencies": {
260
- "@astrojs/compiler": "^2.13.0",
261
- "prettier": "^3.7.4",
259
+ "@astrojs/compiler": "^2.13.1",
260
+ "prettier": "^3.8.1",
262
261
  "prettier-plugin-astro": "^0.14.1"
263
262
  },
264
263
  "scripts": {
@@ -750,7 +750,7 @@
750
750
  ]
751
751
  },
752
752
  "tags-lang": {
753
- "begin": "<(script|style)",
753
+ "begin": "<(script|style)(?=\\s|/?>)",
754
754
  "end": "</\\1\\s*>|/>",
755
755
  "beginCaptures": {
756
756
  "0": {
@@ -490,7 +490,7 @@ repository:
490
490
 
491
491
  # Language tags - they are handled differently for the purposes of language injection.
492
492
  tags-lang:
493
- begin: <(script|style)
493
+ begin: <(script|style)(?=\s|/?>)
494
494
  end: </\1\s*>|/>
495
495
  beginCaptures: { 0: { patterns: [include: '#tags-start-node'] } }
496
496
  endCaptures: { 0: { patterns: [include: '#tags-end-node'] } }
@@ -0,0 +1,6 @@
1
+ ---
2
+ const label = "Click Me";
3
+ ---
4
+
5
+ <styled.button>{label}</styled.button>
6
+ <div>After</div>
@@ -0,0 +1,30 @@
1
+ >---
2
+ #^^^ source.astro comment
3
+ >const label = "Click Me";
4
+ #^^^^^^^^^^^^^^^^^^^^^^^^^^ source.astro meta.embedded.block.astro source.ts
5
+ >---
6
+ #^^^ source.astro comment
7
+ >
8
+ ><styled.button>{label}</styled.button>
9
+ #^ source.astro meta.scope.tag.styled.button.astro meta.tag.start.astro punctuation.definition.tag.begin.astro
10
+ # ^^^^^^ source.astro meta.scope.tag.styled.button.astro meta.tag.start.astro entity.name.tag.astro
11
+ # ^ source.astro meta.scope.tag.styled.button.astro meta.tag.start.astro
12
+ # ^^^^^^ source.astro meta.scope.tag.styled.button.astro meta.tag.start.astro entity.name.tag.astro
13
+ # ^ source.astro meta.scope.tag.styled.button.astro meta.tag.start.astro punctuation.definition.tag.end.astro
14
+ # ^ source.astro punctuation.section.embedded.begin.astro
15
+ # ^^^^^ source.astro meta.embedded.expression.astro source.tsx
16
+ # ^ source.astro punctuation.section.embedded.end.astro
17
+ # ^^ source.astro meta.scope.tag.styled.button.astro meta.tag.end.astro punctuation.definition.tag.begin.astro
18
+ # ^^^^^^ source.astro meta.scope.tag.styled.button.astro meta.tag.end.astro entity.name.tag.astro
19
+ # ^ source.astro meta.scope.tag.styled.button.astro meta.tag.end.astro
20
+ # ^^^^^^ source.astro meta.scope.tag.styled.button.astro meta.tag.end.astro entity.name.tag.astro
21
+ # ^ source.astro meta.scope.tag.styled.button.astro meta.tag.end.astro punctuation.definition.tag.end.astro
22
+ ><div>After</div>
23
+ #^ source.astro meta.scope.tag.div.astro meta.tag.start.astro punctuation.definition.tag.begin.astro
24
+ # ^^^ source.astro meta.scope.tag.div.astro meta.tag.start.astro entity.name.tag.astro
25
+ # ^ source.astro meta.scope.tag.div.astro meta.tag.start.astro punctuation.definition.tag.end.astro
26
+ # ^^^^^ source.astro text.astro
27
+ # ^^ source.astro meta.scope.tag.div.astro meta.tag.end.astro punctuation.definition.tag.begin.astro
28
+ # ^^^ source.astro meta.scope.tag.div.astro meta.tag.end.astro entity.name.tag.astro
29
+ # ^ source.astro meta.scope.tag.div.astro meta.tag.end.astro punctuation.definition.tag.end.astro
30
+ >