microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.44k stars 29.35k forks source link

Hide hover popups while dragging text #226874

Open JoshKreitz opened 2 months ago

JoshKreitz commented 2 months ago

With hover fields enabled, select some code including a variable and attempt to drag it to another location. While dragging, the hover popup showing variable information appears, preventing the selection from being dropped anywhere within the area covered by the popup. Observed in JavaScript/TypeScript and C# editors, I haven’t tested elsewhere.

Either hover events should be interrupted by drag events to prevent popups from appearing when a drag is initiated, or a setting should be provided to disable hover popups when dragging selected text.

System Info:

mordechaim commented 2 months ago

This annoying behavior is no longer present in the latest version of VS Code. As soon as you start a drag gesture the popup closes.

youlinaa commented 1 month ago

Same problem, after restarting the window, it returns to normal. This problem will occur after using it for a period of time.