astro-vscode 0.10.4 → 0.12.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/CHANGELOG.md ADDED
@@ -0,0 +1,338 @@
1
+ # astro-vscode
2
+
3
+ ## 0.12.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8a58a56: Refactor the language-server, fixes many issues related to imports, add support for completions in multiple style tags
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [8a58a56]
12
+ - @astrojs/language-server@0.12.0
13
+
14
+ ## 0.11.0
15
+
16
+ ### Patch Changes
17
+
18
+ - d056cd5: Fixes production bugs in extension
19
+ - Updated dependencies [d056cd5]
20
+ - Updated dependencies [fd92a85]
21
+ - @astrojs/language-server@0.11.0
22
+ - @astrojs/ts-plugin@0.2.1
23
+
24
+ ## 0.9.3
25
+
26
+ ### Patch Changes
27
+
28
+ - c4d43b4: Deploy to OpenVSX
29
+ - Updated dependencies [c4d43b4]
30
+ - @astrojs/language-server@0.9.3
31
+
32
+ ## 0.9.2
33
+
34
+ ### Patch Changes
35
+
36
+ - 91404d1: Enable publishing to OpenVSX
37
+ - Updated dependencies [91404d1]
38
+ - @astrojs/language-server@0.9.2
39
+
40
+ ## 0.9.1
41
+
42
+ ### Patch Changes
43
+
44
+ - 7dc85cc: Add support for Emmet inside components, upgrade Emmet version
45
+ - Updated dependencies [7dc85cc]
46
+ - @astrojs/language-server@0.9.1
47
+
48
+ ## 0.9.0
49
+
50
+ ### Minor Changes
51
+
52
+ - 6b6b47a: Remove internal astro.d.ts files, instead prefer the one provided by Astro itself
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [6b6b47a]
57
+ - @astrojs/language-server@0.9.0
58
+ - @astrojs/ts-plugin@0.2.0
59
+
60
+ ## 0.8.10
61
+
62
+ ### Patch Changes
63
+
64
+ - 8878324: Add feature to reload language server on ts/jsconfig change
65
+ - Updated dependencies [5b16fb4]
66
+ - @astrojs/language-server@0.8.10
67
+
68
+ ## 0.8.9
69
+
70
+ ### Patch Changes
71
+
72
+ - Updated dependencies [d0485a2]
73
+ - @astrojs/language-server@0.8.9
74
+
75
+ ## 0.8.8
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [526d5c7]
80
+ - @astrojs/language-server@0.8.8
81
+
82
+ ## 0.8.7
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [897ab35]
87
+ - @astrojs/language-server@0.8.7
88
+
89
+ ## 0.8.6
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies [97559b6]
94
+ - Updated dependencies [4c93d24]
95
+ - @astrojs/language-server@0.8.6
96
+
97
+ ## 0.8.5
98
+
99
+ ### Patch Changes
100
+
101
+ - f1f3091: Fix commenting, namespaced elements, and Fragment typings
102
+ - Updated dependencies [f1f3091]
103
+ - @astrojs/language-server@0.8.5
104
+ - @astrojs/ts-plugin@0.1.1
105
+
106
+ ## 0.8.4
107
+
108
+ ### Patch Changes
109
+
110
+ - Updated dependencies [481e009]
111
+ - @astrojs/language-server@0.8.4
112
+
113
+ ## 0.8.3
114
+
115
+ ### Patch Changes
116
+
117
+ - cad5430: Fix plain script and style blocks
118
+ - Updated dependencies [fef3091]
119
+ - @astrojs/language-server@0.8.3
120
+
121
+ ## 0.8.2
122
+
123
+ ### Patch Changes
124
+
125
+ - a408131: Several fixes for the syntax highlighter
126
+ - Updated dependencies [528c6bd]
127
+ - @astrojs/language-server@0.8.2
128
+
129
+ ## 0.8.1
130
+
131
+ ### Patch Changes
132
+
133
+ - Updated dependencies [b20db6e]
134
+ - @astrojs/language-server@0.8.1
135
+
136
+ ## 0.8.0
137
+
138
+ ### Minor Changes
139
+
140
+ - cf48420: Adds syntax highlighting support for Astro fenced codeblocks in all Markdown files
141
+
142
+ ## 0.7.20
143
+
144
+ ### Patch Changes
145
+
146
+ - 5034f23: Adds support for running as a [Web Extension](https://code.visualstudio.com/api/extension-guides/web-extensions)
147
+
148
+ ## 0.7.19
149
+
150
+ ### Patch Changes
151
+
152
+ - 2910b03: Add support for at-prefixed attributes
153
+ - Updated dependencies [2910b03]
154
+ - @astrojs/language-server@0.7.19
155
+
156
+ ## 0.7.18
157
+
158
+ ### Patch Changes
159
+
160
+ - Updated dependencies [12b4ed3]
161
+ - @astrojs/language-server@0.7.18
162
+
163
+ ## 0.7.17
164
+
165
+ ### Patch Changes
166
+
167
+ - Updated dependencies [7c6f6a6]
168
+ - @astrojs/language-server@0.7.17
169
+
170
+ ## 0.7.16
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies [b6f44d4]
175
+ - Updated dependencies [4166283]
176
+ - @astrojs/language-server@0.7.16
177
+
178
+ ## 0.7.15
179
+
180
+ ### Patch Changes
181
+
182
+ - Updated dependencies [6340a79]
183
+ - @astrojs/language-server@0.7.15
184
+
185
+ ## 0.7.14
186
+
187
+ ### Patch Changes
188
+
189
+ - Updated dependencies [e0facf6]
190
+ - Updated dependencies [3c903c3]
191
+ - Updated dependencies [b0a8bc1]
192
+ - @astrojs/language-server@0.7.14
193
+
194
+ ## 0.7.13
195
+
196
+ ### Patch Changes
197
+
198
+ - Updated dependencies [1b2afc7]
199
+ - @astrojs/language-server@0.7.13
200
+
201
+ ## 0.7.12
202
+
203
+ ### Patch Changes
204
+
205
+ - Updated dependencies [553969e]
206
+ - Updated dependencies [b4c1b70]
207
+ - @astrojs/language-server@0.7.12
208
+
209
+ ## 0.7.11
210
+
211
+ ### Patch Changes
212
+
213
+ - Updated dependencies [02bcb91]
214
+ - @astrojs/language-server@0.7.11
215
+
216
+ ## 0.7.10
217
+
218
+ ### Patch Changes
219
+
220
+ - Updated dependencies [1958d51]
221
+ - Updated dependencies [f558e54]
222
+ - @astrojs/language-server@0.7.10
223
+
224
+ ## 0.7.9
225
+
226
+ ### Patch Changes
227
+
228
+ - Updated dependencies [6c952ae]
229
+ - @astrojs/language-server@0.7.9
230
+
231
+ ## 0.7.8
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies [f2f7fc8]
236
+ - @astrojs/language-server@0.7.8
237
+
238
+ ## 0.7.7
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [6501757]
243
+ - @astrojs/language-server@0.7.7
244
+
245
+ ## 0.7.6
246
+
247
+ ### Patch Changes
248
+
249
+ - Updated dependencies [ea2d56d]
250
+ - @astrojs/language-server@0.7.6
251
+
252
+ ## 0.7.4
253
+
254
+ ### Patch Changes
255
+
256
+ - Updated dependencies [6604c9f]
257
+ - @astrojs/language-server@0.7.4
258
+
259
+ ## 0.7.3
260
+
261
+ ### Patch Changes
262
+
263
+ - ae4a9e5: Provides special highlighting for component names
264
+ - Updated dependencies [8f7bd34]
265
+ - @astrojs/language-server@0.7.3
266
+
267
+ ## 0.7.2
268
+
269
+ ### Patch Changes
270
+
271
+ - 1b3a832: Adds diagnostics (errors and warnings)
272
+ - Updated dependencies [1b3a832]
273
+ - @astrojs/language-server@0.7.2
274
+
275
+ ## 0.7.1
276
+
277
+ ### Patch Changes
278
+
279
+ - Updated dependencies [7874c06]
280
+ - @astrojs/language-server@0.7.1
281
+
282
+ ## 0.7.1
283
+
284
+ ### Patch Changes
285
+
286
+ - 25a7f22: Publishing new version
287
+
288
+ ## 0.7.0
289
+
290
+ ### Patch Changes
291
+
292
+ - Updated dependencies [72d3ff0]
293
+ - @astrojs/language-server@0.7.0
294
+
295
+ ## 0.6.1
296
+
297
+ - Makes the v0.6.0 features actually work 😅
298
+
299
+ ## 0.6.0
300
+
301
+ - Fixes bug with signature help not appearing in the component script section.
302
+ - Adds completion suggestions for `Astro.*` APIs in the component script.
303
+ - Adds support for Hover based hints in the component script section.
304
+ - Fixes bug with Go to Definition (cmd + click) for Components.
305
+
306
+ ## 0.5.0
307
+
308
+ - Bug fixes, dependency updates
309
+
310
+ ## 0.4.3
311
+
312
+ ### Patch Changes
313
+
314
+ - Improve support for <Markdown> component
315
+ - Bug fixes and improvements
316
+
317
+ ## 0.4.2
318
+
319
+ ### Patch Changes
320
+
321
+ - b3886c2: Added support for new <Markdown> component
322
+
323
+ ## 0.4.1
324
+
325
+ ### Patch Changes
326
+
327
+ - Updated VS Code Marketplace banner
328
+
329
+ ## 0.4.0
330
+
331
+ ### Minor Changes
332
+
333
+ - 06e2597: Adds support for import suggestions
334
+
335
+ ### Patch Changes
336
+
337
+ - Updated dependencies [06e2597]
338
+ - astro-languageserver@0.4.0
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ var import_node = __toModule(require("vscode-languageclient/node"));
29
29
  var import_autoClose = __toModule(require("./html/autoClose.js"));
30
30
  const TagCloseRequest = new import_node.RequestType("html/tag");
31
31
  async function activate(context) {
32
- const serverModule = require.resolve("@astrojs/language-server/bin/server.js");
32
+ const serverModule = require.resolve("@astrojs/language-server/bin/nodeServer.js");
33
33
  const port = 6040;
34
34
  const debugOptions = {execArgv: ["--nolazy", "--inspect=" + port]};
35
35
  const serverOptions = {
@@ -54,7 +54,9 @@ async function activate(context) {
54
54
  typescript: import_vscode.workspace.getConfiguration("typescript"),
55
55
  javascript: import_vscode.workspace.getConfiguration("javascript")
56
56
  },
57
- dontFilterIncompleteCompletions: true
57
+ environment: "node",
58
+ dontFilterIncompleteCompletions: true,
59
+ isTrusted: import_vscode.workspace.isTrusted
58
60
  }
59
61
  };
60
62
  let client = createLanguageServer(serverOptions, clientOptions);
@@ -76,6 +78,20 @@ async function activate(context) {
76
78
  await restartClient(false);
77
79
  }
78
80
  });
