Microsoft/vscode

[css] Allow extensions to choose to use whether to use CSS default data provider

Open

#142.946 aperta il 13 feb 2022

Vedi su GitHub
 (3 commenti) (0 reazioni) (1 assegnatario)TypeScript (10.221 fork)batch import
css-less-scssfeature-requesthelp wanted

Metriche repository

Star
 (74.848 star)
Metriche merge PR
 (Merge medio 11h 43m) (1000 PR mergiate in 30 g)

Descrizione

The CSS language service has had the parameter of whether to use the default data provider (useDefaultDataProvider) for long while now and more recently the exposing of css.customData for extensions which is lovely. However the bundled css-language-features extension sets data providers with useDefaultDataProvider forced to true.

Considering these go together in setting data providers, it would be fantastic to expose useDefaultDataProvider in the same way. This would make it very simple for extensions to support languages/frameworks that deviate from spec. Seems like it would be simple to do as well.

Guida contributor