|
1249 | 1249 | "label": "Open Changes with Next Revision", |
1250 | 1250 | "icon": "$(gitlens-next-commit)", |
1251 | 1251 | "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/", |
1252 | | - "commandPalette": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/", |
| 1252 | + "commandPalette": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
| 1253 | + }, |
| 1254 | + "gitlens.diffWithNext:editor/title": { |
| 1255 | + "label": "Open Changes with Next Revision", |
| 1256 | + "icon": "$(gitlens-next-commit)", |
| 1257 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/", |
1253 | 1258 | "menus": { |
1254 | 1259 | "editor/title": [ |
1255 | 1260 | { |
|
1258 | 1263 | "order": 99 |
1259 | 1264 | } |
1260 | 1265 | ] |
1261 | | - }, |
| 1266 | + } |
| 1267 | + }, |
| 1268 | + "gitlens.diffWithNext:key": { |
| 1269 | + "label": "Open Changes with Next Revision", |
| 1270 | + "icon": "$(gitlens-next-commit)", |
| 1271 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/", |
1262 | 1272 | "keybindings": [ |
1263 | 1273 | { |
1264 | 1274 | "key": "alt+.", |
|
1274 | 1284 | "gitlens.diffWithPrevious": { |
1275 | 1285 | "label": "Open Changes with Previous Revision", |
1276 | 1286 | "icon": "$(gitlens-prev-commit)", |
1277 | | - "commandPalette": "resource in gitlens:tabs:tracked", |
| 1287 | + "commandPalette": "resource in gitlens:tabs:tracked" |
| 1288 | + }, |
| 1289 | + "gitlens.diffWithPrevious:editor": { |
| 1290 | + "label": "Open Changes with Previous Revision", |
| 1291 | + "icon": "$(gitlens-prev-commit)", |
1278 | 1292 | "menus": { |
1279 | | - "editor/title": [ |
1280 | | - { |
1281 | | - "when": "resource in gitlens:tabs:tracked && config.gitlens.menus.editorGroup.compare", |
1282 | | - "group": "navigation", |
1283 | | - "order": 97, |
1284 | | - "alt": "gitlens.diffWithRevision" |
1285 | | - } |
1286 | | - ], |
1287 | 1293 | "gitlens/editor/changes": [ |
1288 | 1294 | { |
1289 | 1295 | "group": "1_gitlens", |
|
1295 | 1301 | "group": "2_gitlens", |
1296 | 1302 | "order": 1 |
1297 | 1303 | } |
1298 | | - ], |
| 1304 | + ] |
| 1305 | + } |
| 1306 | + }, |
| 1307 | + "gitlens.diffWithPrevious:editor/title": { |
| 1308 | + "label": "Open Changes with Previous Revision", |
| 1309 | + "icon": "$(gitlens-prev-commit)", |
| 1310 | + "menus": { |
| 1311 | + "editor/title": [ |
| 1312 | + { |
| 1313 | + "when": "resource in gitlens:tabs:tracked && config.gitlens.menus.editorGroup.compare", |
| 1314 | + "group": "navigation", |
| 1315 | + "order": 97, |
| 1316 | + "alt": "gitlens.diffWithRevision" |
| 1317 | + } |
| 1318 | + ] |
| 1319 | + } |
| 1320 | + }, |
| 1321 | + "gitlens.diffWithPrevious:explorer": { |
| 1322 | + "label": "Open Changes with Previous Revision", |
| 1323 | + "icon": "$(gitlens-prev-commit)", |
| 1324 | + "menus": { |
1299 | 1325 | "gitlens/explorer/changes": [ |
1300 | 1326 | { |
1301 | 1327 | "when": "!explorerResourceIsFolder", |
1302 | 1328 | "group": "1_gitlens", |
1303 | 1329 | "order": 1 |
1304 | 1330 | } |
1305 | 1331 | ] |
1306 | | - }, |
| 1332 | + } |
| 1333 | + }, |
| 1334 | + "gitlens.diffWithPrevious:key": { |
| 1335 | + "label": "Open Changes with Previous Revision", |
| 1336 | + "icon": "$(gitlens-prev-commit)", |
1307 | 1337 | "keybindings": [ |
1308 | 1338 | { |
1309 | 1339 | "key": "alt+,", |
|
1396 | 1426 | "gitlens.diffWithWorking": { |
1397 | 1427 | "label": "Open Changes with Working File", |
1398 | 1428 | "icon": "$(gitlens-compare-ref-working)", |
1399 | | - "commandPalette": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/", |
| 1429 | + "commandPalette": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
| 1430 | + }, |
| 1431 | + "gitlens.diffWithWorking:editor": { |
| 1432 | + "label": "Open Changes with Working File", |
| 1433 | + "icon": "$(gitlens-compare-ref-working)", |
1400 | 1434 | "menus": { |
1401 | | - "editor/title": [ |
1402 | | - { |
1403 | | - "when": "resourceScheme =~ /^(gitlens|pr)$/ && gitlens:enabled", |
1404 | | - "group": "navigation", |
1405 | | - "order": -99 |
1406 | | - } |
1407 | | - ], |
1408 | 1435 | "gitlens/editor/changes": [ |
1409 | 1436 | { |
1410 | 1437 | "when": "resourceScheme == gitlens", |
|
1419 | 1446 | "order": 2 |
1420 | 1447 | } |
1421 | 1448 | ] |
1422 | | - }, |
| 1449 | + } |
| 1450 | + }, |
| 1451 | + "gitlens.diffWithWorking:editor/title": { |
| 1452 | + "label": "Open Changes with Working File", |
| 1453 | + "icon": "$(gitlens-compare-ref-working)", |
| 1454 | + "menus": { |
| 1455 | + "editor/title": [ |
| 1456 | + { |
| 1457 | + "when": "resourceScheme =~ /^(gitlens|pr)$/ && gitlens:enabled", |
| 1458 | + "group": "navigation", |
| 1459 | + "order": -99 |
| 1460 | + } |
| 1461 | + ] |
| 1462 | + } |
| 1463 | + }, |
| 1464 | + "gitlens.diffWithWorking:key": { |
| 1465 | + "label": "Open Changes with Working File", |
| 1466 | + "icon": "$(gitlens-compare-ref-working)", |
1423 | 1467 | "keybindings": [ |
1424 | 1468 | { |
1425 | 1469 | "key": "ctrl+shift+g shift+.", |
|
3519 | 3563 | "label": "Open File at Revision", |
3520 | 3564 | "icon": "$(gitlens-open-revision)", |
3521 | 3565 | "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/", |
3522 | | - "commandPalette": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && isInDiffEditor", |
| 3566 | + "commandPalette": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/ && isInDiffEditor" |
| 3567 | + }, |
| 3568 | + "gitlens.openRevisionFile:editor/title": { |
| 3569 | + "label": "Open File at Revision", |
| 3570 | + "icon": "$(gitlens-open-revision)", |
| 3571 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/", |
3523 | 3572 | "menus": { |
3524 | 3573 | "editor/title": [ |
3525 | 3574 | { |
|
3537 | 3586 | "gitlens.openWorkingFile": { |
3538 | 3587 | "label": "Open File", |
3539 | 3588 | "icon": "$(go-to-file)", |
3540 | | - "commandPalette": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/", |
| 3589 | + "commandPalette": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
| 3590 | + }, |
| 3591 | + "gitlens.openWorkingFile:editor/context": { |
| 3592 | + "label": "Open File", |
| 3593 | + "icon": "$(go-to-file)", |
3541 | 3594 | "menus": { |
3542 | 3595 | "editor/context": [ |
3543 | 3596 | { |
3544 | 3597 | "when": "resourceScheme == gitlens && editorTextFocus && config.gitlens.menus.editor.compare", |
3545 | 3598 | "group": "1_z_gitlens", |
3546 | 3599 | "order": 0 |
3547 | 3600 | } |
3548 | | - ], |
| 3601 | + ] |
| 3602 | + } |
| 3603 | + }, |
| 3604 | + "gitlens.openWorkingFile:editor/title": { |
| 3605 | + "label": "Open File", |
| 3606 | + "icon": "$(go-to-file)", |
| 3607 | + "menus": { |
3549 | 3608 | "editor/title": [ |
3550 | 3609 | { |
3551 | 3610 | "when": "resourceScheme == git && gitlens:enabled && !isInDiffEditor", |
|
4235 | 4294 | "label": "Show Revision Commit", |
4236 | 4295 | "icon": "$(gitlens-commit-horizontal)", |
4237 | 4296 | "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/", |
4238 | | - "commandPalette": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/", |
| 4297 | + "commandPalette": "gitlens:enabled && resourceScheme =~ /^(gitlens|git|pr)$/" |
| 4298 | + }, |
| 4299 | + "gitlens.showQuickRevisionDetails:editor": { |
| 4300 | + "label": "Show Revision Commit", |
| 4301 | + "icon": "$(gitlens-commit-horizontal)", |
| 4302 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/", |
4239 | 4303 | "menus": { |
4240 | | - "editor/title": [ |
4241 | | - { |
4242 | | - "when": "resource in gitlens:tabs:tracked && config.gitlens.menus.editorGroup.compare", |
4243 | | - "group": "navigation", |
4244 | | - "order": 98 |
4245 | | - } |
4246 | | - ], |
4247 | 4304 | "gitlens/editor/context/changes": [ |
4248 | 4305 | { |
4249 | 4306 | "when": "resourceScheme =~ /^(gitlens|git|pr)$/ && gitlens:enabled", |
|
4253 | 4310 | ] |
4254 | 4311 | } |
4255 | 4312 | }, |
| 4313 | + "gitlens.showQuickRevisionDetails:editor/title": { |
| 4314 | + "label": "Show Revision Commit", |
| 4315 | + "icon": "$(gitlens-commit-horizontal)", |
| 4316 | + "enablement": "gitlens:enabled && resourceScheme =~ /^(gitlens|pr)$/", |
| 4317 | + "menus": { |
| 4318 | + "editor/title": [ |
| 4319 | + { |
| 4320 | + "when": "resource in gitlens:tabs:tracked && config.gitlens.menus.editorGroup.compare", |
| 4321 | + "group": "navigation", |
| 4322 | + "order": 98 |
| 4323 | + } |
| 4324 | + ] |
| 4325 | + } |
| 4326 | + }, |
4256 | 4327 | "gitlens.showQuickStashList": { |
4257 | 4328 | "label": "Show Stashes", |
4258 | 4329 | "commandPalette": "gitlens:enabled" |
|
5308 | 5379 | "gitlens.toggleFileBlame": { |
5309 | 5380 | "label": "Toggle File Blame", |
5310 | 5381 | "icon": "$(gitlens-gitlens)", |
5311 | | - "commandPalette": "resource in gitlens:tabs:blameable || config.gitlens.blame.toggleMode == window", |
| 5382 | + "commandPalette": "resource in gitlens:tabs:blameable || config.gitlens.blame.toggleMode == window" |
| 5383 | + }, |
| 5384 | + "gitlens.toggleFileBlame:editor": { |
| 5385 | + "label": "Toggle File Blame", |
| 5386 | + "icon": "$(gitlens-gitlens)", |
5312 | 5387 | "menus": { |
5313 | | - "editor/title": [ |
5314 | | - { |
5315 | | - "when": "resource in gitlens:tabs:blameable && resource not in gitlens:tabs:annotated && config.gitlens.menus.editorGroup.blame && config.gitlens.fileAnnotations.command == blame", |
5316 | | - "group": "navigation", |
5317 | | - "order": 100, |
5318 | | - "alt": "gitlens.toggleFileHeatmap" |
5319 | | - } |
5320 | | - ], |
5321 | 5388 | "gitlens/editor/annotations": [ |
5322 | 5389 | { |
5323 | 5390 | "when": "resource in gitlens:tabs:blameable", |
5324 | 5391 | "group": "2_gitlens", |
5325 | 5392 | "order": 1 |
5326 | 5393 | } |
5327 | 5394 | ] |
5328 | | - }, |
| 5395 | + } |
| 5396 | + }, |
| 5397 | + "gitlens.toggleFileBlame:editor/title": { |
| 5398 | + "label": "Toggle File Blame", |
| 5399 | + "icon": "$(gitlens-gitlens)", |
| 5400 | + "menus": { |
| 5401 | + "editor/title": [ |
| 5402 | + { |
| 5403 | + "when": "resource in gitlens:tabs:blameable && resource not in gitlens:tabs:annotated && config.gitlens.menus.editorGroup.blame && config.gitlens.fileAnnotations.command == blame", |
| 5404 | + "group": "navigation", |
| 5405 | + "order": 100, |
| 5406 | + "alt": "gitlens.toggleFileHeatmap:editor/title" |
| 5407 | + } |
| 5408 | + ] |
| 5409 | + } |
| 5410 | + }, |
| 5411 | + "gitlens.toggleFileBlame:key": { |
| 5412 | + "label": "Toggle File Blame", |
| 5413 | + "icon": "$(gitlens-gitlens)", |
5329 | 5414 | "keybindings": [ |
5330 | 5415 | { |
5331 | 5416 | "key": "alt+b", |
|
5341 | 5426 | "gitlens.toggleFileChanges": { |
5342 | 5427 | "label": "Toggle File Changes", |
5343 | 5428 | "icon": "$(gitlens-gitlens)", |
5344 | | - "commandPalette": "(resource in gitlens:tabs:blameable || config.gitlens.changes.toggleMode == window) && !gitlens:hasVirtualFolders", |
| 5429 | + "commandPalette": "(resource in gitlens:tabs:blameable || config.gitlens.changes.toggleMode == window) && !gitlens:hasVirtualFolders" |
| 5430 | + }, |
| 5431 | + "gitlens.toggleFileChanges:editor": { |
| 5432 | + "label": "Toggle File Changes", |
| 5433 | + "icon": "$(gitlens-gitlens)", |
5345 | 5434 | "menus": { |
5346 | | - "editor/title": [ |
5347 | | - { |
5348 | | - "when": "resource in gitlens:tabs:blameable && resource not in gitlens:tabs:annotated && !gitlens:hasVirtualFolders && config.gitlens.menus.editorGroup.blame && config.gitlens.fileAnnotations.command == changes", |
5349 | | - "group": "navigation", |
5350 | | - "order": 100, |
5351 | | - "alt": "gitlens.toggleFileBlame" |
5352 | | - } |
5353 | | - ], |
5354 | 5435 | "gitlens/editor/annotations": [ |
5355 | 5436 | { |
5356 | 5437 | "when": "resource in gitlens:tabs:blameable && !gitlens:hasVirtualFolders", |
|
5360 | 5441 | ] |
5361 | 5442 | } |
5362 | 5443 | }, |
| 5444 | + "gitlens.toggleFileChanges:editor/title": { |
| 5445 | + "label": "Toggle File Changes", |
| 5446 | + "icon": "$(gitlens-gitlens)", |
| 5447 | + "menus": { |
| 5448 | + "editor/title": [ |
| 5449 | + { |
| 5450 | + "when": "resource in gitlens:tabs:blameable && resource not in gitlens:tabs:annotated && !gitlens:hasVirtualFolders && config.gitlens.menus.editorGroup.blame && config.gitlens.fileAnnotations.command == changes", |
| 5451 | + "group": "navigation", |
| 5452 | + "order": 100, |
| 5453 | + "alt": "gitlens.toggleFileBlame:editor/title" |
| 5454 | + } |
| 5455 | + ] |
| 5456 | + } |
| 5457 | + }, |
5363 | 5458 | "gitlens.toggleFileChangesOnly": { |
5364 | 5459 | "label": "Toggle File Changes", |
5365 | 5460 | "icon": "$(gitlens-gitlens)" |
5366 | 5461 | }, |
5367 | 5462 | "gitlens.toggleFileHeatmap": { |
5368 | 5463 | "label": "Toggle File Heatmap", |
5369 | 5464 | "icon": "$(gitlens-gitlens)", |
5370 | | - "commandPalette": "resource in gitlens:tabs:blameable || config.gitlens.heatmap.toggleMode == window", |
| 5465 | + "commandPalette": "resource in gitlens:tabs:blameable || config.gitlens.heatmap.toggleMode == window" |
| 5466 | + }, |
| 5467 | + "gitlens.toggleFileHeatmap:editor": { |
| 5468 | + "label": "Toggle File Heatmap", |
| 5469 | + "icon": "$(gitlens-gitlens)", |
| 5470 | + "menus": { |
| 5471 | + "gitlens/editor/annotations": [ |
| 5472 | + { |
| 5473 | + "when": "resource in gitlens:tabs:blameable && !isInDiffEditor", |
| 5474 | + "group": "2_gitlens", |
| 5475 | + "order": 2 |
| 5476 | + } |
| 5477 | + ] |
| 5478 | + } |
| 5479 | + }, |
| 5480 | + "gitlens.toggleFileHeatmap:editor/title": { |
| 5481 | + "label": "Toggle File Heatmap", |
| 5482 | + "icon": "$(gitlens-gitlens)", |
5371 | 5483 | "menus": { |
5372 | 5484 | "editor/title": [ |
5373 | 5485 | { |
|
5376 | 5488 | "order": 100, |
5377 | 5489 | "alt": "gitlens.toggleFileBlame" |
5378 | 5490 | } |
5379 | | - ], |
5380 | | - "gitlens/editor/annotations": [ |
5381 | | - { |
5382 | | - "when": "resource in gitlens:tabs:blameable && !isInDiffEditor", |
5383 | | - "group": "2_gitlens", |
5384 | | - "order": 2 |
5385 | | - } |
5386 | 5491 | ] |
5387 | 5492 | } |
5388 | 5493 | }, |
|
0 commit comments