|
36 | 36 | ] |
37 | 37 | } |
38 | 38 | }, |
| 39 | + "gitlens.ai.explainBranch:graph": { |
| 40 | + "label": "Explain Branch (Preview)", |
| 41 | + "menus": { |
| 42 | + "webview/context": [ |
| 43 | + { |
| 44 | + "when": "webviewItem =~ /gitlens:branch\\b/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
| 45 | + "group": "1_gitlens_actions_4", |
| 46 | + "order": 100 |
| 47 | + } |
| 48 | + ] |
| 49 | + } |
| 50 | + }, |
39 | 51 | "gitlens.ai.explainCommit": { |
40 | 52 | "label": "Explain Commit...", |
41 | 53 | "commandPalette": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
|
49 | 61 | ] |
50 | 62 | } |
51 | 63 | }, |
| 64 | + "gitlens.ai.explainCommit:graph": { |
| 65 | + "label": "Explain Commit", |
| 66 | + "menus": { |
| 67 | + "webview/context": [ |
| 68 | + { |
| 69 | + "when": "webviewItem =~ /gitlens:commit\\b/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
| 70 | + "group": "1_gitlens_actions_3", |
| 71 | + "order": 1 |
| 72 | + } |
| 73 | + ] |
| 74 | + } |
| 75 | + }, |
52 | 76 | "gitlens.ai.explainStash": { |
53 | 77 | "label": "Explain Stash (Preview)...", |
54 | 78 | "commandPalette": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
|
62 | 86 | ] |
63 | 87 | } |
64 | 88 | }, |
| 89 | + "gitlens.ai.explainStash:graph": { |
| 90 | + "label": "Explain Stash (Preview)", |
| 91 | + "menus": { |
| 92 | + "webview/context": [ |
| 93 | + { |
| 94 | + "when": "webviewItem =~ /gitlens:stash\\b/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
| 95 | + "group": "1_gitlens_actions_3", |
| 96 | + "order": 1 |
| 97 | + } |
| 98 | + ] |
| 99 | + } |
| 100 | + }, |
65 | 101 | "gitlens.ai.explainWip": { |
66 | 102 | "label": "Explain Working Changes (Preview)...", |
67 | 103 | "commandPalette": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled", |
|
75 | 111 | ] |
76 | 112 | } |
77 | 113 | }, |
| 114 | + "gitlens.ai.explainWip:graph": { |
| 115 | + "label": "Explain Working Changes (Preview)", |
| 116 | + "menus": { |
| 117 | + "webview/context": [ |
| 118 | + { |
| 119 | + "when": "webviewItem =~ /gitlens:wip\\b/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
| 120 | + "group": "1_gitlens_actions_3", |
| 121 | + "order": 1 |
| 122 | + } |
| 123 | + ] |
| 124 | + } |
| 125 | + }, |
78 | 126 | "gitlens.ai.generateChangelog": { |
79 | 127 | "label": "Generate Changelog (Preview)...", |
80 | 128 | "commandPalette": "gitlens:enabled && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled" |
81 | 129 | }, |
| 130 | + "gitlens.ai.generateChangelog:views": { |
| 131 | + "label": "Generate Changelog (Preview)", |
| 132 | + "icon": "$(sparkle)", |
| 133 | + "menus": { |
| 134 | + "view/item/context": [ |
| 135 | + { |
| 136 | + "when": "viewItem =~ /gitlens:compare:results:commits\\b/ && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
| 137 | + "group": "inline", |
| 138 | + "order": 98 |
| 139 | + }, |
| 140 | + { |
| 141 | + "when": "viewItem =~ /gitlens:compare:results:commits\\b/ && !listMultiSelection && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
| 142 | + "group": "4_gitlens_actions", |
| 143 | + "order": 2 |
| 144 | + } |
| 145 | + ] |
| 146 | + } |
| 147 | + }, |
| 148 | + "gitlens.ai.generateChangelogFrom:graph": { |
| 149 | + "label": "Generate Changelog (Preview)...", |
| 150 | + "icon": "$(sparkle)", |
| 151 | + "menus": { |
| 152 | + "webview/context": [ |
| 153 | + { |
| 154 | + "when": "webviewItem =~ /gitlens:(branch|tag)\\b/ && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
| 155 | + "group": "1_gitlens_actions_3", |
| 156 | + "order": 100 |
| 157 | + } |
| 158 | + ] |
| 159 | + } |
| 160 | + }, |
| 161 | + "gitlens.ai.generateChangelogFrom:views": { |
| 162 | + "label": "Generate Changelog (Preview)...", |
| 163 | + "icon": "$(sparkle)", |
| 164 | + "menus": { |
| 165 | + "view/item/context": [ |
| 166 | + { |
| 167 | + "when": "viewItem =~ /gitlens:(branch|tag)\\b/ && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
| 168 | + "group": "1_gitlens_actions_3", |
| 169 | + "order": 100 |
| 170 | + } |
| 171 | + ] |
| 172 | + } |
| 173 | + }, |
82 | 174 | "gitlens.ai.generateCommitMessage": { |
83 | 175 | "label": "Generate Commit Message", |
84 | 176 | "commandPalette": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled" |
85 | 177 | }, |
| 178 | + "gitlens.ai.generateCommitMessage:graph": { |
| 179 | + "label": "Generate Commit Message", |
| 180 | + "menus": { |
| 181 | + "webview/context": [ |
| 182 | + { |
| 183 | + "when": "webviewItem == gitlens:wip && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
| 184 | + "group": "1_gitlens", |
| 185 | + "order": 2 |
| 186 | + } |
| 187 | + ] |
| 188 | + } |
| 189 | + }, |
| 190 | + "gitlens.ai.generateCommitMessage:scm": { |
| 191 | + "label": "Generate Commit Message with GitLens", |
| 192 | + "icon": "$(sparkle)", |
| 193 | + "menus": { |
| 194 | + "git.commit": [ |
| 195 | + { |
| 196 | + "when": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled && config.gitlens.menus.scmRepository.generateCommitMessage", |
| 197 | + "group": "4_gitlens", |
| 198 | + "order": 2 |
| 199 | + } |
| 200 | + ], |
| 201 | + "scm/title": [ |
| 202 | + { |
| 203 | + "when": "scmProvider == git && gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled && config.gitlens.menus.scmRepositoryInline.generateCommitMessage", |
| 204 | + "group": "navigation", |
| 205 | + "order": -3 |
| 206 | + }, |
| 207 | + { |
| 208 | + "when": "scmProvider == git && gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled && config.gitlens.menus.scmRepository.generateCommitMessage", |
| 209 | + "group": "2_gitlens", |
| 210 | + "order": 2 |
| 211 | + } |
| 212 | + ] |
| 213 | + } |
| 214 | + }, |
| 215 | + "gitlens.ai.switchProvider": { |
| 216 | + "label": "Switch AI Provider/Model", |
| 217 | + "commandPalette": "gitlens:enabled && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled" |
| 218 | + }, |
86 | 219 | "gitlens.annotations.nextChange": { |
87 | 220 | "label": "Next Change", |
88 | 221 | "icon": "$(arrow-down)" |
|
1387 | 1520 | ] |
1388 | 1521 | } |
1389 | 1522 | }, |
1390 | | - "gitlens.graph.ai.explainBranch": { |
1391 | | - "label": "Explain Branch (Preview)", |
1392 | | - "menus": { |
1393 | | - "webview/context": [ |
1394 | | - { |
1395 | | - "when": "webviewItem =~ /gitlens:branch\\b/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
1396 | | - "group": "1_gitlens_actions_4", |
1397 | | - "order": 100 |
1398 | | - } |
1399 | | - ] |
1400 | | - } |
1401 | | - }, |
1402 | | - "gitlens.graph.ai.explainCommit": { |
1403 | | - "label": "Explain Commit", |
1404 | | - "menus": { |
1405 | | - "webview/context": [ |
1406 | | - { |
1407 | | - "when": "webviewItem =~ /gitlens:commit\\b/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
1408 | | - "group": "1_gitlens_actions_3", |
1409 | | - "order": 1 |
1410 | | - } |
1411 | | - ] |
1412 | | - } |
1413 | | - }, |
1414 | | - "gitlens.graph.ai.explainStash": { |
1415 | | - "label": "Explain Stash (Preview)", |
1416 | | - "menus": { |
1417 | | - "webview/context": [ |
1418 | | - { |
1419 | | - "when": "webviewItem =~ /gitlens:stash\\b/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
1420 | | - "group": "1_gitlens_actions_3", |
1421 | | - "order": 1 |
1422 | | - } |
1423 | | - ] |
1424 | | - } |
1425 | | - }, |
1426 | | - "gitlens.graph.ai.explainWip": { |
1427 | | - "label": "Explain Working Changes (Preview)", |
1428 | | - "menus": { |
1429 | | - "webview/context": [ |
1430 | | - { |
1431 | | - "when": "webviewItem =~ /gitlens:wip\\b/ && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
1432 | | - "group": "1_gitlens_actions_3", |
1433 | | - "order": 1 |
1434 | | - } |
1435 | | - ] |
1436 | | - } |
1437 | | - }, |
1438 | | - "gitlens.graph.ai.generateChangelogFrom": { |
1439 | | - "label": "Generate Changelog (Preview)...", |
1440 | | - "icon": "$(sparkle)", |
1441 | | - "menus": { |
1442 | | - "webview/context": [ |
1443 | | - { |
1444 | | - "when": "webviewItem =~ /gitlens:(branch|tag)\\b/ && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
1445 | | - "group": "1_gitlens_actions_3", |
1446 | | - "order": 100 |
1447 | | - } |
1448 | | - ] |
1449 | | - } |
1450 | | - }, |
1451 | | - "gitlens.graph.ai.generateCommitMessage": { |
1452 | | - "label": "Generate Commit Message", |
1453 | | - "menus": { |
1454 | | - "webview/context": [ |
1455 | | - { |
1456 | | - "when": "webviewItem == gitlens:wip && !listMultiSelection && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
1457 | | - "group": "1_gitlens", |
1458 | | - "order": 2 |
1459 | | - } |
1460 | | - ] |
1461 | | - } |
1462 | | - }, |
1463 | 1523 | "gitlens.graph.associateIssueWithBranch": { |
1464 | 1524 | "label": "Associate Issue with Branch...", |
1465 | 1525 | "enablement": "!operationInProgress", |
|
3535 | 3595 | ] |
3536 | 3596 | } |
3537 | 3597 | }, |
3538 | | - "gitlens.scm.ai.generateCommitMessage": { |
3539 | | - "label": "Generate Commit Message with GitLens", |
3540 | | - "icon": "$(sparkle)", |
3541 | | - "menus": { |
3542 | | - "git.commit": [ |
3543 | | - { |
3544 | | - "when": "gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled && config.gitlens.menus.scmRepository.generateCommitMessage", |
3545 | | - "group": "4_gitlens", |
3546 | | - "order": 2 |
3547 | | - } |
3548 | | - ], |
3549 | | - "scm/title": [ |
3550 | | - { |
3551 | | - "when": "scmProvider == git && gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled && config.gitlens.menus.scmRepositoryInline.generateCommitMessage", |
3552 | | - "group": "navigation", |
3553 | | - "order": -3 |
3554 | | - }, |
3555 | | - { |
3556 | | - "when": "scmProvider == git && gitlens:enabled && !gitlens:readonly && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled && config.gitlens.menus.scmRepository.generateCommitMessage", |
3557 | | - "group": "2_gitlens", |
3558 | | - "order": 2 |
3559 | | - } |
3560 | | - ] |
3561 | | - } |
3562 | | - }, |
3563 | 3598 | "gitlens.shareAsCloudPatch": { |
3564 | 3599 | "label": "Share as Cloud Patch...", |
3565 | 3600 | "commandPalette": "gitlens:enabled && gitlens:gk:organization:drafts:enabled && config.gitlens.cloudPatches.enabled", |
|
4462 | 4497 | ] |
4463 | 4498 | } |
4464 | 4499 | }, |
4465 | | - "gitlens.switchAIModel": { |
4466 | | - "label": "Switch AI Provider/Model", |
4467 | | - "commandPalette": "gitlens:enabled && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled" |
4468 | | - }, |
4469 | 4500 | "gitlens.switchMode": { |
4470 | 4501 | "label": "Switch Mode", |
4471 | 4502 | "commandPalette": "gitlens:enabled" |
|
4772 | 4803 | ] |
4773 | 4804 | } |
4774 | 4805 | }, |
4775 | | - "gitlens.views.ai.generateChangelog": { |
4776 | | - "label": "Generate Changelog (Preview)", |
4777 | | - "icon": "$(sparkle)", |
4778 | | - "menus": { |
4779 | | - "view/item/context": [ |
4780 | | - { |
4781 | | - "when": "viewItem =~ /gitlens:compare:results:commits\\b/ && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
4782 | | - "group": "inline", |
4783 | | - "order": 98 |
4784 | | - }, |
4785 | | - { |
4786 | | - "when": "viewItem =~ /gitlens:compare:results:commits\\b/ && !listMultiSelection && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
4787 | | - "group": "4_gitlens_actions", |
4788 | | - "order": 2 |
4789 | | - } |
4790 | | - ] |
4791 | | - } |
4792 | | - }, |
4793 | | - "gitlens.views.ai.generateChangelogFrom": { |
4794 | | - "label": "Generate Changelog (Preview)...", |
4795 | | - "icon": "$(sparkle)", |
4796 | | - "menus": { |
4797 | | - "view/item/context": [ |
4798 | | - { |
4799 | | - "when": "viewItem =~ /gitlens:(branch|tag)\\b/ && !gitlens:untrusted && gitlens:gk:organization:ai:enabled && config.gitlens.ai.enabled", |
4800 | | - "group": "1_gitlens_actions_3", |
4801 | | - "order": 100 |
4802 | | - } |
4803 | | - ] |
4804 | | - } |
4805 | | - }, |
4806 | 4806 | "gitlens.views.applyChanges": { |
4807 | 4807 | "label": "Apply Changes", |
4808 | 4808 | "enablement": "!operationInProgress", |
|
0 commit comments