mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-02-16 10:58:34 -05:00
Hides commands from palette when unavailable
This commit is contained in:
28
package.json
28
package.json
@@ -497,47 +497,47 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.diffWithBranch",
|
"command": "gitlens.diffWithBranch",
|
||||||
"when": "gitlens:enabled"
|
"when": "editorTextFocus && gitlens:enabled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.diffWithNext",
|
"command": "gitlens.diffWithNext",
|
||||||
"when": "gitlens:enabled"
|
"when": "editorTextFocus && gitlens:enabled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.diffWithPrevious",
|
"command": "gitlens.diffWithPrevious",
|
||||||
"when": "gitlens:enabled"
|
"when": "editorTextFocus && gitlens:enabled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.diffLineWithPrevious",
|
"command": "gitlens.diffLineWithPrevious",
|
||||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.diffWithWorking",
|
"command": "gitlens.diffWithWorking",
|
||||||
"when": "gitlens:enabled"
|
"when": "editorTextFocus && gitlens:enabled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.diffLineWithWorking",
|
"command": "gitlens.diffLineWithWorking",
|
||||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.showBlame",
|
"command": "gitlens.showBlame",
|
||||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.toggleBlame",
|
"command": "gitlens.toggleBlame",
|
||||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.toggleCodeLens",
|
"command": "gitlens.toggleCodeLens",
|
||||||
"when": "gitlens:enabled && gitlens:canToggleCodeLens"
|
"when": "editorTextFocus && gitlens:enabled && gitlens:canToggleCodeLens"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.showBlameHistory",
|
"command": "gitlens.showBlameHistory",
|
||||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.showFileHistory",
|
"command": "gitlens.showFileHistory",
|
||||||
"when": "gitlens:enabled"
|
"when": "editorTextFocus && gitlens:enabled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.showLastQuickPick",
|
"command": "gitlens.showLastQuickPick",
|
||||||
@@ -553,7 +553,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.showQuickFileHistory",
|
"command": "gitlens.showQuickFileHistory",
|
||||||
"when": "gitlens:enabled"
|
"when": "editorTextFocus && gitlens:enabled"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.showQuickBranchHistory",
|
"command": "gitlens.showQuickBranchHistory",
|
||||||
@@ -569,11 +569,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.copyShaToClipboard",
|
"command": "gitlens.copyShaToClipboard",
|
||||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.copyMessageToClipboard",
|
"command": "gitlens.copyMessageToClipboard",
|
||||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"command": "gitlens.closeUnchangedFiles",
|
"command": "gitlens.closeUnchangedFiles",
|
||||||
|
|||||||
Reference in New Issue
Block a user