From a31ec0d89aa656d684547b33d83c326b79342117 Mon Sep 17 00:00:00 2001 From: Ladislau Szomoru <3372902+lszomoru@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:39:11 +0100 Subject: [PATCH] GitHub - do not show the "Publish to GitHub" command in an empty workspace (#236234) --- extensions/github/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/github/package.json b/extensions/github/package.json index ece19e32f54..e84b35d19b7 100644 --- a/extensions/github/package.json +++ b/extensions/github/package.json @@ -69,7 +69,7 @@ "commandPalette": [ { "command": "github.publish", - "when": "git-base.gitEnabled && remoteName != 'codespaces'" + "when": "git-base.gitEnabled && workspaceFolderCount != 0 && remoteName != 'codespaces'" }, { "command": "github.copyVscodeDevLink",