From 4d1ecce18a48f3abc92e5d54ae5bdf33d9494841 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristina=20Ca=C3=B1izales?= <113132642+CristiCanizales@users.noreply.github.com> Date: Mon, 22 Jul 2024 14:07:57 +0200 Subject: [PATCH] chore: collapse all tests commands only show up within open project (#5694) --- packages/salesforcedx-vscode-apex/package.json | 4 ++++ packages/salesforcedx-vscode-lwc/package.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/packages/salesforcedx-vscode-apex/package.json b/packages/salesforcedx-vscode-apex/package.json index 61dcb6241e..d39f06f719 100644 --- a/packages/salesforcedx-vscode-apex/package.json +++ b/packages/salesforcedx-vscode-apex/package.json @@ -241,6 +241,10 @@ { "command": "sf.test.view.refresh", "when": "false" + }, + { + "command": "sf.test.view.collapseAll", + "when": "sf:project_opened" } ] }, diff --git a/packages/salesforcedx-vscode-lwc/package.json b/packages/salesforcedx-vscode-lwc/package.json index 4d8780fc03..1fa69f33dc 100644 --- a/packages/salesforcedx-vscode-lwc/package.json +++ b/packages/salesforcedx-vscode-lwc/package.json @@ -282,6 +282,10 @@ "command": "sf.lightning.lwc.test.runAllTests", "when": "sf:project_opened || sf:internal_dev" }, + { + "command": "sf.lightning.lwc.test.view.collapseAll", + "when": "sf:project_opened" + }, { "command": "sf.lightning.lwc.test.refreshTestExplorer", "when": "sf:project_opened || sf:internal_dev"