language-stylus
language-stylus copied to clipboard
Stylus instellisense doesn't work when importing variables from separate file
Steps to Reproduce: Create an styl file with a simple variable Create another styl file that is importing the previously created styl file Try to implement a class in the second styl file and try to use the variable in there. Intellisense is not working outside the file.
Hey, yeah, it's a known thing. Because this plugin looks for symbols and does not analyze whole project.
Unfortunately I don't think I'm going to change that soon. But i'll keep this issue in mind.
It's only one thing what keep me using Atom.
did something change about this subject? is there a way to import this like sass intellisense with colors? importing in comment the file with .color extension
@roganoalien How did you do that with sass?
any solution🙀
There is a solution. This extension must use cache files for variables completion like this extension https://github.com/mrmlnc/vscode-scss
thx, but it works with stylus? @minkir014
What do you mean that works with with stylus?
i want Stylus instellisense when importing variables from separate file in vscode, maybe https://github.com/mrmlnc/vscode-scss can do that with some tricks?
I know that doesn't work in stylus. I mean that scss extension does that by using cache files where it stores variables and provide completion for it across files.
@JiangWeixian I uploaded a temporary extension with my PR that solves de auto-completion from imported stylus files https://marketplace.visualstudio.com/items?itemName=AlbertoMonteiro.language-stylus-revamp