vscode-styled-components icon indicating copy to clipboard operation
vscode-styled-components copied to clipboard

Broken styles highlighting without interpolated variables

Open sverdiyev opened this issue 3 years ago • 0 comments

Describe the bug (including copyable syntax)

Styles are highlighted with "Editor: Occurrences Highlight" enabled and no interpolated variables

Screenshot

With Editor: Occurrences Highlight enabled

  1. No interpolated variables Screen Shot 2022-01-29 at 11 49 00 AM

  2. With Interpolated variables Screen Shot 2022-01-29 at 11 49 29 AM

With Editor: Occurrences Highlight disabled

  1. No Interpolated variables Screen Shot 2022-01-29 at 11 50 04 AM

  2. With Interpolated variables Screen Shot 2022-01-29 at 11 50 17 AM

same behavior in TS and JS.

To Reproduce Use styled div with Editor: Occurrences Highlight enabled and no interpolated variable used.

Expected behavior Expected the code not to be highlighted in both cases - with and without variables.

Build environment :

  • OS: MacOS BigSur 11.6.1
  • VSCode Version: 1.63.2
  • All extensions disabled

Additional context same behavior with and without vscode-styled-components extension

sverdiyev avatar Jan 29 '22 10:01 sverdiyev