language-stylus icon indicating copy to clipboard operation
language-stylus copied to clipboard

Stylus instellisense doesn't work when importing variables from separate file

Open melrefaie opened this issue 7 years ago • 11 comments

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.

melrefaie avatar Jul 31 '17 14:07 melrefaie

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.

d4rkr00t avatar Jul 31 '17 22:07 d4rkr00t

It's only one thing what keep me using Atom.

ilkome avatar Oct 24 '17 10:10 ilkome

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 avatar Apr 25 '19 16:04 roganoalien

@roganoalien How did you do that with sass?

minkir014 avatar May 29 '19 15:05 minkir014

any solution🙀

JiangWeixian avatar Jun 03 '19 10:06 JiangWeixian

There is a solution. This extension must use cache files for variables completion like this extension https://github.com/mrmlnc/vscode-scss

minkir014 avatar Jun 03 '19 10:06 minkir014

thx, but it works with stylus? @minkir014

JiangWeixian avatar Jun 03 '19 15:06 JiangWeixian

What do you mean that works with with stylus?

minkir014 avatar Jun 03 '19 16:06 minkir014

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?

JiangWeixian avatar Jun 04 '19 02:06 JiangWeixian

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.

minkir014 avatar Jun 04 '19 11:06 minkir014

@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

AlbertoMonteiro avatar Aug 30 '20 16:08 AlbertoMonteiro