81
+ import_vscode.workspace.onDidChangeTextDocument((params) => {
82
+ if (["vue", "svelte", "javascript", "typescript", "javascriptreact", "typescriptreact"].includes(params.document.languageId)) {
83
+ getLSClient().sendNotification("$/onDidChangeNonAstroFile", {
84
+ uri: params.document.uri.toString(true),
85
+ changes: ["vue", "svelte"].includes(params.document.languageId) ? void 0 : params.contentChanges.map((c) => ({
86
+ range: {
87
+ start: {line: c.range.start.line, character: c.range.start.character},
88
+ end: {line: c.range.end.line, character: c.range.end.character}
89
+ },
90
+ text: c.text
91
+ }))
92
+ });
93
+ }
94
+ });
79
95
  context.subscriptions.push(import_vscode.commands.registerCommand("astro.restartLanguageServer", async () => {
80
96
  await restartClient(true);
81
97
  }));
@@ -108,4 +124,4 @@ function createLanguageServer(serverOptions, clientOptions) {
108
124
  0 && (module.exports = {
109
125
  activate
110
126
  });
111
- //# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsb0JBQXNGO0FBQ3RGLGtCQUFzRztBQUV0Ryx1QkFBbUM7QUFFbkMsTUFBTSxrQkFBd0UsSUFBSSx3QkFBWTtBQUU5Rix3QkFBK0IsU0FBMkI7QUFDekQsUUFBTSxlQUErQjtBQUVyQyxRQUFNLE9BQU87QUFDYixRQUFNLGVBQWUsQ0FBRSxVQUFVLENBQUMsWUFBWSxlQUFlO0FBRTdELFFBQU0sZ0JBQStCO0FBQUEsSUFDcEMsS0FBSyxDQUFFLFFBQVEsY0FBYyxXQUFXLDBCQUFjO0FBQUEsSUFDdEQsT0FBTztBQUFBLE1BQ04sUUFBUTtBQUFBLE1BQ1IsV0FBVywwQkFBYztBQUFBLE1BQ3pCLFNBQVM7QUFBQTtBQUFBO0FBSVgsUUFBTSxnQkFBdUM7QUFBQSxJQUM1QyxrQkFBa0IsQ0FBQyxDQUFFLFFBQVEsUUFBUSxVQUFVO0FBQUEsSUFDL0MsYUFBYTtBQUFBLE1BQ1osc0JBQXNCLENBQUMsU0FBUyxjQUFjLGNBQWM7QUFBQSxNQUM1RCxZQUFZLHdCQUFVLHdCQUF3QixxQkFBcUIsT0FBTyxPQUFPO0FBQUE7QUFBQSxJQUVsRix1QkFBdUI7QUFBQSxNQUN0QixlQUFlO0FBQUEsUUFDZCxPQUFPLHdCQUFVLGlCQUFpQjtBQUFBLFFBQ2xDLFVBQVUsd0J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UFDdEIsV0FBTztBQUFBO0FBR1IsU0FBTztBQUFBLElBQ04sbUJBQW1CO0FBQUE7QUFBQTtBQUlyQiw4QkFBOEIsZUFBOEIsZUFBc0M7QUFDakcsU0FBTyxJQUFJLDJCQUFlLFNBQVMsU0FBUyxlQUFlO0FBQUE7IiwKICAibmFtZXMiOiBbXQp9Cg==
package/package.json CHANGED
@@ -8,10 +8,16 @@
8
8
  "color": "#FFBE2D",
9
9
  "theme": "dark"
10
10
  },
