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.76.0 OS Version: Mac OS Ventura 13.2.1 +click on the "play" icon next to a test (e.g. in ). Screenshot: <img width="583" alt="image" src="https://user-"Will bring up the context menu, like ctrl+clicking on a file tab header will. Executes the primary left-click action, which is to run the test with defaults.
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.76.0. Please try upgrading to the latest version and checking whether this issue remains. Happy Coding!
It reproduces exactly the same in 1.76.0. I have edited the bug description.
sending this your way since you're redoing the context menus here
Seems like ctrl+click in the gutter shows the context menu everywhere except for test decorations so I think this was just never implemented, therefore marking as feature request.
Wow, thanks for the super quick turnaround!

Discussion:
import { IAction, Separator } from 'vs/base/common/actions'; import { Disposable, IDisposable } from 'vs/base/common/lifecycle'; <ins> import { isMacintosh } from 'vs/base/common/platform'; </ins> import { ICodeEditor, IEditorMouseEvent, MouseTargetType } from 'vs/editor/browser/editorBrowser'; import { registerEditorContribution, EditorContributionInstantiation } from 'vs/editor/browser/editorExtensions'; import { IEditorContribution } from 'vs/editor/common/editorCommon';

) { super(); <del> this._register(this.editor.onContextMenu((e: IEditorMouseEvent) => this.show(e))); </del> <ins> this._register(this.editor.onMouseDown((e: IEditorMouseEvent) => this.show(e))); </ins> } public show(e: IEditorMouseEvent) { <ins> // on macOS ctrl+click is interpreted as right click if (!e.event.rightButton && !(isMacintosh && e.event.leftButton && e.event.ctrlKey)) { return; } </ins> const menu = this.menuService.createMenu(MenuId.EditorLineNumberContext, this.contextKeyService); const model = this.editor.getModel();

const uri = model.uri; if (e.event.rightButton || (env.isMacintosh && e.event.leftButton && e.event.ctrlKey)) { <ins> // handled by editor gutter context menu </ins> return; } else { const breakpoints = this.debugService.getModel().getBreakpoints({ uri, lineNumber });

import { getContextForTestItem, ITestService, testsInFile } from 'vs/workbench/contrib/testing/common/testService'; import { IncrementalTestCollectionItem, InternalTestItem, IRichLocation, ITestMessage, ITestRunProfile, TestDiffOpType, TestMessageType, TestResultItem, TestResultState, TestRunProfileBitset } from 'vs/workbench/contrib/testing/common/testTypes'; import { EditorLineNumberContextMenu, GutterActionsRegistry } from 'vs/workbench/contrib/codeEditor/browser/editorLineNumberMenu'; <ins> import { isMacintosh } from 'vs/base/common/platform'; </ins> const MAX_INLINE_MESSAGE_LENGTH = 128;

/** @inheritdoc */ public click(e: IEditorMouseEvent): boolean { <del> if (e.target.type !== MouseTargetType.GUTTER_GLYPH_MARGIN || e.event.rightButton) { </del> <ins> if (e.target.type !== MouseTargetType.GUTTER_GLYPH_MARGIN // handled by editor gutter context menu || e.event.rightButton || isMacintosh && e.event.leftButton && e.event.ctrlKey ) { </ins> return false; }