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",