11
- "version": "0.10.4",
11
+ "version": "0.12.0",
12
12
  "author": "withastro",
13
13
  "license": "MIT",
14
14
  "publisher": "astro-build",
15
+ "scripts": {
16
+ "vscode:prepublish": "yarn build",
17
+ "build": "astro-scripts build \"src/**/*.ts\" && tsc -p tsconfig.json",
18
+ "dev": "astro-scripts dev \"src/**/*.ts\"",
19
+ "test": "node ./test/runTest.js"
20
+ },
15
21
  "engines": {
16
22
  "vscode": "^1.52.0"
17
23
  },
@@ -19,15 +25,16 @@
19
25
  "onLanguage:astro"
20
26
  ],
21
27
  "dependencies": {
22
- "@astrojs/language-server": "0.9.3",
23
- "@astrojs/ts-plugin": "0.2.0",
28
+ "@astrojs/language-server": "0.12.0",
29
+ "@astrojs/ts-plugin": "0.2.1",
24
30
  "vscode-languageclient": "~7.0.0"
25
31
  },
26
32
  "devDependencies": {
33
+ "@types/glob": "^7.2.0",
27
34
  "@types/vscode": "^1.52.0",
28
- "astro-scripts": "*",
29
- "typescript": "~4.5.5",
30
- "vscode-languageserver-protocol": "^3.16.0"
35
+ "@vscode/test-electron": "^2.1.3",
36
+ "astro-scripts": "file:../../scripts",
37
+ "glob": "^7.2.0"
31
38
  },
