@codingame/monaco-vscode-api 1.78.5 → 1.78.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node_modules/tslib/tslib.es6.js +2 -2
- package/dist/vscode/vs/platform/extensionManagement/common/extensionManagement.js +1 -2
- package/dist/vscode/vs/platform/extensionManagement/common/implicitActivationEvents.js +1 -1
- package/dist/vscode/vs/platform/files/common/fileService.js +3 -3
- package/dist/vscode/vs/platform/files/common/inMemoryFilesystemProvider.js +1 -1
- package/dist/vscode/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/dist/vscode/vs/platform/workspaces/common/workspaces.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDebugService.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDiagnostics.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocuments.js +4 -4
- package/dist/vscode/vs/workbench/api/browser/mainThreadDocumentsAndEditors.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadFileSystem.js +1 -1
- package/dist/vscode/vs/workbench/api/browser/mainThreadQuickOpen.js +1 -1
- package/dist/vscode/vs/workbench/api/common/cache.js +1 -1
- package/dist/vscode/vs/workbench/api/common/configurationExtensionPoint.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostApiDeprecationService.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostCommands.js +2 -2
- package/dist/vscode/vs/workbench/api/common/extHostDebugService.js +2 -2
- package/dist/vscode/vs/workbench/api/common/extHostDecorations.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostDiagnostics.js +3 -3
- package/dist/vscode/vs/workbench/api/common/extHostDocumentsAndEditors.js +3 -3
- package/dist/vscode/vs/workbench/api/common/extHostExtensionActivator.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostExtensionService.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostFileSystem.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostFileSystemInfo.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostLanguages.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostLocalizationService.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostQuickOpen.js +2 -2
- package/dist/vscode/vs/workbench/api/common/extHostTextEditor.js +1 -1
- package/dist/vscode/vs/workbench/api/common/extHostTypeConverters.js +2 -2
- package/dist/vscode/vs/workbench/api/common/extHostTypes.js +4 -4
- package/dist/vscode/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editor.contribution.js +6 -795
- package/dist/vscode/vs/workbench/browser/parts/editor/editorActions.js +110 -1487
- package/dist/vscode/vs/workbench/browser/parts/editor/editorPane.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editorQuickAccess.js +1 -1
- package/dist/vscode/vs/workbench/browser/parts/editor/editorWithViewState.js +1 -1
- package/dist/vscode/vs/workbench/browser/quickaccess.js +2 -4
- package/dist/vscode/vs/workbench/common/contextkeys.js +1 -30
- package/dist/vscode/vs/workbench/common/editor.js +1 -1
- package/dist/vscode/vs/workbench/common/resources.js +3 -3
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugAdapterManager.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugConfigurationManager.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -5
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugSession.js +2 -2
- package/dist/vscode/vs/workbench/contrib/debug/browser/debugToolBar.js +1 -1
- package/dist/vscode/vs/workbench/contrib/debug/common/debugModel.js +3 -3
- package/dist/vscode/vs/workbench/contrib/debug/common/debugUtils.js +1 -1
- package/dist/vscode/vs/workbench/contrib/files/common/explorerFileNestingTrie.js +1 -1
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsFile.js +1 -1
- package/dist/vscode/vs/workbench/contrib/snippets/browser/snippetsService.js +5 -3
- package/dist/vscode/vs/workbench/contrib/testing/common/testItemCollection.js +1 -1
- package/dist/vscode/vs/workbench/services/configuration/browser/configurationService.js +1 -1
- package/dist/vscode/vs/workbench/services/configurationResolver/browser/baseConfigurationResolverService.js +1 -1
- package/dist/vscode/vs/workbench/services/configurationResolver/common/variableResolver.js +1 -1
- package/dist/vscode/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +10 -10
- package/dist/vscode/vs/workbench/services/extensions/common/extensionsRegistry.js +3 -3
- package/dist/vscode/vs/workbench/services/keybinding/browser/keybindingService.js +3 -3
- package/dist/vscode/vs/workbench/services/keybinding/browser/unboundCommands.js +1 -1
- package/dist/vscode/vs/workbench/services/languageDetection/common/languageDetectionWorkerService.js +1 -2
- package/dist/vscode/vs/workbench/services/layout/browser/layoutService.js +1 -9
- package/dist/vscode/vs/workbench/services/output/common/output.js +1 -1
- package/dist/vscode/vs/workbench/services/preferences/common/preferencesModels.js +1 -1
- package/dist/vscode/vs/workbench/services/search/common/searchService.js +7 -7
- package/dist/vscode/vs/workbench/services/textMate/browser/textMateTokenizationFeatureImpl.js +2 -2
- package/dist/vscode/vs/workbench/services/textMate/browser/workerHost/textMateWorkerHost.js +1 -1
- package/dist/vscode/vs/workbench/services/textMate/common/TMGrammarFactory.js +1 -1
- package/dist/vscode/vs/workbench/services/textfile/common/textFileEditorModelManager.js +4 -4
- package/dist/vscode/vs/workbench/services/textmodelResolver/common/textModelResolverService.js +3 -3
- package/dist/vscode/vs/workbench/services/themes/browser/workbenchThemeService.js +1 -1
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyBackupService.js +11 -7
- package/dist/vscode/vs/workbench/services/workingCopy/common/workingCopyService.js +1 -1
- package/monaco-editor-treemending.patch +531 -531
- package/package.json +1 -1
- package/dist/assets/editorstatus.css +0 -51
- package/dist/assets/panelpart.css +0 -75
- package/dist/vscode/vs/workbench/browser/actions/layoutActions.js +0 -1201
- package/dist/vscode/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +0 -146
- package/dist/vscode/vs/workbench/browser/parts/editor/editorStatus.js +0 -460
- package/dist/vscode/vs/workbench/browser/parts/panel/panelActions.js +0 -422
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { Registry } from 'monaco-editor/esm/vs/platform/registry/common/platform.js';
|
|
2
2
|
import { localize } from 'monaco-editor/esm/vs/nls.js';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { ShowEditorsInActiveGroupByMostRecentlyUsedAction, ShowAllEditorsByAppearanceAction, ShowAllEditorsByMostRecentlyUsedAction, NavigateForwardAction, NavigateBackwardsAction, OpenNextEditor, OpenPreviousEditor, OpenNextEditorInGroup, OpenPreviousEditorInGroup, OpenFirstEditorInGroup, OpenLastEditorInGroup, OpenNextRecentlyUsedEditorAction, OpenPreviousRecentlyUsedEditorAction, OpenNextRecentlyUsedEditorInGroupAction, OpenPreviousRecentlyUsedEditorInGroupAction, ReopenClosedEditorAction, ClearRecentFilesAction, CloseAllEditorsAction, CloseAllEditorGroupsAction, CloseLeftEditorsInGroupAction, CloseEditorsInOtherGroupsAction, CloseEditorInAllGroupsAction, RevertAndCloseEditorAction, SplitEditorAction, SplitEditorOrthogonalAction, SplitEditorLeftAction, SplitEditorRightAction, SplitEditorUpAction, SplitEditorDownAction, JoinTwoGroupsAction, JoinAllGroupsAction, NavigateBetweenGroupsAction, ResetGroupSizesAction, ToggleGroupSizesAction, MaximizeGroupAction, MinimizeOtherGroupsAction, MoveEditorLeftInGroupAction, MoveEditorRightInGroupAction, MoveGroupLeftAction, MoveGroupRightAction, MoveGroupUpAction, MoveGroupDownAction, DuplicateGroupLeftAction, DuplicateGroupRightAction, DuplicateGroupUpAction, DuplicateGroupDownAction, MoveEditorToPreviousGroupAction, MoveEditorToNextGroupAction, MoveEditorToFirstGroupAction, MoveEditorToLastGroupAction, MoveEditorToLeftGroupAction, MoveEditorToRightGroupAction, MoveEditorToAboveGroupAction, MoveEditorToBelowGroupAction, SplitEditorToPreviousGroupAction, SplitEditorToNextGroupAction, SplitEditorToFirstGroupAction, SplitEditorToLastGroupAction, SplitEditorToLeftGroupAction, SplitEditorToRightGroupAction, SplitEditorToAboveGroupAction, SplitEditorToBelowGroupAction, FocusActiveGroupAction, FocusFirstGroupAction, FocusLastGroupAction, FocusPreviousGroup, FocusNextGroup, FocusLeftGroup, FocusRightGroup, FocusAboveGroup, FocusBelowGroup, NewEditorGroupLeftAction, NewEditorGroupRightAction, NewEditorGroupAboveAction, NewEditorGroupBelowAction, NavigatePreviousAction, NavigateForwardInEditsAction, NavigateBackwardsInEditsAction, NavigatePreviousInEditsAction, NavigateToLastEditLocationAction, NavigateForwardInNavigationsAction, NavigateBackwardsInNavigationsAction, NavigatePreviousInNavigationsAction, NavigateToLastNavigationLocationAction, ClearEditorHistoryAction, EditorLayoutSingleAction, EditorLayoutTwoColumnsAction, EditorLayoutThreeColumnsAction, EditorLayoutTwoRowsAction, EditorLayoutThreeRowsAction, EditorLayoutTwoByTwoGridAction, EditorLayoutTwoRowsRightAction, EditorLayoutTwoColumnsBottomAction, ToggleEditorTypeAction, ReOpenInTextEditorAction, QuickAccessPreviousRecentlyUsedEditorAction, QuickAccessLeastRecentlyUsedEditorAction, QuickAccessPreviousRecentlyUsedEditorInGroupAction, QuickAccessLeastRecentlyUsedEditorInGroupAction, QuickAccessPreviousEditorFromHistoryAction } from './editorActions.js';
|
|
8
|
-
import { setup, UNLOCK_GROUP_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, TOGGLE_LOCK_GROUP_COMMAND_ID, CLOSE_EDITOR_COMMAND_ID, CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, CLOSE_SAVED_EDITORS_COMMAND_ID, CLOSE_EDITORS_IN_GROUP_COMMAND_ID, REOPEN_WITH_COMMAND_ID, KEEP_EDITOR_COMMAND_ID, PIN_EDITOR_COMMAND_ID, UNPIN_EDITOR_COMMAND_ID, SPLIT_EDITOR_IN_GROUP, JOIN_EDITOR_IN_GROUP, TOGGLE_DIFF_SIDE_BY_SIDE, SHOW_EDITORS_IN_GROUP, TOGGLE_KEEP_EDITORS_COMMAND_ID, TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE, CLOSE_PINNED_EDITOR_COMMAND_ID, CLOSE_EDITORS_AND_GROUP_COMMAND_ID, FOCUS_FIRST_SIDE_EDITOR, FOCUS_SECOND_SIDE_EDITOR, TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT, GOTO_PREVIOUS_CHANGE, GOTO_NEXT_CHANGE } from './editorCommands.js';
|
|
9
|
-
import { inQuickPickContext, getQuickNavigateHandler } from '../../quickaccess.js';
|
|
3
|
+
import '../../../common/contextkeys.js';
|
|
4
|
+
import { ShowEditorsInActiveGroupByMostRecentlyUsedAction, ShowAllEditorsByAppearanceAction, ShowAllEditorsByMostRecentlyUsedAction, SplitEditorAction } from './editorActions.js';
|
|
5
|
+
import { setup, TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE } from './editorCommands.js';
|
|
6
|
+
import { getQuickNavigateHandler, inQuickPickContext } from '../../quickaccess.js';
|
|
10
7
|
import { KeybindingsRegistry } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
|
|
11
8
|
import { ContextKeyExpr } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
12
|
-
import { isMacintosh } from 'monaco-editor/esm/vs/base/common/platform.js';
|
|
13
9
|
import { registerEditorContribution } from 'monaco-editor/esm/vs/editor/browser/editorExtensions.js';
|
|
14
10
|
import { FloatingClickMenu } from '../../codeeditor.js';
|
|
15
11
|
import { Extensions } from '../../../common/contributions.js';
|
|
@@ -17,15 +13,13 @@ import { EditorAutoSave } from './editorAutoSave.js';
|
|
|
17
13
|
import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
18
14
|
import { Extensions as Extensions$1 } from 'monaco-editor/esm/vs/platform/quickinput/common/quickAccess.js';
|
|
19
15
|
import { ActiveGroupEditorsByMostRecentlyUsedQuickAccess, AllEditorsByAppearanceQuickAccess, AllEditorsByMostRecentlyUsedQuickAccess } from './editorQuickAccess.js';
|
|
20
|
-
import { FileAccess } from 'monaco-editor/esm/vs/base/common/network.js';
|
|
21
16
|
import { Codicon } from 'monaco-editor/esm/vs/base/common/codicons.js';
|
|
22
17
|
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
23
|
-
import { ToggleTabsVisibilityAction } from '../../actions/layoutActions.js';
|
|
24
18
|
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(EditorAutoSave, 2 );
|
|
25
19
|
registerEditorContribution(FloatingClickMenu.ID, FloatingClickMenu, 1 );
|
|
26
20
|
const quickAccessRegistry = ( Registry.as(Extensions$1.Quickaccess));
|
|
27
21
|
const editorPickerContextKey = 'inEditorsPicker';
|
|
28
|
-
const editorPickerContext = ( ContextKeyExpr.and(inQuickPickContext, ContextKeyExpr.has(editorPickerContextKey)));
|
|
22
|
+
const editorPickerContext = ( ContextKeyExpr.and(inQuickPickContext, ( ContextKeyExpr.has(editorPickerContextKey))));
|
|
29
23
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
30
24
|
ctor: ActiveGroupEditorsByMostRecentlyUsedQuickAccess,
|
|
31
25
|
prefix: ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
@@ -56,109 +50,6 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
56
50
|
"Show All Opened Editors By Most Recently Used"
|
|
57
51
|
)), commandId: ShowAllEditorsByMostRecentlyUsedAction.ID }]
|
|
58
52
|
});
|
|
59
|
-
registerAction2(ChangeLanguageAction);
|
|
60
|
-
registerAction2(ChangeEOLAction);
|
|
61
|
-
registerAction2(ChangeEncodingAction);
|
|
62
|
-
registerAction2(NavigateForwardAction);
|
|
63
|
-
registerAction2(NavigateBackwardsAction);
|
|
64
|
-
registerAction2(OpenNextEditor);
|
|
65
|
-
registerAction2(OpenPreviousEditor);
|
|
66
|
-
registerAction2(OpenNextEditorInGroup);
|
|
67
|
-
registerAction2(OpenPreviousEditorInGroup);
|
|
68
|
-
registerAction2(OpenFirstEditorInGroup);
|
|
69
|
-
registerAction2(OpenLastEditorInGroup);
|
|
70
|
-
registerAction2(OpenNextRecentlyUsedEditorAction);
|
|
71
|
-
registerAction2(OpenPreviousRecentlyUsedEditorAction);
|
|
72
|
-
registerAction2(OpenNextRecentlyUsedEditorInGroupAction);
|
|
73
|
-
registerAction2(OpenPreviousRecentlyUsedEditorInGroupAction);
|
|
74
|
-
registerAction2(ReopenClosedEditorAction);
|
|
75
|
-
registerAction2(ClearRecentFilesAction);
|
|
76
|
-
registerAction2(ShowAllEditorsByAppearanceAction);
|
|
77
|
-
registerAction2(ShowAllEditorsByMostRecentlyUsedAction);
|
|
78
|
-
registerAction2(ShowEditorsInActiveGroupByMostRecentlyUsedAction);
|
|
79
|
-
registerAction2(CloseAllEditorsAction);
|
|
80
|
-
registerAction2(CloseAllEditorGroupsAction);
|
|
81
|
-
registerAction2(CloseLeftEditorsInGroupAction);
|
|
82
|
-
registerAction2(CloseEditorsInOtherGroupsAction);
|
|
83
|
-
registerAction2(CloseEditorInAllGroupsAction);
|
|
84
|
-
registerAction2(RevertAndCloseEditorAction);
|
|
85
|
-
registerAction2(SplitEditorAction);
|
|
86
|
-
registerAction2(SplitEditorOrthogonalAction);
|
|
87
|
-
registerAction2(SplitEditorLeftAction);
|
|
88
|
-
registerAction2(SplitEditorRightAction);
|
|
89
|
-
registerAction2(SplitEditorUpAction);
|
|
90
|
-
registerAction2(SplitEditorDownAction);
|
|
91
|
-
registerAction2(JoinTwoGroupsAction);
|
|
92
|
-
registerAction2(JoinAllGroupsAction);
|
|
93
|
-
registerAction2(NavigateBetweenGroupsAction);
|
|
94
|
-
registerAction2(ResetGroupSizesAction);
|
|
95
|
-
registerAction2(ToggleGroupSizesAction);
|
|
96
|
-
registerAction2(MaximizeGroupAction);
|
|
97
|
-
registerAction2(MinimizeOtherGroupsAction);
|
|
98
|
-
registerAction2(MoveEditorLeftInGroupAction);
|
|
99
|
-
registerAction2(MoveEditorRightInGroupAction);
|
|
100
|
-
registerAction2(MoveGroupLeftAction);
|
|
101
|
-
registerAction2(MoveGroupRightAction);
|
|
102
|
-
registerAction2(MoveGroupUpAction);
|
|
103
|
-
registerAction2(MoveGroupDownAction);
|
|
104
|
-
registerAction2(DuplicateGroupLeftAction);
|
|
105
|
-
registerAction2(DuplicateGroupRightAction);
|
|
106
|
-
registerAction2(DuplicateGroupUpAction);
|
|
107
|
-
registerAction2(DuplicateGroupDownAction);
|
|
108
|
-
registerAction2(MoveEditorToPreviousGroupAction);
|
|
109
|
-
registerAction2(MoveEditorToNextGroupAction);
|
|
110
|
-
registerAction2(MoveEditorToFirstGroupAction);
|
|
111
|
-
registerAction2(MoveEditorToLastGroupAction);
|
|
112
|
-
registerAction2(MoveEditorToLeftGroupAction);
|
|
113
|
-
registerAction2(MoveEditorToRightGroupAction);
|
|
114
|
-
registerAction2(MoveEditorToAboveGroupAction);
|
|
115
|
-
registerAction2(MoveEditorToBelowGroupAction);
|
|
116
|
-
registerAction2(SplitEditorToPreviousGroupAction);
|
|
117
|
-
registerAction2(SplitEditorToNextGroupAction);
|
|
118
|
-
registerAction2(SplitEditorToFirstGroupAction);
|
|
119
|
-
registerAction2(SplitEditorToLastGroupAction);
|
|
120
|
-
registerAction2(SplitEditorToLeftGroupAction);
|
|
121
|
-
registerAction2(SplitEditorToRightGroupAction);
|
|
122
|
-
registerAction2(SplitEditorToAboveGroupAction);
|
|
123
|
-
registerAction2(SplitEditorToBelowGroupAction);
|
|
124
|
-
registerAction2(FocusActiveGroupAction);
|
|
125
|
-
registerAction2(FocusFirstGroupAction);
|
|
126
|
-
registerAction2(FocusLastGroupAction);
|
|
127
|
-
registerAction2(FocusPreviousGroup);
|
|
128
|
-
registerAction2(FocusNextGroup);
|
|
129
|
-
registerAction2(FocusLeftGroup);
|
|
130
|
-
registerAction2(FocusRightGroup);
|
|
131
|
-
registerAction2(FocusAboveGroup);
|
|
132
|
-
registerAction2(FocusBelowGroup);
|
|
133
|
-
registerAction2(NewEditorGroupLeftAction);
|
|
134
|
-
registerAction2(NewEditorGroupRightAction);
|
|
135
|
-
registerAction2(NewEditorGroupAboveAction);
|
|
136
|
-
registerAction2(NewEditorGroupBelowAction);
|
|
137
|
-
registerAction2(NavigatePreviousAction);
|
|
138
|
-
registerAction2(NavigateForwardInEditsAction);
|
|
139
|
-
registerAction2(NavigateBackwardsInEditsAction);
|
|
140
|
-
registerAction2(NavigatePreviousInEditsAction);
|
|
141
|
-
registerAction2(NavigateToLastEditLocationAction);
|
|
142
|
-
registerAction2(NavigateForwardInNavigationsAction);
|
|
143
|
-
registerAction2(NavigateBackwardsInNavigationsAction);
|
|
144
|
-
registerAction2(NavigatePreviousInNavigationsAction);
|
|
145
|
-
registerAction2(NavigateToLastNavigationLocationAction);
|
|
146
|
-
registerAction2(ClearEditorHistoryAction);
|
|
147
|
-
registerAction2(EditorLayoutSingleAction);
|
|
148
|
-
registerAction2(EditorLayoutTwoColumnsAction);
|
|
149
|
-
registerAction2(EditorLayoutThreeColumnsAction);
|
|
150
|
-
registerAction2(EditorLayoutTwoRowsAction);
|
|
151
|
-
registerAction2(EditorLayoutThreeRowsAction);
|
|
152
|
-
registerAction2(EditorLayoutTwoByTwoGridAction);
|
|
153
|
-
registerAction2(EditorLayoutTwoRowsRightAction);
|
|
154
|
-
registerAction2(EditorLayoutTwoColumnsBottomAction);
|
|
155
|
-
registerAction2(ToggleEditorTypeAction);
|
|
156
|
-
registerAction2(ReOpenInTextEditorAction);
|
|
157
|
-
registerAction2(QuickAccessPreviousRecentlyUsedEditorAction);
|
|
158
|
-
registerAction2(QuickAccessLeastRecentlyUsedEditorAction);
|
|
159
|
-
registerAction2(QuickAccessPreviousRecentlyUsedEditorInGroupAction);
|
|
160
|
-
registerAction2(QuickAccessLeastRecentlyUsedEditorInGroupAction);
|
|
161
|
-
registerAction2(QuickAccessPreviousEditorFromHistoryAction);
|
|
162
53
|
const quickAccessNavigateNextInEditorPickerId = 'workbench.action.quickOpenNavigateNextInEditorPicker';
|
|
163
54
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
164
55
|
id: quickAccessNavigateNextInEditorPickerId,
|
|
@@ -178,699 +69,19 @@ KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
|
178
69
|
mac: { primary: 256 | 1024 | 2 }
|
|
179
70
|
});
|
|
180
71
|
setup();
|
|
181
|
-
if (isMacintosh) {
|
|
182
|
-
MenuRegistry.appendMenuItem(MenuId.TouchBarContext, {
|
|
183
|
-
command: { id: NavigateBackwardsAction.ID, title: NavigateBackwardsAction.LABEL, icon: { dark: ( FileAccess.asFileUri('vs/workbench/browser/parts/editor/media/back-tb.png')) } },
|
|
184
|
-
group: 'navigation',
|
|
185
|
-
order: 0
|
|
186
|
-
});
|
|
187
|
-
MenuRegistry.appendMenuItem(MenuId.TouchBarContext, {
|
|
188
|
-
command: { id: NavigateForwardAction.ID, title: NavigateForwardAction.LABEL, icon: { dark: ( FileAccess.asFileUri('vs/workbench/browser/parts/editor/media/forward-tb.png')) } },
|
|
189
|
-
group: 'navigation',
|
|
190
|
-
order: 1
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize('unlockGroupAction', "Unlock Group")), icon: Codicon.lock }, group: 'navigation', order: 10, when: ActiveEditorGroupLockedContext });
|
|
194
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize('closeGroupAction', "Close Group")), icon: Codicon.close }, group: 'navigation', order: 20 });
|
|
195
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize('splitUp', "Split Up")) }, group: '2_split', order: 10 });
|
|
196
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize('splitDown', "Split Down")) }, group: '2_split', order: 20 });
|
|
197
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize('splitLeft', "Split Left")) }, group: '2_split', order: 30 });
|
|
198
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize('splitRight', "Split Right")) }, group: '2_split', order: 40 });
|
|
199
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize('toggleLockGroup', "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '3_lock', order: 10, when: MultipleEditorGroupsContext });
|
|
200
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize('close', "Close")) }, group: '4_close', order: 10, when: MultipleEditorGroupsContext });
|
|
201
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize('splitUp', "Split Up")) }, group: '2_split', order: 10 });
|
|
202
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize('splitDown', "Split Down")) }, group: '2_split', order: 20 });
|
|
203
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize('splitLeft', "Split Left")) }, group: '2_split', order: 30 });
|
|
204
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize('splitRight', "Split Right")) }, group: '2_split', order: 40 });
|
|
205
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ToggleTabsVisibilityAction.ID, title: ( localize('toggleTabs', "Enable Tabs")), toggled: ContextKeyExpr.has('config.workbench.editor.showTabs') }, group: '3_config', order: 10 });
|
|
206
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize('close', "Close")) }, group: '1_close', order: 10 });
|
|
207
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize('closeOthers', "Close Others")), precondition: ( EditorGroupEditorsCountContext.notEqualsTo('1')) }, group: '1_close', order: 20 });
|
|
208
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize('closeRight', "Close to the Right")), precondition: ( ActiveEditorLastInGroupContext.toNegated()) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
|
|
209
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize('closeAllSaved', "Close Saved")) }, group: '1_close', order: 40 });
|
|
210
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize('closeAll', "Close All")) }, group: '1_close', order: 50 });
|
|
211
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize('reopenWith', "Reopen Editor With...")) }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
|
|
212
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize('keepOpen', "Keep Open")), precondition: ( ActiveEditorPinnedContext.toNegated()) }, group: '3_preview', order: 10, when: ContextKeyExpr.has('config.workbench.editor.enablePreview') });
|
|
213
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize('pin', "Pin")) }, group: '3_preview', order: 20, when: ( ActiveEditorStickyContext.toNegated()) });
|
|
214
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize('unpin', "Unpin")) }, group: '3_preview', order: 20, when: ActiveEditorStickyContext });
|
|
215
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize('splitUp', "Split Up")) }, group: '5_split', order: 10 });
|
|
216
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize('splitDown', "Split Down")) }, group: '5_split', order: 20 });
|
|
217
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize('splitLeft', "Split Left")) }, group: '5_split', order: 30 });
|
|
218
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize('splitRight', "Split Right")) }, group: '5_split', order: 40 });
|
|
219
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize('splitInGroup', "Split in Group")) }, group: '6_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
|
|
220
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localize('joinInGroup', "Join in Group")) }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
|
|
221
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize('inlineView', "Inline View")), toggled: ( ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false)) }, group: '1_diff', order: 10, when: ContextKeyExpr.has('isInDiffEditor') });
|
|
222
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize('showOpenedEditors', "Show Opened Editors")) }, group: '3_open', order: 10 });
|
|
223
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize('closeAll', "Close All")) }, group: '5_close', order: 10 });
|
|
224
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize('closeAllSaved', "Close Saved")) }, group: '5_close', order: 20 });
|
|
225
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ToggleTabsVisibilityAction.ID, title: ( localize('toggleTabs', "Enable Tabs")), toggled: ContextKeyExpr.has('config.workbench.editor.showTabs') }, group: '7_settings', order: 5, when: ContextKeyExpr.has('config.workbench.editor.showTabs').negate() });
|
|
226
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize('togglePreviewMode', "Enable Preview Editors")), toggled: ContextKeyExpr.has('config.workbench.editor.enablePreview') }, group: '7_settings', order: 10 });
|
|
227
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize('lockGroup', "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '8_lock', order: 10, when: MultipleEditorGroupsContext });
|
|
228
72
|
function appendEditorToolItem(primary, when, order, alternative, precondition) {
|
|
229
|
-
const item = {
|
|
230
|
-
command: {
|
|
231
|
-
id: primary.id,
|
|
232
|
-
title: primary.title,
|
|
233
|
-
icon: primary.icon,
|
|
234
|
-
precondition
|
|
235
|
-
},
|
|
236
|
-
group: 'navigation',
|
|
237
|
-
when,
|
|
238
|
-
order
|
|
239
|
-
};
|
|
240
|
-
if (alternative) {
|
|
241
|
-
item.alt = {
|
|
242
|
-
id: alternative.id,
|
|
243
|
-
title: alternative.title,
|
|
244
|
-
icon: alternative.icon
|
|
245
|
-
};
|
|
246
|
-
}
|
|
247
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, item);
|
|
248
73
|
}
|
|
249
|
-
const SPLIT_ORDER = 100000;
|
|
250
|
-
const CLOSE_ORDER = 1000000;
|
|
251
|
-
appendEditorToolItem({
|
|
252
|
-
id: SplitEditorAction.ID,
|
|
253
|
-
title: ( localize('splitEditorRight', "Split Editor Right")),
|
|
254
|
-
icon: Codicon.splitHorizontal
|
|
255
|
-
}, ContextKeyExpr.not('splitEditorsVertically'), SPLIT_ORDER, {
|
|
256
|
-
id: SPLIT_EDITOR_DOWN,
|
|
257
|
-
title: ( localize('splitEditorDown', "Split Editor Down")),
|
|
258
|
-
icon: Codicon.splitVertical
|
|
259
|
-
});
|
|
260
74
|
appendEditorToolItem({
|
|
261
75
|
id: SplitEditorAction.ID,
|
|
262
|
-
title: ( localize('splitEditorDown', "Split Editor Down")),
|
|
263
|
-
icon: Codicon.splitVertical
|
|
264
|
-
}, ContextKeyExpr.has('splitEditorsVertically'), SPLIT_ORDER, {
|
|
265
|
-
id: SPLIT_EDITOR_RIGHT,
|
|
266
76
|
title: ( localize('splitEditorRight', "Split Editor Right")),
|
|
267
77
|
icon: Codicon.splitHorizontal
|
|
268
|
-
});
|
|
269
|
-
appendEditorToolItem({
|
|
270
|
-
id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
|
|
271
|
-
title: ( localize('toggleSplitEditorInGroupLayout', "Toggle Layout")),
|
|
272
|
-
icon: Codicon.editorLayout
|
|
273
|
-
}, SideBySideEditorActiveContext, SPLIT_ORDER - 1);
|
|
274
|
-
appendEditorToolItem({
|
|
275
|
-
id: CLOSE_EDITOR_COMMAND_ID,
|
|
276
|
-
title: ( localize('close', "Close")),
|
|
277
|
-
icon: Codicon.close
|
|
278
|
-
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
279
|
-
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
280
|
-
title: ( localize('closeAll', "Close All")),
|
|
281
|
-
icon: Codicon.closeAll
|
|
282
|
-
});
|
|
283
|
-
appendEditorToolItem({
|
|
284
|
-
id: CLOSE_EDITOR_COMMAND_ID,
|
|
285
|
-
title: ( localize('close', "Close")),
|
|
286
|
-
icon: Codicon.closeDirty
|
|
287
|
-
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
288
|
-
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
289
|
-
title: ( localize('closeAll', "Close All")),
|
|
290
|
-
icon: Codicon.closeAll
|
|
291
|
-
});
|
|
292
|
-
appendEditorToolItem({
|
|
293
|
-
id: UNPIN_EDITOR_COMMAND_ID,
|
|
294
|
-
title: ( localize('unpin', "Unpin")),
|
|
295
|
-
icon: Codicon.pinned
|
|
296
|
-
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
297
|
-
id: CLOSE_EDITOR_COMMAND_ID,
|
|
298
|
-
title: ( localize('close', "Close")),
|
|
299
|
-
icon: Codicon.close
|
|
300
|
-
});
|
|
301
|
-
appendEditorToolItem({
|
|
302
|
-
id: UNPIN_EDITOR_COMMAND_ID,
|
|
303
|
-
title: ( localize('unpin', "Unpin")),
|
|
304
|
-
icon: Codicon.pinnedDirty
|
|
305
|
-
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
306
|
-
id: CLOSE_EDITOR_COMMAND_ID,
|
|
307
|
-
title: ( localize('close', "Close")),
|
|
308
|
-
icon: Codicon.close
|
|
309
|
-
});
|
|
310
|
-
appendEditorToolItem({
|
|
311
|
-
id: UNLOCK_GROUP_COMMAND_ID,
|
|
312
|
-
title: ( localize('unlockEditorGroup', "Unlock Group")),
|
|
313
|
-
icon: Codicon.lock
|
|
314
|
-
}, ActiveEditorGroupLockedContext, CLOSE_ORDER - 1);
|
|
315
|
-
const previousChangeIcon = ( registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(
|
|
316
|
-
'previousChangeIcon',
|
|
317
|
-
'Icon for the previous change action in the diff editor.'
|
|
318
|
-
))));
|
|
319
|
-
const nextChangeIcon = ( registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize('nextChangeIcon', 'Icon for the next change action in the diff editor.'))));
|
|
78
|
+
}, ContextKeyExpr.not('splitEditorsVertically'));
|
|
320
79
|
const toggleWhitespace = ( registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(
|
|
321
80
|
'toggleWhitespace',
|
|
322
81
|
'Icon for the toggle whitespace action in the diff editor.'
|
|
323
82
|
))));
|
|
324
|
-
appendEditorToolItem({
|
|
325
|
-
id: GOTO_PREVIOUS_CHANGE,
|
|
326
|
-
title: ( localize('navigate.prev.label', "Previous Change")),
|
|
327
|
-
icon: previousChangeIcon
|
|
328
|
-
}, TextCompareEditorActiveContext, 10);
|
|
329
|
-
appendEditorToolItem({
|
|
330
|
-
id: GOTO_NEXT_CHANGE,
|
|
331
|
-
title: ( localize('navigate.next.label', "Next Change")),
|
|
332
|
-
icon: nextChangeIcon
|
|
333
|
-
}, TextCompareEditorActiveContext, 11);
|
|
334
|
-
appendEditorToolItem({
|
|
335
|
-
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
336
|
-
title: ( localize(
|
|
337
|
-
'ignoreTrimWhitespace.label',
|
|
338
|
-
"Ignore Leading/Trailing Whitespace Differences"
|
|
339
|
-
)),
|
|
340
|
-
icon: toggleWhitespace
|
|
341
|
-
}, ( ContextKeyExpr.and(TextCompareEditorActiveContext, ( ContextKeyExpr.notEquals('config.diffEditor.ignoreTrimWhitespace', true)))), 20);
|
|
342
83
|
appendEditorToolItem({
|
|
343
84
|
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
344
85
|
title: ( localize('showTrimWhitespace.label', "Show Leading/Trailing Whitespace Differences")),
|
|
345
86
|
icon: ThemeIcon.modify(toggleWhitespace, 'disabled')
|
|
346
|
-
}, ( ContextKeyExpr.and(TextCompareEditorActiveContext, ( ContextKeyExpr.notEquals('config.diffEditor.ignoreTrimWhitespace', false)))), 20);
|
|
347
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: { value: ( localize('keepEditor', "Keep Editor")), original: 'Keep Editor' }, category: Categories.View }, when: ContextKeyExpr.has('config.workbench.editor.enablePreview') });
|
|
348
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: { value: ( localize('pinEditor', "Pin Editor")), original: 'Pin Editor' }, category: Categories.View } });
|
|
349
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: { value: ( localize('unpinEditor', "Unpin Editor")), original: 'Unpin Editor' }, category: Categories.View } });
|
|
350
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: { value: ( localize('closeEditor', "Close Editor")), original: 'Close Editor' }, category: Categories.View } });
|
|
351
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: { value: ( localize('closePinnedEditor', "Close Pinned Editor")), original: 'Close Pinned Editor' }, category: Categories.View } });
|
|
352
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: { value: ( localize('closeEditorsInGroup', "Close All Editors in Group")), original: 'Close All Editors in Group' }, category: Categories.View } });
|
|
353
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: { value: ( localize('closeSavedEditors', "Close Saved Editors in Group")), original: 'Close Saved Editors in Group' }, category: Categories.View } });
|
|
354
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: { value: ( localize('closeOtherEditors', "Close Other Editors in Group")), original: 'Close Other Editors in Group' }, category: Categories.View } });
|
|
355
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: { value: ( localize('closeRightEditors', "Close Editors to the Right in Group")), original: 'Close Editors to the Right in Group' }, category: Categories.View }, when: ( ActiveEditorLastInGroupContext.toNegated()) });
|
|
356
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: { value: ( localize('closeEditorGroup', "Close Editor Group")), original: 'Close Editor Group' }, category: Categories.View }, when: MultipleEditorGroupsContext });
|
|
357
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: { value: ( localize('reopenWith', "Reopen Editor With...")), original: 'Reopen Editor With...' }, category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
|
|
358
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
359
|
-
group: '1_editor',
|
|
360
|
-
command: {
|
|
361
|
-
id: ReopenClosedEditorAction.ID,
|
|
362
|
-
title: ( localize(
|
|
363
|
-
{ key: 'miReopenClosedEditor', comment: ['&& denotes a mnemonic'] },
|
|
364
|
-
"&&Reopen Closed Editor"
|
|
365
|
-
)),
|
|
366
|
-
precondition: ContextKeyExpr.has('canReopenClosedEditor')
|
|
367
|
-
},
|
|
368
|
-
order: 1
|
|
369
|
-
});
|
|
370
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
371
|
-
group: 'z_clear',
|
|
372
|
-
command: {
|
|
373
|
-
id: ClearRecentFilesAction.ID,
|
|
374
|
-
title: ( localize(
|
|
375
|
-
{ key: 'miClearRecentOpen', comment: ['&& denotes a mnemonic'] },
|
|
376
|
-
"&&Clear Recently Opened"
|
|
377
|
-
))
|
|
378
|
-
},
|
|
379
|
-
order: 1
|
|
380
|
-
});
|
|
381
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
382
|
-
title: ( localize('miShare', "Share")),
|
|
383
|
-
submenu: MenuId.MenubarShare,
|
|
384
|
-
group: '45_share',
|
|
385
|
-
order: 1,
|
|
386
|
-
});
|
|
387
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
388
|
-
group: '2_appearance',
|
|
389
|
-
title: ( localize(
|
|
390
|
-
{ key: 'miEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
391
|
-
"Editor &&Layout"
|
|
392
|
-
)),
|
|
393
|
-
submenu: MenuId.MenubarLayoutMenu,
|
|
394
|
-
order: 2
|
|
395
|
-
});
|
|
396
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
397
|
-
group: '1_split',
|
|
398
|
-
command: {
|
|
399
|
-
id: SPLIT_EDITOR_UP,
|
|
400
|
-
title: {
|
|
401
|
-
original: 'Split Up',
|
|
402
|
-
value: ( localize('miSplitEditorUpWithoutMnemonic', "Split Up")),
|
|
403
|
-
mnemonicTitle: ( localize(
|
|
404
|
-
{ key: 'miSplitEditorUp', comment: ['&& denotes a mnemonic'] },
|
|
405
|
-
"Split &&Up"
|
|
406
|
-
)),
|
|
407
|
-
}
|
|
408
|
-
},
|
|
409
|
-
order: 1
|
|
410
|
-
});
|
|
411
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
412
|
-
group: '1_split',
|
|
413
|
-
command: {
|
|
414
|
-
id: SPLIT_EDITOR_DOWN,
|
|
415
|
-
title: {
|
|
416
|
-
original: 'Split Down',
|
|
417
|
-
value: ( localize('miSplitEditorDownWithoutMnemonic', "Split Down")),
|
|
418
|
-
mnemonicTitle: ( localize(
|
|
419
|
-
{ key: 'miSplitEditorDown', comment: ['&& denotes a mnemonic'] },
|
|
420
|
-
"Split &&Down"
|
|
421
|
-
))
|
|
422
|
-
}
|
|
423
|
-
},
|
|
424
|
-
order: 2
|
|
425
|
-
});
|
|
426
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
427
|
-
group: '1_split',
|
|
428
|
-
command: {
|
|
429
|
-
id: SPLIT_EDITOR_LEFT,
|
|
430
|
-
title: {
|
|
431
|
-
original: 'Split Left',
|
|
432
|
-
value: ( localize('miSplitEditorLeftWithoutMnemonic', "Split Left")),
|
|
433
|
-
mnemonicTitle: ( localize(
|
|
434
|
-
{ key: 'miSplitEditorLeft', comment: ['&& denotes a mnemonic'] },
|
|
435
|
-
"Split &&Left"
|
|
436
|
-
))
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
order: 3
|
|
440
|
-
});
|
|
441
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
442
|
-
group: '1_split',
|
|
443
|
-
command: {
|
|
444
|
-
id: SPLIT_EDITOR_RIGHT,
|
|
445
|
-
title: {
|
|
446
|
-
original: 'Split Right',
|
|
447
|
-
value: ( localize('miSplitEditorRightWithoutMnemonic', "Split Right")),
|
|
448
|
-
mnemonicTitle: ( localize(
|
|
449
|
-
{ key: 'miSplitEditorRight', comment: ['&& denotes a mnemonic'] },
|
|
450
|
-
"Split &&Right"
|
|
451
|
-
))
|
|
452
|
-
}
|
|
453
|
-
},
|
|
454
|
-
order: 4
|
|
455
|
-
});
|
|
456
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
457
|
-
group: '2_split_in_group',
|
|
458
|
-
command: {
|
|
459
|
-
id: SPLIT_EDITOR_IN_GROUP,
|
|
460
|
-
title: {
|
|
461
|
-
original: 'Split in Group',
|
|
462
|
-
value: ( localize('miSplitEditorInGroupWithoutMnemonic', "Split in Group")),
|
|
463
|
-
mnemonicTitle: ( localize(
|
|
464
|
-
{ key: 'miSplitEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
465
|
-
"Split in &&Group"
|
|
466
|
-
))
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
|
-
when: ActiveEditorCanSplitInGroupContext,
|
|
470
|
-
order: 1
|
|
471
|
-
});
|
|
472
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
473
|
-
group: '2_split_in_group',
|
|
474
|
-
command: {
|
|
475
|
-
id: JOIN_EDITOR_IN_GROUP,
|
|
476
|
-
title: {
|
|
477
|
-
original: 'Join in Group',
|
|
478
|
-
value: ( localize('miJoinEditorInGroupWithoutMnemonic', "Join in Group")),
|
|
479
|
-
mnemonicTitle: ( localize(
|
|
480
|
-
{ key: 'miJoinEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
481
|
-
"Join in &&Group"
|
|
482
|
-
))
|
|
483
|
-
}
|
|
484
|
-
},
|
|
485
|
-
when: SideBySideEditorActiveContext,
|
|
486
|
-
order: 1
|
|
487
|
-
});
|
|
488
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
489
|
-
group: '3_layouts',
|
|
490
|
-
command: {
|
|
491
|
-
id: EditorLayoutSingleAction.ID,
|
|
492
|
-
title: {
|
|
493
|
-
original: 'Single',
|
|
494
|
-
value: ( localize('miSingleColumnEditorLayoutWithoutMnemonic', "Single")),
|
|
495
|
-
mnemonicTitle: ( localize(
|
|
496
|
-
{ key: 'miSingleColumnEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
497
|
-
"&&Single"
|
|
498
|
-
))
|
|
499
|
-
}
|
|
500
|
-
},
|
|
501
|
-
order: 1
|
|
502
|
-
});
|
|
503
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
504
|
-
group: '3_layouts',
|
|
505
|
-
command: {
|
|
506
|
-
id: EditorLayoutTwoColumnsAction.ID,
|
|
507
|
-
title: {
|
|
508
|
-
original: 'Two Columns',
|
|
509
|
-
value: ( localize('miTwoColumnsEditorLayoutWithoutMnemonic', "Two Columns")),
|
|
510
|
-
mnemonicTitle: ( localize(
|
|
511
|
-
{ key: 'miTwoColumnsEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
512
|
-
"&&Two Columns"
|
|
513
|
-
))
|
|
514
|
-
}
|
|
515
|
-
},
|
|
516
|
-
order: 3
|
|
517
|
-
});
|
|
518
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
519
|
-
group: '3_layouts',
|
|
520
|
-
command: {
|
|
521
|
-
id: EditorLayoutThreeColumnsAction.ID,
|
|
522
|
-
title: {
|
|
523
|
-
original: 'Three Columns',
|
|
524
|
-
value: ( localize('miThreeColumnsEditorLayoutWithoutMnemonic', "Three Columns")),
|
|
525
|
-
mnemonicTitle: ( localize(
|
|
526
|
-
{ key: 'miThreeColumnsEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
527
|
-
"T&&hree Columns"
|
|
528
|
-
))
|
|
529
|
-
}
|
|
530
|
-
},
|
|
531
|
-
order: 4
|
|
532
|
-
});
|
|
533
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
534
|
-
group: '3_layouts',
|
|
535
|
-
command: {
|
|
536
|
-
id: EditorLayoutTwoRowsAction.ID,
|
|
537
|
-
title: {
|
|
538
|
-
original: 'Two Rows',
|
|
539
|
-
value: ( localize('miTwoRowsEditorLayoutWithoutMnemonic', "Two Rows")),
|
|
540
|
-
mnemonicTitle: ( localize(
|
|
541
|
-
{ key: 'miTwoRowsEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
542
|
-
"T&&wo Rows"
|
|
543
|
-
))
|
|
544
|
-
}
|
|
545
|
-
},
|
|
546
|
-
order: 5
|
|
547
|
-
});
|
|
548
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
549
|
-
group: '3_layouts',
|
|
550
|
-
command: {
|
|
551
|
-
id: EditorLayoutThreeRowsAction.ID,
|
|
552
|
-
title: {
|
|
553
|
-
original: 'Three Rows',
|
|
554
|
-
value: ( localize('miThreeRowsEditorLayoutWithoutMnemonic', "Three Rows")),
|
|
555
|
-
mnemonicTitle: ( localize(
|
|
556
|
-
{ key: 'miThreeRowsEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
557
|
-
"Three &&Rows"
|
|
558
|
-
))
|
|
559
|
-
}
|
|
560
|
-
},
|
|
561
|
-
order: 6
|
|
562
|
-
});
|
|
563
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
564
|
-
group: '3_layouts',
|
|
565
|
-
command: {
|
|
566
|
-
id: EditorLayoutTwoByTwoGridAction.ID,
|
|
567
|
-
title: {
|
|
568
|
-
original: 'Grid (2x2)',
|
|
569
|
-
value: ( localize('miTwoByTwoGridEditorLayoutWithoutMnemonic', "Grid (2x2)")),
|
|
570
|
-
mnemonicTitle: ( localize(
|
|
571
|
-
{ key: 'miTwoByTwoGridEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
572
|
-
"&&Grid (2x2)"
|
|
573
|
-
))
|
|
574
|
-
}
|
|
575
|
-
},
|
|
576
|
-
order: 7
|
|
577
|
-
});
|
|
578
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
579
|
-
group: '3_layouts',
|
|
580
|
-
command: {
|
|
581
|
-
id: EditorLayoutTwoRowsRightAction.ID,
|
|
582
|
-
title: {
|
|
583
|
-
original: 'Two Rows Right',
|
|
584
|
-
value: ( localize('miTwoRowsRightEditorLayoutWithoutMnemonic', "Two Rows Right")),
|
|
585
|
-
mnemonicTitle: ( localize(
|
|
586
|
-
{ key: 'miTwoRowsRightEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
587
|
-
"Two R&&ows Right"
|
|
588
|
-
))
|
|
589
|
-
}
|
|
590
|
-
},
|
|
591
|
-
order: 8
|
|
592
|
-
});
|
|
593
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
594
|
-
group: '3_layouts',
|
|
595
|
-
command: {
|
|
596
|
-
id: EditorLayoutTwoColumnsBottomAction.ID,
|
|
597
|
-
title: {
|
|
598
|
-
original: 'Two Columns Bottom',
|
|
599
|
-
value: ( localize('miTwoColumnsBottomEditorLayoutWithoutMnemonic', "Two Columns Bottom")),
|
|
600
|
-
mnemonicTitle: ( localize(
|
|
601
|
-
{ key: 'miTwoColumnsBottomEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
602
|
-
"Two &&Columns Bottom"
|
|
603
|
-
))
|
|
604
|
-
}
|
|
605
|
-
},
|
|
606
|
-
order: 9
|
|
607
|
-
});
|
|
608
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
609
|
-
group: '1_history_nav',
|
|
610
|
-
command: {
|
|
611
|
-
id: 'workbench.action.navigateToLastEditLocation',
|
|
612
|
-
title: ( localize(
|
|
613
|
-
{ key: 'miLastEditLocation', comment: ['&& denotes a mnemonic'] },
|
|
614
|
-
"&&Last Edit Location"
|
|
615
|
-
)),
|
|
616
|
-
precondition: ContextKeyExpr.has('canNavigateToLastEditLocation')
|
|
617
|
-
},
|
|
618
|
-
order: 3
|
|
619
|
-
});
|
|
620
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
621
|
-
group: '1_sideBySide',
|
|
622
|
-
command: {
|
|
623
|
-
id: FOCUS_FIRST_SIDE_EDITOR,
|
|
624
|
-
title: ( localize(
|
|
625
|
-
{ key: 'miFirstSideEditor', comment: ['&& denotes a mnemonic'] },
|
|
626
|
-
"&&First Side in Editor"
|
|
627
|
-
))
|
|
628
|
-
},
|
|
629
|
-
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
630
|
-
order: 1
|
|
631
|
-
});
|
|
632
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
633
|
-
group: '1_sideBySide',
|
|
634
|
-
command: {
|
|
635
|
-
id: FOCUS_SECOND_SIDE_EDITOR,
|
|
636
|
-
title: ( localize(
|
|
637
|
-
{ key: 'miSecondSideEditor', comment: ['&& denotes a mnemonic'] },
|
|
638
|
-
"&&Second Side in Editor"
|
|
639
|
-
))
|
|
640
|
-
},
|
|
641
|
-
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
642
|
-
order: 2
|
|
643
|
-
});
|
|
644
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
645
|
-
group: '2_any',
|
|
646
|
-
command: {
|
|
647
|
-
id: 'workbench.action.nextEditor',
|
|
648
|
-
title: ( localize(
|
|
649
|
-
{ key: 'miNextEditor', comment: ['&& denotes a mnemonic'] },
|
|
650
|
-
"&&Next Editor"
|
|
651
|
-
))
|
|
652
|
-
},
|
|
653
|
-
order: 1
|
|
654
|
-
});
|
|
655
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
656
|
-
group: '2_any',
|
|
657
|
-
command: {
|
|
658
|
-
id: 'workbench.action.previousEditor',
|
|
659
|
-
title: ( localize(
|
|
660
|
-
{ key: 'miPreviousEditor', comment: ['&& denotes a mnemonic'] },
|
|
661
|
-
"&&Previous Editor"
|
|
662
|
-
))
|
|
663
|
-
},
|
|
664
|
-
order: 2
|
|
665
|
-
});
|
|
666
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
667
|
-
group: '3_any_used',
|
|
668
|
-
command: {
|
|
669
|
-
id: 'workbench.action.openNextRecentlyUsedEditor',
|
|
670
|
-
title: ( localize(
|
|
671
|
-
{ key: 'miNextRecentlyUsedEditor', comment: ['&& denotes a mnemonic'] },
|
|
672
|
-
"&&Next Used Editor"
|
|
673
|
-
))
|
|
674
|
-
},
|
|
675
|
-
order: 1
|
|
676
|
-
});
|
|
677
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
678
|
-
group: '3_any_used',
|
|
679
|
-
command: {
|
|
680
|
-
id: 'workbench.action.openPreviousRecentlyUsedEditor',
|
|
681
|
-
title: ( localize(
|
|
682
|
-
{ key: 'miPreviousRecentlyUsedEditor', comment: ['&& denotes a mnemonic'] },
|
|
683
|
-
"&&Previous Used Editor"
|
|
684
|
-
))
|
|
685
|
-
},
|
|
686
|
-
order: 2
|
|
687
|
-
});
|
|
688
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
689
|
-
group: '4_group',
|
|
690
|
-
command: {
|
|
691
|
-
id: 'workbench.action.nextEditorInGroup',
|
|
692
|
-
title: ( localize(
|
|
693
|
-
{ key: 'miNextEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
694
|
-
"&&Next Editor in Group"
|
|
695
|
-
))
|
|
696
|
-
},
|
|
697
|
-
order: 1
|
|
698
|
-
});
|
|
699
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
700
|
-
group: '4_group',
|
|
701
|
-
command: {
|
|
702
|
-
id: 'workbench.action.previousEditorInGroup',
|
|
703
|
-
title: ( localize(
|
|
704
|
-
{ key: 'miPreviousEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
705
|
-
"&&Previous Editor in Group"
|
|
706
|
-
))
|
|
707
|
-
},
|
|
708
|
-
order: 2
|
|
709
|
-
});
|
|
710
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
711
|
-
group: '5_group_used',
|
|
712
|
-
command: {
|
|
713
|
-
id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
714
|
-
title: ( localize(
|
|
715
|
-
{ key: 'miNextUsedEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
716
|
-
"&&Next Used Editor in Group"
|
|
717
|
-
))
|
|
718
|
-
},
|
|
719
|
-
order: 1
|
|
720
|
-
});
|
|
721
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
722
|
-
group: '5_group_used',
|
|
723
|
-
command: {
|
|
724
|
-
id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
725
|
-
title: ( localize(
|
|
726
|
-
{ key: 'miPreviousUsedEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
727
|
-
"&&Previous Used Editor in Group"
|
|
728
|
-
))
|
|
729
|
-
},
|
|
730
|
-
order: 2
|
|
731
|
-
});
|
|
732
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
733
|
-
group: '2_editor_nav',
|
|
734
|
-
title: ( localize(
|
|
735
|
-
{ key: 'miSwitchEditor', comment: ['&& denotes a mnemonic'] },
|
|
736
|
-
"Switch &&Editor"
|
|
737
|
-
)),
|
|
738
|
-
submenu: MenuId.MenubarSwitchEditorMenu,
|
|
739
|
-
order: 1
|
|
740
|
-
});
|
|
741
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
742
|
-
group: '1_focus_index',
|
|
743
|
-
command: {
|
|
744
|
-
id: 'workbench.action.focusFirstEditorGroup',
|
|
745
|
-
title: ( localize(
|
|
746
|
-
{ key: 'miFocusFirstGroup', comment: ['&& denotes a mnemonic'] },
|
|
747
|
-
"Group &&1"
|
|
748
|
-
))
|
|
749
|
-
},
|
|
750
|
-
order: 1
|
|
751
|
-
});
|
|
752
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
753
|
-
group: '1_focus_index',
|
|
754
|
-
command: {
|
|
755
|
-
id: 'workbench.action.focusSecondEditorGroup',
|
|
756
|
-
title: ( localize(
|
|
757
|
-
{ key: 'miFocusSecondGroup', comment: ['&& denotes a mnemonic'] },
|
|
758
|
-
"Group &&2"
|
|
759
|
-
))
|
|
760
|
-
},
|
|
761
|
-
order: 2
|
|
762
|
-
});
|
|
763
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
764
|
-
group: '1_focus_index',
|
|
765
|
-
command: {
|
|
766
|
-
id: 'workbench.action.focusThirdEditorGroup',
|
|
767
|
-
title: ( localize(
|
|
768
|
-
{ key: 'miFocusThirdGroup', comment: ['&& denotes a mnemonic'] },
|
|
769
|
-
"Group &&3"
|
|
770
|
-
)),
|
|
771
|
-
precondition: MultipleEditorGroupsContext
|
|
772
|
-
},
|
|
773
|
-
order: 3
|
|
774
|
-
});
|
|
775
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
776
|
-
group: '1_focus_index',
|
|
777
|
-
command: {
|
|
778
|
-
id: 'workbench.action.focusFourthEditorGroup',
|
|
779
|
-
title: ( localize(
|
|
780
|
-
{ key: 'miFocusFourthGroup', comment: ['&& denotes a mnemonic'] },
|
|
781
|
-
"Group &&4"
|
|
782
|
-
)),
|
|
783
|
-
precondition: MultipleEditorGroupsContext
|
|
784
|
-
},
|
|
785
|
-
order: 4
|
|
786
|
-
});
|
|
787
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
788
|
-
group: '1_focus_index',
|
|
789
|
-
command: {
|
|
790
|
-
id: 'workbench.action.focusFifthEditorGroup',
|
|
791
|
-
title: ( localize(
|
|
792
|
-
{ key: 'miFocusFifthGroup', comment: ['&& denotes a mnemonic'] },
|
|
793
|
-
"Group &&5"
|
|
794
|
-
)),
|
|
795
|
-
precondition: MultipleEditorGroupsContext
|
|
796
|
-
},
|
|
797
|
-
order: 5
|
|
798
|
-
});
|
|
799
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
800
|
-
group: '2_next_prev',
|
|
801
|
-
command: {
|
|
802
|
-
id: 'workbench.action.focusNextGroup',
|
|
803
|
-
title: ( localize({ key: 'miNextGroup', comment: ['&& denotes a mnemonic'] }, "&&Next Group")),
|
|
804
|
-
precondition: MultipleEditorGroupsContext
|
|
805
|
-
},
|
|
806
|
-
order: 1
|
|
807
|
-
});
|
|
808
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
809
|
-
group: '2_next_prev',
|
|
810
|
-
command: {
|
|
811
|
-
id: 'workbench.action.focusPreviousGroup',
|
|
812
|
-
title: ( localize(
|
|
813
|
-
{ key: 'miPreviousGroup', comment: ['&& denotes a mnemonic'] },
|
|
814
|
-
"&&Previous Group"
|
|
815
|
-
)),
|
|
816
|
-
precondition: MultipleEditorGroupsContext
|
|
817
|
-
},
|
|
818
|
-
order: 2
|
|
819
|
-
});
|
|
820
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
821
|
-
group: '3_directional',
|
|
822
|
-
command: {
|
|
823
|
-
id: 'workbench.action.focusLeftGroup',
|
|
824
|
-
title: ( localize(
|
|
825
|
-
{ key: 'miFocusLeftGroup', comment: ['&& denotes a mnemonic'] },
|
|
826
|
-
"Group &&Left"
|
|
827
|
-
)),
|
|
828
|
-
precondition: MultipleEditorGroupsContext
|
|
829
|
-
},
|
|
830
|
-
order: 1
|
|
831
|
-
});
|
|
832
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
833
|
-
group: '3_directional',
|
|
834
|
-
command: {
|
|
835
|
-
id: 'workbench.action.focusRightGroup',
|
|
836
|
-
title: ( localize(
|
|
837
|
-
{ key: 'miFocusRightGroup', comment: ['&& denotes a mnemonic'] },
|
|
838
|
-
"Group &&Right"
|
|
839
|
-
)),
|
|
840
|
-
precondition: MultipleEditorGroupsContext
|
|
841
|
-
},
|
|
842
|
-
order: 2
|
|
843
|
-
});
|
|
844
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
845
|
-
group: '3_directional',
|
|
846
|
-
command: {
|
|
847
|
-
id: 'workbench.action.focusAboveGroup',
|
|
848
|
-
title: ( localize(
|
|
849
|
-
{ key: 'miFocusAboveGroup', comment: ['&& denotes a mnemonic'] },
|
|
850
|
-
"Group &&Above"
|
|
851
|
-
)),
|
|
852
|
-
precondition: MultipleEditorGroupsContext
|
|
853
|
-
},
|
|
854
|
-
order: 3
|
|
855
|
-
});
|
|
856
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
857
|
-
group: '3_directional',
|
|
858
|
-
command: {
|
|
859
|
-
id: 'workbench.action.focusBelowGroup',
|
|
860
|
-
title: ( localize(
|
|
861
|
-
{ key: 'miFocusBelowGroup', comment: ['&& denotes a mnemonic'] },
|
|
862
|
-
"Group &&Below"
|
|
863
|
-
)),
|
|
864
|
-
precondition: MultipleEditorGroupsContext
|
|
865
|
-
},
|
|
866
|
-
order: 4
|
|
867
|
-
});
|
|
868
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
869
|
-
group: '2_editor_nav',
|
|
870
|
-
title: ( localize(
|
|
871
|
-
{ key: 'miSwitchGroup', comment: ['&& denotes a mnemonic'] },
|
|
872
|
-
"Switch &&Group"
|
|
873
|
-
)),
|
|
874
|
-
submenu: MenuId.MenubarSwitchGroupMenu,
|
|
875
|
-
order: 2
|
|
876
87
|
});
|