Change:
<!-- Do Not Delete This! bugreporttemplate --<!-- Please read our Rules of Conduct: --<!-- Read our guide about submitting issues: --<!-- Search existing issues to avoid creating duplicates. --<!-- Test using the latest Insiders build to see if your issue has already been fixed: --<!-- Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. --<!-- Launch with to check. --Does this issue occur when all extensions are disabled?: Yes/No <!-- If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. --<!-- Issues caused by an extension need to be reported directly to the extension publisher. The 'Help Report Issue' dialog can assist with this. --- VS Code Version: : 1.72.0 (system setup) : : 2022-10-04T23:20:39.912Z Electron: 19.0.17 Chromium: 102.0.5005.167 16.14.2 V8: 10.2.154.15-electron.0 OS: WindowsNT x64 10.0. OS Version: Windows 11 21H2 ‎2021/‎10/‎21 .856 Windows 1000..856.0 Steps to Reproduce: right button click the side menus : to open the menus panel (Please note that it's right mouse button) mouse right button click panel with one casual click , it will checked (clicked) the under menu which mouse overed In my common sense like this UI action , it may be a cancel action isn't right ? Here is record video https://user- And also find that sometime it will one right click and quick hide side menus, in the upload video it happend in the last time and one times, so I try to find why? Because right click to open menus panel and don't quickly release the mouse right button , it may be sometimes trigger this action. In a nutshell : after click side menu and release rigth mouse button later ,the right mouse button has confirm function. so this happend. oh , I have another question : I want to know what's this terminal and what's it theme, It looks so cool! please vscode update illustration ! ! I guess may be zsh, but couldn't find the theme config, help me thanks, I really want use.
I will try to outline the intended behavior and please let me know if this does not match your experience. click in the activity bar opens the activity bar's context menu (this menu ends with "Hide Activity Bar" click in a menu performs the same action as left click. Where I see a bug, the context menu is appearing on mouse down, not mouse up when the right click happens over the global actions of the activity bar.
my terminal is using the Dark+ (default) theme and
To Verify The Fix: click the Accounts Icon, Settings Gear, and Profiles Icons that the behavior for the context menu matches that of a right of anywhere else in the activity bar On Windows, this means the context menu appears at the location of the mouse click and on mouse UP.
On web (PWA), right clicking on the manage gear does not work. The context menu flashes up and immediately closes ! Similarly, right clicking the account menu has the flash, but then the account menu instead of the ordinary context menu appears: ! Sometimes these flashes are so fast as to be invisible, but other times you can see them, as in the recordings.
Actually, this works on desktop. It seems like context menus are broken in PWA in general

Discussion:
import 'vs/css!./media/activityaction'; import { localize } from 'vs/nls'; <del> import { EventType, addDisposableListener, EventHelper, getDomNodePagePosition } from 'vs/base/browser/dom'; </del> <ins> import { EventType, addDisposableListener, EventHelper } from 'vs/base/browser/dom'; </ins> import { StandardKeyboardEvent } from 'vs/base/browser/keyboardEvent'; import { EventType as TouchEventType, GestureEvent } from 'vs/base/browser/touch'; import { Action, IAction, Separator, SubmenuAction, toAction } from 'vs/base/common/actions';

import { IPaneCompositePart } from 'vs/workbench/browser/parts/paneCompositePart'; import { ICredentialsService } from 'vs/platform/credentials/common/credentials'; import { IUserDataProfileService, ManageProfilesSubMenu, PROFILES_CATEGORY } from 'vs/workbench/services/userDataProfile/common/userDataProfile'; <ins> import { StandardMouseEvent } from 'vs/base/browser/mouseEvent'; </ins> export class ViewContainerActivityAction extends ActivityAction {

override render(container: HTMLElement): void { super.render(container); <del> // Context menus are triggered on mouse down so that an item can be picked // and executed with releasing the mouse over it </del> this._register(addDisposableListener(this.container, EventType.MOUSE_DOWN, async (e: MouseEvent) => { EventHelper.stop(e, true); const isLeftClick = e?.button !== 2; // Left-click run if (isLeftClick) { this.run(); <del> } else { const disposables = new DisposableStore(); const actions = await this.resolveContextMenuActions(disposables); const elementPosition = getDomNodePagePosition(this.container); const anchor = { x: Math.floor(elementPosition.left + (elementPosition.width / 2)), y: elementPosition.top + elementPosition.height }; this.contextMenuService.showContextMenu({ getAnchor: () => anchor, getActions: () => actions, onHide: () => disposables.dispose() }); </del> } })); <ins> // The rest of the activity bar uses context menu event for the context menu, so we match this this._register(addDisposableListener(this.container, EventType.CONTEXT_MENU, async (e: MouseEvent) => { const disposables = new DisposableStore(); const actions = await this.resolveContextMenuActions(disposables); const event = new StandardMouseEvent(e); const anchor = { x: event.posx, y: event.posy }; this.contextMenuService.showContextMenu({ getAnchor: () => anchor, getActions: () => actions, onHide: () => disposables.dispose() }); })); </ins> this._register(addDisposableListener(this.container, EventType.KEY_UP, (e: KeyboardEvent) => { const event = new StandardKeyboardEvent(e); if (event.equals(KeyCode.Enter) || event.equals(KeyCode.Space)) {