32
39
  "main": "./dist/index.js",
33
40
  "browser": "./dist/index.js",
@@ -190,10 +197,5 @@
190
197
  }
191
198
  }
192
199
  ]
193
- },
194
- "scripts": {
195
- "build": "astro-scripts build \"src/**/*.ts\" && tsc -p tsconfig.json",
196
- "dev": "astro-scripts dev \"src/**/*.ts\""
197
- },
198
- "readme": "# Astro support for Visual Studio Code\n\n> 🧑‍🚀 Not sure what Astro is? See our website at [astro.build](https://astro.build)!\n\nProvides language support for `.astro` files. This extension is powered by the [Astro language server](https://github.com/withastro/language-tools/tree/main/packages/language-server)\n\n## Features\n\n* [Go to Definition](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition)\n* Code hover hints\n* Code completion\n* Function signatures\n* Syntax highlighting\n* Code folding\n* Emmet\n\n## Configuration\n\nYou can disable most features in the extension by going to your workspace settings page. Under __Extension__ find Astro configuration and uncheck the feature you do not want. For example to disable error messages unselect __TypeScript > Diagnostics: Enable__.\n\n## Troubleshooting\n\n### Cannot find name \"Astro\" or Property 'env' does not exist on type 'ImportMeta' or Cannot find name \"Fragment\"\n\nStarting from 0.23.5 version of Astro and the 0.9 version of this extension, typechecking is now done using types that are provided by Astro itself. Therefore, to benefit from those included types, you need to use any version of Astro that is higher or equal to 0.23.5\n\nIf you can't upgrade to a newer version of Astro for the moment, you can downgrade the extension to the latest pre 0.9.0 version by right clicking the Astro extension in the sidebar and pressing \"Install another version\"\n"
199
- }
200
+ }
201
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 The Astro Technology Company
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.