GitHub - do not show the "Publish to GitHub" command in an empty workspace (#236234)

This commit is contained in:
Ladislau Szomoru
2024-12-16 16:39:11 +01:00
committed by GitHub
parent 3bbe456892
commit a31ec0d89a

View File

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