mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 10:38:59 +01:00
SCM - disable actions for resource groups that do not have any resources (#236813)
This commit is contained in:
@@ -163,14 +163,14 @@
|
||||
"title": "%command.stageAll%",
|
||||
"category": "Git",
|
||||
"icon": "$(add)",
|
||||
"enablement": "!operationInProgress"
|
||||
"enablement": "!operationInProgress && scmResourceGroupResourceCount > 0"
|
||||
},
|
||||
{
|
||||
"command": "git.stageAllTracked",
|
||||
"title": "%command.stageAllTracked%",
|
||||
"category": "Git",
|
||||
"icon": "$(add)",
|
||||
"enablement": "!operationInProgress"
|
||||
"enablement": "!operationInProgress && scmResourceGroupResourceCount > 0"
|
||||
},
|
||||
{
|
||||
"command": "git.stageAllUntracked",
|
||||
@@ -243,7 +243,7 @@
|
||||
"title": "%command.unstageAll%",
|
||||
"category": "Git",
|
||||
"icon": "$(remove)",
|
||||
"enablement": "!operationInProgress"
|
||||
"enablement": "!operationInProgress && scmResourceGroupResourceCount > 0"
|
||||
},
|
||||
{
|
||||
"command": "git.unstageSelectedRanges",
|
||||
@@ -270,14 +270,14 @@
|
||||
"title": "%command.cleanAll%",
|
||||
"category": "Git",
|
||||
"icon": "$(discard)",
|
||||
"enablement": "!operationInProgress"
|
||||
"enablement": "!operationInProgress && scmResourceGroupResourceCount > 0"
|
||||
},
|
||||
{
|
||||
"command": "git.cleanAllTracked",
|
||||
"title": "%command.cleanAllTracked%",
|
||||
"category": "Git",
|
||||
"icon": "$(discard)",
|
||||
"enablement": "!operationInProgress"
|
||||
"enablement": "!operationInProgress && scmResourceGroupResourceCount > 0"
|
||||
},
|
||||
{
|
||||
"command": "git.cleanAllUntracked",
|
||||
@@ -889,14 +889,14 @@
|
||||
"title": "%command.viewChanges%",
|
||||
"icon": "$(diff-multiple)",
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress"
|
||||
"enablement": "!operationInProgress && scmResourceGroupResourceCount > 0"
|
||||
},
|
||||
{
|
||||
"command": "git.viewStagedChanges",
|
||||
"title": "%command.viewStagedChanges%",
|
||||
"icon": "$(diff-multiple)",
|
||||
"category": "Git",
|
||||
"enablement": "!operationInProgress"
|
||||
"enablement": "!operationInProgress && scmResourceGroupResourceCount > 0"
|
||||
},
|
||||
{
|
||||
"command": "git.viewUntrackedChanges",
|
||||
|
||||
Reference in New Issue
Block a user