Loading spinning circle on pasting anything
Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.96.2-1734607745
- OS Version: Ubuntu 22.04.5 LTS
Steps to Reproduce:
- copy a simple component in file
- Then paste the component in another file
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.96.3. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
This should be part with imports indicator See https://code.visualstudio.com/updates/v1_96#_paste-with-imports-for-javascript-and-typescript for details and settings.
Same bug on 1.96.3
Duplicate of #236722
Happens in typescript (.ts files ) since 1.96.2 I think...
Here's the little spinning thingy:
"restart typescript server" command via ctrl+shift +P helps, but have to redo at every paste.
CTRL+SHIFT+V also works. regular paste seems problematic only.
wtf of this "feature", paste any ts code toke me 10 seconds??? wtf???
Larry Tesler will probably roll in his grave.
But in all seriousness. like @IllusionMH mentions this is caused by https://code.visualstudio.com/updates/v1_96#_paste-with-imports-for-javascript-and-typescript
In my opinion, this feature should definitely not be enabled by default. An alternative solution could be to revert to basic paste if language servers are still starting, and only do paste with imports once they are live.
@bmjhversteeg Confirmed, disabling this feature solved the issue for me:
settings.json
"typescript.updateImportsOnPaste.enabled": false,
"javascript.updateImportsOnPaste.enabled": false
See https://github.com/microsoft/vscode/issues/235959#issuecomment-2644217357 for update on the issue and a workaround for the current stable release