|
7232 | 7232 | "alt": "gitlens.copyRemoteCommitUrl" |
7233 | 7233 | }, |
7234 | 7234 | { |
7235 | | - "command": "gitlens.showCommitInView", |
7236 | | - "when": "viewItem =~ /gitlens:commit\\b/", |
| 7235 | + "command": "gitlens.revealCommitInView", |
| 7236 | + "when": "view =~ /gitlens\\.views\\.(?!commits|branches\\b)/ && viewItem =~ /gitlens:commit\\b/", |
7237 | 7237 | "group": "3_gitlens_explore@2" |
7238 | 7238 | }, |
7239 | 7239 | { |
7240 | | - "command": "gitlens.revealCommitInView", |
7241 | | - "when": "view =~ /gitlens\\.views\\.(?!commits|branches\\b)/ && viewItem =~ /gitlens:commit\\b/", |
| 7240 | + "command": "gitlens.showCommitInView", |
| 7241 | + "when": "viewItem =~ /gitlens:commit\\b/", |
7242 | 7242 | "group": "3_gitlens_explore@3" |
7243 | 7243 | }, |
7244 | 7244 | { |
|
7300 | 7300 | "group": "inline@99", |
7301 | 7301 | "alt": "gitlens.copyRemoteFileUrlToClipboard" |
7302 | 7302 | }, |
| 7303 | + { |
| 7304 | + "submenu": "gitlens/commit/file/commit", |
| 7305 | + "when": "!gitlens:readonly && view =~ /^gitlens\\.views\\.(fileHistory|lineHistory)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/", |
| 7306 | + "group": "1_gitlens_actions@0" |
| 7307 | + }, |
7303 | 7308 | { |
7304 | 7309 | "command": "gitlens.views.stageFile", |
7305 | 7310 | "when": "!gitlens:readonly && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+unstaged\\b)/", |
|
7347 | 7352 | "group": "2_gitlens_quickopen@6" |
7348 | 7353 | }, |
7349 | 7354 | { |
7350 | | - "submenu": "gitlens/commit/file/commit", |
7351 | | - "when": "!gitlens:readonly && view =~ /^gitlens\\.views\\.(fileHistory|lineHistory)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/", |
7352 | | - "group": "3_gitlens_explore@0" |
| 7355 | + "command": "gitlens.openCommitOnRemote", |
| 7356 | + "when": "view =~ /^gitlens\\.views\\.(fileHistory|lineHistory)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/ && gitlens:hasRemotes", |
| 7357 | + "group": "3_gitlens_explore@0", |
| 7358 | + "alt": "gitlens.copyRemoteCommitUrl" |
| 7359 | + }, |
| 7360 | + { |
| 7361 | + "command": "gitlens.revealCommitInView", |
| 7362 | + "when": "view =~ /gitlens\\.views\\.(fileHistory|lineHistory\\b)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/", |
| 7363 | + "group": "3_gitlens_explore@2" |
| 7364 | + }, |
| 7365 | + { |
| 7366 | + "command": "gitlens.showCommitInView", |
| 7367 | + "when": "view =~ /gitlens\\.views\\.(fileHistory|lineHistory\\b)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/", |
| 7368 | + "group": "3_gitlens_explore@3" |
7353 | 7369 | }, |
7354 | 7370 | { |
7355 | 7371 | "command": "gitlens.views.applyChanges", |
|
7478 | 7494 | }, |
7479 | 7495 | { |
7480 | 7496 | "submenu": "gitlens/commit/browse", |
7481 | | - "when": "viewItem =~ /gitlens:(branch|commit|stash|tag)\\b/", |
| 7497 | + "when": "viewItem =~ /gitlens:(branch|commit|file\\b(?=.*?\\b\\+committed\\b)|stash|tag)\\b/", |
7482 | 7498 | "group": "3_gitlens_explore@1" |
7483 | 7499 | }, |
7484 | 7500 | { |
|
8007 | 8023 | "command": "gitlens.views.createTag", |
8008 | 8024 | "when": "!gitlens:readonly && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/", |
8009 | 8025 | "group": "1_gitlens_actions_1@2" |
8010 | | - }, |
8011 | | - { |
8012 | | - "command": "gitlens.openCommitOnRemote", |
8013 | | - "when": "viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/ && gitlens:hasRemotes", |
8014 | | - "group": "3_gitlens_explore@0", |
8015 | | - "alt": "gitlens.copyRemoteCommitUrl" |
8016 | | - }, |
8017 | | - { |
8018 | | - "submenu": "gitlens/commit/browse", |
8019 | | - "when": "viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/", |
8020 | | - "group": "3_gitlens_explore@1" |
8021 | | - }, |
8022 | | - { |
8023 | | - "command": "gitlens.showCommitInView", |
8024 | | - "when": "view =~ /gitlens\\.views\\.(fileHistory|lineHistory\\b)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/", |
8025 | | - "group": "3_gitlens_explore@3" |
8026 | | - }, |
8027 | | - { |
8028 | | - "command": "gitlens.revealCommitInView", |
8029 | | - "when": "view =~ /gitlens\\.views\\.(fileHistory|lineHistory\\b)/ && viewItem =~ /gitlens:file\\b(?=.*?\\b\\+committed\\b)/", |
8030 | | - "group": "3_gitlens_explore@4" |
8031 | 8026 | } |
8032 | 8027 | ], |
8033 | 8028 | "gitlens/commit/file/openChanges": [ |
|
0 commit comments