astro-vscode 2.0.0-next.3 → 2.0.0-next.5

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/README.md ADDED
@@ -0,0 +1,51 @@
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
+ - and more!
22
+
23
+ A TypeScript plugin adding support for importing Astro components inside JavaScript and TypeScript files is also included.
24
+
25
+ ## Configuration
26
+
27
+ 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`).
28
+
29
+ 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`).
30
+
31
+ ## Troubleshooting
32
+
33
+ ### Unable to update to latest version
34
+
35
+ 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.
36
+
37
+ Before submitting an issue, please make sure you're using the latest version of both VS Code and the extension!
38
+
39
+ ### Inlay Hints don't work
40
+
41
+ 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:
42
+
43
+ ```json
44
+ {
45
+ "typescript.inlayHints.parameterNames.enabled": "all"
46
+ }
47
+ ```
48
+
49
+ 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
50
+
51
+ See [this page](https://code.visualstudio.com/Docs/languages/typescript#_inlay-hints) for more information on the different settings available for inlay hints
Binary file
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
2
+ <path fill="url(#a)" d="M8.36 16.22c-.38 1.25-.11 2.99.79 3.81V20l.03-.08c.11-.53.54-.86 1.09-.84.51.01.8.28.87.87.03.22.03.44.04.67v.07c0 .5.14.98.42 1.4.25.4.6.71 1.07.92l-.02-.04-.02-.08c-.35-1.05-.1-1.78.82-2.4l.28-.19.62-.41a3.04 3.04 0 0 0 1.28-2.17c.05-.38 0-.75-.11-1.11l-.15.1c-1.39.74-2.98 1-4.52.7-.93-.14-1.83-.4-2.5-1.18Z"/>
3
+ <path fill="#fff" d="M4 16s2.67-1.3 5.35-1.3l2.03-6.26c.07-.3.29-.5.54-.5.25 0 .46.2.54.51l2.02 6.25c3.18 0 5.35 1.3 5.35 1.3L15.28 3.6c-.12-.37-.35-.6-.64-.6H9.2c-.29 0-.5.23-.64.6L4 16Z"/>
4
+ <defs>
5
+ <linearGradient id="a" x1="8.19" x2="16.91" y1="23" y2="18.89" gradientUnits="userSpaceOnUse">
6
+ <stop stop-color="#D83333"/>
7
+ <stop offset="1" stop-color="#F041FF"/>
8
+ </linearGradient>
9
+ </defs>
10
+ </svg>
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
2
+ <path fill="url(#a)" d="M8.36 16.22c-.38 1.25-.11 2.99.79 3.81V20l.03-.08c.11-.53.54-.86 1.09-.84.51.01.8.28.87.87.03.22.03.44.04.67v.07c0 .5.14.98.42 1.4.25.4.6.71 1.07.92l-.02-.04-.02-.08c-.35-1.05-.1-1.78.82-2.4l.28-.19.62-.41a3.04 3.04 0 0 0 1.28-2.17c.05-.38 0-.75-.11-1.11l-.15.1c-1.39.74-2.98 1-4.52.7-.93-.14-1.83-.4-2.5-1.18Z"/>
3
+ <path fill="#17191E" d="M4 16s2.67-1.3 5.35-1.3l2.03-6.26c.07-.3.29-.5.54-.5.25 0 .46.2.54.51l2.02 6.25c3.18 0 5.35 1.3 5.35 1.3L15.28 3.6c-.12-.37-.35-.6-.64-.6H9.2c-.29 0-.5.23-.64.6L4 16Z"/>
4
+ <defs>
5
+ <linearGradient id="a" x1="8.19" x2="16.91" y1="23" y2="18.89" gradientUnits="userSpaceOnUse">
6
+ <stop stop-color="#D83333"/>
7
+ <stop offset="1" stop-color="#F041FF"/>
8
+ </linearGradient>
9
+ </defs>
10
+ </svg>