astro-vscode 1.0.4 → 2.0.0-next.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
@@ -23,7 +23,7 @@
23
23
  "color": "#17191E",
24
24
  "theme": "dark"
25
25
  },
26
- "version": "1.0.4",
26
+ "version": "2.0.0-next.0",
27
27
  "author": "withastro",
28
28
  "license": "MIT",
29
29
  "publisher": "astro-build",
@@ -34,27 +34,6 @@
34
34
  "onLanguage:astro",
35
35
  "workspaceContains:astro.config.*"
36
36
  ],
37
- "dependencies": {
38
- "@astrojs/ts-plugin": "1.0.4",
39
- "prettier": "^2.8.8",
40
- "prettier-plugin-astro": "^0.8.0"
41
- },
42
- "devDependencies": {
43
- "@astrojs/language-server": "1.0.4",
44
- "@types/mocha": "^9.1.0",
45
- "@types/vscode": "^1.67.0",
46
- "@vscode/test-electron": "^2.1.3",
47
- "esbuild": "0.14.54",
48
- "esbuild-plugin-copy": "^2.1.1",
49
- "glob": "^8.0.3",
50
- "js-yaml": "^4.1.0",
51
- "kleur": "^4.1.5",
52
- "mocha": "^9.2.2",
53
- "path-browserify": "^1.0.1",
54
- "typescript": "~5.0.2",
55
- "vscode-languageclient": "^8.0.1",
56
- "vscode-tmgrammar-test": "^0.1.1"
57
- },
58
37
  "main": "./dist/node/client.js",
59
38
  "browser": "./dist/browser/client.js",
60
39
  "files": [
@@ -379,13 +358,32 @@
379
358
  }
380
359
  ]
381
360
  },
