microsoft / vscode-custom-data

Documentation and sample for using VS Code custom data format
MIT License
187 stars 72 forks source link

How do I use css.customData for postcss syntax #12

Open lazysergey opened 4 years ago

lazysergey commented 4 years ago

I havepostcss selected as syntax for *.css files and I found I'm unable to use autocomplete values defined in css.css-data.json until I choose css syntax for those files which obviously disables other language features.

How do I configure customData so whatever I define in css.css-data.json will work with postcss syntax?

I tried postcss.customData without any luck

Thanks in advance

lazysergey commented 4 years ago

okay I found even in css mode I'm unable to use my pre-generated variables as autocompletion works only for at-directives/properties/pseudo-elements/pseudo-classes

would be nice to have this feature for postcss/scss/css variables and syntaxes. currently I have json of ~50 colors and I would like it to be autocompletible