mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-26 10:15:39 -05:00
Changes behaviors when file has unsaved changes:
- Status bar blame information will hide - CodeLens change to a `Cannot determine...` message and become unclickable - Many menu choices and commands will hide Fixes #36 - Blame information is invalid when a file has unsaved changes Fixed #38 - Toggle Blame Annotation button shows even when it isn't valid Preps v2.9.0
This commit is contained in:
61
package.json
61
package.json
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gitlens",
|
||||
"version": "2.8.2",
|
||||
"version": "2.9.0",
|
||||
"author": {
|
||||
"name": "Eric Amodio",
|
||||
"email": "eamodio@gmail.com"
|
||||
@@ -444,7 +444,7 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffLineWithPrevious",
|
||||
"when": "gitlens:enabled"
|
||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithWorking",
|
||||
@@ -452,15 +452,15 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffLineWithWorking",
|
||||
"when": "gitlens:enabled"
|
||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showBlame",
|
||||
"when": "gitlens:enabled"
|
||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.toggleBlame",
|
||||
"when": "gitlens:enabled"
|
||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.toggleCodeLens",
|
||||
@@ -468,7 +468,7 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showBlameHistory",
|
||||
"when": "gitlens:enabled"
|
||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showFileHistory",
|
||||
@@ -476,7 +476,7 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickCommitDetails",
|
||||
"when": "gitlens:enabled"
|
||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickFileHistory",
|
||||
@@ -492,11 +492,11 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.copyShaToClipboard",
|
||||
"when": "gitlens:enabled"
|
||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.copyMessageToClipboard",
|
||||
"when": "gitlens:enabled"
|
||||
"when": "gitlens:enabled && gitlens:isBlameable"
|
||||
}
|
||||
],
|
||||
"explorer/context": [
|
||||
@@ -507,46 +507,51 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithPrevious",
|
||||
"when": "config.gitlens.menus.diff.enabled && gitlens:enabled",
|
||||
"when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||
"group": "gitlens_diff"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithWorking",
|
||||
"when": "config.gitlens.menus.diff.enabled && gitlens:enabled",
|
||||
"when": "gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||
"group": "gitlens_diff"
|
||||
}
|
||||
],
|
||||
"editor/title": [
|
||||
{
|
||||
"command": "gitlens.toggleBlame",
|
||||
"when": "gitlens:enabled",
|
||||
"when": "gitlens:enabled && gitlens:isBlameable",
|
||||
"group": "navigation@100"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickFileHistory",
|
||||
"when": "gitlens:enabled",
|
||||
"group": "1_gitlens@1"
|
||||
"when": "editorFocus && gitlens:enabled",
|
||||
"group": "gitlens"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickRepoHistory",
|
||||
"when": "!editorFocus && gitlens:enabled",
|
||||
"group": "gitlens"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickRepoStatus",
|
||||
"when": "gitlens:enabled",
|
||||
"group": "1_gitlens@2"
|
||||
"group": "gitlens"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithPrevious",
|
||||
"when": "config.gitlens.menus.diff.enabled && gitlens:enabled",
|
||||
"group": "1_gitlens_diff"
|
||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||
"group": "gitlens_diff"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithWorking",
|
||||
"when": "config.gitlens.menus.diff.enabled && gitlens:enabled",
|
||||
"group": "1_gitlens_diff"
|
||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||
"group": "gitlens_diff"
|
||||
}
|
||||
],
|
||||
"editor/title/context": [
|
||||
{
|
||||
"command": "gitlens.toggleBlame",
|
||||
"when": "gitlens:enabled",
|
||||
"when": "gitlens:enabled && gitlens:isBlameable",
|
||||
"group": "gitlens@1"
|
||||
},
|
||||
{
|
||||
@@ -558,32 +563,32 @@
|
||||
"editor/context": [
|
||||
{
|
||||
"command": "gitlens.diffLineWithPrevious",
|
||||
"when": "editorTextFocus && config.gitlens.menus.diff.enabled && gitlens:enabled",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable && && config.gitlens.menus.diff.enabled",
|
||||
"group": "1_gitlens@1"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffLineWithWorking",
|
||||
"when": "editorTextFocus && config.gitlens.menus.diff.enabled && gitlens:enabled",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable && config.gitlens.menus.diff.enabled",
|
||||
"group": "1_gitlens@2"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.showQuickCommitDetails",
|
||||
"when": "editorTextFocus && gitlens:enabled",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
||||
"group": "1_gitlens@3"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithPrevious",
|
||||
"when": "editorTextFocus && config.gitlens.menus.diff.enabled && gitlens:enabled",
|
||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||
"group": "1_gitlens-file@1"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.diffWithWorking",
|
||||
"when": "editorTextFocus && config.gitlens.menus.diff.enabled && gitlens:enabled",
|
||||
"when": "editorTextFocus && gitlens:enabled && config.gitlens.menus.diff.enabled",
|
||||
"group": "1_gitlens-file@2"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.toggleBlame",
|
||||
"when": "editorTextFocus && gitlens:enabled",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
||||
"group": "2_gitlens@1"
|
||||
},
|
||||
{
|
||||
@@ -594,12 +599,12 @@
|
||||
},
|
||||
{
|
||||
"command": "gitlens.copyShaToClipboard",
|
||||
"when": "editorTextFocus && gitlens:enabled",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
||||
"group": "9_gitlens@1"
|
||||
},
|
||||
{
|
||||
"command": "gitlens.copyMessageToClipboard",
|
||||
"when": "editorTextFocus && gitlens:enabled",
|
||||
"when": "editorTextFocus && gitlens:enabled && gitlens:isBlameable",
|
||||
"group": "9_gitlens@2"
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user