-
Notifications
You must be signed in to change notification settings - Fork 36.1k
Description
Does this issue occur when all extensions are disabled?: Yes/No
Version: 1.61.0-insider (system setup)
Commit: 4fbe034
Date: 2021-09-29T05:38:00.706Z
Electron: 13.5.0
Chrome: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Windows_NT x64 10.0.19043
Investigation from:
styled-components/vscode-styled-components#322 (comment)
Steps to Reproduce:
- Install the VSCode Styled Components extension https://marketplace.visualstudio.com/items?itemName=jpoissonnier.vscode-styled-components
- Clone https://github.com/styled-components/vscode-styled-components
- Navigate to src/tests/suite/colorize-fixtures/segmented-component.js file and add
max-width: 100underneath the padding: 3px line - Now add % to max-width
- You should see something like this:
6. If you
hit;you end up getting a bad suggestion (like above):
What's Expected
In a CSS file doing the same yields a much better experience. It only suggests the 100% and not others, and doesn't give weird textinputs when hitting semicolon or enter.

We have debugged this problem in depth and it seems to be a UI issue. This used to work as expected but over the past year it has been behaving like this, the extension hasn't changed and an old version of the extension does the same thing, so I believe something in the VSCode UI has changed to cause this. Any help would be appreciated.
I checked the language server, and that responds the same to both the embedded language and a native CSS file so I don't think the issue is there.