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.
- package/.turbo/turbo-build.log +2 -2
- package/CHANGELOG.md +20 -0
- package/dist/astro-ts-plugin-bundle/index.js +1 -1
- package/dist/node/server.js +398 -398
- package/dist/types/env.d.ts +1 -1
- package/package.json +8 -9
- package/syntaxes/astro.tmLanguage.json +1 -1
- package/syntaxes/astro.tmLanguage.src.yaml +1 -1
- package/test/grammar/fixtures/components/lowercase-style-prefix.astro +6 -0
- package/test/grammar/fixtures/components/lowercase-style-prefix.astro.snap +30 -0
package/dist/types/env.d.ts
CHANGED
|
@@ -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
|
|
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.
|
|
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.
|
|
246
|
-
"@volar/vscode": "~2.4.
|
|
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": "^
|
|
255
|
-
"ovsx": "^0.10.
|
|
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.
|
|
261
|
-
"prettier": "^3.
|
|
259
|
+
"@astrojs/compiler": "^2.13.1",
|
|
260
|
+
"prettier": "^3.8.1",
|
|
262
261
|
"prettier-plugin-astro": "^0.14.1"
|
|
263
262
|
},
|
|
264
263
|
"scripts": {
|
|
@@ -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,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
|
+
>
|