vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Loading spinning circle on pasting anything

Open riyajath-ahamed opened this issue 11 months ago • 5 comments

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:

  1. copy a simple component in file
  2. Then paste the component in another file

Image

riyajath-ahamed avatar Jan 15 '25 04:01 riyajath-ahamed

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.

IllusionMH avatar Jan 15 '25 04:01 IllusionMH

Same bug on 1.96.3

boltex avatar Jan 15 '25 22:01 boltex

Duplicate of #236722

Happens in typescript (.ts files ) since 1.96.2 I think...

Here's the little spinning thingy:

Image

boltex avatar Jan 15 '25 22:01 boltex

"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.

boltex avatar Jan 15 '25 22:01 boltex

wtf of this "feature", paste any ts code toke me 10 seconds??? wtf???

liesauer avatar Jan 18 '25 10:01 liesauer

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 avatar Jan 20 '25 14:01 bmjhversteeg

@bmjhversteeg Confirmed, disabling this feature solved the issue for me:

settings.json

"typescript.updateImportsOnPaste.enabled": false,
"javascript.updateImportsOnPaste.enabled": false

davidvmckay avatar Jan 30 '25 17:01 davidvmckay

See https://github.com/microsoft/vscode/issues/235959#issuecomment-2644217357 for update on the issue and a workaround for the current stable release

mjbvz avatar Feb 07 '25 22:02 mjbvz