vscode-styled-components
vscode-styled-components copied to clipboard
Incorrect cursor placement after autocomplete
Describe the bug (including copyable syntax) CSS autocomplete cursor position af The cursor is right before the last character of the last word.
Screenshot
displa/the cursor is currently here/y: ;

To Reproduce Add any css property, then hit enter on any suggestions.

Expected behavior The cursor should be BETWEEN the colon and the semi colon
display: /the cursor should be here/ ;

Build environment:
OS: Windows 11 21H2 OS Build: 22000.856 VSCode Version: 1.71 Extension Version 1.7.4
Duplicate of #370, which has a potential fix
Duplicate of #370, which has a potential fix
Reinstalling didn't work for me. Still having this bug.
I had the same issue @mateuszral, just reinstalling didn't work. What did work for me though, was:
- Uninstalling extension & reload VS Code
ctrl / cmd+shift+p=> type 'clear' => selectClear Editor Historyctrl / cmd+shift+p=> type 'clear' => selectSearch: Clear Search History- Reinstall the extension
See if this works for you too! I can confirm this works on macOS.
I have the same problem with Linux Zorin OS 16. =( Reinstall the extention didn't work for me.
This!! https://github.com/styled-components/vscode-styled-components/issues/366#issuecomment-1086782239