astro-vscode 0.8.2 → 0.8.6
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# astro-vscode
|
|
2
2
|
|
|
3
|
+
## 0.8.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [97559b6]
|
|
8
|
+
- Updated dependencies [4c93d24]
|
|
9
|
+
- @astrojs/language-server@0.8.6
|
|
10
|
+
|
|
11
|
+
## 0.8.5
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- f1f3091: Fix commenting, namespaced elements, and Fragment typings
|
|
16
|
+
- Updated dependencies [f1f3091]
|
|
17
|
+
- @astrojs/language-server@0.8.5
|
|
18
|
+
- @astrojs/ts-plugin@0.1.1
|
|
19
|
+
|
|
20
|
+
## 0.8.4
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [481e009]
|
|
25
|
+
- @astrojs/language-server@0.8.4
|
|
26
|
+
|
|
27
|
+
## 0.8.3
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- cad5430: Fix plain script and style blocks
|
|
32
|
+
- Updated dependencies [fef3091]
|
|
33
|
+
- @astrojs/language-server@0.8.3
|
|
34
|
+
|
|
3
35
|
## 0.8.2
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
{ "open": "(", "close": ")" },
|
|
16
16
|
{ "open": "'", "close": "'" },
|
|
17
17
|
{ "open": "\"", "close": "\"" },
|
|
18
|
+
{ "open": "`", "close": "`" },
|
|
18
19
|
{ "open": "<!--", "close": "-->", "notIn": ["comment", "string"] },
|
|
19
20
|
{ "open": "/**", "close": " */", "notIn": ["string"] }
|
|
20
21
|
],
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"color": "#FFBE2D",
|
|
9
9
|
"theme": "dark"
|
|
10
10
|
},
|
|
11
|
-
"version": "0.8.
|
|
11
|
+
"version": "0.8.6",
|
|
12
12
|
"author": "Astro",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"publisher": "astro-build",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"onLanguage:astro"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@astrojs/language-server": "0.8.
|
|
28
|
-
"@astrojs/ts-plugin": "0.1.
|
|
27
|
+
"@astrojs/language-server": "0.8.6",
|
|
28
|
+
"@astrojs/ts-plugin": "0.1.1",
|
|
29
29
|
"vscode-emmet-helper": "2.1.2",
|
|
30
30
|
"vscode-html-languageservice": "^3.0.3",
|
|
31
31
|
"vscode-languageclient": "~7.0.0"
|
|
@@ -168,14 +168,14 @@
|
|
|
168
168
|
"scopeName": "text.html.astro",
|
|
169
169
|
"path": "./syntaxes/astro.tmLanguage.json",
|
|
170
170
|
"embeddedLanguages": {
|
|
171
|
-
"text.html.astro": "astro",
|
|
172
|
-
"text.html.markdown.astro": "astro-markdown",
|
|
173
|
-
"text.html": "html",
|
|
174
171
|
"source.css": "css",
|
|
175
|
-
"source.scss": "scss",
|
|
176
172
|
"source.sass": "sass",
|
|
173
|
+
"source.scss": "scss",
|
|
174
|
+
"source.ts": "typescript",
|
|
177
175
|
"source.tsx": "typescriptreact",
|
|
178
|
-
"
|
|
176
|
+
"text.html.astro": "astro",
|
|
177
|
+
"text.html.markdown.astro": "astro-markdown",
|
|
178
|
+
"text.html": "html"
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
{
|
|
@@ -186,52 +186,53 @@
|
|
|
186
186
|
"text.html.astro"
|
|
187
187
|
],
|
|
188
188
|
"embeddedLanguages": {
|
|
189
|
-
"text.html.astro": "astro",
|
|
190
|
-
"text.html.markdown.astro": "astro-markdown",
|
|
191
|
-
"text.html.markdown": "markdown",
|
|
192
|
-
"source.tsx": "typescriptreact",
|
|
193
|
-
"source.js": "javascript",
|
|
194
|
-
"source.css": "css",
|
|
195
|
-
"meta.embedded.block.css": "css",
|
|
196
189
|
"meta.embedded.block.astro": "astro",
|
|
197
|
-
"meta.embedded.block.
|
|
198
|
-
"meta.embedded.block.java": "java",
|
|
199
|
-
"meta.embedded.block.lua": "lua",
|
|
200
|
-
"meta.embedded.block.makefile": "makefile",
|
|
201
|
-
"meta.embedded.block.perl": "perl",
|
|
202
|
-
"meta.embedded.block.r": "r",
|
|
203
|
-
"meta.embedded.block.ruby": "ruby",
|
|
204
|
-
"meta.embedded.block.php": "php",
|
|
205
|
-
"meta.embedded.block.sql": "sql",
|
|
206
|
-
"meta.embedded.block.vs_net": "vs_net",
|
|
207
|
-
"meta.embedded.block.xml": "xml",
|
|
208
|
-
"meta.embedded.block.xsl": "xsl",
|
|
209
|
-
"meta.embedded.block.yaml": "yaml",
|
|
210
|
-
"meta.embedded.block.dosbatch": "dosbatch",
|
|
190
|
+
"meta.embedded.block.c": "c",
|
|
211
191
|
"meta.embedded.block.clojure": "clojure",
|
|
212
192
|
"meta.embedded.block.coffee": "coffee",
|
|
213
|
-
"meta.embedded.block.c": "c",
|
|
214
193
|
"meta.embedded.block.cpp": "cpp",
|
|
194
|
+
"meta.embedded.block.csharp": "csharp",
|
|
195
|
+
"meta.embedded.block.css": "css",
|
|
215
196
|
"meta.embedded.block.diff": "diff",
|
|
216
197
|
"meta.embedded.block.dockerfile": "dockerfile",
|
|
198
|
+
"meta.embedded.block.dosbatch": "dosbatch",
|
|
199
|
+
"meta.embedded.block.fsharp": "fsharp",
|
|
217
200
|
"meta.embedded.block.go": "go",
|
|
218
201
|
"meta.embedded.block.groovy": "groovy",
|
|
219
|
-
"meta.embedded.block.
|
|
202
|
+
"meta.embedded.block.ini": "ini",
|
|
203
|
+
"meta.embedded.block.java": "java",
|
|
220
204
|
"meta.embedded.block.javascript": "javascript",
|
|
221
205
|
"meta.embedded.block.json": "json",
|
|
222
206
|
"meta.embedded.block.less": "less",
|
|
207
|
+
"meta.embedded.block.lua": "lua",
|
|
208
|
+
"meta.embedded.block.makefile": "makefile",
|
|
223
209
|
"meta.embedded.block.objc": "objc",
|
|
224
|
-
"meta.embedded.block.
|
|
210
|
+
"meta.embedded.block.perl": "perl",
|
|
225
211
|
"meta.embedded.block.perl6": "perl6",
|
|
212
|
+
"meta.embedded.block.php": "php",
|
|
226
213
|
"meta.embedded.block.powershell": "powershell",
|
|
214
|
+
"meta.embedded.block.pug": "jade",
|
|
227
215
|
"meta.embedded.block.python": "python",
|
|
216
|
+
"meta.embedded.block.r": "r",
|
|
217
|
+
"meta.embedded.block.ruby": "ruby",
|
|
228
218
|
"meta.embedded.block.rust": "rust",
|
|
229
219
|
"meta.embedded.block.scala": "scala",
|
|
220
|
+
"meta.embedded.block.scss": "scss",
|
|
230
221
|
"meta.embedded.block.shellscript": "shellscript",
|
|
222
|
+
"meta.embedded.block.sql": "sql",
|
|
231
223
|
"meta.embedded.block.typescript": "typescript",
|
|
232
224
|
"meta.embedded.block.typescriptreact": "typescriptreact",
|
|
233
|
-
"meta.embedded.block.
|
|
234
|
-
"meta.embedded.block.
|
|
225
|
+
"meta.embedded.block.vs_net": "vs_net",
|
|
226
|
+
"meta.embedded.block.xml": "xml",
|
|
227
|
+
"meta.embedded.block.xsl": "xsl",
|
|
228
|
+
"meta.embedded.block.yaml": "yaml",
|
|
229
|
+
"source.css": "css",
|
|
230
|
+
"source.js": "javascript",
|
|
231
|
+
"source.ts": "typescript",
|
|
232
|
+
"source.tsx": "typescriptreact",
|
|
233
|
+
"text.html.astro": "astro",
|
|
234
|
+
"text.html.markdown.astro": "astro-markdown",
|
|
235
|
+
"text.html.markdown": "markdown"
|
|
235
236
|
}
|
|
236
237
|
},
|
|
237
238
|
{
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"astro:component": {
|
|
68
68
|
"name": "meta.tag.component.astro",
|
|
69
|
-
"begin": "(</?)([$A-Z_][^/?!\\s
|
|
69
|
+
"begin": "(</?)([$A-Z_][^/?!\\s<>]*|[^/?!\\s<>.]+\\.[^/?!\\s<>]+)\\b",
|
|
70
70
|
"beginCaptures": {
|
|
71
71
|
"1": {
|
|
72
72
|
"name": "punctuation.definition.tag.begin.astro"
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
"astro:lang": {
|
|
106
|
-
"begin": "(<)(?:(S(?i:cript|tyle))|((?i:script|style)))\\
|
|
106
|
+
"begin": "(<)(?:(S(?i:cript|tyle))|((?i:script|style)))(?![\\w:-])",
|
|
107
107
|
"beginCaptures": {
|
|
108
108
|
"0": {
|
|
109
109
|
"name": "meta.tag.metadata.$2$3.start.html"
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"name": "entity.name.tag.html"
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
|
-
"end": "(</)(?:(S(?i:cript|tyle))|((?i:script|style)))\\s*(>)",
|
|
121
|
+
"end": "(</)(?:(S(?i:cript|tyle))|((?i:script|style)))(?![\\w:-])\\s*(>)",
|
|
122
122
|
"endCaptures": {
|
|
123
123
|
"0": {
|
|
124
124
|
"name": "meta.tag.metadata.$2$3.end.html"
|
|
@@ -152,9 +152,9 @@
|
|
|
152
152
|
]
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
|
-
"name": "source.css.embedded.html",
|
|
156
155
|
"begin": "(?<=(?i:lang)=(['\"`]?)(?i:css)\\1[^>]*>)(?!\\G)",
|
|
157
|
-
"end": "(?=</
|
|
156
|
+
"end": "(?=</[\\w:-])",
|
|
157
|
+
"contentName": "source.css",
|
|
158
158
|
"patterns": [
|
|
159
159
|
{
|
|
160
160
|
"include": "source.css"
|
|
@@ -162,9 +162,9 @@
|
|
|
162
162
|
]
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
|
-
"name": "source.js.embedded.html",
|
|
166
165
|
"begin": "(?<=(?i:lang)=(['\"`]?)(?i:jsx?)\\1[^>]*>)(?!\\G)",
|
|
167
|
-
"end": "(?=</
|
|
166
|
+
"end": "(?=</[\\w:-])",
|
|
167
|
+
"contentName": "source.js",
|
|
168
168
|
"patterns": [
|
|
169
169
|
{
|
|
170
170
|
"include": "source.js"
|
|
@@ -172,9 +172,9 @@
|
|
|
172
172
|
]
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
|
-
"name": "source.less.embedded.html",
|
|
176
175
|
"begin": "(?<=(?i:lang)=(['\"`]?)(?i:less)\\1[^>]*>)(?!\\G)",
|
|
177
|
-
"end": "(?=</
|
|
176
|
+
"end": "(?=</[\\w:-])",
|
|
177
|
+
"contentName": "source.css.css",
|
|
178
178
|
"patterns": [
|
|
179
179
|
{
|
|
180
180
|
"include": "source.css.less"
|
|
@@ -182,9 +182,9 @@
|
|
|
182
182
|
]
|
|
183
183
|
},
|
|
184
184
|
{
|
|
185
|
-
"name": "source.sass.embedded.html",
|
|
186
185
|
"begin": "(?<=(?i:lang)=(['\"`]?)(?i:sass)\\1[^>]*>)(?!\\G)",
|
|
187
|
-
"end": "(?=</
|
|
186
|
+
"end": "(?=</[\\w:-])",
|
|
187
|
+
"contentName": "source.sass",
|
|
188
188
|
"patterns": [
|
|
189
189
|
{
|
|
190
190
|
"include": "source.sass"
|
|
@@ -192,9 +192,9 @@
|
|
|
192
192
|
]
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
"name": "source.scss.embedded.html",
|
|
196
195
|
"begin": "(?<=(?i:lang)=(['\"`]?)(?i:scss)\\1[^>]*>)(?!\\G)",
|
|
197
|
-
"end": "(?=</
|
|
196
|
+
"end": "(?=</[\\w:-])",
|
|
197
|
+
"contentName": "source.css.scss",
|
|
198
198
|
"patterns": [
|
|
199
199
|
{
|
|
200
200
|
"include": "source.css.scss"
|
|
@@ -202,9 +202,9 @@
|
|
|
202
202
|
]
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
|
-
"name": "source.stylus.embedded.html",
|
|
206
205
|
"begin": "(?<=(?i:lang)=(['\"`]?)(?i:styl(?:us)?)\\1[^>]*>)(?!\\G)",
|
|
207
|
-
|
|
206
|
+
"end": "(?=</[\\w:-])",
|
|
207
|
+
"contentName": "source.stylus",
|
|
208
208
|
"patterns": [
|
|
209
209
|
{
|
|
210
210
|
"include": "source.stylus"
|
|
@@ -212,9 +212,19 @@
|
|
|
212
212
|
]
|
|
213
213
|
},
|
|
214
214
|
{
|
|
215
|
-
"
|
|
216
|
-
"
|
|
217
|
-
"
|
|
215
|
+
"begin": "(?<=(?i:lang)=(['\"`]?)(?i:ts)\\1[^>]*>)(?!\\G)",
|
|
216
|
+
"end": "(?=</[\\w:-])",
|
|
217
|
+
"contentName": "source.ts",
|
|
218
|
+
"patterns": [
|
|
219
|
+
{
|
|
220
|
+
"include": "source.ts"
|
|
221
|
+
}
|
|
222
|
+
]
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
"begin": "(?<=(?i:lang)=(['\"`]?)(?i:tsx)\\1[^>]*>)(?!\\G)",
|
|
226
|
+
"end": "(?=</[\\w:-])",
|
|
227
|
+
"contentName": "source.tsx",
|
|
218
228
|
"patterns": [
|
|
219
229
|
{
|
|
220
230
|
"include": "source.tsx"
|
|
@@ -222,9 +232,9 @@
|
|
|
222
232
|
]
|
|
223
233
|
},
|
|
224
234
|
{
|
|
225
|
-
"
|
|
226
|
-
"
|
|
227
|
-
"
|
|
235
|
+
"begin": "(?<=<(?i:script)[^>]*>)(?!\\G)",
|
|
236
|
+
"end": "(?=</[\\w:-])",
|
|
237
|
+
"contentName": "source.js",
|
|
228
238
|
"patterns": [
|
|
229
239
|
{
|
|
230
240
|
"include": "source.js"
|
|
@@ -232,9 +242,9 @@
|
|
|
232
242
|
]
|
|
233
243
|
},
|
|
234
244
|
{
|
|
235
|
-
"
|
|
236
|
-
"
|
|
237
|
-
"
|
|
245
|
+
"begin": "(?<=<(?i:style)[^>]*>)(?!\\G)",
|
|
246
|
+
"end": "(?=</[\\w:-])",
|
|
247
|
+
"contentName": "source.css",
|
|
238
248
|
"patterns": [
|
|
239
249
|
{
|
|
240
250
|
"include": "source.css"
|
|
@@ -323,7 +333,7 @@
|
|
|
323
333
|
"patterns": [
|
|
324
334
|
{
|
|
325
335
|
"name": "meta.tag.any.$2.start.html",
|
|
326
|
-
"begin": "(<)([^/?!\\s
|
|
336
|
+
"begin": "(<)([^/?!\\s<>]+)(?=\\s|/?>)",
|
|
327
337
|
"beginCaptures": {
|
|
328
338
|
"1": {
|
|
329
339
|
"name": "punctuation.definition.tag.begin.html"
|
|
@@ -346,7 +356,7 @@
|
|
|
346
356
|
},
|
|
347
357
|
{
|
|
348
358
|
"name": "meta.tag.any.$2.end.html",
|
|
349
|
-
"begin": "(</)([^/?!\\s
|
|
359
|
+
"begin": "(</)([^/?!\\s<>]+)(?=\\s|/?>)",
|
|
350
360
|
"beginCaptures": {
|
|
351
361
|
"1": {
|
|
352
362
|
"name": "punctuation.definition.tag.begin.html"
|
|
@@ -409,6 +419,7 @@
|
|
|
409
419
|
}
|
|
410
420
|
},
|
|
411
421
|
"name": "expression.embbeded.astro",
|
|
422
|
+
"contentName": "source.tsx",
|
|
412
423
|
"patterns": [
|
|
413
424
|
{
|
|
414
425
|
"include": "source.tsx"
|