wix / stylable

Stylable - CSS for components
https://stylable.io
MIT License
1.27k stars 62 forks source link

feat(lsp): filter completions by context #2874

Closed idoros closed 1 year ago

idoros commented 1 year ago

This PR adds a way to allow stylable lsp plugins to check context before completion in order to take ownership of context and filter out other providers.

Currently implemented to filter out native-css service and selector completions from @st-import at-rule

In addition a small refactor to change "provide" that would only be for completion into "lsp plugin" to group general lsp api around a feature/concept