Skip to content

Middle-clicking on a notification sometimes pastes the contents of the clipboard #109322

@contribucious

Description

@contribucious
  • VSCode Version: 1.50.1 (Stable) / 1.51.0-insider (Insiders in its latest version, with the same problem)
  • OS Version: Linux Mint 19.3 (Cinnamon D.E.) [Linux x64 5.4.0-52-generic]
  • Does this issue occur when all extensions are disabled?: Yes
     

Steps to reproduce

  1. First, make sure you have some text in your clipboard.
  2. Now, open a file in VSCode.
  3. Wait for a notification or arrange for a notification to appear (at the bottom right).
  4. Middle-click on it (at any position) — i.e. click on the mouse wheel.

Expected result

The notification closes.

Actual result

The notification closes.

➡️ But ... sometimes (seemingly randomly), in addition to that, the contents of the clipboard are pasted into the currently open file (normal and desired behavior under Linux in normal times but not in this case).

↪️ In the case of two consecutive notifications for example, one may not have this problem and when the next one is closed in the same way, the problem will arise(*).

(*) (At least here, technically speaking, this can probably be explained by the fact that once the last notification is closed, it is the file in the editor that receives the focus. But in all cases, with the same action on the various notifications, the same result is expected IMHO.)
 


Thanks in advance! 👍

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bughelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code InsiderslinuxIssues with VS Code on LinuxverifiedVerification succeededworkbench-notificationsNotification widget issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions