|
|
@ -2766,7 +2766,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashApply", |
|
|
|
"when": "gitlens:enabled" |
|
|
|
"when": "gitlens:enabled && !gitlens:readonly" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashDelete", |
|
|
@ -2774,7 +2774,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashSave", |
|
|
|
"when": "gitlens:enabled" |
|
|
|
"when": "gitlens:enabled && !gitlens:readonly" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.resetSuppressedWarnings", |
|
|
@ -2786,15 +2786,15 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.fetchRepositories", |
|
|
|
"when": "gitlens:hasRemotes" |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.pullRepositories", |
|
|
|
"when": "gitlens:hasRemotes" |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.pushRepositories", |
|
|
|
"when": "gitlens:hasRemotes" |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.checkout", |
|
|
@ -3299,7 +3299,7 @@ |
|
|
|
"scm/resourceGroup/context": [ |
|
|
|
{ |
|
|
|
"command": "gitlens.stashSave", |
|
|
|
"when": "gitlens:enabled", |
|
|
|
"when": "gitlens:enabled && !gitlens:readonly", |
|
|
|
"group": "inline@-1" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3319,7 +3319,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashSave", |
|
|
|
"when": "gitlens:enabled", |
|
|
|
"when": "gitlens:enabled && !gitlens:readonly", |
|
|
|
"group": "3_gitlens@1" |
|
|
|
} |
|
|
|
], |
|
|
@ -3351,7 +3351,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashSave", |
|
|
|
"when": "gitlens:enabled", |
|
|
|
"when": "gitlens:enabled && !gitlens:readonly", |
|
|
|
"group": "2_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3363,17 +3363,17 @@ |
|
|
|
"view/title": [ |
|
|
|
{ |
|
|
|
"command": "gitlens.pushRepositories", |
|
|
|
"when": "gitlens:enabled && view =~ /^gitlens\\.views\\.repositories:/", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && view =~ /^gitlens\\.views\\.repositories:/", |
|
|
|
"group": "navigation@10" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.pullRepositories", |
|
|
|
"when": "gitlens:enabled && view =~ /^gitlens\\.views\\.repositories:/", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && view =~ /^gitlens\\.views\\.repositories:/", |
|
|
|
"group": "navigation@11" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.fetchRepositories", |
|
|
|
"when": "gitlens:enabled && view =~ /^gitlens\\.views\\.repositories:/", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && view =~ /^gitlens\\.views\\.repositories:/", |
|
|
|
"group": "navigation@12" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3570,7 +3570,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.checkout", |
|
|
|
"when": "viewItem =~ /gitlens:branch\\b(?!:current)\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b(?!:current)\\b/", |
|
|
|
"group": "inline@10" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3596,7 +3596,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.checkout", |
|
|
|
"when": "viewItem =~ /gitlens:branch\\b(?!:current)\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b(?!:current)\\b/", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3651,42 +3651,42 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalCheckoutBranch", |
|
|
|
"when": "viewItem =~ /gitlens:branch\\b(?!:current)/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b(?!:current)/", |
|
|
|
"group": "8_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalRebaseBranchToRemote", |
|
|
|
"when": "viewItem =~ /gitlens:(branch:current:tracking)\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:(branch:current:tracking)\\b/", |
|
|
|
"group": "8_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalMergeBranch", |
|
|
|
"when": "viewItem =~ /gitlens:branch\\b(?!:current)/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b(?!:current)/", |
|
|
|
"group": "8_gitlens@2" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalRebaseBranch", |
|
|
|
"when": "viewItem =~ /gitlens:branch\\b(?!:current)/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b(?!:current)/", |
|
|
|
"group": "8_gitlens@3" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalSquashBranchIntoCommit", |
|
|
|
"when": "viewItem =~ /gitlens:branch\\b(?!:current)/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b(?!:current)/", |
|
|
|
"group": "8_gitlens@4" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalCreateBranch", |
|
|
|
"when": "viewItem =~ /gitlens:(branch|commit|tag)\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:(branch|commit|tag)\\b/", |
|
|
|
"group": "8_gitlens@5" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalDeleteBranch", |
|
|
|
"when": "viewItem =~ /gitlens:branch\\b(?!:current)/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:branch\\b(?!:current)/", |
|
|
|
"group": "8_gitlens@6" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalCreateTag", |
|
|
|
"when": "viewItem =~ /gitlens:(branch|commit)\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:(branch|commit)\\b/", |
|
|
|
"group": "8_gitlens@7" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3747,32 +3747,32 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalCherryPickCommit", |
|
|
|
"when": "viewItem == gitlens:commit", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:commit", |
|
|
|
"group": "8_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalPushCommit", |
|
|
|
"when": "viewItem == gitlens:commit:current", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:commit:current", |
|
|
|
"group": "8_gitlens@2" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalRevertCommit", |
|
|
|
"when": "viewItem == gitlens:commit:current", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:commit:current", |
|
|
|
"group": "8_gitlens@3" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalCheckoutCommit", |
|
|
|
"when": "viewItem =~ /gitlens:commit\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:commit\\b/", |
|
|
|
"group": "8_gitlens@4" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalRebaseCommit", |
|
|
|
"when": "viewItem =~ /gitlens:commit\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:commit\\b/", |
|
|
|
"group": "8_gitlens@5" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalResetCommit", |
|
|
|
"when": "viewItem =~ /gitlens:commit\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:commit\\b/", |
|
|
|
"group": "8_gitlens@6" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3787,22 +3787,22 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.unstageFile", |
|
|
|
"when": "viewItem =~ /gitlens:file\\b.*:staged\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:file\\b.*:staged\\b/", |
|
|
|
"group": "inline@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.stageFile", |
|
|
|
"when": "viewItem =~ /gitlens:file\\b.*:unstaged\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:file\\b.*:unstaged\\b/", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.unstageFile", |
|
|
|
"when": "viewItem =~ /gitlens:file\\b.*:staged\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:file\\b.*:staged\\b/", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashSave", |
|
|
|
"when": "viewItem =~ /gitlens:file\\b.*:(un)?staged\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:file\\b.*:(un)?staged\\b/", |
|
|
|
"group": "1_gitlens@2" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3863,7 +3863,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.applyChanges", |
|
|
|
"when": "viewItem == gitlens:file:stash", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:file:stash", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3888,7 +3888,7 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.fetch", |
|
|
|
"when": "viewItem == gitlens:remote", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:remote", |
|
|
|
"group": "inline@97" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3908,12 +3908,12 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.fetch", |
|
|
|
"when": "viewItem == gitlens:remote", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:remote", |
|
|
|
"group": "2_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalRemoveRemote", |
|
|
|
"when": "viewItem == gitlens:remote", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:remote", |
|
|
|
"group": "8_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3928,64 +3928,64 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.push", |
|
|
|
"when": "viewItem == gitlens:repository && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:repository", |
|
|
|
"group": "inline@97", |
|
|
|
"alt": "gitlens.views.pushWithForce" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.pull", |
|
|
|
"when": "viewItem == gitlens:repository && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:repository", |
|
|
|
"group": "inline@98" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.fetch", |
|
|
|
"when": "viewItem == gitlens:repository && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:repository", |
|
|
|
"group": "inline@99" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.fetch", |
|
|
|
"when": "viewItem == gitlens:repository && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:repository", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.pull", |
|
|
|
"when": "viewItem == gitlens:repository && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:repository", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.push", |
|
|
|
"when": "viewItem == gitlens:repository && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:repository", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.pushWithForce", |
|
|
|
"when": "viewItem == gitlens:repository && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:repository", |
|
|
|
"group": "1_gitlens@2" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.pull", |
|
|
|
"when": "viewItem == gitlens:status:upstream:behind && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:status:upstream:behind", |
|
|
|
"group": "inline@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.pull", |
|
|
|
"when": "viewItem == gitlens:status:upstream:behind && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:status:upstream:behind", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.push", |
|
|
|
"when": "viewItem == gitlens:status:upstream:ahead && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:status:upstream:ahead", |
|
|
|
"group": "inline@1", |
|
|
|
"alt": "gitlens.views.pushWithForce" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.push", |
|
|
|
"when": "viewItem == gitlens:status:upstream:ahead && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:status:upstream:ahead", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.pushWithForce", |
|
|
|
"when": "viewItem == gitlens:status:upstream:ahead && gitlens:hasRemotes", |
|
|
|
"when": "gitlens:hasRemotes && !gitlens:readonly && viewItem == gitlens:status:upstream:ahead", |
|
|
|
"group": "1_gitlens@2" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -3995,12 +3995,12 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashSave", |
|
|
|
"when": "viewItem == gitlens:repository", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:repository", |
|
|
|
"group": "3_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashApply", |
|
|
|
"when": "viewItem == gitlens:repository", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:repository", |
|
|
|
"group": "3_gitlens@2" |
|
|
|
}, |
|
|
|
{ |
|
|
@ -4040,57 +4040,57 @@ |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashApply", |
|
|
|
"when": "viewItem == gitlens:stashes", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:stashes", |
|
|
|
"group": "inline@98" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashSave", |
|
|
|
"when": "viewItem =~ /^gitlens:(stashes|status:files)$/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /^gitlens:(stashes|status:files)$/", |
|
|
|
"group": "inline@99" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashSave", |
|
|
|
"when": "viewItem =~ /^gitlens:(stashes|status:files)$/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /^gitlens:(stashes|status:files)$/", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashApply", |
|
|
|
"when": "viewItem == gitlens:stashes", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:stashes", |
|
|
|
"group": "1_gitlens@2" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashApply", |
|
|
|
"when": "viewItem == gitlens:stash", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:stash", |
|
|
|
"group": "inline@98" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashDelete", |
|
|
|
"when": "viewItem == gitlens:stash", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:stash", |
|
|
|
"group": "inline@99" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashApply", |
|
|
|
"when": "viewItem == gitlens:stash", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:stash", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.stashDelete", |
|
|
|
"when": "viewItem == gitlens:stash", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:stash", |
|
|
|
"group": "1_gitlens@2" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.checkout", |
|
|
|
"when": "viewItem =~ /gitlens:tag\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:tag\\b/", |
|
|
|
"group": "inline@10" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.checkout", |
|
|
|
"when": "viewItem =~ /gitlens:tag\\b/", |
|
|
|
"when": "!gitlens:readonly && viewItem =~ /gitlens:tag\\b/", |
|
|
|
"group": "1_gitlens@1" |
|
|
|
}, |
|
|
|
{ |
|
|
|
"command": "gitlens.views.terminalDeleteTag", |
|
|
|
"when": "viewItem == gitlens:tag", |
|
|
|
"when": "!gitlens:readonly && viewItem == gitlens:tag", |
|
|
|
"group": "8_gitlens" |
|
|
|
}, |
|
|
|
{ |
|
|
|