|
126 | 126 | "enablement": "electron-build-tools:canChangeConfig"
|
127 | 127 | },
|
128 | 128 | {
|
129 |
| - "command": "electron-build-tools.openPatch", |
| 129 | + "command": "electron-build-tools.patches.copyPath", |
| 130 | + "title": "Copy Path", |
| 131 | + "category": "Electron Build Tools" |
| 132 | + }, |
| 133 | + { |
| 134 | + "command": "electron-build-tools.patches.copyRelativePath", |
| 135 | + "title": "Copy Relative Path", |
| 136 | + "category": "Electron Build Tools" |
| 137 | + }, |
| 138 | + { |
| 139 | + "command": "electron-build-tools.patches.open", |
130 | 140 | "title": "Open Patch",
|
131 | 141 | "category": "Electron Build Tools"
|
132 | 142 | },
|
133 | 143 | {
|
134 |
| - "command": "electron-build-tools.refreshPatches", |
| 144 | + "command": "electron-build-tools.patches.refresh", |
135 | 145 | "title": "Refresh Patches",
|
136 | 146 | "category": "Electron Build Tools",
|
137 | 147 | "icon": "$(refresh)",
|
138 | 148 | "enablement": "electron-build-tools:canRefreshPatches"
|
139 | 149 | },
|
| 150 | + { |
| 151 | + "command": "electron-build-tools.patches.search", |
| 152 | + "title": "Search Patches", |
| 153 | + "category": "Electron Build Tools", |
| 154 | + "icon": "$(search)", |
| 155 | + "enablement": "electron-build-tools:active" |
| 156 | + }, |
140 | 157 | {
|
141 | 158 | "command": "electron-build-tools.removeConfig",
|
142 | 159 | "title": "Remove Config",
|
|
180 | 197 | "icon": "$(search)",
|
181 | 198 | "enablement": "electron-build-tools:active"
|
182 | 199 | },
|
183 |
| - { |
184 |
| - "command": "electron-build-tools.searchPatches", |
185 |
| - "title": "Search Patches", |
186 |
| - "category": "Electron Build Tools", |
187 |
| - "icon": "$(search)", |
188 |
| - "enablement": "electron-build-tools:active" |
189 |
| - }, |
190 | 200 | {
|
191 | 201 | "command": "electron-build-tools.showPatchesDocs",
|
192 | 202 | "title": "Show Patches Documentation",
|
|
680 | 690 | "when": "electron-build-tools:build-tools-installed"
|
681 | 691 | },
|
682 | 692 | {
|
683 |
| - "command": "electron-build-tools.openPatch", |
| 693 | + "command": "electron-build-tools.patches.copyPath", |
684 | 694 | "when": "false"
|
685 | 695 | },
|
686 | 696 | {
|
687 |
| - "command": "electron-build-tools.removeConfig", |
| 697 | + "command": "electron-build-tools.patches.copyRelativePath", |
| 698 | + "when": "false" |
| 699 | + }, |
| 700 | + { |
| 701 | + "command": "electron-build-tools.patches.open", |
688 | 702 | "when": "false"
|
689 | 703 | },
|
690 | 704 | {
|
691 |
| - "command": "electron-build-tools.refreshPatches", |
| 705 | + "command": "electron-build-tools.patches.refresh", |
| 706 | + "when": "false" |
| 707 | + }, |
| 708 | + { |
| 709 | + "command": "electron-build-tools.patches.search", |
| 710 | + "when": "electron-build-tools:active" |
| 711 | + }, |
| 712 | + { |
| 713 | + "command": "electron-build-tools.removeConfig", |
692 | 714 | "when": "false"
|
693 | 715 | },
|
694 | 716 | {
|
|
715 | 737 | "command": "electron-build-tools.searchDocs",
|
716 | 738 | "when": "electron-build-tools:active"
|
717 | 739 | },
|
718 |
| - { |
719 |
| - "command": "electron-build-tools.searchPatches", |
720 |
| - "when": "electron-build-tools:active" |
721 |
| - }, |
722 | 740 | {
|
723 | 741 | "command": "electron-build-tools.showPatchesDocs",
|
724 | 742 | "when": "false"
|
|
789 | 807 | ],
|
790 | 808 | "view/item/context": [
|
791 | 809 | {
|
792 |
| - "command": "electron-build-tools.openPatch", |
793 |
| - "when": "view == electron-build-tools:patches && viewItem == patch" |
| 810 | + "command": "electron-build-tools.patches.copyPath", |
| 811 | + "when": "view == electron-build-tools:patches && viewItem == patch", |
| 812 | + "group": "6_copypath" |
794 | 813 | },
|
795 | 814 | {
|
796 |
| - "command": "electron-build-tools.refreshPatches", |
| 815 | + "command": "electron-build-tools.patches.copyRelativePath", |
| 816 | + "when": "view == electron-build-tools:patches && viewItem == patch", |
| 817 | + "group": "6_copypath" |
| 818 | + }, |
| 819 | + { |
| 820 | + "command": "electron-build-tools.patches.open", |
| 821 | + "when": "view == electron-build-tools:patches && viewItem == patch", |
| 822 | + "group": "navigation" |
| 823 | + }, |
| 824 | + { |
| 825 | + "command": "electron-build-tools.patches.refresh", |
797 | 826 | "when": "view == electron-build-tools:patches && viewItem == repo",
|
798 | 827 | "group": "inline"
|
799 | 828 | },
|
|
841 | 870 | "group": "navigation"
|
842 | 871 | },
|
843 | 872 | {
|
844 |
| - "command": "electron-build-tools.refreshPatches", |
| 873 | + "command": "electron-build-tools.patches.refresh", |
845 | 874 | "when": "view == electron-build-tools:patches",
|
846 | 875 | "group": "navigation"
|
847 | 876 | },
|
848 | 877 | {
|
849 |
| - "command": "electron-build-tools.searchDocs", |
850 |
| - "when": "view == electron-build-tools:docs", |
| 878 | + "command": "electron-build-tools.patches.search", |
| 879 | + "when": "view == electron-build-tools:patches", |
851 | 880 | "group": "navigation"
|
852 | 881 | },
|
853 | 882 | {
|
854 |
| - "command": "electron-build-tools.searchPatches", |
855 |
| - "when": "view == electron-build-tools:patches", |
| 883 | + "command": "electron-build-tools.searchDocs", |
| 884 | + "when": "view == electron-build-tools:docs", |
856 | 885 | "group": "navigation"
|
857 | 886 | },
|
858 | 887 | {
|
|
0 commit comments