361
+ "devDependencies": {
362
+ "@types/glob": "^8.1.0",
363
+ "@types/mocha": "^10.0.1",
364
+ "@types/node": "^16.18.26",
365
+ "@types/vscode": "1.67.0",
366
+ "@volar/language-server": "1.6.2",
367
+ "@volar/vscode": "1.6.2",
368
+ "@vscode/test-electron": "^2.3.0",
369
+ "@vscode/vsce": "latest",
370
+ "esbuild": "^0.17.18",
371
+ "esbuild-plugin-copy": "^2.1.1",
372
+ "glob": "^8.0.3",
373
+ "js-yaml": "^4.1.0",
374
+ "kleur": "^4.1.5",
375
+ "mocha": "^10.2.0",
376
+ "typescript": "~5.0.4",
377
+ "vscode-languageclient": "^8.1.0",
378
+ "vscode-tmgrammar-test": "^0.1.1"
379
+ },
380
+ "dependencies": {
381
+ "@astrojs/language-server": "^2.0.0-next.0",
382
+ "@astrojs/ts-plugin": "^1.0.5"
383
+ },
382
384
  "scripts": {
383
- "build": "pnpm build:node & pnpm build:browser",
384
- "dev": "pnpm build:node --watch & pnpm build:browser --watch",
385
- "build:node": "node ./scripts/build-node.js",
386
- "build:browser": "node ./scripts/build-browser.js",
387
- "build:ci:node": "pnpm build:node & pnpm build:browser --empty",
388
- "build:ci:browser": "pnpm build:browser & pnpm build:node --empty",
385
+ "build": "node scripts/build.mjs -- --minify",
386
+ "dev": "node scripts/build.mjs -- --watch",
389
387
  "build:grammar": "npx js-yaml syntaxes/astro.tmLanguage.src.yaml > syntaxes/astro.tmLanguage.json",
390
388
  "test": "pnpm test:vscode && pnpm test:grammar",
391
389
  "test:vscode": "node ./test/runTest.js",
@@ -1,8 +1,9 @@
1
1
  {
2
- "_comment": "NOTICE: Do not edit this file directly! This file is generated from the .yaml file of the same name, please run `pnpm run build:grammar` to build this file.",
3
2
  "name": "Astro",
4
3
  "scopeName": "source.astro",
5
- "fileTypes": ["astro"],
4
+ "fileTypes": [
5
+ "astro"
6
+ ],
6
7
  "injections": {
7
8
  "L:(meta.script.astro) (meta.lang.json) - (meta source)": {
8
9
  "patterns": [
@@ -210,7 +210,10 @@ repository:
210
210
  name: comment.block.astro
211
211
  patterns:
212
212
  # Validations
213
- - { match: '\G-?>|<!--(?!>)|<!-(?=-->)|--!>', name: invalid.illegal.characters-not-allowed-here.astro }
213
+ - {
214
+ match: '\G-?>|<!--(?!>)|<!-(?=-->)|--!>',
215
+ name: invalid.illegal.characters-not-allowed-here.astro,
216
+ }
214
217
 
215
218
  # ------
216
219
  # MISC
package/README.md DELETED
@@ -1,56 +0,0 @@
1
- # Astro support for Visual Studio Code
2
-
3
- > 🧑‍🚀 Not sure what Astro is? See our website at [astro.build](https://astro.build)!
4
-
5
- Provides 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).
6
-
7
- ## Features
8
-
9
- - Syntax & [semantic](https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide) highlighting
10
- - [Diagnostic messages](https://code.visualstudio.com/docs/editor/editingevolved#_errors-warnings)
11
- - [IntelliSense](https://code.visualstudio.com/docs/editor/intellisense) completions ([w/ auto-imports](https://code.visualstudio.com/Docs/languages/typescript#_auto-imports))
12
- - [Emmet completions](https://code.visualstudio.com/docs/editor/emmet) in HTML & CSS
13
- - Props completions for JSX/TSX, Vue (Composition API only) and Svelte components
14
- - [Code actions](https://code.visualstudio.com/docs/editor/editingevolved#_code-action) (quick fixes, sort imports etc)
15
- - [Formatting](https://code.visualstudio.com/docs/editor/codebasics#_formatting) (powered by [Prettier](https://prettier.io/) and [prettier-plugin-astro](https://github.com/withastro/prettier-plugin-astro))
16
- - [Symbols](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-symbol) ([outline view](https://code.visualstudio.com/docs/getstarted/userinterface#_outline-view), [breadcrumb navigation](https://code.visualstudio.com/docs/editor/editingevolved#_breadcrumbs) etc)
17
- - [Hover information](https://code.visualstudio.com/Docs/languages/typescript#_hover-information)
18
- - [Go to Definition](https://code.visualstudio.com/docs/editor/editingevolved#_go-to-definition)
19
- - [Inlay hints](https://code.visualstudio.com/docs/editor/editingevolved#_inlay-hints)
20
- - [Code folding](https://code.visualstudio.com/docs/editor/codebasics#_folding)
21
-
22
- A TypeScript plugin adding support for importing Astro components inside JavaScript and TypeScript files is also included.
23
-
24
- ## Configuration
25
-
26
- You can disable most features in the extension by going to your workspace settings page. Under **Extension** find Astro configuration and uncheck the feature(s) you do not want. For example to disable error messages unselect **TypeScript > Diagnostics: Enable** (or in JSON, set `astro.typescript.diagnostics.enabled` to `false`).
27
-
28
- Formatting can be configured through [Prettier's different configuration methods](https://prettier.io/docs/en/configuration.html). TypeScript settings can be configured using VS Code's TypeScript settings (`typescript.xxx`).
29
-
30
- ## Troubleshooting
31
-
32
- ### Unable to update to latest version
33
-
34
- Starting from 0.19.0, the minimum VS Code version supported by this extension is 1.67.0 (April 2022). If using an older version of VS Code, 0.18.1 will be installed instead.
35
-
36
- Before submitting an issue, please make sure you're using the latest version of both VS Code and the extension!
37
-
38
- ### Cannot find name "Astro" or Property 'env' does not exist on type 'ImportMeta' or Cannot find name "Fragment"
39
-
40
- Starting 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.
41
-
42
- If 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"
43
-
44
- ### Inlay Hints don't work
45
-
46
- Currently, only inlay hints provided by TypeScript are supported. TypeScript inlay hints are disabled by default and needs to be enabled using the settings under the `typescript.inlayHints` namespace, for example, to enable inlay hints for parameter names, you would do the following:
47
-
48
- ```json
49
- {
50
- "typescript.inlayHints.parameterNames.enabled": "all"
51
- }
52
- ```
53
-
54
- Alternatively, in the GUI this would be in **TypeScript > Inlay Hints > Parameter Names**. Make sure to update the TypeScript settings and not the JavaScript ones, as Astro is TypeScript-only
55
-
56
- See [this page](https://code.visualstudio.com/Docs/languages/typescript#_inlay-hints) for more information on the different settings available for inlay hints