Skip to content

Commit 8ddee2d

Browse files
authored
testing: navigate to test on double click (microsoft#184626)
Fixes microsoft#183835
1 parent 6f568d0 commit 8ddee2d

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/vs/workbench/contrib/testing/browser/testingExplorerView.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,7 @@ class TestingExplorerViewModel extends Disposable {
546546
@ITestingPeekOpener private readonly peekOpener: ITestingPeekOpener,
547547
@ITestProfileService private readonly testProfileService: ITestProfileService,
548548
@ITestingContinuousRunService private readonly crService: ITestingContinuousRunService,
549+
@ICommandService commandService: ICommandService,
549550
) {
550551
super();
551552

@@ -618,6 +619,12 @@ class TestingExplorerViewModel extends Disposable {
618619
testService.excluded.onTestExclusionsChanged,
619620
)(this.tree.refilter, this.tree));
620621

622+
this._register(this.tree.onMouseDblClick(e => {
623+
if (e.element instanceof TestItemTreeElement && !e.element.children.size && e.element.test.item.uri) {
624+
commandService.executeCommand('vscode.revealTest', e.element.test.item.extId);
625+
}
626+
}));
627+
621628
this._register(this.tree);
622629

623630
this._register(this.onChangeWelcomeVisibility(e => {

0 commit comments

Comments
 (0)