Browse Source

Hides commands from palette when unavailable

main
Eric Amodio 7 years ago
parent
commit
ea2adcd919
1 changed files with 14 additions and 14 deletions
  1. +14
    -14
      package.json

+ 14
- 14
package.json View File

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

Loading…
Cancel
Save