|
7725 | 7725 | "title": "Reset Views Layout", |
7726 | 7726 | "category": "GitLens" |
7727 | 7727 | }, |
| 7728 | + { |
| 7729 | + "command": "gitlens.restore.file:views", |
| 7730 | + "title": "Restore Changes (Checkout)" |
| 7731 | + }, |
| 7732 | + { |
| 7733 | + "command": "gitlens.restorePrevious.file:views", |
| 7734 | + "title": "Restore Previous Changes" |
| 7735 | + }, |
7728 | 7736 | { |
7729 | 7737 | "command": "gitlens.revealCommitInView", |
7730 | 7738 | "title": "Reveal Commit in Side Bar", |
|
9629 | 9637 | "title": "Reset Current Branch to Tip...", |
9630 | 9638 | "enablement": "!operationInProgress" |
9631 | 9639 | }, |
9632 | | - { |
9633 | | - "command": "gitlens.views.restore", |
9634 | | - "title": "Restore (Checkout)", |
9635 | | - "icon": "$(gitlens-switch)" |
9636 | | - }, |
9637 | 9640 | { |
9638 | 9641 | "command": "gitlens.views.revealRepositoryInExplorer", |
9639 | 9642 | "title": "Reveal in File Explorer" |
|
12171 | 12174 | "command": "gitlens.regenerateMarkdownDocument", |
12172 | 12175 | "when": "false" |
12173 | 12176 | }, |
| 12177 | + { |
| 12178 | + "command": "gitlens.restore.file:views", |
| 12179 | + "when": "false" |
| 12180 | + }, |
| 12181 | + { |
| 12182 | + "command": "gitlens.restorePrevious.file:views", |
| 12183 | + "when": "false" |
| 12184 | + }, |
12174 | 12185 | { |
12175 | 12186 | "command": "gitlens.revealCommitInView", |
12176 | 12187 | "when": "resource in gitlens:tabs:blameable" |
|
13687 | 13698 | "command": "gitlens.views.resetToTip", |
13688 | 13699 | "when": "false" |
13689 | 13700 | }, |
13690 | | - { |
13691 | | - "command": "gitlens.views.restore", |
13692 | | - "when": "false" |
13693 | | - }, |
13694 | 13701 | { |
13695 | 13702 | "command": "gitlens.views.revealRepositoryInExplorer", |
13696 | 13703 | "when": "false" |
@@ -18093,10 +18100,15 @@ |
18093 | 18100 | "group": "1_gitlens_actions@2" |
18094 | 18101 | }, |
18095 | 18102 | { |
18096 | | - "command": "gitlens.views.restore", |
| 18103 | + "command": "gitlens.restore.file:views", |
18097 | 18104 | "when": "viewItem =~ /gitlens:file\\b(?=.*?\\b\\+stashed\\b)/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders", |
18098 | 18105 | "group": "1_gitlens_actions@3" |
18099 | 18106 | }, |
| 18107 | + { |
| 18108 | + "command": "gitlens.restorePrevious.file:views", |
| 18109 | + "when": "viewItem =~ /gitlens:file\\b(?=.*?\\b\\+stashed\\b)/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders", |
| 18110 | + "group": "1_gitlens_actions@4" |
| 18111 | + }, |
18100 | 18112 | { |
18101 | 18113 | "command": "gitlens.views.openChanges", |
18102 | 18114 | "when": "viewItem =~ /gitlens:file\\b/ && !listMultiSelection", |
@@ -18189,10 +18201,15 @@ |
18189 | 18201 | "group": "8_gitlens_actions@2" |
18190 | 18202 | }, |
18191 | 18203 | { |
18192 | | - "command": "gitlens.views.restore", |
| 18204 | + "command": "gitlens.restore.file:views", |
18193 | 18205 | "when": "viewItem =~ /gitlens:file\\b((?=.*?\\b\\+committed\\b)|:results\\b)/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders", |
18194 | 18206 | "group": "8_gitlens_actions@3" |
18195 | 18207 | }, |
| 18208 | + { |
| 18209 | + "command": "gitlens.restorePrevious.file:views", |
| 18210 | + "when": "viewItem =~ /gitlens:file\\b((?=.*?\\b\\+committed\\b)|:results\\b)/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders", |
| 18211 | + "group": "8_gitlens_actions@4" |
| 18212 | + }, |
18196 | 18213 | { |
18197 | 18214 | "command": "gitlens.views.stageDirectory", |
18198 | 18215 | "when": "viewItem =~ /gitlens:folder\\b(?=.*?\\b\\+working\\b)/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && !gitlens:hasVirtualFolders", |
|
0 commit comments