astro-vscode 0.10.5 → 0.12.1

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,345 @@
1
+ # astro-vscode
2
+
3
+ ## 0.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [49955c6]
8
+ - @astrojs/language-server@0.12.1
9
+
10
+ ## 0.12.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 8a58a56: Refactor the language-server, fixes many issues related to imports, add support for completions in multiple style tags
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [8a58a56]
19
+ - @astrojs/language-server@0.12.0
20
+
21
+ ## 0.11.0
22
+
23
+ ### Patch Changes
24
+
25
+ - d056cd5: Fixes production bugs in extension
26
+ - Updated dependencies [d056cd5]
27
+ - Updated dependencies [fd92a85]
28
+ - @astrojs/language-server@0.11.0
29
+ - @astrojs/ts-plugin@0.2.1
30
+
31
+ ## 0.9.3
32
+
33
+ ### Patch Changes
34
+
35
+ - c4d43b4: Deploy to OpenVSX
36
+ - Updated dependencies [c4d43b4]
37
+ - @astrojs/language-server@0.9.3
38
+
39
+ ## 0.9.2
40
+
41
+ ### Patch Changes
42
+
43
+ - 91404d1: Enable publishing to OpenVSX
44
+ - Updated dependencies [91404d1]
45
+ - @astrojs/language-server@0.9.2
46
+
47
+ ## 0.9.1
48
+
49
+ ### Patch Changes
50
+
51
+ - 7dc85cc: Add support for Emmet inside components, upgrade Emmet version
52
+ - Updated dependencies [7dc85cc]
53
+ - @astrojs/language-server@0.9.1
54
+
55
+ ## 0.9.0
56
+
57
+ ### Minor Changes
58
+
59
+ - 6b6b47a: Remove internal astro.d.ts files, instead prefer the one provided by Astro itself
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies [6b6b47a]
64
+ - @astrojs/language-server@0.9.0
65
+ - @astrojs/ts-plugin@0.2.0
66
+
67
+ ## 0.8.10
68
+
69
+ ### Patch Changes
70
+
71
+ - 8878324: Add feature to reload language server on ts/jsconfig change
72
+ - Updated dependencies [5b16fb4]
73
+ - @astrojs/language-server@0.8.10
74
+
75
+ ## 0.8.9
76
+
77
+ ### Patch Changes
78
+
79
+ - Updated dependencies [d0485a2]
80
+ - @astrojs/language-server@0.8.9
81
+
82
+ ## 0.8.8
83
+
84
+ ### Patch Changes
85
+
86
+ - Updated dependencies [526d5c7]
87
+ - @astrojs/language-server@0.8.8
88
+
89
+ ## 0.8.7
90
+
91
+ ### Patch Changes
92
+
93
+ - Updated dependencies [897ab35]
94
+ - @astrojs/language-server@0.8.7
95
+
96
+ ## 0.8.6
97
+
98
+ ### Patch Changes
99
+
100
+ - Updated dependencies [97559b6]
101
+ - Updated dependencies [4c93d24]
102
+ - @astrojs/language-server@0.8.6
103
+
104
+ ## 0.8.5
105
+
106
+ ### Patch Changes
107
+
108
+ - f1f3091: Fix commenting, namespaced elements, and Fragment typings
109
+ - Updated dependencies [f1f3091]
110
+ - @astrojs/language-server@0.8.5
111
+ - @astrojs/ts-plugin@0.1.1
112
+
113
+ ## 0.8.4
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies [481e009]
118
+ - @astrojs/language-server@0.8.4
119
+
120
+ ## 0.8.3
121
+
122
+ ### Patch Changes
123
+
124
+ - cad5430: Fix plain script and style blocks
125
+ - Updated dependencies [fef3091]
126
+ - @astrojs/language-server@0.8.3
127
+
128
+ ## 0.8.2
129
+
130
+ ### Patch Changes
131
+
132
+ - a408131: Several fixes for the syntax highlighter
133
+ - Updated dependencies [528c6bd]
134
+ - @astrojs/language-server@0.8.2
135
+
136
+ ## 0.8.1
137
+
138
+ ### Patch Changes
139
+
140
+ - Updated dependencies [b20db6e]
141
+ - @astrojs/language-server@0.8.1
142
+
143
+ ## 0.8.0
144
+
145
+ ### Minor Changes
146
+
147
+ - cf48420: Adds syntax highlighting support for Astro fenced codeblocks in all Markdown files
148
+
149
+ ## 0.7.20
150
+
151
+ ### Patch Changes
152
+
153
+ - 5034f23: Adds support for running as a [Web Extension](https://code.visualstudio.com/api/extension-guides/web-extensions)
154
+
155
+ ## 0.7.19
156
+
157
+ ### Patch Changes
158
+
159
+ - 2910b03: Add support for at-prefixed attributes
160
+ - Updated dependencies [2910b03]
161
+ - @astrojs/language-server@0.7.19
162
+
163
+ ## 0.7.18
164
+
165
+ ### Patch Changes
166
+
167
+ - Updated dependencies [12b4ed3]
168
+ - @astrojs/language-server@0.7.18
169
+
170
+ ## 0.7.17
171
+
172
+ ### Patch Changes
173
+
174
+ - Updated dependencies [7c6f6a6]
175
+ - @astrojs/language-server@0.7.17
176
+
177
+ ## 0.7.16
178
+
179
+ ### Patch Changes
180
+
181
+ - Updated dependencies [b6f44d4]
182
+ - Updated dependencies [4166283]
183
+ - @astrojs/language-server@0.7.16
184
+
185
+ ## 0.7.15
186
+
187
+ ### Patch Changes
188
+
189
+ - Updated dependencies [6340a79]
190
+ - @astrojs/language-server@0.7.15
191
+
192
+ ## 0.7.14
193
+
194
+ ### Patch Changes
195
+
196
+ - Updated dependencies [e0facf6]
197
+ - Updated dependencies [3c903c3]
198
+ - Updated dependencies [b0a8bc1]
199
+ - @astrojs/language-server@0.7.14
200
+
201
+ ## 0.7.13
202
+
203
+ ### Patch Changes
204
+
205
+ - Updated dependencies [1b2afc7]
206
+ - @astrojs/language-server@0.7.13
207
+
208
+ ## 0.7.12
209
+
210
+ ### Patch Changes
211
+
212
+ - Updated dependencies [553969e]
213
+ - Updated dependencies [b4c1b70]
214
+ - @astrojs/language-server@0.7.12
215
+
216
+ ## 0.7.11
217
+
218
+ ### Patch Changes
219
+
220
+ - Updated dependencies [02bcb91]
221
+ - @astrojs/language-server@0.7.11
222
+
223
+ ## 0.7.10
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies [1958d51]
228
+ - Updated dependencies [f558e54]
229
+ - @astrojs/language-server@0.7.10
230
+
231
+ ## 0.7.9
232
+
233
+ ### Patch Changes
234
+
235
+ - Updated dependencies [6c952ae]
236
+ - @astrojs/language-server@0.7.9
237
+
238
+ ## 0.7.8
239
+
240
+ ### Patch Changes
241
+
242
+ - Updated dependencies [f2f7fc8]
243
+ - @astrojs/language-server@0.7.8
244
+
245
+ ## 0.7.7
246
+
247
+ ### Patch Changes
248
+
249
+ - Updated dependencies [6501757]
250
+ - @astrojs/language-server@0.7.7
251
+
252
+ ## 0.7.6
253
+
254
+ ### Patch Changes
255
+
256
+ - Updated dependencies [ea2d56d]
257
+ - @astrojs/language-server@0.7.6
258
+
259
+ ## 0.7.4
260
+
261
+ ### Patch Changes
262
+
263
+ - Updated dependencies [6604c9f]
264
+ - @astrojs/language-server@0.7.4
265
+
266
+ ## 0.7.3
267
+
268
+ ### Patch Changes
269
+
270
+ - ae4a9e5: Provides special highlighting for component names
271
+ - Updated dependencies [8f7bd34]
272
+ - @astrojs/language-server@0.7.3
273
+
274
+ ## 0.7.2
275
+
276
+ ### Patch Changes
277
+
278
+ - 1b3a832: Adds diagnostics (errors and warnings)
279
+ - Updated dependencies [1b3a832]
280
+ - @astrojs/language-server@0.7.2
281
+
282
+ ## 0.7.1
283
+
284
+ ### Patch Changes
285
+
286
+ - Updated dependencies [7874c06]
287
+ - @astrojs/language-server@0.7.1
288
+
289
+ ## 0.7.1
290
+
291
+ ### Patch Changes
292
+
293
+ - 25a7f22: Publishing new version
294
+
295
+ ## 0.7.0
296
+
297
+ ### Patch Changes
298
+
299
+ - Updated dependencies [72d3ff0]
300
+ - @astrojs/language-server@0.7.0
301
+
302
+ ## 0.6.1
303
+
304
+ - Makes the v0.6.0 features actually work 😅
305
+
306
+ ## 0.6.0
307
+
308
+ - Fixes bug with signature help not appearing in the component script section.
309
+ - Adds completion suggestions for `Astro.*` APIs in the component script.
310
+ - Adds support for Hover based hints in the component script section.
311
+ - Fixes bug with Go to Definition (cmd + click) for Components.
312
+
313
+ ## 0.5.0
314
+
315
+ - Bug fixes, dependency updates
316
+
317
+ ## 0.4.3
318
+
319
+ ### Patch Changes
320
+
321
+ - Improve support for <Markdown> component
322
+ - Bug fixes and improvements
323
+
324
+ ## 0.4.2
325
+
326
+ ### Patch Changes
327
+
328
+ - b3886c2: Added support for new <Markdown> component
329
+
330
+ ## 0.4.1
331
+
332
+ ### Patch Changes
333
+
334
+ - Updated VS Code Marketplace banner
335
+
336
+ ## 0.4.0
337
+
338
+ ### Minor Changes
339
+
340
+ - 06e2597: Adds support for import suggestions
341
+
342
+ ### Patch Changes
343
+
344
+ - Updated dependencies [06e2597]
345
+ - 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,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vc3JjL2luZGV4LnRzIl0sCiAgIm1hcHBpbmdzIjogIjs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUEsb0JBQXNGO0FBQ3RGLGtCQUFzRztBQUV0Ryx1QkFBbUM7QUFFbkMsTUFBTSxrQkFBd0UsSUFBSSx3QkFBWTtBQUU5Rix3QkFBK0IsU0FBMkI7QUFDekQsUUFBTSxlQUErQjtBQUVyQyxRQUFNLE9BQU87QUFDYixRQUFNLGVBQWUsQ0FBRSxVQUFVLENBQUMsWUFBWSxlQUFlO0FBRTdELFFBQU0sZ0JBQStCO0FBQUEsSUFDcEMsS0FBSyxDQUFFLFFBQVEsY0FBYyxXQUFXLDBCQUFjO0FBQUEsSUFDdEQsT0FBTztBQUFBLE1BQ04sUUFBUTtBQUFBLE1BQ1IsV0FBVywwQkFBYztBQUFBLE1BQ3pCLFNBQVM7QUFBQTtBQUFBO0FBSVgsUUFBTSxnQkFBdUM7QUFBQSxJQUM1QyxrQkFBa0IsQ0FBQyxDQUFFLFFBQVEsUUFBUSxVQUFVO0FBQUEsSUFDL0MsYUFBYTtBQUFBLE1BQ1osc0JBQXNCLENBQUMsU0FBUyxjQUFjLGNBQWM7QUFBQSxNQUM1RCxZQUFZLHdCQUFVLHdCQUF3QixxQkFBcUIsT0FBTyxPQUFPO0FBQUE7QUFBQSxJQUVsRix1QkFBdUI7QUFBQ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UFrQjtBQUNyQiwyQkFBTyx1QkFBdUI7QUFBQTtBQUcvQix1QkFBbUI7QUFBQTtBQUdwQix5QkFBdUI7QUFDdEIsV0FBTztBQUFBO0FBR1IsU0FBTztBQUFBLElBQ04sbUJBQW1CO0FBQUE7QUFBQTtBQUlyQiw4QkFBOEIsZUFBOEIsZUFBc0M7QUFDakcsU0FBTyxJQUFJLDJCQUFlLFNBQVMsU0FBUyxlQUFlO0FBQUE7IiwKICAibmFtZXMiOiBbXQp9Cg==
package/package.json CHANGED
@@ -8,10 +8,16 @@
8
8
  "color": "#FFBE2D",
9
9
  "theme": "dark"
10
10
  },
11
- "version": "0.10.5",
11
+ "version": "0.12.1",
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.1",
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.