@codingame/monaco-vscode-view-common-service-override 9.0.2 → 10.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/override/vs/workbench/browser/parts/editor/textEditor.weak.js +1 -1
- package/package.json +3 -3
- package/viewCommon.js +4 -1
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +1 -2
- package/vscode/src/vs/base/browser/ui/grid/grid.js +24 -34
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +34 -35
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +38 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +65 -65
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +85 -85
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +74 -80
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +73 -69
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +21 -24
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +77 -59
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +9 -11
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +3 -4
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +172 -173
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +16 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +55 -61
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +19 -22
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +76 -65
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +37 -18
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +4 -5
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +20 -15
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +6 -10
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +31 -45
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +37 -40
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +18 -28
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +8 -8
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +2 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +1 -2
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +3 -4
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +2 -8
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +14 -15
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -1
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +21 -21
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +28 -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 +6 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +4 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +9 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +19 -19
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +10 -9
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +9 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +26 -26
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +16 -17
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +3 -4
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +33 -36
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +18 -28
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +8 -8
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +7 -8
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +13 -15
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +3 -4
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -4
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +0 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +28 -30
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +71 -74
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +22 -26
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +0 -1
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +16 -18
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +9 -10
|
@@ -15,17 +15,16 @@ import { EditorStatusContribution, ChangeLanguageAction, ChangeEOLAction, Change
|
|
|
15
15
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
16
16
|
import { registerAction2, MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
17
17
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
18
|
-
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
19
18
|
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, EditorLayoutSingleAction, EditorLayoutTwoColumnsAction, EditorLayoutThreeColumnsAction, EditorLayoutTwoRowsAction, EditorLayoutThreeRowsAction, EditorLayoutTwoByTwoGridAction, EditorLayoutTwoRowsRightAction, EditorLayoutTwoColumnsBottomAction, ToggleEditorTypeAction, ReOpenInTextEditorAction, QuickAccessPreviousRecentlyUsedEditorAction, QuickAccessLeastRecentlyUsedEditorAction, QuickAccessPreviousRecentlyUsedEditorInGroupAction, QuickAccessLeastRecentlyUsedEditorInGroupAction, QuickAccessPreviousEditorFromHistoryAction, MoveEditorToNewWindowAction, CopyEditorToNewindowAction, MoveEditorGroupToNewWindowAction, CopyEditorGroupToNewWindowAction, RestoreEditorsToMainWindowAction, NewEmptyEditorWindowAction } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorActions';
|
|
20
19
|
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_IN_GROUP, JOIN_EDITOR_IN_GROUP, MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, SHOW_EDITORS_IN_GROUP, TOGGLE_KEEP_EDITORS_COMMAND_ID, TOGGLE_MAXIMIZE_EDITOR_GROUP, SPLIT_EDITOR, 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 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
21
20
|
import { TOGGLE_DIFF_SIDE_BY_SIDE, GOTO_PREVIOUS_CHANGE, GOTO_NEXT_CHANGE, DIFF_SWAP_SIDES, TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE } from 'vscode/vscode/vs/workbench/browser/parts/editor/diffEditorCommands';
|
|
22
21
|
import { inQuickPickContext, getQuickNavigateHandler } from 'vscode/vscode/vs/workbench/browser/quickaccess';
|
|
23
|
-
import { KeybindingsRegistry
|
|
22
|
+
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
24
23
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
25
24
|
import { isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
26
|
-
import { registerEditorContribution
|
|
25
|
+
import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
27
26
|
import { FloatingEditorClickMenu } from 'vscode/vscode/vs/workbench/browser/codeeditor';
|
|
28
|
-
import { registerWorkbenchContribution2
|
|
27
|
+
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
29
28
|
import { Extensions } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
|
|
30
29
|
import { ActiveGroupEditorsByMostRecentlyUsedQuickAccess, AllEditorsByAppearanceQuickAccess, AllEditorsByMostRecentlyUsedQuickAccess } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorQuickAccess';
|
|
31
30
|
import { FileAccess } from 'vscode/vscode/vs/base/common/network';
|
|
@@ -37,26 +36,26 @@ import { ShowMultipleEditorTabsAction, ShowSingleEditorTabAction, HideEditorTabs
|
|
|
37
36
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
38
37
|
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
|
|
39
38
|
|
|
40
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(
|
|
39
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(4299, "Text Editor"))), [
|
|
41
40
|
( (new SyncDescriptor(UntitledTextEditorInput))),
|
|
42
41
|
( (new SyncDescriptor(TextResourceEditorInput)))
|
|
43
42
|
]);
|
|
44
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(
|
|
43
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(4300, "Text Diff Editor"))), [
|
|
45
44
|
( (new SyncDescriptor(DiffEditorInput)))
|
|
46
45
|
]);
|
|
47
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(
|
|
46
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(4301, "Binary Diff Editor"))), [
|
|
48
47
|
( (new SyncDescriptor(DiffEditorInput)))
|
|
49
48
|
]);
|
|
50
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(
|
|
49
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(4302, "Side by Side Editor"))), [
|
|
51
50
|
( (new SyncDescriptor(SideBySideEditorInput)))
|
|
52
51
|
]);
|
|
53
52
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(UntitledTextEditorInput.ID, UntitledTextEditorInputSerializer);
|
|
54
53
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(SideBySideEditorInput.ID, SideBySideEditorInputSerializer);
|
|
55
54
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(DiffEditorInput.ID, DiffEditorInputSerializer);
|
|
56
|
-
registerWorkbenchContribution2(EditorStatusContribution.ID, EditorStatusContribution,
|
|
57
|
-
registerWorkbenchContribution2(UntitledTextEditorWorkingCopyEditorHandler.ID, UntitledTextEditorWorkingCopyEditorHandler,
|
|
58
|
-
registerWorkbenchContribution2(DynamicEditorConfigurations.ID, DynamicEditorConfigurations,
|
|
59
|
-
registerEditorContribution(FloatingEditorClickMenu.ID, FloatingEditorClickMenu,
|
|
55
|
+
registerWorkbenchContribution2(EditorStatusContribution.ID, EditorStatusContribution, 2 );
|
|
56
|
+
registerWorkbenchContribution2(UntitledTextEditorWorkingCopyEditorHandler.ID, UntitledTextEditorWorkingCopyEditorHandler, 2 );
|
|
57
|
+
registerWorkbenchContribution2(DynamicEditorConfigurations.ID, DynamicEditorConfigurations, 2 );
|
|
58
|
+
registerEditorContribution(FloatingEditorClickMenu.ID, FloatingEditorClickMenu, 1 );
|
|
60
59
|
const quickAccessRegistry = ( (Registry.as(Extensions.Quickaccess)));
|
|
61
60
|
const editorPickerContextKey = 'inEditorsPicker';
|
|
62
61
|
const editorPickerContext = ( (ContextKeyExpr.and(
|
|
@@ -67,22 +66,22 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
67
66
|
ctor: ActiveGroupEditorsByMostRecentlyUsedQuickAccess,
|
|
68
67
|
prefix: ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
69
68
|
contextKey: editorPickerContextKey,
|
|
70
|
-
placeholder: ( localize(
|
|
71
|
-
helpEntries: [{ description: ( localize(
|
|
69
|
+
placeholder: ( localize(4303, "Type the name of an editor to open it.")),
|
|
70
|
+
helpEntries: [{ description: ( localize(4304, "Show Editors in Active Group by Most Recently Used")), commandId: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID }]
|
|
72
71
|
});
|
|
73
72
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
74
73
|
ctor: AllEditorsByAppearanceQuickAccess,
|
|
75
74
|
prefix: AllEditorsByAppearanceQuickAccess.PREFIX,
|
|
76
75
|
contextKey: editorPickerContextKey,
|
|
77
|
-
placeholder: ( localize(
|
|
78
|
-
helpEntries: [{ description: ( localize(
|
|
76
|
+
placeholder: ( localize(4303, "Type the name of an editor to open it.")),
|
|
77
|
+
helpEntries: [{ description: ( localize(4305, "Show All Opened Editors By Appearance")), commandId: ShowAllEditorsByAppearanceAction.ID }]
|
|
79
78
|
});
|
|
80
79
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
81
80
|
ctor: AllEditorsByMostRecentlyUsedQuickAccess,
|
|
82
81
|
prefix: AllEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
83
82
|
contextKey: editorPickerContextKey,
|
|
84
|
-
placeholder: ( localize(
|
|
85
|
-
helpEntries: [{ description: ( localize(
|
|
83
|
+
placeholder: ( localize(4303, "Type the name of an editor to open it.")),
|
|
84
|
+
helpEntries: [{ description: ( localize(4306, "Show All Opened Editors By Most Recently Used")), commandId: ShowAllEditorsByMostRecentlyUsedAction.ID }]
|
|
86
85
|
});
|
|
87
86
|
registerAction2(ChangeLanguageAction);
|
|
88
87
|
registerAction2(ChangeEOLAction);
|
|
@@ -198,20 +197,20 @@ registerAction2(NewEmptyEditorWindowAction);
|
|
|
198
197
|
const quickAccessNavigateNextInEditorPickerId = 'workbench.action.quickOpenNavigateNextInEditorPicker';
|
|
199
198
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
200
199
|
id: quickAccessNavigateNextInEditorPickerId,
|
|
201
|
-
weight:
|
|
200
|
+
weight: 200 + 50,
|
|
202
201
|
handler: getQuickNavigateHandler(quickAccessNavigateNextInEditorPickerId, true),
|
|
203
202
|
when: editorPickerContext,
|
|
204
|
-
primary:
|
|
205
|
-
mac: { primary:
|
|
203
|
+
primary: 2048 | 2 ,
|
|
204
|
+
mac: { primary: 256 | 2 }
|
|
206
205
|
});
|
|
207
206
|
const quickAccessNavigatePreviousInEditorPickerId = 'workbench.action.quickOpenNavigatePreviousInEditorPicker';
|
|
208
207
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
209
208
|
id: quickAccessNavigatePreviousInEditorPickerId,
|
|
210
|
-
weight:
|
|
209
|
+
weight: 200 + 50,
|
|
211
210
|
handler: getQuickNavigateHandler(quickAccessNavigatePreviousInEditorPickerId, false),
|
|
212
211
|
when: editorPickerContext,
|
|
213
|
-
primary:
|
|
214
|
-
mac: { primary:
|
|
212
|
+
primary: 2048 | 1024 | 2 ,
|
|
213
|
+
mac: { primary: 256 | 1024 | 2 }
|
|
215
214
|
});
|
|
216
215
|
setup();
|
|
217
216
|
if (isMacintosh) {
|
|
@@ -226,77 +225,77 @@ if (isMacintosh) {
|
|
|
226
225
|
order: 1
|
|
227
226
|
});
|
|
228
227
|
}
|
|
229
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
228
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(4307, "Lock Group")), icon: Codicon.unlock }, group: 'navigation', order: 10, when: ( (ContextKeyExpr.and(
|
|
230
229
|
IsAuxiliaryEditorPartContext,
|
|
231
230
|
(ActiveEditorGroupLockedContext.toNegated())
|
|
232
231
|
))) });
|
|
233
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
234
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(
|
|
235
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
236
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
237
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
238
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
239
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(
|
|
240
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
241
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(
|
|
242
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
243
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
244
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
245
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
246
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
247
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
248
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(
|
|
249
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(
|
|
250
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(
|
|
251
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(
|
|
252
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(
|
|
253
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(
|
|
254
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(
|
|
255
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(
|
|
256
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(
|
|
257
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(
|
|
258
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(
|
|
232
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(4308, "Unlock Group")), icon: Codicon.lock, toggled: ContextKeyExpr.true() }, group: 'navigation', order: 10, when: ActiveEditorGroupLockedContext });
|
|
233
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(4309, "Close Group")), icon: Codicon.close }, group: 'navigation', order: 20, when: ( (ContextKeyExpr.or(IsAuxiliaryEditorPartContext, EditorPartMultipleEditorGroupsContext))) });
|
|
234
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(4310, "Split Up")) }, group: '2_split', order: 10 });
|
|
235
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(4311, "Split Down")) }, group: '2_split', order: 20 });
|
|
236
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(4312, "Split Left")) }, group: '2_split', order: 30 });
|
|
237
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(4313, "Split Right")) }, group: '2_split', order: 40 });
|
|
238
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(4314, "New Window")) }, group: '3_window', order: 10 });
|
|
239
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(4315, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '4_lock', order: 10, when: ( (IsAuxiliaryEditorPartContext.toNegated())) });
|
|
240
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(4316, "Close")) }, group: '5_close', order: 10, when: MultipleEditorGroupsContext });
|
|
241
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(4310, "Split Up")) }, group: '2_split', order: 10 });
|
|
242
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(4311, "Split Down")) }, group: '2_split', order: 20 });
|
|
243
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(4312, "Split Left")) }, group: '2_split', order: 30 });
|
|
244
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(4313, "Split Right")) }, group: '2_split', order: 40 });
|
|
245
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4317, "Move into New Window")) }, group: '3_window', order: 10 });
|
|
246
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4318, "Copy into New Window")) }, group: '3_window', order: 20 });
|
|
247
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(4319, "Tab Bar")), group: '4_config', order: 10, when: ( (InEditorZenModeContext.negate())) });
|
|
248
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(4320, "Multiple Tabs")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'multiple'))) }, group: '1_config', order: 10 });
|
|
249
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(4321, "Single Tab")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'single'))) }, group: '1_config', order: 20 });
|
|
250
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(4322, "Hidden")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none'))) }, group: '1_config', order: 30 });
|
|
251
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(4319, "Tab Bar")), group: '4_config', order: 10, when: InEditorZenModeContext });
|
|
252
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(4320, "Multiple Tabs")), toggled: ( (ContextKeyExpr.equals('config.zenMode.showTabs', 'multiple'))) }, group: '1_config', order: 10 });
|
|
253
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(4321, "Single Tab")), toggled: ( (ContextKeyExpr.equals('config.zenMode.showTabs', 'single'))) }, group: '1_config', order: 20 });
|
|
254
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(4322, "Hidden")), toggled: ( (ContextKeyExpr.equals('config.zenMode.showTabs', 'none'))) }, group: '1_config', order: 30 });
|
|
255
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(4323, "Editor Actions Position")), group: '4_config', order: 20 });
|
|
256
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(4319, "Tab Bar")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default'))) }, group: '1_config', order: 10, when: ( (( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none'))).negate())) });
|
|
257
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(4324, "Title Bar")), toggled: ( (ContextKeyExpr.or(
|
|
259
258
|
(ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'titleBar')),
|
|
260
259
|
(ContextKeyExpr.and(
|
|
261
260
|
(ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')),
|
|
262
261
|
(ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default'))
|
|
263
262
|
))
|
|
264
263
|
))) }, group: '1_config', order: 20 });
|
|
265
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(
|
|
266
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(
|
|
267
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(
|
|
268
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
269
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(
|
|
264
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(4325, "Hidden")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'hidden'))) }, group: '1_config', order: 30 });
|
|
265
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(4326, "Configure Tabs")) }, group: '9_configure', order: 10 });
|
|
266
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(4316, "Close")) }, group: '1_close', order: 10 });
|
|
267
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(4327, "Close Others")), precondition: ( (EditorGroupEditorsCountContext.notEqualsTo('1'))) }, group: '1_close', order: 20 });
|
|
268
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(4328, "Close to the Right")), precondition: ( (ContextKeyExpr.and(
|
|
270
269
|
(ActiveEditorLastInGroupContext.toNegated()),
|
|
271
270
|
(MultipleEditorsSelectedInGroupContext.negate())
|
|
272
271
|
))) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
|
|
273
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(
|
|
274
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
275
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(
|
|
276
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(
|
|
277
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(
|
|
278
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(
|
|
279
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
280
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
281
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
282
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
283
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(
|
|
284
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localize(
|
|
285
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
286
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
287
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(
|
|
288
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(
|
|
289
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(
|
|
290
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
291
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(
|
|
292
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(
|
|
293
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(
|
|
272
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(4329, "Close Saved")) }, group: '1_close', order: 40 });
|
|
273
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(4330, "Close All")) }, group: '1_close', order: 50 });
|
|
274
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(4331, "Reopen Editor With...")) }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
|
|
275
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(4332, "Keep Open")), precondition: ( (ActiveEditorPinnedContext.toNegated())) }, group: '3_preview', order: 10, when: ( (ContextKeyExpr.has('config.workbench.editor.enablePreview'))) });
|
|
276
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(4333, "Pin")) }, group: '3_preview', order: 20, when: ( (ActiveEditorStickyContext.toNegated())) });
|
|
277
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(4334, "Unpin")) }, group: '3_preview', order: 20, when: ActiveEditorStickyContext });
|
|
278
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(4310, "Split Up")) }, group: '5_split', order: 10 });
|
|
279
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(4311, "Split Down")) }, group: '5_split', order: 20 });
|
|
280
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(4312, "Split Left")) }, group: '5_split', order: 30 });
|
|
281
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(4313, "Split Right")) }, group: '5_split', order: 40 });
|
|
282
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(4335, "Split in Group")), precondition: ( (MultipleEditorsSelectedInGroupContext.negate())) }, group: '6_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
|
|
283
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localize(4336, "Join in Group")), precondition: ( (MultipleEditorsSelectedInGroupContext.negate())) }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
|
|
284
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4337, "Move into New Window")) }, group: '7_new_window', order: 10 });
|
|
285
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4338, "Copy into New Window")) }, group: '7_new_window', order: 20 });
|
|
286
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(4339, "Share")), group: '11_share', order: -1, when: ( (MultipleEditorsSelectedInGroupContext.negate())) });
|
|
287
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(4340, "Inline View")), toggled: ( (ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false))) }, group: '1_diff', order: 10, when: ( (ContextKeyExpr.has('isInDiffEditor'))) });
|
|
288
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(4341, "Show Opened Editors")) }, group: '3_open', order: 10 });
|
|
289
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(4330, "Close All")) }, group: '5_close', order: 10 });
|
|
290
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(4329, "Close Saved")) }, group: '5_close', order: 20 });
|
|
291
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(4342, "Enable Preview Editors")), toggled: ( (ContextKeyExpr.has('config.workbench.editor.enablePreview'))) }, group: '7_settings', order: 10 });
|
|
292
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(4343, "Maximize Group")) }, group: '8_group_operations', order: 5, when: ( (ContextKeyExpr.and(
|
|
294
293
|
(EditorPartMaximizedEditorGroupContext.negate()),
|
|
295
294
|
EditorPartMultipleEditorGroupsContext
|
|
296
295
|
))) });
|
|
297
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(
|
|
298
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
299
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(
|
|
296
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(4344, "Unmaximize Group")) }, group: '8_group_operations', order: 5, when: EditorPartMaximizedEditorGroupContext });
|
|
297
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(4345, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( (IsAuxiliaryEditorPartContext.toNegated())) });
|
|
298
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(4346, "Configure Editors")) }, group: '9_configure', order: 10 });
|
|
300
299
|
function appendEditorToolItem(primary, when, order, alternative, precondition) {
|
|
301
300
|
const item = {
|
|
302
301
|
command: {
|
|
@@ -323,30 +322,30 @@ const SPLIT_ORDER = 100000;
|
|
|
323
322
|
const CLOSE_ORDER = 1000000;
|
|
324
323
|
appendEditorToolItem({
|
|
325
324
|
id: SPLIT_EDITOR,
|
|
326
|
-
title: ( localize(
|
|
325
|
+
title: ( localize(4347, "Split Editor Right")),
|
|
327
326
|
icon: Codicon.splitHorizontal
|
|
328
327
|
}, ContextKeyExpr.not('splitEditorsVertically'), SPLIT_ORDER, {
|
|
329
328
|
id: SPLIT_EDITOR_DOWN,
|
|
330
|
-
title: ( localize(
|
|
329
|
+
title: ( localize(4348, "Split Editor Down")),
|
|
331
330
|
icon: Codicon.splitVertical
|
|
332
331
|
});
|
|
333
332
|
appendEditorToolItem({
|
|
334
333
|
id: SPLIT_EDITOR,
|
|
335
|
-
title: ( localize(
|
|
334
|
+
title: ( localize(4348, "Split Editor Down")),
|
|
336
335
|
icon: Codicon.splitVertical
|
|
337
336
|
}, ( (ContextKeyExpr.has('splitEditorsVertically'))), SPLIT_ORDER, {
|
|
338
337
|
id: SPLIT_EDITOR_RIGHT,
|
|
339
|
-
title: ( localize(
|
|
338
|
+
title: ( localize(4347, "Split Editor Right")),
|
|
340
339
|
icon: Codicon.splitHorizontal
|
|
341
340
|
});
|
|
342
341
|
appendEditorToolItem({
|
|
343
342
|
id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
|
|
344
|
-
title: ( localize(
|
|
343
|
+
title: ( localize(4349, "Toggle Layout")),
|
|
345
344
|
icon: Codicon.editorLayout
|
|
346
345
|
}, SideBySideEditorActiveContext, SPLIT_ORDER - 1);
|
|
347
346
|
appendEditorToolItem({
|
|
348
347
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
349
|
-
title: ( localize(
|
|
348
|
+
title: ( localize(4316, "Close")),
|
|
350
349
|
icon: Codicon.close
|
|
351
350
|
}, ( (ContextKeyExpr.and(
|
|
352
351
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -354,12 +353,12 @@ appendEditorToolItem({
|
|
|
354
353
|
(ActiveEditorStickyContext.toNegated())
|
|
355
354
|
))), CLOSE_ORDER, {
|
|
356
355
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
357
|
-
title: ( localize(
|
|
356
|
+
title: ( localize(4330, "Close All")),
|
|
358
357
|
icon: Codicon.closeAll
|
|
359
358
|
});
|
|
360
359
|
appendEditorToolItem({
|
|
361
360
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
362
|
-
title: ( localize(
|
|
361
|
+
title: ( localize(4316, "Close")),
|
|
363
362
|
icon: Codicon.closeDirty
|
|
364
363
|
}, ( (ContextKeyExpr.and(
|
|
365
364
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -367,12 +366,12 @@ appendEditorToolItem({
|
|
|
367
366
|
(ActiveEditorStickyContext.toNegated())
|
|
368
367
|
))), CLOSE_ORDER, {
|
|
369
368
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
370
|
-
title: ( localize(
|
|
369
|
+
title: ( localize(4330, "Close All")),
|
|
371
370
|
icon: Codicon.closeAll
|
|
372
371
|
});
|
|
373
372
|
appendEditorToolItem({
|
|
374
373
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
375
|
-
title: ( localize(
|
|
374
|
+
title: ( localize(4334, "Unpin")),
|
|
376
375
|
icon: Codicon.pinned
|
|
377
376
|
}, ( (ContextKeyExpr.and(
|
|
378
377
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -380,12 +379,12 @@ appendEditorToolItem({
|
|
|
380
379
|
ActiveEditorStickyContext
|
|
381
380
|
))), CLOSE_ORDER, {
|
|
382
381
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
383
|
-
title: ( localize(
|
|
382
|
+
title: ( localize(4316, "Close")),
|
|
384
383
|
icon: Codicon.close
|
|
385
384
|
});
|
|
386
385
|
appendEditorToolItem({
|
|
387
386
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
388
|
-
title: ( localize(
|
|
387
|
+
title: ( localize(4334, "Unpin")),
|
|
389
388
|
icon: Codicon.pinnedDirty
|
|
390
389
|
}, ( (ContextKeyExpr.and(
|
|
391
390
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -393,12 +392,12 @@ appendEditorToolItem({
|
|
|
393
392
|
ActiveEditorStickyContext
|
|
394
393
|
))), CLOSE_ORDER, {
|
|
395
394
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
396
|
-
title: ( localize(
|
|
395
|
+
title: ( localize(4316, "Close")),
|
|
397
396
|
icon: Codicon.close
|
|
398
397
|
});
|
|
399
398
|
appendEditorToolItem({
|
|
400
399
|
id: LOCK_GROUP_COMMAND_ID,
|
|
401
|
-
title: ( localize(
|
|
400
|
+
title: ( localize(4350, "Lock Group")),
|
|
402
401
|
icon: Codicon.unlock
|
|
403
402
|
}, ( (ContextKeyExpr.and(
|
|
404
403
|
IsAuxiliaryEditorPartContext,
|
|
@@ -406,32 +405,32 @@ appendEditorToolItem({
|
|
|
406
405
|
))), CLOSE_ORDER - 1);
|
|
407
406
|
appendEditorToolItem({
|
|
408
407
|
id: UNLOCK_GROUP_COMMAND_ID,
|
|
409
|
-
title: ( localize(
|
|
408
|
+
title: ( localize(4351, "Unlock Group")),
|
|
410
409
|
icon: Codicon.lock,
|
|
411
410
|
toggled: ContextKeyExpr.true()
|
|
412
411
|
}, ActiveEditorGroupLockedContext, CLOSE_ORDER - 1);
|
|
413
|
-
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(
|
|
412
|
+
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(4352, 'Icon for the previous change action in the diff editor.')));
|
|
414
413
|
appendEditorToolItem({
|
|
415
414
|
id: GOTO_PREVIOUS_CHANGE,
|
|
416
|
-
title: ( localize(
|
|
415
|
+
title: ( localize(4353, "Previous Change")),
|
|
417
416
|
icon: previousChangeIcon
|
|
418
417
|
}, TextCompareEditorActiveContext, 10, undefined, EditorContextKeys.hasChanges);
|
|
419
|
-
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(
|
|
418
|
+
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(4354, 'Icon for the next change action in the diff editor.')));
|
|
420
419
|
appendEditorToolItem({
|
|
421
420
|
id: GOTO_NEXT_CHANGE,
|
|
422
|
-
title: ( localize(
|
|
421
|
+
title: ( localize(4355, "Next Change")),
|
|
423
422
|
icon: nextChangeIcon
|
|
424
423
|
}, TextCompareEditorActiveContext, 11, undefined, EditorContextKeys.hasChanges);
|
|
425
424
|
appendEditorToolItem({
|
|
426
425
|
id: DIFF_SWAP_SIDES,
|
|
427
|
-
title: ( localize(
|
|
426
|
+
title: ( localize(4356, "Swap Left and Right Side")),
|
|
428
427
|
icon: Codicon.arrowSwap
|
|
429
428
|
}, ( (ContextKeyExpr.and(TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext))), 15, undefined, undefined);
|
|
430
|
-
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(
|
|
429
|
+
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(4357, 'Icon for the toggle whitespace action in the diff editor.')));
|
|
431
430
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
432
431
|
command: {
|
|
433
432
|
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
434
|
-
title: ( localize(
|
|
433
|
+
title: ( localize(4358, "Show Leading/Trailing Whitespace Differences")),
|
|
435
434
|
icon: toggleWhitespace,
|
|
436
435
|
precondition: TextCompareEditorActiveContext,
|
|
437
436
|
toggled: ( (ContextKeyExpr.equals('config.diffEditor.ignoreTrimWhitespace', false))),
|
|
@@ -440,22 +439,22 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
440
439
|
when: TextCompareEditorActiveContext,
|
|
441
440
|
order: 20,
|
|
442
441
|
});
|
|
443
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(
|
|
444
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
445
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
446
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(
|
|
447
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(
|
|
448
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
449
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(
|
|
450
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
451
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(
|
|
452
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(
|
|
453
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(
|
|
442
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(4359, 'Keep Editor')), category: Categories.View }, when: ( (ContextKeyExpr.has('config.workbench.editor.enablePreview'))) });
|
|
443
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(4360, 'Pin Editor')), category: Categories.View } });
|
|
444
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(4361, 'Unpin Editor')), category: Categories.View } });
|
|
445
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(4362, 'Close Editor')), category: Categories.View } });
|
|
446
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(4363, 'Close Pinned Editor')), category: Categories.View } });
|
|
447
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(4364, 'Close All Editors in Group')), category: Categories.View } });
|
|
448
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(4365, 'Close Saved Editors in Group')), category: Categories.View } });
|
|
449
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(4366, 'Close Other Editors in Group')), category: Categories.View } });
|
|
450
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(4367, 'Close Editors to the Right in Group')), category: Categories.View }, when: ( (ActiveEditorLastInGroupContext.toNegated())) });
|
|
451
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(4368, 'Close Editor Group')), category: Categories.View }, when: MultipleEditorGroupsContext });
|
|
452
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(4331, "Reopen Editor With...")), category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
|
|
454
453
|
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
455
454
|
group: '1_editor',
|
|
456
455
|
command: {
|
|
457
456
|
id: ReopenClosedEditorAction.ID,
|
|
458
|
-
title: ( localize(
|
|
457
|
+
title: ( localize(4369, "&&Reopen Closed Editor")),
|
|
459
458
|
precondition: ( (ContextKeyExpr.has('canReopenClosedEditor')))
|
|
460
459
|
},
|
|
461
460
|
order: 1
|
|
@@ -464,19 +463,19 @@ MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
|
464
463
|
group: 'z_clear',
|
|
465
464
|
command: {
|
|
466
465
|
id: ClearRecentFilesAction.ID,
|
|
467
|
-
title: ( localize(
|
|
466
|
+
title: ( localize(4370, "&&Clear Recently Opened..."))
|
|
468
467
|
},
|
|
469
468
|
order: 1
|
|
470
469
|
});
|
|
471
470
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
472
|
-
title: ( localize(
|
|
471
|
+
title: ( localize(4371, "Share")),
|
|
473
472
|
submenu: MenuId.MenubarShare,
|
|
474
473
|
group: '45_share',
|
|
475
474
|
order: 1,
|
|
476
475
|
});
|
|
477
476
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
478
477
|
group: '2_appearance',
|
|
479
|
-
title: ( localize(
|
|
478
|
+
title: ( localize(4372, "Editor &&Layout")),
|
|
480
479
|
submenu: MenuId.MenubarLayoutMenu,
|
|
481
480
|
order: 2
|
|
482
481
|
});
|
|
@@ -485,8 +484,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
485
484
|
command: {
|
|
486
485
|
id: SPLIT_EDITOR_UP,
|
|
487
486
|
title: {
|
|
488
|
-
...( localize2(
|
|
489
|
-
mnemonicTitle: ( localize(
|
|
487
|
+
...( localize2(4373, "Split Up")),
|
|
488
|
+
mnemonicTitle: ( localize(4374, "Split &&Up")),
|
|
490
489
|
}
|
|
491
490
|
},
|
|
492
491
|
order: 1
|
|
@@ -496,8 +495,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
496
495
|
command: {
|
|
497
496
|
id: SPLIT_EDITOR_DOWN,
|
|
498
497
|
title: {
|
|
499
|
-
...( localize2(
|
|
500
|
-
mnemonicTitle: ( localize(
|
|
498
|
+
...( localize2(4375, "Split Down")),
|
|
499
|
+
mnemonicTitle: ( localize(4376, "Split &&Down")),
|
|
501
500
|
}
|
|
502
501
|
},
|
|
503
502
|
order: 2
|
|
@@ -507,8 +506,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
507
506
|
command: {
|
|
508
507
|
id: SPLIT_EDITOR_LEFT,
|
|
509
508
|
title: {
|
|
510
|
-
...( localize2(
|
|
511
|
-
mnemonicTitle: ( localize(
|
|
509
|
+
...( localize2(4377, "Split Left")),
|
|
510
|
+
mnemonicTitle: ( localize(4378, "Split &&Left")),
|
|
512
511
|
}
|
|
513
512
|
},
|
|
514
513
|
order: 3
|
|
@@ -518,8 +517,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
518
517
|
command: {
|
|
519
518
|
id: SPLIT_EDITOR_RIGHT,
|
|
520
519
|
title: {
|
|
521
|
-
...( localize2(
|
|
522
|
-
mnemonicTitle: ( localize(
|
|
520
|
+
...( localize2(4379, "Split Right")),
|
|
521
|
+
mnemonicTitle: ( localize(4380, "Split &&Right")),
|
|
523
522
|
}
|
|
524
523
|
},
|
|
525
524
|
order: 4
|
|
@@ -529,8 +528,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
529
528
|
command: {
|
|
530
529
|
id: SPLIT_EDITOR_IN_GROUP,
|
|
531
530
|
title: {
|
|
532
|
-
...( localize2(
|
|
533
|
-
mnemonicTitle: ( localize(
|
|
531
|
+
...( localize2(4381, "Split in Group")),
|
|
532
|
+
mnemonicTitle: ( localize(4382, "Split in &&Group")),
|
|
534
533
|
}
|
|
535
534
|
},
|
|
536
535
|
when: ActiveEditorCanSplitInGroupContext,
|
|
@@ -541,8 +540,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
541
540
|
command: {
|
|
542
541
|
id: JOIN_EDITOR_IN_GROUP,
|
|
543
542
|
title: {
|
|
544
|
-
...( localize2(
|
|
545
|
-
mnemonicTitle: ( localize(
|
|
543
|
+
...( localize2(4383, "Join in Group")),
|
|
544
|
+
mnemonicTitle: ( localize(4384, "Join in &&Group")),
|
|
546
545
|
}
|
|
547
546
|
},
|
|
548
547
|
when: SideBySideEditorActiveContext,
|
|
@@ -553,8 +552,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
553
552
|
command: {
|
|
554
553
|
id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
555
554
|
title: {
|
|
556
|
-
...( localize2(
|
|
557
|
-
mnemonicTitle: ( localize(
|
|
555
|
+
...( localize2(4385, "Move Editor into New Window")),
|
|
556
|
+
mnemonicTitle: ( localize(4386, "&&Move Editor into New Window")),
|
|
558
557
|
}
|
|
559
558
|
},
|
|
560
559
|
order: 1
|
|
@@ -564,8 +563,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
564
563
|
command: {
|
|
565
564
|
id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
566
565
|
title: {
|
|
567
|
-
...( localize2(
|
|
568
|
-
mnemonicTitle: ( localize(
|
|
566
|
+
...( localize2(4387, "Copy Editor into New Window")),
|
|
567
|
+
mnemonicTitle: ( localize(4388, "&&Copy Editor into New Window")),
|
|
569
568
|
}
|
|
570
569
|
},
|
|
571
570
|
order: 2
|
|
@@ -575,8 +574,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
575
574
|
command: {
|
|
576
575
|
id: EditorLayoutSingleAction.ID,
|
|
577
576
|
title: {
|
|
578
|
-
...( localize2(
|
|
579
|
-
mnemonicTitle: ( localize(
|
|
577
|
+
...( localize2(4389, "Single")),
|
|
578
|
+
mnemonicTitle: ( localize(4390, "&&Single")),
|
|
580
579
|
}
|
|
581
580
|
},
|
|
582
581
|
order: 1
|
|
@@ -586,8 +585,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
586
585
|
command: {
|
|
587
586
|
id: EditorLayoutTwoColumnsAction.ID,
|
|
588
587
|
title: {
|
|
589
|
-
...( localize2(
|
|
590
|
-
mnemonicTitle: ( localize(
|
|
588
|
+
...( localize2(4391, "Two Columns")),
|
|
589
|
+
mnemonicTitle: ( localize(4392, "&&Two Columns")),
|
|
591
590
|
}
|
|
592
591
|
},
|
|
593
592
|
order: 3
|
|
@@ -597,8 +596,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
597
596
|
command: {
|
|
598
597
|
id: EditorLayoutThreeColumnsAction.ID,
|
|
599
598
|
title: {
|
|
600
|
-
...( localize2(
|
|
601
|
-
mnemonicTitle: ( localize(
|
|
599
|
+
...( localize2(4393, "Three Columns")),
|
|
600
|
+
mnemonicTitle: ( localize(4394, "T&&hree Columns")),
|
|
602
601
|
}
|
|
603
602
|
},
|
|
604
603
|
order: 4
|
|
@@ -608,8 +607,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
608
607
|
command: {
|
|
609
608
|
id: EditorLayoutTwoRowsAction.ID,
|
|
610
609
|
title: {
|
|
611
|
-
...( localize2(
|
|
612
|
-
mnemonicTitle: ( localize(
|
|
610
|
+
...( localize2(4395, "Two Rows")),
|
|
611
|
+
mnemonicTitle: ( localize(4396, "T&&wo Rows")),
|
|
613
612
|
}
|
|
614
613
|
},
|
|
615
614
|
order: 5
|
|
@@ -619,8 +618,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
619
618
|
command: {
|
|
620
619
|
id: EditorLayoutThreeRowsAction.ID,
|
|
621
620
|
title: {
|
|
622
|
-
...( localize2(
|
|
623
|
-
mnemonicTitle: ( localize(
|
|
621
|
+
...( localize2(4397, "Three Rows")),
|
|
622
|
+
mnemonicTitle: ( localize(4398, "Three &&Rows")),
|
|
624
623
|
}
|
|
625
624
|
},
|
|
626
625
|
order: 6
|
|
@@ -630,8 +629,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
630
629
|
command: {
|
|
631
630
|
id: EditorLayoutTwoByTwoGridAction.ID,
|
|
632
631
|
title: {
|
|
633
|
-
...( localize2(
|
|
634
|
-
mnemonicTitle: ( localize(
|
|
632
|
+
...( localize2(4399, "Grid (2x2)")),
|
|
633
|
+
mnemonicTitle: ( localize(4400, "&&Grid (2x2)")),
|
|
635
634
|
}
|
|
636
635
|
},
|
|
637
636
|
order: 7
|
|
@@ -641,8 +640,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
641
640
|
command: {
|
|
642
641
|
id: EditorLayoutTwoRowsRightAction.ID,
|
|
643
642
|
title: {
|
|
644
|
-
...( localize2(
|
|
645
|
-
mnemonicTitle: ( localize(
|
|
643
|
+
...( localize2(4401, "Two Rows Right")),
|
|
644
|
+
mnemonicTitle: ( localize(4402, "Two R&&ows Right")),
|
|
646
645
|
}
|
|
647
646
|
},
|
|
648
647
|
order: 8
|
|
@@ -652,8 +651,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
652
651
|
command: {
|
|
653
652
|
id: EditorLayoutTwoColumnsBottomAction.ID,
|
|
654
653
|
title: {
|
|
655
|
-
...( localize2(
|
|
656
|
-
mnemonicTitle: ( localize(
|
|
654
|
+
...( localize2(4403, "Two Columns Bottom")),
|
|
655
|
+
mnemonicTitle: ( localize(4404, "Two &&Columns Bottom")),
|
|
657
656
|
}
|
|
658
657
|
},
|
|
659
658
|
order: 9
|
|
@@ -662,7 +661,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
662
661
|
group: '1_history_nav',
|
|
663
662
|
command: {
|
|
664
663
|
id: 'workbench.action.navigateToLastEditLocation',
|
|
665
|
-
title: ( localize(
|
|
664
|
+
title: ( localize(4405, "&&Last Edit Location")),
|
|
666
665
|
precondition: ( (ContextKeyExpr.has('canNavigateToLastEditLocation')))
|
|
667
666
|
},
|
|
668
667
|
order: 3
|
|
@@ -671,7 +670,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
671
670
|
group: '1_sideBySide',
|
|
672
671
|
command: {
|
|
673
672
|
id: FOCUS_FIRST_SIDE_EDITOR,
|
|
674
|
-
title: ( localize(
|
|
673
|
+
title: ( localize(4406, "&&First Side in Editor"))
|
|
675
674
|
},
|
|
676
675
|
when: ( (ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext))),
|
|
677
676
|
order: 1
|
|
@@ -680,7 +679,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
680
679
|
group: '1_sideBySide',
|
|
681
680
|
command: {
|
|
682
681
|
id: FOCUS_SECOND_SIDE_EDITOR,
|
|
683
|
-
title: ( localize(
|
|
682
|
+
title: ( localize(4407, "&&Second Side in Editor"))
|
|
684
683
|
},
|
|
685
684
|
when: ( (ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext))),
|
|
686
685
|
order: 2
|
|
@@ -689,7 +688,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
689
688
|
group: '2_any',
|
|
690
689
|
command: {
|
|
691
690
|
id: 'workbench.action.nextEditor',
|
|
692
|
-
title: ( localize(
|
|
691
|
+
title: ( localize(4408, "&&Next Editor"))
|
|
693
692
|
},
|
|
694
693
|
order: 1
|
|
695
694
|
});
|
|
@@ -697,7 +696,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
697
696
|
group: '2_any',
|
|
698
697
|
command: {
|
|
699
698
|
id: 'workbench.action.previousEditor',
|
|
700
|
-
title: ( localize(
|
|
699
|
+
title: ( localize(4409, "&&Previous Editor"))
|
|
701
700
|
},
|
|
702
701
|
order: 2
|
|
703
702
|
});
|
|
@@ -705,7 +704,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
705
704
|
group: '3_any_used',
|
|
706
705
|
command: {
|
|
707
706
|
id: 'workbench.action.openNextRecentlyUsedEditor',
|
|
708
|
-
title: ( localize(
|
|
707
|
+
title: ( localize(4410, "&&Next Used Editor"))
|
|
709
708
|
},
|
|
710
709
|
order: 1
|
|
711
710
|
});
|
|
@@ -713,7 +712,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
713
712
|
group: '3_any_used',
|
|
714
713
|
command: {
|
|
715
714
|
id: 'workbench.action.openPreviousRecentlyUsedEditor',
|
|
716
|
-
title: ( localize(
|
|
715
|
+
title: ( localize(4411, "&&Previous Used Editor"))
|
|
717
716
|
},
|
|
718
717
|
order: 2
|
|
719
718
|
});
|
|
@@ -721,7 +720,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
721
720
|
group: '4_group',
|
|
722
721
|
command: {
|
|
723
722
|
id: 'workbench.action.nextEditorInGroup',
|
|
724
|
-
title: ( localize(
|
|
723
|
+
title: ( localize(4412, "&&Next Editor in Group"))
|
|
725
724
|
},
|
|
726
725
|
order: 1
|
|
727
726
|
});
|
|
@@ -729,7 +728,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
729
728
|
group: '4_group',
|
|
730
729
|
command: {
|
|
731
730
|
id: 'workbench.action.previousEditorInGroup',
|
|
732
|
-
title: ( localize(
|
|
731
|
+
title: ( localize(4413, "&&Previous Editor in Group"))
|
|
733
732
|
},
|
|
734
733
|
order: 2
|
|
735
734
|
});
|
|
@@ -737,7 +736,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
737
736
|
group: '5_group_used',
|
|
738
737
|
command: {
|
|
739
738
|
id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
740
|
-
title: ( localize(
|
|
739
|
+
title: ( localize(4414, "&&Next Used Editor in Group"))
|
|
741
740
|
},
|
|
742
741
|
order: 1
|
|
743
742
|
});
|
|
@@ -745,13 +744,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
745
744
|
group: '5_group_used',
|
|
746
745
|
command: {
|
|
747
746
|
id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
748
|
-
title: ( localize(
|
|
747
|
+
title: ( localize(4415, "&&Previous Used Editor in Group"))
|
|
749
748
|
},
|
|
750
749
|
order: 2
|
|
751
750
|
});
|
|
752
751
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
753
752
|
group: '2_editor_nav',
|
|
754
|
-
title: ( localize(
|
|
753
|
+
title: ( localize(4416, "Switch &&Editor")),
|
|
755
754
|
submenu: MenuId.MenubarSwitchEditorMenu,
|
|
756
755
|
order: 1
|
|
757
756
|
});
|
|
@@ -759,7 +758,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
759
758
|
group: '1_focus_index',
|
|
760
759
|
command: {
|
|
761
760
|
id: 'workbench.action.focusFirstEditorGroup',
|
|
762
|
-
title: ( localize(
|
|
761
|
+
title: ( localize(4417, "Group &&1"))
|
|
763
762
|
},
|
|
764
763
|
order: 1
|
|
765
764
|
});
|
|
@@ -767,7 +766,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
767
766
|
group: '1_focus_index',
|
|
768
767
|
command: {
|
|
769
768
|
id: 'workbench.action.focusSecondEditorGroup',
|
|
770
|
-
title: ( localize(
|
|
769
|
+
title: ( localize(4418, "Group &&2"))
|
|
771
770
|
},
|
|
772
771
|
order: 2
|
|
773
772
|
});
|
|
@@ -775,7 +774,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
775
774
|
group: '1_focus_index',
|
|
776
775
|
command: {
|
|
777
776
|
id: 'workbench.action.focusThirdEditorGroup',
|
|
778
|
-
title: ( localize(
|
|
777
|
+
title: ( localize(4419, "Group &&3")),
|
|
779
778
|
precondition: MultipleEditorGroupsContext
|
|
780
779
|
},
|
|
781
780
|
order: 3
|
|
@@ -784,7 +783,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
784
783
|
group: '1_focus_index',
|
|
785
784
|
command: {
|
|
786
785
|
id: 'workbench.action.focusFourthEditorGroup',
|
|
787
|
-
title: ( localize(
|
|
786
|
+
title: ( localize(4420, "Group &&4")),
|
|
788
787
|
precondition: MultipleEditorGroupsContext
|
|
789
788
|
},
|
|
790
789
|
order: 4
|
|
@@ -793,7 +792,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
793
792
|
group: '1_focus_index',
|
|
794
793
|
command: {
|
|
795
794
|
id: 'workbench.action.focusFifthEditorGroup',
|
|
796
|
-
title: ( localize(
|
|
795
|
+
title: ( localize(4421, "Group &&5")),
|
|
797
796
|
precondition: MultipleEditorGroupsContext
|
|
798
797
|
},
|
|
799
798
|
order: 5
|
|
@@ -802,7 +801,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
802
801
|
group: '2_next_prev',
|
|
803
802
|
command: {
|
|
804
803
|
id: 'workbench.action.focusNextGroup',
|
|
805
|
-
title: ( localize(
|
|
804
|
+
title: ( localize(4422, "&&Next Group")),
|
|
806
805
|
precondition: MultipleEditorGroupsContext
|
|
807
806
|
},
|
|
808
807
|
order: 1
|
|
@@ -811,7 +810,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
811
810
|
group: '2_next_prev',
|
|
812
811
|
command: {
|
|
813
812
|
id: 'workbench.action.focusPreviousGroup',
|
|
814
|
-
title: ( localize(
|
|
813
|
+
title: ( localize(4423, "&&Previous Group")),
|
|
815
814
|
precondition: MultipleEditorGroupsContext
|
|
816
815
|
},
|
|
817
816
|
order: 2
|
|
@@ -820,7 +819,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
820
819
|
group: '3_directional',
|
|
821
820
|
command: {
|
|
822
821
|
id: 'workbench.action.focusLeftGroup',
|
|
823
|
-
title: ( localize(
|
|
822
|
+
title: ( localize(4424, "Group &&Left")),
|
|
824
823
|
precondition: MultipleEditorGroupsContext
|
|
825
824
|
},
|
|
826
825
|
order: 1
|
|
@@ -829,7 +828,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
829
828
|
group: '3_directional',
|
|
830
829
|
command: {
|
|
831
830
|
id: 'workbench.action.focusRightGroup',
|
|
832
|
-
title: ( localize(
|
|
831
|
+
title: ( localize(4425, "Group &&Right")),
|
|
833
832
|
precondition: MultipleEditorGroupsContext
|
|
834
833
|
},
|
|
835
834
|
order: 2
|
|
@@ -838,7 +837,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
838
837
|
group: '3_directional',
|
|
839
838
|
command: {
|
|
840
839
|
id: 'workbench.action.focusAboveGroup',
|
|
841
|
-
title: ( localize(
|
|
840
|
+
title: ( localize(4426, "Group &&Above")),
|
|
842
841
|
precondition: MultipleEditorGroupsContext
|
|
843
842
|
},
|
|
844
843
|
order: 3
|
|
@@ -847,14 +846,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
847
846
|
group: '3_directional',
|
|
848
847
|
command: {
|
|
849
848
|
id: 'workbench.action.focusBelowGroup',
|
|
850
|
-
title: ( localize(
|
|
849
|
+
title: ( localize(4427, "Group &&Below")),
|
|
851
850
|
precondition: MultipleEditorGroupsContext
|
|
852
851
|
},
|
|
853
852
|
order: 4
|
|
854
853
|
});
|
|
855
854
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
856
855
|
group: '2_editor_nav',
|
|
857
|
-
title: ( localize(
|
|
856
|
+
title: ( localize(4428, "Switch &&Group")),
|
|
858
857
|
submenu: MenuId.MenubarSwitchGroupMenu,
|
|
859
858
|
order: 2
|
|
860
859
|
});
|