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

Incorrect cursor placement after autocomplete

Open mateuszral opened this issue 3 years ago • 3 comments

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: ; image

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

image

Expected behavior The cursor should be BETWEEN the colon and the semi colon

display: /the cursor should be here/ ;

image

Build environment:

OS: Windows 11 21H2 OS Build: 22000.856 VSCode Version: 1.71 Extension Version 1.7.4

mateuszral avatar Aug 27 '22 14:08 mateuszral

Duplicate of #370, which has a potential fix

Sirs0ri avatar Sep 07 '22 15:09 Sirs0ri

Duplicate of #370, which has a potential fix

Reinstalling didn't work for me. Still having this bug.

mateuszral avatar Sep 23 '22 20:09 mateuszral

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' => select Clear Editor History
  • ctrl / cmd + shift + p => type 'clear' => select Search: Clear Search History
  • Reinstall the extension

See if this works for you too! I can confirm this works on macOS.

oscarvz avatar Sep 29 '22 09:09 oscarvz

I have the same problem with Linux Zorin OS 16. =( Reinstall the extention didn't work for me.

carlos3duardo avatar Oct 15 '22 18:10 carlos3duardo

This!! https://github.com/styled-components/vscode-styled-components/issues/366#issuecomment-1086782239

carlos3duardo avatar Oct 15 '22 19:10 carlos3duardo