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

[Bug] File associations break cssvar extension #88

Closed madeleineostoja closed 1 year ago

madeleineostoja commented 1 year ago

Describe the bug Associating css files to scss (for nested selectors to work with syntax highlighting when using PostCSS) breaks this extension, it doesn't work at all in css files. Removing the file association fixes it.

To Reproduce Steps to reproduce the behavior:

  1. Add "files.associations": { "*.css": "scss" } to user preferences
  2. Try use the extension in a css file
  3. See error

Expected behavior The extension should work in .css files regardless of association, or work in the associated file type (eg: providing scss to extensions should work).

phoenisx commented 1 year ago

Hi @madeleineostoja

Thanks for raising the issue! I am not able to replicate the issue on my end, can you help with the following:

https://user-images.githubusercontent.com/11786283/198326325-4ecb092d-6e1e-4e4f-97a3-c24ae0da0192.mp4

madeleineostoja commented 1 year ago

Seems to be working now after a hard restart of my system and VS Code. Might have been something to do with upgrading to MacOS Ventura. Sorry for the false alarm!!