Skip to content

Suggestions broken on embedded languages #134328

@jasonwilliams

Description

@jasonwilliams

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:

  1. Install the VSCode Styled Components extension https://marketplace.visualstudio.com/items?itemName=jpoissonnier.vscode-styled-components
  2. Clone https://github.com/styled-components/vscode-styled-components
  3. Navigate to src/tests/suite/colorize-fixtures/segmented-component.js file and add max-width: 100 underneath the padding: 3px line
  4. Now add % to max-width
  5. You should see something like this:
    bad6. 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.
good

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.

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiesjavascriptJavaScript support issuestypescriptTypescript support issues

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions