microsoft / vscode

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

auto pressed menu items in context menu #225863

Open neuromagus opened 3 weeks ago

neuromagus commented 3 weeks ago

Issue: If mouse right click on folder in Explorer, autoclicked (autopressed, sorry for my terrible English) menu items under the mouse cursor and context menu autoclosed. This behavior reproduced in other windows if the cursor lands on a menu item when opening the context menu. Like doubleclick right button of mouse...

Does this issue occur when all extensions are disabled?: Yes

Version: 1.92.2 Commit: https://github.com/microsoft/vscode/commit/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9 Date: 2024-08-14T17:29:30.058Z Electron: 30.1.2 ElectronBuildId: 9870757 Chromium: 124.0.6367.243 Node.js: 20.14.0 V8: 12.4.254.20-electron.0 OS: Linux x64 6.9.7+bpo-amd64 (Debian 12) with latest update (added backports)

Xorg (DWM)

Steps to Reproduce: Right click on the folder in Explorer.

neuromagus commented 3 weeks ago

now I downgraded VSCode for testing with installed add-ons (extensions) to 1.89 version and all works fine with my Debian 12.

Version: 1.89.1 Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685 Date: 2024-05-07T05:16:23.416Z Electron: 28.2.8 ElectronBuildId: 27744544 Chromium: 120.0.6099.291 Node.js: 18.18.2 V8: 12.0.267.19-electron.0 OS: Linux x64 6.9.7+bpo-amd64

Xorg (DWM)

Electron versions - 28 and 30 in latest VSCode, so...

lramos15 commented 3 weeks ago

Does this happen for all content menus or just the explorer?

neuromagus commented 3 weeks ago

Does this happen for all content menus or just the explorer?

Short answer: this happen for all content menus.

In all menus, if the cursor is over the opening menu item (on editor window context menu shows on right of the mouse cursor, so, menu shows, but if click and move mouse on small pixels right - autoclicked). In Explorer menu shows behind of mouse cursor and an automatic click occurs.

neuromagus commented 3 weeks ago

@lramos15, if u need more visual info, I have a time to write a small screenfetch gif...

And I wrote :}

Peek 2024-08-19 20-48

mwilliamson commented 2 weeks ago

I was searching for the same issue, and come across #224743 which I think describes the same problem? I think it's related to #224515, which provides a workaround of changing the setting "Window: Title Bar Style" to "custom" (although that does change the title bar).

neuromagus commented 2 weeks ago

@mwilliamson Well, the bot is so weird, I thinking "more issues - faster result". All MS extensions (like a C# Dev kit) love the latest version of VSCode. When downgrading VSCode, you need to install certain versions of extensions. All work after update is broken ;} (where is my Emacs?)