Repository: vscode
Issue: Linux: native context menu runs action under mouse when opened
Labels: bug,upstream,linux,electron,menus,upstream-issue-linked


Issue Type: <b>Bug</b>

When I right click, the menu will flash on and then off almost immediately, like maybe 100 or 200 milliseconds. This is not all the time, but I am not able to narrow it down. It seems to be only in the editor that this issue exists. I can sometimes "fix" it by right clicking on the left side, like in the Explorer, then going back to the editor. I do not have this issue with any other software on my system. This started maybe Wed this last week, so approx around Dec 16th.

I removed 2 SCSS extensions which I believed were at fault, but with them uninstalled, the problem still exists. Those were my most recently installed extensions, the rest have been there a while.

Regarding what happens, when the right click menu disappears it seems like an option is being selected, almost like there is some sort of double click happening... the first right click to open the menu and a second to select something. I believe this to be the case as different things happen after I right click that normally require me to explicitely call said function.

VS Code version: Code - Insiders 1.53.0-insider (c927a8015b9e26bd454d6e293bb0384aa1975d06, 2020-12-18T05:27:50.274Z)
OS version: Linux x64 5.4.0-59-generic

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-2670QM CPU @ 2.20GHz (8 x 2799)|
|GPU Status|2d_canvas: enabled<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>oop_rasterization: disabled_off<br>opengl: enabled_on<br>protected_video_decode: unavailable_off<br>rasterization: disabled_software<br>skia_renderer: enabled_on<br>video_decode: disabled_software<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|0, 0, 0|
|Memory (System)|31.32GB (0.37GB free)|
|Process Argv|--no-sandbox --unity-launch --crash-reporter-id 99855e03-cc37-4ed5-907b-28a1bf4d8453|
|Screen Reader|no|
|VM|0%|
|DESKTOP_SESSION|mate|
|XDG_CURRENT_DESKTOP|MATE|
|XDG_SESSION_DESKTOP|mate|
|XDG_SESSION_TYPE|x11|
</details><details><summary>Extensions (68)</summary>

Extension|Author (truncated)|Version
---|---|---
html-snippets|abu|0.2.1
scss-lint|ada|0.1.10
project-manager|ale|12.0.1
code-gnu-global|aus|0.2.2
emojisense|bie|0.8.0
markdown-checkbox|bie|0.1.3
xml2json|bui|1.2.4
npm-intellisense|chr|1.3.1
path-intellisense|chr|2.3.0
vscode-mysql-client2|cwe|2.8.6
vscode-markdownlint|Dav|0.38.0
vscode-eslint|dba|2.1.14
githistory|don|0.6.14
xml|Dot|2.5.1
gitlens|eam|11.0.6
vscode-html-css|ecm|1.2.1
vscode-npm-script|eg2|0.3.13
apacheconf-snippets|eim|1.3.0
git-project-manager|fel|1.7.1
php-intellisense|fel|2.3.14
vscode-firefox-debug|fir|2.9.1
shell-format|fox|7.0.1
vscode-pull-request-github|Git|0.22.0
beautify|Hoo|1.5.0
vscode-git-add-and-commit|iva|2.1.1
search-node-modules|jas|1.3.0
shortcut-menu-bar|jer|1.5.0
vscode-gnupg-tool|JHe|1.3.9
vscode-sshfs|Kel|1.19.1
sftp|lix|1.12.9
code-beautifier|mic|2.3.3
xml-format|mik|1.0.2
prettify-json|moh|0.0.3
vscode-apache|mrm|1.2.0
python|ms-|2020.12.424452561
vscode-pylance|ms-|2020.12.2
jupyter|ms-|2020.12.414227025
cpptools|ms-|1.1.3
debugger-for-chrome|msj|4.12.11
sqltools|mtx|0.23.0
vetur|oct|0.31.3
java|red|0.73.0
vscode-xml|red|0.14.0
shellman|Rem|4.7.0
live-sass|rit|3.0.0
LiveServer|rit|5.6.1
bash-debug|rog|0.3.9
joplin-vscode-plugin|rxl|0.3.0
bash-beautify|sha|0.1.1
markdown-preview-enhanced|shd|0.5.13
html5-boilerplate|sid|1.1.1
sonarlint-vscode|Son|1.19.0
code-spell-checker|str|1.10.2
html-preview-vscode|tht|0.2.5
shellcheck|tim|0.12.2
vscodeintellicode|Vis|1.2.10
vscode-java-debug|vsc|0.30.0
vscode-java-dependency|vsc|0.16.0
vscode-java-pack|vsc|0.12.1
vscode-maven|vsc|0.27.0
codetour|vsl|0.0.42
gistfs|vsl|0.1.12
nodejs-extension-pack|wad|0.1.9
eno|Wsc|2.3.41
JavaScriptSnippets|xab|1.8.0
markdown-all-in-one|yzh|3.4.0
html-css-class-completion|Zig|1.20.0
ab-html-formatter|zov|0.0.2


</details>
<!-- generated by issue reporter -->