willofindie / vscode-cssvar

VSCode extension to support CSS Variables Intellisense
https://marketplace.visualstudio.com/items?itemName=phoenisx.cssvar
MIT License
243 stars 4 forks source link

[FAQ] Open conflicts with VSCode default configuration #66

Open phoenisx opened 2 years ago

phoenisx commented 2 years ago

This issue keeps a track of all the conflicting behaviour between this extension and VSCode, which are unsolvable or hard to resolve.

Variable duplicates in the same file.

If in a single CSS source file, there are no duplicates, this extension will not show any duplicates. If somehow you do see duplicates, it's possible due to a conflict with VSCode's internal support for CSS variables.

Updating editor settings used to work, but during my recent development, it stopped working. Since VSCode v1.70 or v1.71 no matter what configuration I change, variables defined in the same CSS file always get shown in autocomplete list making them duplicates.

-- trigger does not open the autocomplete dropdown

This is not a bug. Pressing - will open the autocomplete list. If it doesn't, press ESC and press - again when writing a CSS declaration.

In cases where the autocomplete list was already opened due to VSCode or some other extensions, there are chances that CSS variable property names are getting filtered out and are not getting displayed. You can find a detailed discussion regarding this here: https://github.com/microsoft/vscode-extension-samples/issues/335#issuecomment-1231652288

phoenisx commented 2 years ago

If someone knows a solution to any of the conflicts mentioned above, please add a comment for visibility. 🙏🏽