astro-vscode 2.14.1 → 2.15.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/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "color": "#17191E",
25
25
  "theme": "dark"
26
26
  },
27
- "version": "2.14.1",
27
+ "version": "2.15.0",
28
28
  "author": "withastro",
29
29
  "license": "MIT",
30
30
  "publisher": "astro-build",
@@ -154,6 +154,12 @@
154
154
  "type": "boolean",
155
155
  "default": false,
156
156
  "description": "Enable experimental support for content collection intellisense inside Markdown, MDX and Markdoc. Note that this require also enabling the feature in your Astro config (experimental.contentCollectionIntellisense) (Astro 4.14+)"
157
+ },
158
+ "astro.updateImportsOnFileMove.enabled": {
159
+ "scope": "resource",
160
+ "type": "boolean",
161
+ "default": false,
162
+ "description": "Controls whether the extension updates imports when a file is moved to a new location. In most cases, you'll want to keep this disabled as TypeScript and the Astro TypeScript plugin already handles this for you. Having multiple tools updating imports at the same time can lead to corrupted files."
157
163
  }
158
164
  }
159
165
  },
@@ -217,26 +223,27 @@
217
223
  }
218
224
  },
219
225
  {
220
- "scopeName": "text.mdx.astro.codeblock",
226
+ "scopeName": "source.mdx.astro",
221
227
  "path": "./syntaxes/mdx.astro.tmLanguage.json",
222
228
  "injectTo": [
223
229
  "source.mdx"
224
230
  ],
225
231
  "embeddedLanguages": {
226
- "mdx.embedded.astro": "astro"
232
+ "mdx.embedded.astro": "astro",
233
+ "mdx.embedded.astro.frontmatter": "typescriptreact"
227
234
  }
228
235
  }
229
236
  ]
230
237
  },
231
238
  "devDependencies": {
232
- "@astrojs/language-server": "^2.14.1",
233
- "@astrojs/ts-plugin": "^1.10.1",
239
+ "@astrojs/language-server": "^2.15.0",
240
+ "@astrojs/ts-plugin": "^1.10.2",
234
241
  "@types/glob": "^8.1.0",
235
242
  "@types/mocha": "^10.0.1",
236
243
  "@types/node": "^18.17.8",
237
244
  "@types/vscode": "^1.82.0",
238
- "@volar/language-server": "~2.4.0",
239
- "@volar/vscode": "~2.4.0",
245
+ "@volar/language-server": "~2.4.5",
246
+ "@volar/vscode": "~2.4.5",
240
247
  "@vscode/test-electron": "^2.3.2",
241
248
  "@vscode/vsce": "2.30.0",
242
249
  "esbuild": "^0.17.19",
@@ -1,84 +1,61 @@
1
1
  {
2
- "fileTypes": [],
3
- "scopeName": "text.mdx.astro.codeblock",
2
+ "scopeName": "source.mdx.astro",
4
3
  "injectionSelector": "L:source.mdx",
5
4
  "patterns": [
6
5
  {
7
- "begin": "(?:^|\\G)[\\t ]*(`{3,})(?:[\\t ]*((?i:(?:.*\\.)?astro))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)",
8
- "beginCaptures": {
9
- "1": {
10
- "name": "string.other.begin.code.fenced.mdx"
11
- },
12
- "2": {
13
- "name": "entity.name.function.mdx"
14
- }
15
- },
16
- "contentName": "meta.embedded.astro",
17
- "end": "(\\1)(?:[\\t ]*$)",
18
- "endCaptures": {
19
- "1": {
20
- "name": "string.other.end.code.fenced.mdx"
21
- }
22
- },
23
- "name": "markup.code.astro.mdx",
24
- "patterns": [
25
- {
26
- "include": "#astro-code-block"
27
- }
28
- ]
29
- },
30
- {
31
- "begin": "(?:^|\\G)[\\t ]*(~{3,})(?:[\\t ]*((?i:(?:.*\\.)?astro))(?:[\\t ]+((?:[^\\n\\r])+))?)(?:[\\t ]*$)",
6
+ "include": "#mdx_fenced_code_block_astro"
7
+ }
8
+ ],
9
+ "repository": {
10
+ "mdx_fenced_code_block_astro": {
11
+ "begin": "(?:^|\\G)[\\t ]*([`~]{3,})(?:[\\t ]*((?:astro|(?:.*\\.)?(?:astro)))(?:[\\t ]+((?:[^\\n\\r`])+))?)(?:[\\t ]*$)",
32
12
  "beginCaptures": {
33
13
  "1": {
34
- "name": "string.other.begin.code.fenced.mdx"
14
+ "name": "punctuation.definition.markdown"
35
15
  },
36
16
  "2": {
37
- "name": "entity.name.function.mdx"
17
+ "name": "entity.name.function.markdown"
38
18
  }
39
19
  },
40
- "contentName": "meta.embedded.astro",
41
- "end": "(\\1)(?:[\\t ]*$)",
20
+ "end": "(^\\1)\\s*$",
42
21
  "endCaptures": {
43
- "1": {
44
- "name": "string.other.end.code.fenced.mdx"
22
+ "3": {
23
+ "name": "punctuation.definition.markdown"
45
24
  }
46
25
  },
47
26
  "name": "markup.code.astro.mdx",
48
27
  "patterns": [
49
28
  {
50
- "include": "#astro-code-block"
51
- }
52
- ]
53
- }
54
- ],
55
- "repository": {
56
- "astro-code-block": {
57
- "patterns": [
58
- {
59
- "begin": "^\\s*---\\s*$",
60
- "end": "^\\s*---\\s*$",
61
- "beginCaptures": {
62
- "0": {
63
- "name": "punctuation.definition.tag.xi.begin.t"
64
- }
65
- },
66
- "endCaptures": {
67
- "0": {
68
- "name": "punctuation.definition.tag.xi.end.t"
69
- }
70
- },
71
- "contentName": "meta.embedded.block.astro.frontmatter",
29
+ "begin": "(^|\\G)(\\s*)(.*)",
30
+ "while": "(^|\\G)(?!\\s*([`~]{3,})\\s*$)",
72
31
  "patterns": [
73
32
  {
74
- "include": "source.tsx"
33
+ "begin": "^\\s*---\\s*$",
34
+ "end": "^\\s*---\\s*$",
35
+ "beginCaptures": {
36
+ "0": {
37
+ "name": "punctuation.definition.tag.xi.begin.t"
38
+ }
39
+ },
40
+ "endCaptures": {
41
+ "0": {
42
+ "name": "punctuation.definition.tag.xi.end.t"
43
+ }
44
+ },
45
+ "contentName": "mdx.embedded.astro.frontmatter",
46
+ "patterns": [
47
+ {
48
+ "include": "source.tsx"
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "contentName": "mdx.embedded.astro",
54
+ "include": "source.astro"
75
55
  }
76
56
  ]
77
- },
78
- {
79
- "include": "source.astro"
80
57
  }
81
58
  ]
82
59
  }
83
60
  }
84
- }
61
+ }