Microsoft/vscode

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

Open

#142,946 opened on Feb 13, 2022

View on GitHub
 (3 comments) (0 reactions) (1 assignee)TypeScript (10,221 forks)batch import
css-less-scssfeature-requesthelp wanted

Repository metrics

Stars
 (74,848 stars)
PR merge metrics
 (Avg merge 11h 43m) (1,000 merged PRs in 30d)

Description

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.

Contributor guide