|
5866 | 5866 | "title": "Open Changes with Next Revision",
|
5867 | 5867 | "category": "GitLens",
|
5868 | 5868 | "icon": "$(gitlens-next-commit)",
|
5869 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/" |
| 5869 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
5870 | 5870 | },
|
5871 | 5871 | {
|
5872 | 5872 | "command": "gitlens.diffWithNextInDiffLeft",
|
5873 | 5873 | "title": "Open Changes with Next Revision",
|
5874 | 5874 | "category": "GitLens",
|
5875 | 5875 | "icon": "$(gitlens-next-commit)",
|
5876 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/" |
| 5876 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
5877 | 5877 | },
|
5878 | 5878 | {
|
5879 | 5879 | "command": "gitlens.diffWithNextInDiffRight",
|
5880 | 5880 | "title": "Open Changes with Next Revision",
|
5881 | 5881 | "category": "GitLens",
|
5882 | 5882 | "icon": "$(gitlens-next-commit)",
|
5883 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/" |
| 5883 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
5884 | 5884 | },
|
5885 | 5885 | {
|
5886 | 5886 | "command": "gitlens.diffWithPrevious",
|
|
6298 | 6298 | "title": "Show Revision Commit",
|
6299 | 6299 | "category": "GitLens",
|
6300 | 6300 | "icon": "$(gitlens-commit-horizontal)",
|
6301 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git" |
| 6301 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/" |
6302 | 6302 | },
|
6303 | 6303 | {
|
6304 | 6304 | "command": "gitlens.showQuickRevisionDetailsInDiffLeft",
|
6305 | 6305 | "title": "Show Revision Commit",
|
6306 | 6306 | "category": "GitLens",
|
6307 | 6307 | "icon": "$(gitlens-commit-horizontal)",
|
6308 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git" |
| 6308 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/" |
6309 | 6309 | },
|
6310 | 6310 | {
|
6311 | 6311 | "command": "gitlens.showQuickRevisionDetailsInDiffRight",
|
6312 | 6312 | "title": "Show Revision Commit",
|
6313 | 6313 | "category": "GitLens",
|
6314 | 6314 | "icon": "$(gitlens-commit-horizontal)",
|
6315 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git" |
| 6315 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/" |
6316 | 6316 | },
|
6317 | 6317 | {
|
6318 | 6318 | "command": "gitlens.showQuickFileHistory",
|
|
6633 | 6633 | "title": "Open File at Revision",
|
6634 | 6634 | "category": "GitLens",
|
6635 | 6635 | "icon": "$(gitlens-open-revision)",
|
6636 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git" |
| 6636 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/" |
6637 | 6637 | },
|
6638 | 6638 | {
|
6639 | 6639 | "command": "gitlens.openRevisionFileInDiffLeft",
|
6640 | 6640 | "title": "Open File at Revision",
|
6641 | 6641 | "category": "GitLens",
|
6642 | 6642 | "icon": "$(gitlens-open-revision)",
|
6643 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git" |
| 6643 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/" |
6644 | 6644 | },
|
6645 | 6645 | {
|
6646 | 6646 | "command": "gitlens.openRevisionFileInDiffRight",
|
6647 | 6647 | "title": "Open File at Revision",
|
6648 | 6648 | "category": "GitLens",
|
6649 | 6649 | "icon": "$(gitlens-open-revision)",
|
6650 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git" |
| 6650 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/ " |
6651 | 6651 | },
|
6652 | 6652 | {
|
6653 | 6653 | "command": "gitlens.openWorkingFile",
|
|
6752 | 6752 | "title": "Browse Repository from Revision",
|
6753 | 6753 | "category": "GitLens",
|
6754 | 6754 | "icon": "$(folder-opened)",
|
6755 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git" |
| 6755 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/" |
6756 | 6756 | },
|
6757 | 6757 | {
|
6758 | 6758 | "command": "gitlens.browseRepoAtRevisionInNewWindow",
|
6759 | 6759 | "title": "Browse Repository from Revision in New Window",
|
6760 | 6760 | "category": "GitLens",
|
6761 | 6761 | "icon": "$(folder-opened)",
|
6762 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git" |
| 6762 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/" |
6763 | 6763 | },
|
6764 | 6764 | {
|
6765 | 6765 | "command": "gitlens.browseRepoBeforeRevision",
|
6766 | 6766 | "title": "Browse Repository from Before Revision",
|
6767 | 6767 | "category": "GitLens",
|
6768 | 6768 | "icon": "$(folder-opened)",
|
6769 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git" |
| 6769 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/" |
6770 | 6770 | },
|
6771 | 6771 | {
|
6772 | 6772 | "command": "gitlens.browseRepoBeforeRevisionInNewWindow",
|
6773 | 6773 | "title": "Browse Repository from Before Revision in New Window",
|
6774 | 6774 | "category": "GitLens",
|
6775 | 6775 | "icon": "$(folder-opened)",
|
6776 |
| - "enablement": "gitlens:activeFileStatus =~ /revision/ && resourceScheme != git" |
| 6776 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/" |
6777 | 6777 | },
|
6778 | 6778 | {
|
6779 | 6779 | "command": "gitlens.views.browseRepoAtRevision",
|
|
9807 | 9807 | },
|
9808 | 9808 | {
|
9809 | 9809 | "command": "gitlens.diffWithNext",
|
9810 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && !isInDiffEditor" |
| 9810 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && !isInDiffEditor" |
9811 | 9811 | },
|
9812 | 9812 | {
|
9813 | 9813 | "command": "gitlens.diffWithNextInDiffLeft",
|
9814 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && isInDiffEditor && !isInDiffRightEditor" |
| 9814 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && isInDiffEditor && !isInDiffRightEditor" |
9815 | 9815 | },
|
9816 | 9816 | {
|
9817 | 9817 | "command": "gitlens.diffWithNextInDiffRight",
|
9818 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && isInDiffRightEditor" |
| 9818 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && isInDiffRightEditor" |
9819 | 9819 | },
|
9820 | 9820 | {
|
9821 | 9821 | "command": "gitlens.diffWithPrevious",
|
|
9851 | 9851 | },
|
9852 | 9852 | {
|
9853 | 9853 | "command": "gitlens.diffWithWorking",
|
9854 |
| - "when": "gitlens:activeFileStatus =~ /revision/" |
| 9854 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
9855 | 9855 | },
|
9856 | 9856 | {
|
9857 | 9857 | "command": "gitlens.diffWithWorkingInDiffLeft",
|
|
10135 | 10135 | },
|
10136 | 10136 | {
|
10137 | 10137 | "command": "gitlens.showQuickRevisionDetails",
|
10138 |
| - "when": "gitlens:activeFileStatus =~ /revision/" |
| 10138 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
10139 | 10139 | },
|
10140 | 10140 | {
|
10141 | 10141 | "command": "gitlens.showQuickRevisionDetailsInDiffLeft",
|
|
10363 | 10363 | },
|
10364 | 10364 | {
|
10365 | 10365 | "command": "gitlens.openRevisionFile",
|
10366 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && isInDiffEditor" |
| 10366 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && isInDiffEditor" |
10367 | 10367 | },
|
10368 | 10368 | {
|
10369 | 10369 | "command": "gitlens.openRevisionFileInDiffLeft",
|
|
10375 | 10375 | },
|
10376 | 10376 | {
|
10377 | 10377 | "command": "gitlens.openWorkingFile",
|
10378 |
| - "when": "gitlens:activeFileStatus =~ /revision/" |
| 10378 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
10379 | 10379 | },
|
10380 | 10380 | {
|
10381 | 10381 | "command": "gitlens.openWorkingFileInDiffLeft",
|
@@ -10431,19 +10431,19 @@
|
10431 | 10431 | },
|
10432 | 10432 | {
|
10433 | 10433 | "command": "gitlens.browseRepoAtRevision",
|
10434 |
| - "when": "!gitlens:hasVirtualFolders && gitlens:activeFileStatus =~ /revision/" |
| 10434 | + "when": "!gitlens:hasVirtualFolders && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
10435 | 10435 | },
|
10436 | 10436 | {
|
10437 | 10437 | "command": "gitlens.browseRepoAtRevisionInNewWindow",
|
10438 |
| - "when": "!gitlens:hasVirtualFolders && gitlens:activeFileStatus =~ /revision/" |
| 10438 | + "when": "!gitlens:hasVirtualFolders && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
10439 | 10439 | },
|
10440 | 10440 | {
|
10441 | 10441 | "command": "gitlens.browseRepoBeforeRevision",
|
10442 |
| - "when": "!gitlens:hasVirtualFolders && gitlens:activeFileStatus =~ /revision/" |
| 10442 | + "when": "!gitlens:hasVirtualFolders && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
10443 | 10443 | },
|
10444 | 10444 | {
|
10445 | 10445 | "command": "gitlens.browseRepoBeforeRevisionInNewWindow",
|
10446 |
| - "when": "!gitlens:hasVirtualFolders && gitlens:activeFileStatus =~ /revision/" |
| 10446 | + "when": "!gitlens:hasVirtualFolders && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
10447 | 10447 | },
|
10448 | 10448 | {
|
10449 | 10449 | "command": "gitlens.views.browseRepoAtRevision",
|
@@ -12184,47 +12184,47 @@
|
12184 | 12184 | },
|
12185 | 12185 | {
|
12186 | 12186 | "command": "gitlens.diffWithWorking",
|
12187 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme =~ /^(?!(file|git)$).*$/ && !isInDiffEditor", |
| 12187 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/ && !isInDiffEditor", |
12188 | 12188 | "group": "navigation@-99"
|
12189 | 12189 | },
|
12190 | 12190 | {
|
12191 | 12191 | "command": "gitlens.diffWithWorkingInDiffLeft",
|
12192 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme =~ /^(?!(file|git)$).*$/ && isInDiffEditor && !isInDiffRightEditor", |
| 12192 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/ && isInDiffEditor && !isInDiffRightEditor", |
12193 | 12193 | "group": "navigation@-99"
|
12194 | 12194 | },
|
12195 | 12195 | {
|
12196 | 12196 | "command": "gitlens.diffWithWorkingInDiffRight",
|
12197 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme =~ /^(?!(file|git)$).*$/ && isInDiffRightEditor", |
| 12197 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/ && isInDiffRightEditor", |
12198 | 12198 | "group": "navigation@-99"
|
12199 | 12199 | },
|
12200 | 12200 | {
|
12201 | 12201 | "command": "gitlens.openWorkingFile",
|
12202 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme == git && !isInDiffEditor", |
| 12202 | + "when": "gitlens:enabled && resourceScheme == git && !isInDiffEditor", |
12203 | 12203 | "group": "navigation@-98"
|
12204 | 12204 | },
|
12205 | 12205 | {
|
12206 | 12206 | "command": "gitlens.openWorkingFile",
|
12207 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme =~ /^(?!(file|git)$).*$/ && !isInDiffEditor", |
| 12207 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/ && !isInDiffEditor", |
12208 | 12208 | "group": "navigation@-98"
|
12209 | 12209 | },
|
12210 | 12210 | {
|
12211 | 12211 | "command": "gitlens.openWorkingFileInDiffLeft",
|
12212 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme =~ /^(?!(file|git)$).*$/ && isInDiffEditor && !isInDiffRightEditor", |
| 12212 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/ && isInDiffEditor && !isInDiffRightEditor", |
12213 | 12213 | "group": "navigation@-98"
|
12214 | 12214 | },
|
12215 | 12215 | {
|
12216 | 12216 | "command": "gitlens.openWorkingFileInDiffRight",
|
12217 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme =~ /^(?!(file|git)$).*$/ && isInDiffRightEditor", |
| 12217 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/ && isInDiffRightEditor", |
12218 | 12218 | "group": "navigation@-98"
|
12219 | 12219 | },
|
12220 | 12220 | {
|
12221 | 12221 | "command": "gitlens.openRevisionFileInDiffLeft",
|
12222 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme =~ /^(?!(file|git)$).*$/ && isInDiffEditor && !isInDiffRightEditor", |
| 12222 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/ && isInDiffEditor && !isInDiffRightEditor", |
12223 | 12223 | "group": "navigation@-97"
|
12224 | 12224 | },
|
12225 | 12225 | {
|
12226 | 12226 | "command": "gitlens.openRevisionFileInDiffRight",
|
12227 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && resourceScheme =~ /^(?!(file|git)$).*$/ && isInDiffRightEditor", |
| 12227 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/ && isInDiffRightEditor", |
12228 | 12228 | "group": "navigation@-97"
|
12229 | 12229 | },
|
12230 | 12230 | {
|
@@ -16042,17 +16042,17 @@
|
16042 | 16042 | },
|
16043 | 16043 | {
|
16044 | 16044 | "command": "gitlens.showQuickRevisionDetails",
|
16045 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && !isInDiffEditor", |
| 16045 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && !isInDiffEditor", |
16046 | 16046 | "group": "3_gitlens@2"
|
16047 | 16047 | },
|
16048 | 16048 | {
|
16049 | 16049 | "command": "gitlens.showQuickRevisionDetailsInDiffLeft",
|
16050 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && isInDiffEditor && !isInDiffRightEditor", |
| 16050 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && isInDiffEditor && !isInDiffRightEditor", |
16051 | 16051 | "group": "3_gitlens@2"
|
16052 | 16052 | },
|
16053 | 16053 | {
|
16054 | 16054 | "command": "gitlens.showQuickRevisionDetailsInDiffRight",
|
16055 |
| - "when": "gitlens:activeFileStatus =~ /revision/ && isInDiffRightEditor", |
| 16055 | + "when": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && isInDiffRightEditor", |
16056 | 16056 | "group": "3_gitlens@2"
|
16057 | 16057 | }
|
16058 | 16058 | ],
|
@@ -16854,46 +16854,46 @@
|
16854 | 16854 | {
|
16855 | 16855 | "command": "gitlens.diffWithNext",
|
16856 | 16856 | "key": "alt+.",
|
16857 |
| - "when": "config.gitlens.keymap == alternate && editorTextFocus && gitlens:activeFileStatus =~ /revision/ && !isInDiffEditor" |
| 16857 | + "when": "config.gitlens.keymap == alternate && editorTextFocus && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && !isInDiffEditor" |
16858 | 16858 | },
|
16859 | 16859 | {
|
16860 | 16860 | "command": "gitlens.diffWithNext",
|
16861 | 16861 | "key": "ctrl+shift+g .",
|
16862 | 16862 | "mac": "cmd+alt+g .",
|
16863 |
| - "when": "config.gitlens.keymap == chorded && editorTextFocus && gitlens:activeFileStatus =~ /revision/ && !isInDiffEditor" |
| 16863 | + "when": "config.gitlens.keymap == chorded && editorTextFocus && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && !isInDiffEditor" |
16864 | 16864 | },
|
16865 | 16865 | {
|
16866 | 16866 | "command": "gitlens.diffWithNextInDiffLeft",
|
16867 | 16867 | "key": "alt+.",
|
16868 |
| - "when": "config.gitlens.keymap == alternate && editorTextFocus && gitlens:activeFileStatus =~ /revision/ && isInDiffEditor && !isInDiffRightEditor" |
| 16868 | + "when": "config.gitlens.keymap == alternate && editorTextFocus && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && isInDiffEditor && !isInDiffRightEditor" |
16869 | 16869 | },
|
16870 | 16870 | {
|
16871 | 16871 | "command": "gitlens.diffWithNextInDiffLeft",
|
16872 | 16872 | "key": "ctrl+shift+g .",
|
16873 | 16873 | "mac": "cmd+alt+g .",
|
16874 |
| - "when": "config.gitlens.keymap == chorded && editorTextFocus && gitlens:activeFileStatus =~ /revision/ && isInDiffEditor && !isInDiffRightEditor" |
| 16874 | + "when": "config.gitlens.keymap == chorded && editorTextFocus && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && isInDiffEditor && !isInDiffRightEditor" |
16875 | 16875 | },
|
16876 | 16876 | {
|
16877 | 16877 | "command": "gitlens.diffWithNextInDiffRight",
|
16878 | 16878 | "key": "alt+.",
|
16879 |
| - "when": "config.gitlens.keymap == alternate && editorTextFocus && gitlens:activeFileStatus =~ /revision/ && isInDiffRightEditor" |
| 16879 | + "when": "config.gitlens.keymap == alternate && editorTextFocus && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && isInDiffRightEditor" |
16880 | 16880 | },
|
16881 | 16881 | {
|
16882 | 16882 | "command": "gitlens.diffWithNextInDiffRight",
|
16883 | 16883 | "key": "ctrl+shift+g .",
|
16884 | 16884 | "mac": "cmd+alt+g .",
|
16885 |
| - "when": "config.gitlens.keymap == chorded && editorTextFocus && gitlens:activeFileStatus =~ /revision/ && isInDiffRightEditor" |
| 16885 | + "when": "config.gitlens.keymap == chorded && editorTextFocus && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && isInDiffRightEditor" |
16886 | 16886 | },
|
16887 | 16887 | {
|
16888 | 16888 | "command": "gitlens.diffWithWorking",
|
16889 | 16889 | "key": "shift+alt+.",
|
16890 |
| - "when": "config.gitlens.keymap == alternate && editorTextFocus && gitlens:activeFileStatus =~ /revision/" |
| 16890 | + "when": "config.gitlens.keymap == alternate && editorTextFocus && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
16891 | 16891 | },
|
16892 | 16892 | {
|
16893 | 16893 | "command": "gitlens.diffWithWorking",
|
16894 | 16894 | "key": "ctrl+shift+g shift+.",
|
16895 | 16895 | "mac": "cmd+alt+g shift+.",
|
16896 |
| - "when": "config.gitlens.keymap == chorded && editorTextFocus && gitlens:activeFileStatus =~ /revision/" |
| 16896 | + "when": "config.gitlens.keymap == chorded && editorTextFocus && gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
16897 | 16897 | },
|
16898 | 16898 | {
|
16899 | 16899 | "command": "gitlens.diffLineWithPrevious",
|
|
0 commit comments