|
472 | 472 | "history", |
473 | 473 | "repository" |
474 | 474 | ], |
475 | | - "description": "Specifies the starting view (mode) of the `GitLens` explorer\n `auto` - shows the last selected view, defaults to `repository`\n `history` - shows the commit history of the active file\n `repository` - shows a repository explorer", |
| 475 | + "description": "Specifies the starting view of the `GitLens` explorer\n `auto` - shows the last selected view, defaults to `repository`\n `history` - shows the commit history of the current file\n `repository` - shows a repository explorer", |
476 | 476 | "scope": "window" |
477 | 477 | }, |
478 | 478 | "gitlens.heatmap.toggleMode": { |
|
485 | 485 | "description": "Specifies how the gutter heatmap annotations will be toggled\n `file` - toggle each file individually\n `window` - toggle the window, i.e. all files at once", |
486 | 486 | "scope": "window" |
487 | 487 | }, |
| 488 | + "gitlens.historyExplorer.enabled": { |
| 489 | + "type": "boolean", |
| 490 | + "default": false, |
| 491 | + "description": "Specifies whether to show the current file history undocked in a `GitLens History` explorer", |
| 492 | + "scope": "window" |
| 493 | + }, |
488 | 494 | "gitlens.hovers.annotations.changes": { |
489 | 495 | "type": "boolean", |
490 | 496 | "default": true, |
|
1554 | 1560 | "title": "Delete Tag (via Terminal)", |
1555 | 1561 | "category": "GitLens" |
1556 | 1562 | }, |
| 1563 | + { |
| 1564 | + "command": "gitlens.gitExplorer.undockHistory", |
| 1565 | + "title": "Undock History from GitLens Explorer", |
| 1566 | + "category": "GitLens", |
| 1567 | + "icon": { |
| 1568 | + "dark": "images/dark/icon-undock.svg", |
| 1569 | + "light": "images/light/icon-undock.svg" |
| 1570 | + } |
| 1571 | + }, |
1557 | 1572 | { |
1558 | 1573 | "command": "gitlens.gitExplorer.refresh", |
1559 | 1574 | "title": "Refresh", |
|
1621 | 1636 | "light": "images/light/icon-repo.svg" |
1622 | 1637 | } |
1623 | 1638 | }, |
| 1639 | + { |
| 1640 | + "command": "gitlens.historyExplorer.close", |
| 1641 | + "title": "Close", |
| 1642 | + "category": "GitLens", |
| 1643 | + "icon": { |
| 1644 | + "dark": "images/dark/icon-close.svg", |
| 1645 | + "light": "images/light/icon-close.svg" |
| 1646 | + } |
| 1647 | + }, |
| 1648 | + { |
| 1649 | + "command": "gitlens.historyExplorer.dock", |
| 1650 | + "title": "Dock History to GitLens Explorer", |
| 1651 | + "category": "GitLens", |
| 1652 | + "icon": { |
| 1653 | + "dark": "images/dark/icon-dock.svg", |
| 1654 | + "light": "images/light/icon-dock.svg" |
| 1655 | + } |
| 1656 | + }, |
| 1657 | + { |
| 1658 | + "command": "gitlens.historyExplorer.refresh", |
| 1659 | + "title": "Refresh", |
| 1660 | + "category": "GitLens", |
| 1661 | + "icon": { |
| 1662 | + "dark": "images/dark/icon-refresh.svg", |
| 1663 | + "light": "images/light/icon-refresh.svg" |
| 1664 | + } |
| 1665 | + }, |
| 1666 | + { |
| 1667 | + "command": "gitlens.historyExplorer.refreshNode", |
| 1668 | + "title": "Refresh", |
| 1669 | + "category": "GitLens" |
| 1670 | + }, |
| 1671 | + { |
| 1672 | + "command": "gitlens.historyExplorer.setRenameFollowingOn", |
| 1673 | + "title": "Follow Renames", |
| 1674 | + "category": "GitLens" |
| 1675 | + }, |
| 1676 | + { |
| 1677 | + "command": "gitlens.historyExplorer.setRenameFollowingOff", |
| 1678 | + "title": "Don't Follow Renames", |
| 1679 | + "category": "GitLens" |
| 1680 | + }, |
1624 | 1681 | { |
1625 | 1682 | "command": "gitlens.resultsExplorer.clearResultsNode", |
1626 | 1683 | "title": "Clear Results", |
|
2044 | 2101 | }, |
2045 | 2102 | { |
2046 | 2103 | "command": "gitlens.gitExplorer.switchToHistoryView", |
2047 | | - "when": "gitlens:enabled && gitlens:gitExplorer:view == repository" |
| 2104 | + "when": "gitlens:enabled && !gitlens:historyExplorer && gitlens:gitExplorer:view == repository" |
2048 | 2105 | }, |
2049 | 2106 | { |
2050 | 2107 | "command": "gitlens.gitExplorer.switchToRepositoryView", |
2051 | | - "when": "gitlens:enabled && gitlens:gitExplorer:view == history" |
| 2108 | + "when": "gitlens:enabled && !gitlens:historyExplorer && gitlens:gitExplorer:view == history" |
| 2109 | + }, |
| 2110 | + { |
| 2111 | + "command": "gitlens.gitExplorer.undockHistory", |
| 2112 | + "when": "gitlens:enabled && !gitlens:historyExplorer" |
| 2113 | + }, |
| 2114 | + { |
| 2115 | + "command": "gitlens.historyExplorer.close", |
| 2116 | + "when": "false" |
| 2117 | + }, |
| 2118 | + { |
| 2119 | + "command": "gitlens.historyExplorer.dock", |
| 2120 | + "when": "gitlens:enabled && gitlens:historyExplorer" |
| 2121 | + }, |
| 2122 | + { |
| 2123 | + "command": "gitlens.historyExplorer.refresh", |
| 2124 | + "when": "false" |
| 2125 | + }, |
| 2126 | + { |
| 2127 | + "command": "gitlens.historyExplorer.refreshNode", |
| 2128 | + "when": "false" |
| 2129 | + }, |
| 2130 | + { |
| 2131 | + "command": "gitlens.historyExplorer.setRenameFollowingOn", |
| 2132 | + "when": "false" |
| 2133 | + }, |
| 2134 | + { |
| 2135 | + "command": "gitlens.historyExplorer.setRenameFollowingOff", |
| 2136 | + "when": "false" |
2052 | 2137 | }, |
2053 | 2138 | { |
2054 | 2139 | "command": "gitlens.resultsExplorer.clearResultsNode", |
|
2321 | 2406 | "group": "navigation@1" |
2322 | 2407 | }, |
2323 | 2408 | { |
2324 | | - "command": "gitlens.gitExplorer.switchToHistoryView", |
2325 | | - "when": "view == gitlens.gitExplorer && gitlens:gitExplorer:view == repository", |
| 2409 | + "command": "gitlens.gitExplorer.undockHistory", |
| 2410 | + "when": "view == gitlens.gitExplorer && gitlens:gitExplorer:view == history && !gitlens:historyExplorer", |
2326 | 2411 | "group": "navigation@2" |
2327 | 2412 | }, |
| 2413 | + { |
| 2414 | + "command": "gitlens.gitExplorer.switchToHistoryView", |
| 2415 | + "when": "view == gitlens.gitExplorer && !gitlens:historyExplorer && gitlens:gitExplorer:view == repository", |
| 2416 | + "group": "navigation@3" |
| 2417 | + }, |
2328 | 2418 | { |
2329 | 2419 | "command": "gitlens.gitExplorer.switchToRepositoryView", |
2330 | | - "when": "view == gitlens.gitExplorer && gitlens:gitExplorer:view == history", |
| 2420 | + "when": "view == gitlens.gitExplorer && !gitlens:historyExplorer && gitlens:gitExplorer:view == history", |
2331 | 2421 | "group": "navigation@3" |
2332 | 2422 | }, |
2333 | 2423 | { |
2334 | 2424 | "command": "gitlens.gitExplorer.refresh", |
2335 | 2425 | "when": "view == gitlens.gitExplorer", |
2336 | | - "group": "navigation@4" |
| 2426 | + "group": "navigation@8" |
2337 | 2427 | }, |
2338 | 2428 | { |
2339 | 2429 | "command": "gitlens.gitExplorer.setFilesLayoutToAuto", |
|
2370 | 2460 | "when": "view == gitlens.gitExplorer && gitlens:gitExplorer:view == history && config.gitlens.advanced.fileHistoryFollowsRenames", |
2371 | 2461 | "group": "2_gitlens_1" |
2372 | 2462 | }, |
| 2463 | + { |
| 2464 | + "command": "gitlens.historyExplorer.refresh", |
| 2465 | + "when": "view == gitlens.historyExplorer", |
| 2466 | + "group": "navigation@1" |
| 2467 | + }, |
| 2468 | + { |
| 2469 | + "command": "gitlens.historyExplorer.dock", |
| 2470 | + "when": "view == gitlens.historyExplorer && gitlens:gitExplorer", |
| 2471 | + "group": "navigation@9" |
| 2472 | + }, |
| 2473 | + { |
| 2474 | + "command": "gitlens.historyExplorer.close", |
| 2475 | + "when": "view == gitlens.historyExplorer && !gitlens:gitExplorer", |
| 2476 | + "group": "navigation@9" |
| 2477 | + }, |
| 2478 | + { |
| 2479 | + "command": "gitlens.historyExplorer.setRenameFollowingOn", |
| 2480 | + "when": "view == gitlens.historyExplorer && !config.gitlens.advanced.fileHistoryFollowsRenames", |
| 2481 | + "group": "1_gitlens" |
| 2482 | + }, |
| 2483 | + { |
| 2484 | + "command": "gitlens.historyExplorer.setRenameFollowingOff", |
| 2485 | + "when": "view == gitlens.historyExplorer && config.gitlens.advanced.fileHistoryFollowsRenames", |
| 2486 | + "group": "1_gitlens" |
| 2487 | + }, |
2373 | 2488 | { |
2374 | 2489 | "command": "gitlens.showCommitSearch", |
2375 | 2490 | "when": "view == gitlens.resultsExplorer", |
|
2694 | 2809 | }, |
2695 | 2810 | { |
2696 | 2811 | "command": "gitlens.gitExplorer.refreshNode", |
2697 | | - "when": "view =~ /gitlens\\.gitExplorer/ && viewItem =~ /gitlens:(?!file\\b)/", |
| 2812 | + "when": "view == gitlens.gitExplorer && viewItem =~ /gitlens:(?!file\\b)/", |
2698 | 2813 | "group": "9_gitlens@1" |
2699 | 2814 | }, |
2700 | 2815 | { |
2701 | 2816 | "command": "gitlens.resultsExplorer.refreshNode", |
2702 | | - "when": "view =~ /gitlens\\.resultsExplorer/ && viewItem =~ /gitlens:(?!file\\b)/", |
| 2817 | + "when": "view == gitlens.resultsExplorer && viewItem =~ /gitlens:(?!file\\b)/", |
| 2818 | + "group": "9_gitlens@1" |
| 2819 | + }, |
| 2820 | + { |
| 2821 | + "command": "gitlens.historyExplorer.refreshNode", |
| 2822 | + "when": "view == gitlens.historyExplorer && viewItem =~ /gitlens:(?!file\\b)/", |
2703 | 2823 | "group": "9_gitlens@1" |
2704 | 2824 | } |
2705 | 2825 | ] |
|
2886 | 3006 | "name": "GitLens", |
2887 | 3007 | "when": "gitlens:enabled && gitlens:gitExplorer" |
2888 | 3008 | }, |
| 3009 | + { |
| 3010 | + "id": "gitlens.historyExplorer", |
| 3011 | + "name": "GitLens History", |
| 3012 | + "when": "gitlens:enabled && gitlens:historyExplorer" |
| 3013 | + }, |
2889 | 3014 | { |
2890 | 3015 | "id": "gitlens.resultsExplorer", |
2891 | 3016 | "name": "GitLens Results", |
|
0 commit comments