mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-27 01:25:44 -05:00
Fixes #59 - Updates command context to opened file state
Removes insiders restriction from Open in Remote commands
This commit is contained in:
84
package.json
84
package.json
@@ -517,47 +517,47 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithBranch",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isTracked"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithNext",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isTracked"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithPrevious",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isTracked"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffLineWithPrevious",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||
"when": "editorTextFocus && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithWorking",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isTracked"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffLineWithWorking",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||
"when": "editorTextFocus && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showBlame",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||
"when": "editorTextFocus && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.toggleBlame",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||
"when": "editorTextFocus && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.toggleCodeLens",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:canToggleCodeLens"
|
||||
"when": "editorTextFocus && gitlens:isTracked && gitlens:canToggleCodeLens"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showBlameHistory",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||
"when": "editorTextFocus && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showFileHistory",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isTracked"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showLastQuickPick",
|
||||
@@ -565,15 +565,15 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickCommitDetails",
|
||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
||||
"when": "gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickCommitFileDetails",
|
||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
||||
"when": "gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickFileHistory",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isTracked"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickBranchHistory",
|
||||
@@ -593,11 +593,11 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.copyShaToClipboard",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||
"when": "editorTextFocus && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.copyMessageToClipboard",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable"
|
||||
"when": "editorTextFocus && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.closeUnchangedFiles",
|
||||
@@ -609,11 +609,11 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.openCommitInRemote",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:hasRemotes && gitlens:isBlameable"
|
||||
"when": "editorTextFocus && gitlens:isBlameable && gitlens:hasRemotes"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.openFileInRemote",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:hasRemotes"
|
||||
"when": "editorTextFocus && gitlens:isTracked && gitlens:hasRemotes"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.stashApply",
|
||||
@@ -642,29 +642,29 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.openFileInRemote",
|
||||
"when": "gitlens:enabled && gitlens:hasRemotes",
|
||||
"when": "gitlens:enabled",
|
||||
"group": "1_gitlens_1@2"
|
||||
}
|
||||
],
|
||||
"editor/title": [
|
||||
{
|
||||
"command": "gitlens.toggleBlame",
|
||||
"when": "gitlens:enabled && gitlens:isBlameable",
|
||||
"when": "gitlens:isBlameable",
|
||||
"group": "navigation@100"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithPrevious",
|
||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||
"when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
|
||||
"group": "2_gitlens"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithWorking",
|
||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||
"when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
|
||||
"group": "2_gitlens"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickFileHistory",
|
||||
"when": "editorFocus && gitlens:enabled",
|
||||
"when": "editorFocus && gitlens:isTracked",
|
||||
"group": "2_gitlens_1"
|
||||
},
|
||||
{
|
||||
@@ -696,64 +696,64 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.toggleBlame",
|
||||
"when": "gitlens:enabled && gitlens:isBlameable",
|
||||
"when": "gitlens:enabled",
|
||||
"group": "1_gitlens_1@2"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.openFileInRemote",
|
||||
"when": "gitlens:enabled && gitlens:hasRemotes",
|
||||
"when": "gitlens:enabled",
|
||||
"group": "1_gitlens_1@3"
|
||||
}
|
||||
],
|
||||
"editor/context": [
|
||||
{
|
||||
"command": "gitlens.diffLineWithPrevious",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable && config.gitlens.menus.diff.enabled",
|
||||
"when": "editorTextFocus && gitlens:isBlameable && config.gitlens.menus.diff.enabled",
|
||||
"group": "1_gitlens@1"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffLineWithWorking",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable && config.gitlens.menus.diff.enabled",
|
||||
"when": "editorTextFocus && gitlens:isBlameable && config.gitlens.menus.diff.enabled",
|
||||
"group": "1_gitlens@2"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickCommitFileDetails",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
||||
"when": "editorTextFocus && gitlens:isBlameable",
|
||||
"group": "1_gitlens@3"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithPrevious",
|
||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||
"when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
|
||||
"group": "1_gitlens_1@1"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithWorking",
|
||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||
"when": "editorTextFocus && gitlens:isTracked && config.gitlens.menus.diff.enabled",
|
||||
"group": "1_gitlens_1@2"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickFileHistory",
|
||||
"when": "gitlens:enabled",
|
||||
"when": "gitlens:isTracked",
|
||||
"group": "2_gitlens@1"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.toggleBlame",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
||||
"when": "editorTextFocus && gitlens:isBlameable",
|
||||
"group": "2_gitlens@2"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.openFileInRemote",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:hasRemotes",
|
||||
"when": "editorTextFocus && gitlens:isTracked && gitlens:hasRemotes",
|
||||
"group": "2_gitlens@3"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.copyShaToClipboard",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
||||
"when": "editorTextFocus && gitlens:isBlameable",
|
||||
"group": "9_gitlens@1"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.copyMessageToClipboard",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
||||
"when": "editorTextFocus && gitlens:isBlameable",
|
||||
"group": "9_gitlens@2"
|
||||
}
|
||||
]
|
||||
@@ -783,13 +783,13 @@
|
||||
"command": "gitlens.toggleBlame",
|
||||
"key": "alt+b",
|
||||
"mac": "alt+b",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.toggleCodeLens",
|
||||
"key": "alt+shift+b",
|
||||
"mac": "alt+shift+b",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:canToggleCodeLens"
|
||||
"when": "editorTextFocus && gitlens:isTracked && gitlens:canToggleCodeLens"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showLastQuickPick",
|
||||
@@ -825,31 +825,31 @@
|
||||
"command": "gitlens.diffWithNext",
|
||||
"key": "alt+.",
|
||||
"mac": "alt+.",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isTracked"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffLineWithPrevious",
|
||||
"key": "shift+alt+,",
|
||||
"mac": "shift+alt+,",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithPrevious",
|
||||
"key": "alt+,",
|
||||
"mac": "alt+,",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isTracked"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffLineWithWorking",
|
||||
"key": "alt+w",
|
||||
"mac": "alt+w",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithWorking",
|
||||
"key": "shift+alt+w",
|
||||
"mac": "shift+alt+w",
|
||||
"when": "editorTextFocus && gitlens:enabled"
|
||||
"when": "editorTextFocus && gitlens:isTracked"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user