vscode-cssvar icon indicating copy to clipboard operation
vscode-cssvar copied to clipboard

[FAQ] Open conflicts with VSCode default configuration

Open phoenisx opened this issue 3 years ago • 1 comments

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.

  • Details for this can be found here: https://github.com/willofindie/vscode-cssvar/issues/28#issuecomment-1081555892

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 avatar Sep 03 '22 09:09 phoenisx

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

phoenisx avatar Sep 03 '22 09:09 phoenisx