-
-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 BUG: Alpine intellisense does not work in .astro
files
#700
Comments
.html
files (ex. Alpine) don't work in .astro
files.astro
files
This happens because currently we don't collect the contributed customData of other extensions, like the HTML language server does. In the meantime, you can manually specify the paths to the custom data in "html.customData": [
"/Users/erika/.vscode/extensions/adrianwilczynski.alpine-js-intellisense-1.2.0/customData/html.json"
], As for the syntax highlighting, the extension linked needs to inject into the Astro syntax: https://github.com/Sperovita/alpinejs-syntax-highlight/blob/2cf4f66f264dabeb218bb28128c2844aceb4a4a9/syntaxes/injection.json#L3 |
Hmm workaround is problematic, when you use 1 setup for different project types. It would be super cool to make this extension just work out of the box, without any hacky solutions. |
You can put that setting in the project's config. |
Upstream issue: volarjs/services#88 |
If anyone is interested in implementing this, Johnson's Volar port of the VS Code HTML language server would be a good reference: microsoft/vscode#171547 |
Describe the Bug
I tried out the Alpine extensions for syntax highlighting and intellisense, and found neither seem to work in
.astro
files; only.html
. It sounds like VS Code has acustomData
format we need to adhere to according to @Princesseuh.To quote the README:
Steps to Reproduce
.html
file. Note that typing an example like<p x-
pulls up intellisense..astro
file. Note intellisense options do not appear.The text was updated successfully, but these errors were encountered: