-
-
Notifications
You must be signed in to change notification settings - Fork 205
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
I would like Pug support, and also Stylus #106
Comments
Both are supported through https://github.com/sveltejs/svelte-preprocess. You need to setup a |
Revising my comment a little: Both are supported through So what definetely should be done is to add that some basic template preprocessor support. But on how far to go with the intellisense, I'm not sure at this point, it might just get too many things at once to support, especially if there are not ready-to-use language servers around. |
I'm having a similar issue, my compilation with stylus works fine, but formatting in vscode doesn't work. Coming from Vuejs, it worked fine with the Vetur extension. I initially thought that the svelte extension treats the stylus style block as normal css, but that doesn't seem to be the case. But upon trying to format, it prints {
"type": "Style",
"start": 69,
"end": 152,
"attributes": [
{
"start": 76,
"end": 89,
"type": "Attribute",
"name": "lang",
"value": [
{
"start": 82,
"end": 88,
"type": "Text",
"raw": "stylus",
"data": "stylus"
}
]
}
],
"children": [],
"content": {
"start": 144,
"end": 144,
"styles": "",
"type": "StyleProgram"
}
} It behaves the same regardless of using a I also just now realized that this could be related to sveltejs/prettier-plugin-svelte#55 |
This provides syntax highlighting, but does not fix any diagnostic errors sveltejs#106
This provides syntax highlighting, but does not fix any diagnostic errors #106
Is it possible to provide IntelliSense for components and their attributes in Pug? It seems that IntelliSense is working for interpolated values (see: |
👍 Would also love to see pug + typescript / intellisense support. Any pointers on how things are working currently and how/where to pitch in to help make this happen? |
I have seen that Vue volar has support for Stylus syntax highlighting. I could not understand how to integrate their magic to make a pull request (just importing the highlighting from somewhere else). I hope this helps: |
My current tech stack is Angular + Pug + Stylus. I would like to explore moving to Svelte, but it would be infeasible for me to move off of Pug. Stylus is a nice bonus too.
I believe I was able to get the preprocessor to do what I needed, but the lack of decent VSCode support was a deal breaker. I'm super glad this project is taking off!
In summary: please add some sort of pug and stylus support to the language processor and vscode. Thanks!
The text was updated successfully, but these errors were encountered: