MhMadHamster / vscode-postcss-language

postcss syntax support extension for VSCode
MIT License
34 stars 7 forks source link

Intellisense (autocomplete) variables from another file? #19

Closed onetrev closed 6 years ago

onetrev commented 6 years ago

I don't suppose it would be possible to add support so that CSS Next variables in a separate file like below could pop up in my Intellisense autocomplete when I start typing something like z-index: var(--zind in another file?

:root {
  --zindex-dropdown: 1000;
  --zindex-overlay: 2000;
  --zindex-modal: 3000;
}

It would be hugely amazingly helpful if this were possible though!

onetrev commented 6 years ago

Similarly, if the above autocomplete is possible, then I'm assuming then things like "Go to Definition" and Ctrl+Hover to get definition preview, as you can do with Sass variables for example (with this extension), would be possible too for PostCSS / cssnext custom properties (variables)? And that would be equally huge to be able to have support for that. Cheers!

MhMadHamster commented 6 years ago

hello, I'm currently not using this plugin actively and originally it was created just for proper syntax highlighting, and to add the feature you're asking for, it would probably require writing vscode-postcss-languageservice from scratch since as far as I know vscode don't have one yet. Sorry for the delayed answer.