@codingame/monaco-vscode-view-common-service-override 24.2.0 → 25.0.0
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/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +61 -77
- package/vscode/src/vs/workbench/browser/actions/helpActions.js +20 -20
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +169 -167
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -8
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +2 -4
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +12 -12
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +29 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/scrollLocking/browser/scrollLocking.js +7 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +12 -4
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +9 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +12 -9
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +8 -8
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +5 -5
|
@@ -17,7 +17,7 @@ import { Categories } from '@codingame/monaco-vscode-api/vscode/vs/platform/acti
|
|
|
17
17
|
import { registerAction2, MenuRegistry, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
18
18
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
19
19
|
import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/common/keyCodes';
|
|
20
|
-
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, MaximizeGroupHideSidebarAction, ToggleMaximizeEditorGroupAction, MinimizeOtherGroupsAction, MinimizeOtherGroupsHideSidebarAction, 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, ClearEditorHistoryWithoutConfirmAction, EditorLayoutSingleAction, EditorLayoutTwoColumnsAction, EditorLayoutThreeColumnsAction, EditorLayoutTwoRowsAction, EditorLayoutThreeRowsAction, EditorLayoutTwoByTwoGridAction, EditorLayoutTwoRowsRightAction, EditorLayoutTwoColumnsBottomAction, ToggleEditorTypeAction, ReOpenInTextEditorAction, QuickAccessPreviousRecentlyUsedEditorAction, QuickAccessLeastRecentlyUsedEditorAction, QuickAccessPreviousRecentlyUsedEditorInGroupAction, QuickAccessLeastRecentlyUsedEditorInGroupAction, QuickAccessPreviousEditorFromHistoryAction, MoveEditorToNewWindowAction, CopyEditorToNewindowAction, MoveEditorGroupToNewWindowAction, CopyEditorGroupToNewWindowAction, RestoreEditorsToMainWindowAction, NewEmptyEditorWindowAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorActions';
|
|
20
|
+
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, MaximizeGroupHideSidebarAction, ToggleMaximizeEditorGroupAction, MinimizeOtherGroupsAction, MinimizeOtherGroupsHideSidebarAction, MoveEditorLeftInGroupAction, MoveEditorRightInGroupAction, MoveEditorToStartAction, MoveEditorToEndAction, 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, ClearEditorHistoryWithoutConfirmAction, EditorLayoutSingleAction, EditorLayoutTwoColumnsAction, EditorLayoutThreeColumnsAction, EditorLayoutTwoRowsAction, EditorLayoutThreeRowsAction, EditorLayoutTwoByTwoGridAction, EditorLayoutTwoRowsRightAction, EditorLayoutTwoColumnsBottomAction, ToggleEditorTypeAction, ReOpenInTextEditorAction, QuickAccessPreviousRecentlyUsedEditorAction, QuickAccessLeastRecentlyUsedEditorAction, QuickAccessPreviousRecentlyUsedEditorInGroupAction, QuickAccessLeastRecentlyUsedEditorInGroupAction, QuickAccessPreviousEditorFromHistoryAction, MoveEditorToNewWindowAction, CopyEditorToNewindowAction, MoveEditorGroupToNewWindowAction, CopyEditorGroupToNewWindowAction, RestoreEditorsToMainWindowAction, NewEmptyEditorWindowAction } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorActions';
|
|
21
21
|
import { setup, LOCK_GROUP_COMMAND_ID, UNLOCK_GROUP_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, TOGGLE_LOCK_GROUP_COMMAND_ID, MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_GROUP_INTO_NEW_WINDOW_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, MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, MOVE_EDITOR_INTO_ABOVE_GROUP, MOVE_EDITOR_INTO_BELOW_GROUP, MOVE_EDITOR_INTO_LEFT_GROUP, MOVE_EDITOR_INTO_RIGHT_GROUP, SPLIT_EDITOR_IN_GROUP, JOIN_EDITOR_IN_GROUP, SHOW_EDITORS_IN_GROUP, TOGGLE_KEEP_EDITORS_COMMAND_ID, TOGGLE_MAXIMIZE_EDITOR_GROUP, TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT, CLOSE_PINNED_EDITOR_COMMAND_ID, CLOSE_EDITORS_AND_GROUP_COMMAND_ID, FOCUS_FIRST_SIDE_EDITOR, FOCUS_SECOND_SIDE_EDITOR } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
22
22
|
import { TOGGLE_DIFF_SIDE_BY_SIDE, GOTO_PREVIOUS_CHANGE, GOTO_NEXT_CHANGE, DIFF_SWAP_SIDES, TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/diffEditorCommands';
|
|
23
23
|
import { inQuickPickContext, getQuickNavigateHandler } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/quickaccess';
|
|
@@ -38,17 +38,17 @@ import { getFontSnippets } from '@codingame/monaco-vscode-api/vscode/vs/base/bro
|
|
|
38
38
|
import { registerEditorFontConfigurations } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorConfigurationSchema';
|
|
39
39
|
import '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
|
|
40
40
|
|
|
41
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(
|
|
41
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(3117, "Text Editor"))), [
|
|
42
42
|
( new SyncDescriptor(UntitledTextEditorInput)),
|
|
43
43
|
( new SyncDescriptor(TextResourceEditorInput))
|
|
44
44
|
]);
|
|
45
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(
|
|
45
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(3118, "Text Diff Editor"))), [
|
|
46
46
|
( new SyncDescriptor(DiffEditorInput))
|
|
47
47
|
]);
|
|
48
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(
|
|
48
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(3119, "Binary Diff Editor"))), [
|
|
49
49
|
( new SyncDescriptor(DiffEditorInput))
|
|
50
50
|
]);
|
|
51
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(
|
|
51
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(3120, "Side by Side Editor"))), [
|
|
52
52
|
( new SyncDescriptor(SideBySideEditorInput))
|
|
53
53
|
]);
|
|
54
54
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(UntitledTextEditorInput.ID, UntitledTextEditorInputSerializer);
|
|
@@ -64,22 +64,22 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
64
64
|
ctor: ActiveGroupEditorsByMostRecentlyUsedQuickAccess,
|
|
65
65
|
prefix: ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
66
66
|
contextKey: editorPickerContextKey,
|
|
67
|
-
placeholder: ( localize(
|
|
68
|
-
helpEntries: [{ description: ( localize(
|
|
67
|
+
placeholder: ( localize(3121, "Type the name of an editor to open it.")),
|
|
68
|
+
helpEntries: [{ description: ( localize(3122, "Show Editors in Active Group by Most Recently Used")), commandId: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID }]
|
|
69
69
|
});
|
|
70
70
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
71
71
|
ctor: AllEditorsByAppearanceQuickAccess,
|
|
72
72
|
prefix: AllEditorsByAppearanceQuickAccess.PREFIX,
|
|
73
73
|
contextKey: editorPickerContextKey,
|
|
74
|
-
placeholder: ( localize(
|
|
75
|
-
helpEntries: [{ description: ( localize(
|
|
74
|
+
placeholder: ( localize(3121, "Type the name of an editor to open it.")),
|
|
75
|
+
helpEntries: [{ description: ( localize(3123, "Show All Opened Editors By Appearance")), commandId: ShowAllEditorsByAppearanceAction.ID }]
|
|
76
76
|
});
|
|
77
77
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
78
78
|
ctor: AllEditorsByMostRecentlyUsedQuickAccess,
|
|
79
79
|
prefix: AllEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
80
80
|
contextKey: editorPickerContextKey,
|
|
81
|
-
placeholder: ( localize(
|
|
82
|
-
helpEntries: [{ description: ( localize(
|
|
81
|
+
placeholder: ( localize(3121, "Type the name of an editor to open it.")),
|
|
82
|
+
helpEntries: [{ description: ( localize(3124, "Show All Opened Editors By Most Recently Used")), commandId: ShowAllEditorsByMostRecentlyUsedAction.ID }]
|
|
83
83
|
});
|
|
84
84
|
registerAction2(ChangeLanguageAction);
|
|
85
85
|
registerAction2(ChangeEOLAction);
|
|
@@ -124,6 +124,8 @@ registerAction2(MinimizeOtherGroupsAction);
|
|
|
124
124
|
registerAction2(MinimizeOtherGroupsHideSidebarAction);
|
|
125
125
|
registerAction2(MoveEditorLeftInGroupAction);
|
|
126
126
|
registerAction2(MoveEditorRightInGroupAction);
|
|
127
|
+
registerAction2(MoveEditorToStartAction);
|
|
128
|
+
registerAction2(MoveEditorToEndAction);
|
|
127
129
|
registerAction2(MoveGroupLeftAction);
|
|
128
130
|
registerAction2(MoveGroupRightAction);
|
|
129
131
|
registerAction2(MoveGroupUpAction);
|
|
@@ -224,69 +226,69 @@ if (isMacintosh) {
|
|
|
224
226
|
order: 1
|
|
225
227
|
});
|
|
226
228
|
}
|
|
227
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
228
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
229
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(
|
|
230
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
231
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
232
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
233
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
234
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(
|
|
235
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
236
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(
|
|
237
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
238
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
239
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
240
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
241
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
242
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
243
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(
|
|
244
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(
|
|
245
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(
|
|
246
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(
|
|
247
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(
|
|
248
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(
|
|
249
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(
|
|
250
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(
|
|
251
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(
|
|
252
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(
|
|
253
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(
|
|
254
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(
|
|
255
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(
|
|
256
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(
|
|
257
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
258
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(
|
|
259
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(
|
|
260
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
261
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(
|
|
262
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(
|
|
263
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(
|
|
264
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(
|
|
265
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR, title: ( localize(
|
|
266
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR, title: ( localize(
|
|
267
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorSplitMoveSubmenu, title: ( localize(
|
|
268
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
269
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
270
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(
|
|
271
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
272
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
273
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
274
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
275
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_ABOVE_GROUP, title: ( localize(
|
|
276
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_BELOW_GROUP, title: ( localize(
|
|
277
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_LEFT_GROUP, title: ( localize(
|
|
278
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_RIGHT_GROUP, title: ( localize(
|
|
279
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(
|
|
280
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localize(
|
|
281
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(
|
|
282
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(
|
|
283
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
284
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(
|
|
285
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(
|
|
286
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(
|
|
287
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(
|
|
288
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
289
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(
|
|
229
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(3125, "Lock Group")), icon: Codicon.unlock }, group: 'navigation', order: 10, when: ( ContextKeyExpr.and(IsAuxiliaryWindowContext, ( ActiveEditorGroupLockedContext.toNegated()))) });
|
|
230
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(3126, "Unlock Group")), icon: Codicon.lock, toggled: ContextKeyExpr.true() }, group: 'navigation', order: 10, when: ActiveEditorGroupLockedContext });
|
|
231
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(3127, "Close Group")), icon: Codicon.close }, group: 'navigation', order: 20, when: ( ContextKeyExpr.or(IsAuxiliaryWindowContext, EditorPartMultipleEditorGroupsContext)) });
|
|
232
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(3128, "Split Up")) }, group: '2_split', order: 10 });
|
|
233
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(3129, "Split Down")) }, group: '2_split', order: 20 });
|
|
234
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(3130, "Split Left")) }, group: '2_split', order: 30 });
|
|
235
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(3131, "Split Right")) }, group: '2_split', order: 40 });
|
|
236
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(3132, "New Window")) }, group: '3_window', order: 10 });
|
|
237
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(3133, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '4_lock', order: 10, when: ( IsAuxiliaryWindowContext.toNegated()) });
|
|
238
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(3134, "Close")) }, group: '5_close', order: 10, when: MultipleEditorGroupsContext });
|
|
239
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(3128, "Split Up")) }, group: '2_split', order: 10 });
|
|
240
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(3129, "Split Down")) }, group: '2_split', order: 20 });
|
|
241
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(3130, "Split Left")) }, group: '2_split', order: 30 });
|
|
242
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(3131, "Split Right")) }, group: '2_split', order: 40 });
|
|
243
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(3135, "Move into New Window")) }, group: '3_window', order: 10 });
|
|
244
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(3136, "Copy into New Window")) }, group: '3_window', order: 20 });
|
|
245
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(3137, "Tab Bar")), group: '4_config', order: 10, when: ( InEditorZenModeContext.negate()) });
|
|
246
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(3138, "Multiple Tabs")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'multiple')) }, group: '1_config', order: 10 });
|
|
247
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(3139, "Single Tab")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'single')) }, group: '1_config', order: 20 });
|
|
248
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(3140, "Hidden")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')) }, group: '1_config', order: 30 });
|
|
249
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(3137, "Tab Bar")), group: '4_config', order: 10, when: InEditorZenModeContext });
|
|
250
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(3138, "Multiple Tabs")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'multiple')) }, group: '1_config', order: 10 });
|
|
251
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(3139, "Single Tab")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'single')) }, group: '1_config', order: 20 });
|
|
252
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(3140, "Hidden")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'none')) }, group: '1_config', order: 30 });
|
|
253
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(3141, "Editor Actions Position")), group: '4_config', order: 20 });
|
|
254
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(3137, "Tab Bar")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default')) }, group: '1_config', order: 10, when: ( ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')).negate()) });
|
|
255
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(3142, "Title Bar")), toggled: ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'titleBar')), ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')), ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default')))))) }, group: '1_config', order: 20 });
|
|
256
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(3143, "Hidden")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'hidden')) }, group: '1_config', order: 30 });
|
|
257
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(3144, "Configure Tabs")) }, group: '9_configure', order: 10 });
|
|
258
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(3134, "Close")) }, group: '1_close', order: 10 });
|
|
259
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(3145, "Close Others")), precondition: ( EditorGroupEditorsCountContext.notEqualsTo('1')) }, group: '1_close', order: 20 });
|
|
260
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(3146, "Close to the Right")), precondition: ( ContextKeyExpr.and(( ActiveEditorLastInGroupContext.toNegated()), ( MultipleEditorsSelectedInGroupContext.negate()))) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
|
|
261
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(3147, "Close Saved")) }, group: '1_close', order: 40 });
|
|
262
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(3148, "Close All")) }, group: '1_close', order: 50 });
|
|
263
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(3149, "Reopen Editor With...")) }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
|
|
264
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(3150, "Keep Open")), precondition: ( ActiveEditorPinnedContext.toNegated()) }, group: '3_preview', order: 10, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
|
|
265
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(3151, "Pin")) }, group: '3_preview', order: 20, when: ( ActiveEditorStickyContext.toNegated()) });
|
|
266
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(3152, "Unpin")) }, group: '3_preview', order: 20, when: ActiveEditorStickyContext });
|
|
267
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR, title: ( localize(3131, "Split Right")) }, group: '5_split', order: 10, when: ( SplitEditorsVertically.negate()) });
|
|
268
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR, title: ( localize(3129, "Split Down")) }, group: '5_split', order: 10, when: SplitEditorsVertically });
|
|
269
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorSplitMoveSubmenu, title: ( localize(3153, "Split & Move")), group: '5_split', order: 15 });
|
|
270
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(3154, "Move into New Window")) }, group: '7_new_window', order: 10 });
|
|
271
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(3155, "Copy into New Window")) }, group: '7_new_window', order: 20 });
|
|
272
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(3156, "Share")), group: '11_share', order: -1, when: ( MultipleEditorsSelectedInGroupContext.negate()) });
|
|
273
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_UP, title: ( localize(3128, "Split Up")) }, group: '1_split', order: 10 });
|
|
274
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(3129, "Split Down")) }, group: '1_split', order: 20 });
|
|
275
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(3130, "Split Left")) }, group: '1_split', order: 30 });
|
|
276
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(3131, "Split Right")) }, group: '1_split', order: 40 });
|
|
277
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_ABOVE_GROUP, title: ( localize(3157, "Move Above")) }, group: '2_move', order: 10 });
|
|
278
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_BELOW_GROUP, title: ( localize(3158, "Move Below")) }, group: '2_move', order: 20 });
|
|
279
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_LEFT_GROUP, title: ( localize(3159, "Move Left")) }, group: '2_move', order: 30 });
|
|
280
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_RIGHT_GROUP, title: ( localize(3160, "Move Right")) }, group: '2_move', order: 40 });
|
|
281
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(3161, "Split in Group")), precondition: ( MultipleEditorsSelectedInGroupContext.negate()) }, group: '3_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
|
|
282
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localize(3162, "Join in Group")), precondition: ( MultipleEditorsSelectedInGroupContext.negate()) }, group: '3_split_in_group', order: 10, when: SideBySideEditorActiveContext });
|
|
283
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(3163, "Inline View")), toggled: ( ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false)) }, group: '1_diff', order: 10, when: ( ContextKeyExpr.has('isInDiffEditor')) });
|
|
284
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(3164, "Show Opened Editors")) }, group: '3_open', order: 10 });
|
|
285
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(3148, "Close All")) }, group: '5_close', order: 10 });
|
|
286
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(3147, "Close Saved")) }, group: '5_close', order: 20 });
|
|
287
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(3165, "Enable Preview Editors")), toggled: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) }, group: '7_settings', order: 10 });
|
|
288
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(3166, "Maximize Group")) }, group: '8_group_operations', order: 5, when: ( ContextKeyExpr.and(( EditorPartMaximizedEditorGroupContext.negate()), EditorPartMultipleEditorGroupsContext)) });
|
|
289
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(3167, "Unmaximize Group")) }, group: '8_group_operations', order: 5, when: EditorPartMaximizedEditorGroupContext });
|
|
290
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(3168, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( IsAuxiliaryWindowContext.toNegated()) });
|
|
291
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(3169, "Configure Editors")) }, group: '9_configure', order: 10 });
|
|
290
292
|
function appendEditorToolItem(primary, when, order, alternative, precondition, enableInCompactMode) {
|
|
291
293
|
const item = {
|
|
292
294
|
command: {
|
|
@@ -316,96 +318,96 @@ const SPLIT_ORDER = 100000;
|
|
|
316
318
|
const CLOSE_ORDER = 1000000;
|
|
317
319
|
appendEditorToolItem({
|
|
318
320
|
id: SPLIT_EDITOR,
|
|
319
|
-
title: ( localize(
|
|
321
|
+
title: ( localize(3170, "Split Editor Right")),
|
|
320
322
|
icon: Codicon.splitHorizontal
|
|
321
323
|
}, ( SplitEditorsVertically.negate()), SPLIT_ORDER, {
|
|
322
324
|
id: SPLIT_EDITOR_DOWN,
|
|
323
|
-
title: ( localize(
|
|
325
|
+
title: ( localize(3171, "Split Editor Down")),
|
|
324
326
|
icon: Codicon.splitVertical
|
|
325
327
|
});
|
|
326
328
|
appendEditorToolItem({
|
|
327
329
|
id: SPLIT_EDITOR,
|
|
328
|
-
title: ( localize(
|
|
330
|
+
title: ( localize(3171, "Split Editor Down")),
|
|
329
331
|
icon: Codicon.splitVertical
|
|
330
332
|
}, SplitEditorsVertically, SPLIT_ORDER, {
|
|
331
333
|
id: SPLIT_EDITOR_RIGHT,
|
|
332
|
-
title: ( localize(
|
|
334
|
+
title: ( localize(3170, "Split Editor Right")),
|
|
333
335
|
icon: Codicon.splitHorizontal
|
|
334
336
|
});
|
|
335
337
|
appendEditorToolItem({
|
|
336
338
|
id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
|
|
337
|
-
title: ( localize(
|
|
339
|
+
title: ( localize(3172, "Toggle Layout")),
|
|
338
340
|
icon: Codicon.editorLayout
|
|
339
341
|
}, SideBySideEditorActiveContext, SPLIT_ORDER - 1);
|
|
340
342
|
appendEditorToolItem({
|
|
341
343
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
342
|
-
title: ( localize(
|
|
344
|
+
title: ( localize(3134, "Close")),
|
|
343
345
|
icon: Codicon.close
|
|
344
346
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
345
347
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
346
|
-
title: ( localize(
|
|
348
|
+
title: ( localize(3148, "Close All")),
|
|
347
349
|
icon: Codicon.closeAll
|
|
348
350
|
});
|
|
349
351
|
appendEditorToolItem({
|
|
350
352
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
351
|
-
title: ( localize(
|
|
353
|
+
title: ( localize(3134, "Close")),
|
|
352
354
|
icon: Codicon.closeDirty
|
|
353
355
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
354
356
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
355
|
-
title: ( localize(
|
|
357
|
+
title: ( localize(3148, "Close All")),
|
|
356
358
|
icon: Codicon.closeAll
|
|
357
359
|
});
|
|
358
360
|
appendEditorToolItem({
|
|
359
361
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
360
|
-
title: ( localize(
|
|
362
|
+
title: ( localize(3152, "Unpin")),
|
|
361
363
|
icon: Codicon.pinned
|
|
362
364
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
363
365
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
364
|
-
title: ( localize(
|
|
366
|
+
title: ( localize(3134, "Close")),
|
|
365
367
|
icon: Codicon.close
|
|
366
368
|
});
|
|
367
369
|
appendEditorToolItem({
|
|
368
370
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
369
|
-
title: ( localize(
|
|
371
|
+
title: ( localize(3152, "Unpin")),
|
|
370
372
|
icon: Codicon.pinnedDirty
|
|
371
373
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
372
374
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
373
|
-
title: ( localize(
|
|
375
|
+
title: ( localize(3134, "Close")),
|
|
374
376
|
icon: Codicon.close
|
|
375
377
|
});
|
|
376
378
|
appendEditorToolItem({
|
|
377
379
|
id: LOCK_GROUP_COMMAND_ID,
|
|
378
|
-
title: ( localize(
|
|
380
|
+
title: ( localize(3173, "Lock Group")),
|
|
379
381
|
icon: Codicon.unlock
|
|
380
382
|
}, ( ContextKeyExpr.and(IsAuxiliaryWindowContext, ( ActiveEditorGroupLockedContext.toNegated()))), CLOSE_ORDER - 1);
|
|
381
383
|
appendEditorToolItem({
|
|
382
384
|
id: UNLOCK_GROUP_COMMAND_ID,
|
|
383
|
-
title: ( localize(
|
|
385
|
+
title: ( localize(3174, "Unlock Group")),
|
|
384
386
|
icon: Codicon.lock,
|
|
385
387
|
toggled: ContextKeyExpr.true()
|
|
386
388
|
}, ActiveEditorGroupLockedContext, CLOSE_ORDER - 1);
|
|
387
|
-
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(
|
|
389
|
+
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(3175, 'Icon for the previous change action in the diff editor.')));
|
|
388
390
|
appendEditorToolItem({
|
|
389
391
|
id: GOTO_PREVIOUS_CHANGE,
|
|
390
|
-
title: ( localize(
|
|
392
|
+
title: ( localize(3176, "Previous Change")),
|
|
391
393
|
icon: previousChangeIcon
|
|
392
394
|
}, TextCompareEditorActiveContext, 10, undefined, EditorContextKeys.hasChanges, true);
|
|
393
|
-
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(
|
|
395
|
+
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(3177, 'Icon for the next change action in the diff editor.')));
|
|
394
396
|
appendEditorToolItem({
|
|
395
397
|
id: GOTO_NEXT_CHANGE,
|
|
396
|
-
title: ( localize(
|
|
398
|
+
title: ( localize(3178, "Next Change")),
|
|
397
399
|
icon: nextChangeIcon
|
|
398
400
|
}, TextCompareEditorActiveContext, 11, undefined, EditorContextKeys.hasChanges, true);
|
|
399
401
|
appendEditorToolItem({
|
|
400
402
|
id: DIFF_SWAP_SIDES,
|
|
401
|
-
title: ( localize(
|
|
403
|
+
title: ( localize(3179, "Swap Left and Right Side")),
|
|
402
404
|
icon: Codicon.arrowSwap
|
|
403
405
|
}, ( ContextKeyExpr.and(TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext)), 15, undefined, undefined);
|
|
404
|
-
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(
|
|
406
|
+
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(3180, 'Icon for the toggle whitespace action in the diff editor.')));
|
|
405
407
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
406
408
|
command: {
|
|
407
409
|
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
408
|
-
title: ( localize(
|
|
410
|
+
title: ( localize(3181, "Show Leading/Trailing Whitespace Differences")),
|
|
409
411
|
icon: toggleWhitespace,
|
|
410
412
|
precondition: TextCompareEditorActiveContext,
|
|
411
413
|
toggled: ( ContextKeyExpr.equals('config.diffEditor.ignoreTrimWhitespace', false)),
|
|
@@ -414,22 +416,22 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
414
416
|
when: TextCompareEditorActiveContext,
|
|
415
417
|
order: 20,
|
|
416
418
|
});
|
|
417
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(
|
|
418
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
419
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
420
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(
|
|
421
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(
|
|
422
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
423
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(
|
|
424
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
425
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(
|
|
426
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(
|
|
427
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(
|
|
419
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(3182, 'Keep Editor')), category: Categories.View }, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
|
|
420
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(3183, 'Pin Editor')), category: Categories.View } });
|
|
421
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(3184, 'Unpin Editor')), category: Categories.View } });
|
|
422
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(3185, 'Close Editor')), category: Categories.View } });
|
|
423
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(3186, 'Close Pinned Editor')), category: Categories.View } });
|
|
424
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(3187, 'Close All Editors in Group')), category: Categories.View } });
|
|
425
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(3188, 'Close Saved Editors in Group')), category: Categories.View } });
|
|
426
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(3189, 'Close Other Editors in Group')), category: Categories.View } });
|
|
427
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(3190, 'Close Editors to the Right in Group')), category: Categories.View }, when: ( ActiveEditorLastInGroupContext.toNegated()) });
|
|
428
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(3191, 'Close Editor Group')), category: Categories.View }, when: MultipleEditorGroupsContext });
|
|
429
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(3149, "Reopen Editor With...")), category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
|
|
428
430
|
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
429
431
|
group: '1_editor',
|
|
430
432
|
command: {
|
|
431
433
|
id: ReopenClosedEditorAction.ID,
|
|
432
|
-
title: ( localize(
|
|
434
|
+
title: ( localize(3192, "&&Reopen Closed Editor")),
|
|
433
435
|
precondition: ( ContextKeyExpr.has('canReopenClosedEditor'))
|
|
434
436
|
},
|
|
435
437
|
order: 1
|
|
@@ -438,19 +440,19 @@ MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
|
438
440
|
group: 'z_clear',
|
|
439
441
|
command: {
|
|
440
442
|
id: ClearRecentFilesAction.ID,
|
|
441
|
-
title: ( localize(
|
|
443
|
+
title: ( localize(3193, "&&Clear Recently Opened..."))
|
|
442
444
|
},
|
|
443
445
|
order: 1
|
|
444
446
|
});
|
|
445
447
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
446
|
-
title: ( localize(
|
|
448
|
+
title: ( localize(3194, "Share")),
|
|
447
449
|
submenu: MenuId.MenubarShare,
|
|
448
450
|
group: '45_share',
|
|
449
451
|
order: 1,
|
|
450
452
|
});
|
|
451
453
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
452
454
|
group: '2_appearance',
|
|
453
|
-
title: ( localize(
|
|
455
|
+
title: ( localize(3195, "Editor &&Layout")),
|
|
454
456
|
submenu: MenuId.MenubarLayoutMenu,
|
|
455
457
|
order: 2
|
|
456
458
|
});
|
|
@@ -459,8 +461,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
459
461
|
command: {
|
|
460
462
|
id: SPLIT_EDITOR_UP,
|
|
461
463
|
title: {
|
|
462
|
-
...( localize2(
|
|
463
|
-
mnemonicTitle: ( localize(
|
|
464
|
+
...( localize2(3196, "Split Up")),
|
|
465
|
+
mnemonicTitle: ( localize(3197, "Split &&Up")),
|
|
464
466
|
}
|
|
465
467
|
},
|
|
466
468
|
order: 1
|
|
@@ -470,8 +472,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
470
472
|
command: {
|
|
471
473
|
id: SPLIT_EDITOR_DOWN,
|
|
472
474
|
title: {
|
|
473
|
-
...( localize2(
|
|
474
|
-
mnemonicTitle: ( localize(
|
|
475
|
+
...( localize2(3198, "Split Down")),
|
|
476
|
+
mnemonicTitle: ( localize(3199, "Split &&Down")),
|
|
475
477
|
}
|
|
476
478
|
},
|
|
477
479
|
order: 2
|
|
@@ -481,8 +483,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
481
483
|
command: {
|
|
482
484
|
id: SPLIT_EDITOR_LEFT,
|
|
483
485
|
title: {
|
|
484
|
-
...( localize2(
|
|
485
|
-
mnemonicTitle: ( localize(
|
|
486
|
+
...( localize2(3200, "Split Left")),
|
|
487
|
+
mnemonicTitle: ( localize(3201, "Split &&Left")),
|
|
486
488
|
}
|
|
487
489
|
},
|
|
488
490
|
order: 3
|
|
@@ -492,8 +494,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
492
494
|
command: {
|
|
493
495
|
id: SPLIT_EDITOR_RIGHT,
|
|
494
496
|
title: {
|
|
495
|
-
...( localize2(
|
|
496
|
-
mnemonicTitle: ( localize(
|
|
497
|
+
...( localize2(3202, "Split Right")),
|
|
498
|
+
mnemonicTitle: ( localize(3203, "Split &&Right")),
|
|
497
499
|
}
|
|
498
500
|
},
|
|
499
501
|
order: 4
|
|
@@ -503,8 +505,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
503
505
|
command: {
|
|
504
506
|
id: SPLIT_EDITOR_IN_GROUP,
|
|
505
507
|
title: {
|
|
506
|
-
...( localize2(
|
|
507
|
-
mnemonicTitle: ( localize(
|
|
508
|
+
...( localize2(3204, "Split in Group")),
|
|
509
|
+
mnemonicTitle: ( localize(3205, "Split in &&Group")),
|
|
508
510
|
}
|
|
509
511
|
},
|
|
510
512
|
when: ActiveEditorCanSplitInGroupContext,
|
|
@@ -515,8 +517,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
515
517
|
command: {
|
|
516
518
|
id: JOIN_EDITOR_IN_GROUP,
|
|
517
519
|
title: {
|
|
518
|
-
...( localize2(
|
|
519
|
-
mnemonicTitle: ( localize(
|
|
520
|
+
...( localize2(3206, "Join in Group")),
|
|
521
|
+
mnemonicTitle: ( localize(3207, "Join in &&Group")),
|
|
520
522
|
}
|
|
521
523
|
},
|
|
522
524
|
when: SideBySideEditorActiveContext,
|
|
@@ -527,8 +529,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
527
529
|
command: {
|
|
528
530
|
id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
529
531
|
title: {
|
|
530
|
-
...( localize2(
|
|
531
|
-
mnemonicTitle: ( localize(
|
|
532
|
+
...( localize2(3208, "Move Editor into New Window")),
|
|
533
|
+
mnemonicTitle: ( localize(3209, "&&Move Editor into New Window")),
|
|
532
534
|
}
|
|
533
535
|
},
|
|
534
536
|
order: 1
|
|
@@ -538,8 +540,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
538
540
|
command: {
|
|
539
541
|
id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
540
542
|
title: {
|
|
541
|
-
...( localize2(
|
|
542
|
-
mnemonicTitle: ( localize(
|
|
543
|
+
...( localize2(3210, "Copy Editor into New Window")),
|
|
544
|
+
mnemonicTitle: ( localize(3211, "&&Copy Editor into New Window")),
|
|
543
545
|
}
|
|
544
546
|
},
|
|
545
547
|
order: 2
|
|
@@ -549,8 +551,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
549
551
|
command: {
|
|
550
552
|
id: EditorLayoutSingleAction.ID,
|
|
551
553
|
title: {
|
|
552
|
-
...( localize2(
|
|
553
|
-
mnemonicTitle: ( localize(
|
|
554
|
+
...( localize2(3212, "Single")),
|
|
555
|
+
mnemonicTitle: ( localize(3213, "&&Single")),
|
|
554
556
|
}
|
|
555
557
|
},
|
|
556
558
|
order: 1
|
|
@@ -560,8 +562,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
560
562
|
command: {
|
|
561
563
|
id: EditorLayoutTwoColumnsAction.ID,
|
|
562
564
|
title: {
|
|
563
|
-
...( localize2(
|
|
564
|
-
mnemonicTitle: ( localize(
|
|
565
|
+
...( localize2(3214, "Two Columns")),
|
|
566
|
+
mnemonicTitle: ( localize(3215, "&&Two Columns")),
|
|
565
567
|
}
|
|
566
568
|
},
|
|
567
569
|
order: 3
|
|
@@ -571,8 +573,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
571
573
|
command: {
|
|
572
574
|
id: EditorLayoutThreeColumnsAction.ID,
|
|
573
575
|
title: {
|
|
574
|
-
...( localize2(
|
|
575
|
-
mnemonicTitle: ( localize(
|
|
576
|
+
...( localize2(3216, "Three Columns")),
|
|
577
|
+
mnemonicTitle: ( localize(3217, "T&&hree Columns")),
|
|
576
578
|
}
|
|
577
579
|
},
|
|
578
580
|
order: 4
|
|
@@ -582,8 +584,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
582
584
|
command: {
|
|
583
585
|
id: EditorLayoutTwoRowsAction.ID,
|
|
584
586
|
title: {
|
|
585
|
-
...( localize2(
|
|
586
|
-
mnemonicTitle: ( localize(
|
|
587
|
+
...( localize2(3218, "Two Rows")),
|
|
588
|
+
mnemonicTitle: ( localize(3219, "T&&wo Rows")),
|
|
587
589
|
}
|
|
588
590
|
},
|
|
589
591
|
order: 5
|
|
@@ -593,8 +595,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
593
595
|
command: {
|
|
594
596
|
id: EditorLayoutThreeRowsAction.ID,
|
|
595
597
|
title: {
|
|
596
|
-
...( localize2(
|
|
597
|
-
mnemonicTitle: ( localize(
|
|
598
|
+
...( localize2(3220, "Three Rows")),
|
|
599
|
+
mnemonicTitle: ( localize(3221, "Three &&Rows")),
|
|
598
600
|
}
|
|
599
601
|
},
|
|
600
602
|
order: 6
|
|
@@ -604,8 +606,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
604
606
|
command: {
|
|
605
607
|
id: EditorLayoutTwoByTwoGridAction.ID,
|
|
606
608
|
title: {
|
|
607
|
-
...( localize2(
|
|
608
|
-
mnemonicTitle: ( localize(
|
|
609
|
+
...( localize2(3222, "Grid (2x2)")),
|
|
610
|
+
mnemonicTitle: ( localize(3223, "&&Grid (2x2)")),
|
|
609
611
|
}
|
|
610
612
|
},
|
|
611
613
|
order: 7
|
|
@@ -615,8 +617,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
615
617
|
command: {
|
|
616
618
|
id: EditorLayoutTwoRowsRightAction.ID,
|
|
617
619
|
title: {
|
|
618
|
-
...( localize2(
|
|
619
|
-
mnemonicTitle: ( localize(
|
|
620
|
+
...( localize2(3224, "Two Rows Right")),
|
|
621
|
+
mnemonicTitle: ( localize(3225, "Two R&&ows Right")),
|
|
620
622
|
}
|
|
621
623
|
},
|
|
622
624
|
order: 8
|
|
@@ -626,8 +628,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
626
628
|
command: {
|
|
627
629
|
id: EditorLayoutTwoColumnsBottomAction.ID,
|
|
628
630
|
title: {
|
|
629
|
-
...( localize2(
|
|
630
|
-
mnemonicTitle: ( localize(
|
|
631
|
+
...( localize2(3226, "Two Columns Bottom")),
|
|
632
|
+
mnemonicTitle: ( localize(3227, "Two &&Columns Bottom")),
|
|
631
633
|
}
|
|
632
634
|
},
|
|
633
635
|
order: 9
|
|
@@ -636,7 +638,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
636
638
|
group: '1_history_nav',
|
|
637
639
|
command: {
|
|
638
640
|
id: 'workbench.action.navigateToLastEditLocation',
|
|
639
|
-
title: ( localize(
|
|
641
|
+
title: ( localize(3228, "&&Last Edit Location")),
|
|
640
642
|
precondition: ( ContextKeyExpr.has('canNavigateToLastEditLocation'))
|
|
641
643
|
},
|
|
642
644
|
order: 3
|
|
@@ -645,7 +647,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
645
647
|
group: '1_sideBySide',
|
|
646
648
|
command: {
|
|
647
649
|
id: FOCUS_FIRST_SIDE_EDITOR,
|
|
648
|
-
title: ( localize(
|
|
650
|
+
title: ( localize(3229, "&&First Side in Editor"))
|
|
649
651
|
},
|
|
650
652
|
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
651
653
|
order: 1
|
|
@@ -654,7 +656,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
654
656
|
group: '1_sideBySide',
|
|
655
657
|
command: {
|
|
656
658
|
id: FOCUS_SECOND_SIDE_EDITOR,
|
|
657
|
-
title: ( localize(
|
|
659
|
+
title: ( localize(3230, "&&Second Side in Editor"))
|
|
658
660
|
},
|
|
659
661
|
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
660
662
|
order: 2
|
|
@@ -663,7 +665,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
663
665
|
group: '2_any',
|
|
664
666
|
command: {
|
|
665
667
|
id: 'workbench.action.nextEditor',
|
|
666
|
-
title: ( localize(
|
|
668
|
+
title: ( localize(3231, "&&Next Editor"))
|
|
667
669
|
},
|
|
668
670
|
order: 1
|
|
669
671
|
});
|
|
@@ -671,7 +673,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
671
673
|
group: '2_any',
|
|
672
674
|
command: {
|
|
673
675
|
id: 'workbench.action.previousEditor',
|
|
674
|
-
title: ( localize(
|
|
676
|
+
title: ( localize(3232, "&&Previous Editor"))
|
|
675
677
|
},
|
|
676
678
|
order: 2
|
|
677
679
|
});
|
|
@@ -679,7 +681,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
679
681
|
group: '3_any_used',
|
|
680
682
|
command: {
|
|
681
683
|
id: 'workbench.action.openNextRecentlyUsedEditor',
|
|
682
|
-
title: ( localize(
|
|
684
|
+
title: ( localize(3233, "&&Next Used Editor"))
|
|
683
685
|
},
|
|
684
686
|
order: 1
|
|
685
687
|
});
|
|
@@ -687,7 +689,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
687
689
|
group: '3_any_used',
|
|
688
690
|
command: {
|
|
689
691
|
id: 'workbench.action.openPreviousRecentlyUsedEditor',
|
|
690
|
-
title: ( localize(
|
|
692
|
+
title: ( localize(3234, "&&Previous Used Editor"))
|
|
691
693
|
},
|
|
692
694
|
order: 2
|
|
693
695
|
});
|
|
@@ -695,7 +697,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
695
697
|
group: '4_group',
|
|
696
698
|
command: {
|
|
697
699
|
id: 'workbench.action.nextEditorInGroup',
|
|
698
|
-
title: ( localize(
|
|
700
|
+
title: ( localize(3235, "&&Next Editor in Group"))
|
|
699
701
|
},
|
|
700
702
|
order: 1
|
|
701
703
|
});
|
|
@@ -703,7 +705,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
703
705
|
group: '4_group',
|
|
704
706
|
command: {
|
|
705
707
|
id: 'workbench.action.previousEditorInGroup',
|
|
706
|
-
title: ( localize(
|
|
708
|
+
title: ( localize(3236, "&&Previous Editor in Group"))
|
|
707
709
|
},
|
|
708
710
|
order: 2
|
|
709
711
|
});
|
|
@@ -711,7 +713,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
711
713
|
group: '5_group_used',
|
|
712
714
|
command: {
|
|
713
715
|
id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
714
|
-
title: ( localize(
|
|
716
|
+
title: ( localize(3237, "&&Next Used Editor in Group"))
|
|
715
717
|
},
|
|
716
718
|
order: 1
|
|
717
719
|
});
|
|
@@ -719,13 +721,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
719
721
|
group: '5_group_used',
|
|
720
722
|
command: {
|
|
721
723
|
id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
722
|
-
title: ( localize(
|
|
724
|
+
title: ( localize(3238, "&&Previous Used Editor in Group"))
|
|
723
725
|
},
|
|
724
726
|
order: 2
|
|
725
727
|
});
|
|
726
728
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
727
729
|
group: '2_editor_nav',
|
|
728
|
-
title: ( localize(
|
|
730
|
+
title: ( localize(3239, "Switch &&Editor")),
|
|
729
731
|
submenu: MenuId.MenubarSwitchEditorMenu,
|
|
730
732
|
order: 1
|
|
731
733
|
});
|
|
@@ -733,7 +735,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
733
735
|
group: '1_focus_index',
|
|
734
736
|
command: {
|
|
735
737
|
id: 'workbench.action.focusFirstEditorGroup',
|
|
736
|
-
title: ( localize(
|
|
738
|
+
title: ( localize(3240, "Group &&1"))
|
|
737
739
|
},
|
|
738
740
|
order: 1
|
|
739
741
|
});
|
|
@@ -741,7 +743,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
741
743
|
group: '1_focus_index',
|
|
742
744
|
command: {
|
|
743
745
|
id: 'workbench.action.focusSecondEditorGroup',
|
|
744
|
-
title: ( localize(
|
|
746
|
+
title: ( localize(3241, "Group &&2"))
|
|
745
747
|
},
|
|
746
748
|
order: 2
|
|
747
749
|
});
|
|
@@ -749,7 +751,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
749
751
|
group: '1_focus_index',
|
|
750
752
|
command: {
|
|
751
753
|
id: 'workbench.action.focusThirdEditorGroup',
|
|
752
|
-
title: ( localize(
|
|
754
|
+
title: ( localize(3242, "Group &&3")),
|
|
753
755
|
precondition: MultipleEditorGroupsContext
|
|
754
756
|
},
|
|
755
757
|
order: 3
|
|
@@ -758,7 +760,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
758
760
|
group: '1_focus_index',
|
|
759
761
|
command: {
|
|
760
762
|
id: 'workbench.action.focusFourthEditorGroup',
|
|
761
|
-
title: ( localize(
|
|
763
|
+
title: ( localize(3243, "Group &&4")),
|
|
762
764
|
precondition: MultipleEditorGroupsContext
|
|
763
765
|
},
|
|
764
766
|
order: 4
|
|
@@ -767,7 +769,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
767
769
|
group: '1_focus_index',
|
|
768
770
|
command: {
|
|
769
771
|
id: 'workbench.action.focusFifthEditorGroup',
|
|
770
|
-
title: ( localize(
|
|
772
|
+
title: ( localize(3244, "Group &&5")),
|
|
771
773
|
precondition: MultipleEditorGroupsContext
|
|
772
774
|
},
|
|
773
775
|
order: 5
|
|
@@ -776,7 +778,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
776
778
|
group: '2_next_prev',
|
|
777
779
|
command: {
|
|
778
780
|
id: 'workbench.action.focusNextGroup',
|
|
779
|
-
title: ( localize(
|
|
781
|
+
title: ( localize(3245, "&&Next Group")),
|
|
780
782
|
precondition: MultipleEditorGroupsContext
|
|
781
783
|
},
|
|
782
784
|
order: 1
|
|
@@ -785,7 +787,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
785
787
|
group: '2_next_prev',
|
|
786
788
|
command: {
|
|
787
789
|
id: 'workbench.action.focusPreviousGroup',
|
|
788
|
-
title: ( localize(
|
|
790
|
+
title: ( localize(3246, "&&Previous Group")),
|
|
789
791
|
precondition: MultipleEditorGroupsContext
|
|
790
792
|
},
|
|
791
793
|
order: 2
|
|
@@ -794,7 +796,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
794
796
|
group: '3_directional',
|
|
795
797
|
command: {
|
|
796
798
|
id: 'workbench.action.focusLeftGroup',
|
|
797
|
-
title: ( localize(
|
|
799
|
+
title: ( localize(3247, "Group &&Left")),
|
|
798
800
|
precondition: MultipleEditorGroupsContext
|
|
799
801
|
},
|
|
800
802
|
order: 1
|
|
@@ -803,7 +805,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
803
805
|
group: '3_directional',
|
|
804
806
|
command: {
|
|
805
807
|
id: 'workbench.action.focusRightGroup',
|
|
806
|
-
title: ( localize(
|
|
808
|
+
title: ( localize(3248, "Group &&Right")),
|
|
807
809
|
precondition: MultipleEditorGroupsContext
|
|
808
810
|
},
|
|
809
811
|
order: 2
|
|
@@ -812,7 +814,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
812
814
|
group: '3_directional',
|
|
813
815
|
command: {
|
|
814
816
|
id: 'workbench.action.focusAboveGroup',
|
|
815
|
-
title: ( localize(
|
|
817
|
+
title: ( localize(3249, "Group &&Above")),
|
|
816
818
|
precondition: MultipleEditorGroupsContext
|
|
817
819
|
},
|
|
818
820
|
order: 3
|
|
@@ -821,14 +823,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
821
823
|
group: '3_directional',
|
|
822
824
|
command: {
|
|
823
825
|
id: 'workbench.action.focusBelowGroup',
|
|
824
|
-
title: ( localize(
|
|
826
|
+
title: ( localize(3250, "Group &&Below")),
|
|
825
827
|
precondition: MultipleEditorGroupsContext
|
|
826
828
|
},
|
|
827
829
|
order: 4
|
|
828
830
|
});
|
|
829
831
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
830
832
|
group: '2_editor_nav',
|
|
831
|
-
title: ( localize(
|
|
833
|
+
title: ( localize(3251, "Switch &&Group")),
|
|
832
834
|
submenu: MenuId.MenubarSwitchGroupMenu,
|
|
833
835
|
order: 2
|
|
834
836
|
});
|