@codingame/monaco-vscode-view-common-service-override 5.3.0 → 6.0.1
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/viewCommon.js +1 -1
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +2 -1
- package/vscode/src/vs/base/browser/ui/grid/grid.js +34 -24
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +35 -34
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +9 -60
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +119 -79
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +76 -64
- package/vscode/src/vs/workbench/browser/media/style.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +51 -71
- 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 -18
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +11 -8
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +8 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +112 -107
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +36 -30
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +75 -69
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +143 -25
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +20 -16
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +13 -11
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +5 -4
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +8 -5
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +9 -6
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +51 -37
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +28 -25
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +23 -13
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +5 -5
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +3 -2
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +2 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +34 -23
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +3 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +7 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +3 -2
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +1 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +17 -15
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +4 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +9 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +11 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +24 -23
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +3 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +5 -4
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +26 -23
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +23 -13
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +5 -5
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +2 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +7 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +8 -6
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +10 -8
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +3 -2
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +4 -3
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +21 -19
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +73 -63
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +19 -15
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +1 -0
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +23 -18
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +20 -14
- package/vscode/src/vs/base/browser/deviceAccess.js +0 -61
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +0 -13
- package/vscode/src/vs/workbench/browser/window.js +0 -330
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +0 -371
- package/vscode/src/vs/workbench/services/driver/browser/driver.js +0 -188
|
@@ -2,7 +2,7 @@ import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
|
2
2
|
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
3
3
|
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
4
4
|
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
5
|
-
import { IsAuxiliaryEditorPartContext, ActiveEditorGroupLockedContext, EditorPartMultipleEditorGroupsContext, MultipleEditorGroupsContext, InEditorZenModeContext, EditorGroupEditorsCountContext, ActiveEditorLastInGroupContext, EditorTabsVisibleContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, EditorPartMaximizedEditorGroupContext, ActiveEditorDirtyContext, TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
5
|
+
import { IsAuxiliaryEditorPartContext, ActiveEditorGroupLockedContext, EditorPartMultipleEditorGroupsContext, MultipleEditorGroupsContext, InEditorZenModeContext, EditorGroupEditorsCountContext, ActiveEditorLastInGroupContext, MultipleEditorsSelectedInGroupContext, EditorTabsVisibleContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, EditorPartMaximizedEditorGroupContext, ActiveEditorDirtyContext, TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
6
6
|
import { SideBySideEditorInput, SideBySideEditorInputSerializer } from 'vscode/vscode/vs/workbench/common/editor/sideBySideEditorInput';
|
|
7
7
|
import { TextResourceEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/textResourceEditor';
|
|
8
8
|
import { SideBySideEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/sideBySideEditor';
|
|
@@ -15,16 +15,17 @@ 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';
|
|
18
19
|
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';
|
|
19
20
|
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';
|
|
20
21
|
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';
|
|
21
22
|
import { inQuickPickContext, getQuickNavigateHandler } from 'vscode/vscode/vs/workbench/browser/quickaccess';
|
|
22
|
-
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
23
|
+
import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
23
24
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
24
25
|
import { isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
25
|
-
import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
26
|
+
import { registerEditorContribution, EditorContributionInstantiation } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
26
27
|
import { FloatingEditorClickMenu } from 'vscode/vscode/vs/workbench/browser/codeeditor';
|
|
27
|
-
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
28
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
28
29
|
import { Extensions } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
|
|
29
30
|
import { ActiveGroupEditorsByMostRecentlyUsedQuickAccess, AllEditorsByAppearanceQuickAccess, AllEditorsByMostRecentlyUsedQuickAccess } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorQuickAccess';
|
|
30
31
|
import { FileAccess } from 'vscode/vscode/vs/base/common/network';
|
|
@@ -53,10 +54,10 @@ const _moduleId = "vs/workbench/browser/parts/editor/editor.contribution";
|
|
|
53
54
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(UntitledTextEditorInput.ID, UntitledTextEditorInputSerializer);
|
|
54
55
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(SideBySideEditorInput.ID, SideBySideEditorInputSerializer);
|
|
55
56
|
( (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,
|
|
57
|
+
registerWorkbenchContribution2(EditorStatusContribution.ID, EditorStatusContribution, WorkbenchPhase.BlockRestore);
|
|
58
|
+
registerWorkbenchContribution2(UntitledTextEditorWorkingCopyEditorHandler.ID, UntitledTextEditorWorkingCopyEditorHandler, WorkbenchPhase.BlockRestore);
|
|
59
|
+
registerWorkbenchContribution2(DynamicEditorConfigurations.ID, DynamicEditorConfigurations, WorkbenchPhase.BlockRestore);
|
|
60
|
+
registerEditorContribution(FloatingEditorClickMenu.ID, FloatingEditorClickMenu, EditorContributionInstantiation.AfterFirstRender);
|
|
60
61
|
const quickAccessRegistry = ( (Registry.as(Extensions.Quickaccess)));
|
|
61
62
|
const editorPickerContextKey = 'inEditorsPicker';
|
|
62
63
|
const editorPickerContext = ( (ContextKeyExpr.and(
|
|
@@ -198,20 +199,20 @@ registerAction2(NewEmptyEditorWindowAction);
|
|
|
198
199
|
const quickAccessNavigateNextInEditorPickerId = 'workbench.action.quickOpenNavigateNextInEditorPicker';
|
|
199
200
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
200
201
|
id: quickAccessNavigateNextInEditorPickerId,
|
|
201
|
-
weight:
|
|
202
|
+
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
202
203
|
handler: getQuickNavigateHandler(quickAccessNavigateNextInEditorPickerId, true),
|
|
203
204
|
when: editorPickerContext,
|
|
204
|
-
primary:
|
|
205
|
-
mac: { primary:
|
|
205
|
+
primary: KeyMod.CtrlCmd | KeyCode.Tab,
|
|
206
|
+
mac: { primary: KeyMod.WinCtrl | KeyCode.Tab }
|
|
206
207
|
});
|
|
207
208
|
const quickAccessNavigatePreviousInEditorPickerId = 'workbench.action.quickOpenNavigatePreviousInEditorPicker';
|
|
208
209
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
209
210
|
id: quickAccessNavigatePreviousInEditorPickerId,
|
|
210
|
-
weight:
|
|
211
|
+
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
211
212
|
handler: getQuickNavigateHandler(quickAccessNavigatePreviousInEditorPickerId, false),
|
|
212
213
|
when: editorPickerContext,
|
|
213
|
-
primary:
|
|
214
|
-
mac: { primary:
|
|
214
|
+
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Tab,
|
|
215
|
+
mac: { primary: KeyMod.WinCtrl | KeyMod.Shift | KeyCode.Tab }
|
|
215
216
|
});
|
|
216
217
|
setup();
|
|
217
218
|
if (isMacintosh) {
|
|
@@ -265,7 +266,10 @@ MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id
|
|
|
265
266
|
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localizeWithPath(_moduleId, 26, "Hidden")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'hidden'))) }, group: '1_config', order: 30 });
|
|
266
267
|
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localizeWithPath(_moduleId, 17, "Close")) }, group: '1_close', order: 10 });
|
|
267
268
|
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localizeWithPath(_moduleId, 27, "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: ( localizeWithPath(_moduleId, 28, "Close to the Right")), precondition: ( (
|
|
269
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localizeWithPath(_moduleId, 28, "Close to the Right")), precondition: ( (ContextKeyExpr.and(
|
|
270
|
+
(ActiveEditorLastInGroupContext.toNegated()),
|
|
271
|
+
(MultipleEditorsSelectedInGroupContext.negate())
|
|
272
|
+
))) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
|
|
269
273
|
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localizeWithPath(_moduleId, 29, "Close Saved")) }, group: '1_close', order: 40 });
|
|
270
274
|
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localizeWithPath(_moduleId, 30, "Close All")) }, group: '1_close', order: 50 });
|
|
271
275
|
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localizeWithPath(_moduleId, 31, "Reopen Editor With...")) }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
|
|
@@ -276,21 +280,22 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_ED
|
|
|
276
280
|
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localizeWithPath(_moduleId, 12, "Split Down")) }, group: '5_split', order: 20 });
|
|
277
281
|
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localizeWithPath(_moduleId, 13, "Split Left")) }, group: '5_split', order: 30 });
|
|
278
282
|
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localizeWithPath(_moduleId, 14, "Split Right")) }, group: '5_split', order: 40 });
|
|
279
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localizeWithPath(_moduleId, 35, "Split in Group")) }, group: '6_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
|
|
280
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localizeWithPath(_moduleId, 36, "Join in Group")) }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
|
|
283
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localizeWithPath(_moduleId, 35, "Split in Group")), precondition: ( (MultipleEditorsSelectedInGroupContext.negate())) }, group: '6_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
|
|
284
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localizeWithPath(_moduleId, 36, "Join in Group")), precondition: ( (MultipleEditorsSelectedInGroupContext.negate())) }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
|
|
281
285
|
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localizeWithPath(_moduleId, 37, "Move into New Window")) }, group: '7_new_window', order: 10 });
|
|
282
286
|
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localizeWithPath(_moduleId, 38, "Copy into New Window")) }, group: '7_new_window', order: 20 });
|
|
283
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
284
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id:
|
|
287
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localizeWithPath(_moduleId, 39, "Share")), group: '11_share', order: -1, when: ( (MultipleEditorsSelectedInGroupContext.negate())) });
|
|
288
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localizeWithPath(_moduleId, 40, "Inline View")), toggled: ( (ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false))) }, group: '1_diff', order: 10, when: ( (ContextKeyExpr.has('isInDiffEditor'))) });
|
|
289
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localizeWithPath(_moduleId, 41, "Show Opened Editors")) }, group: '3_open', order: 10 });
|
|
285
290
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localizeWithPath(_moduleId, 30, "Close All")) }, group: '5_close', order: 10 });
|
|
286
291
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localizeWithPath(_moduleId, 29, "Close Saved")) }, group: '5_close', order: 20 });
|
|
287
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localizeWithPath(_moduleId,
|
|
288
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localizeWithPath(_moduleId,
|
|
292
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localizeWithPath(_moduleId, 42, "Enable Preview Editors")), toggled: ( (ContextKeyExpr.has('config.workbench.editor.enablePreview'))) }, group: '7_settings', order: 10 });
|
|
293
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localizeWithPath(_moduleId, 43, "Maximize Group")) }, group: '8_group_operations', order: 5, when: ( (ContextKeyExpr.and(
|
|
289
294
|
(EditorPartMaximizedEditorGroupContext.negate()),
|
|
290
295
|
EditorPartMultipleEditorGroupsContext
|
|
291
296
|
))) });
|
|
292
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localizeWithPath(_moduleId,
|
|
293
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localizeWithPath(_moduleId,
|
|
297
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localizeWithPath(_moduleId, 44, "Unmaximize Group")) }, group: '8_group_operations', order: 5, when: EditorPartMaximizedEditorGroupContext });
|
|
298
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localizeWithPath(_moduleId, 45, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( (IsAuxiliaryEditorPartContext.toNegated())) });
|
|
294
299
|
function appendEditorToolItem(primary, when, order, alternative, precondition) {
|
|
295
300
|
const item = {
|
|
296
301
|
command: {
|
|
@@ -317,25 +322,25 @@ const SPLIT_ORDER = 100000;
|
|
|
317
322
|
const CLOSE_ORDER = 1000000;
|
|
318
323
|
appendEditorToolItem({
|
|
319
324
|
id: SPLIT_EDITOR,
|
|
320
|
-
title: ( localizeWithPath(_moduleId,
|
|
325
|
+
title: ( localizeWithPath(_moduleId, 46, "Split Editor Right")),
|
|
321
326
|
icon: Codicon.splitHorizontal
|
|
322
327
|
}, ContextKeyExpr.not('splitEditorsVertically'), SPLIT_ORDER, {
|
|
323
328
|
id: SPLIT_EDITOR_DOWN,
|
|
324
|
-
title: ( localizeWithPath(_moduleId,
|
|
329
|
+
title: ( localizeWithPath(_moduleId, 47, "Split Editor Down")),
|
|
325
330
|
icon: Codicon.splitVertical
|
|
326
331
|
});
|
|
327
332
|
appendEditorToolItem({
|
|
328
333
|
id: SPLIT_EDITOR,
|
|
329
|
-
title: ( localizeWithPath(_moduleId,
|
|
334
|
+
title: ( localizeWithPath(_moduleId, 47, "Split Editor Down")),
|
|
330
335
|
icon: Codicon.splitVertical
|
|
331
336
|
}, ( (ContextKeyExpr.has('splitEditorsVertically'))), SPLIT_ORDER, {
|
|
332
337
|
id: SPLIT_EDITOR_RIGHT,
|
|
333
|
-
title: ( localizeWithPath(_moduleId,
|
|
338
|
+
title: ( localizeWithPath(_moduleId, 46, "Split Editor Right")),
|
|
334
339
|
icon: Codicon.splitHorizontal
|
|
335
340
|
});
|
|
336
341
|
appendEditorToolItem({
|
|
337
342
|
id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
|
|
338
|
-
title: ( localizeWithPath(_moduleId,
|
|
343
|
+
title: ( localizeWithPath(_moduleId, 48, "Toggle Layout")),
|
|
339
344
|
icon: Codicon.editorLayout
|
|
340
345
|
}, SideBySideEditorActiveContext, SPLIT_ORDER - 1);
|
|
341
346
|
appendEditorToolItem({
|
|
@@ -392,7 +397,7 @@ appendEditorToolItem({
|
|
|
392
397
|
});
|
|
393
398
|
appendEditorToolItem({
|
|
394
399
|
id: LOCK_GROUP_COMMAND_ID,
|
|
395
|
-
title: ( localizeWithPath(_moduleId,
|
|
400
|
+
title: ( localizeWithPath(_moduleId, 49, "Lock Group")),
|
|
396
401
|
icon: Codicon.unlock
|
|
397
402
|
}, ( (ContextKeyExpr.and(
|
|
398
403
|
IsAuxiliaryEditorPartContext,
|
|
@@ -400,32 +405,32 @@ appendEditorToolItem({
|
|
|
400
405
|
))), CLOSE_ORDER - 1);
|
|
401
406
|
appendEditorToolItem({
|
|
402
407
|
id: UNLOCK_GROUP_COMMAND_ID,
|
|
403
|
-
title: ( localizeWithPath(_moduleId,
|
|
408
|
+
title: ( localizeWithPath(_moduleId, 50, "Unlock Group")),
|
|
404
409
|
icon: Codicon.lock,
|
|
405
410
|
toggled: ContextKeyExpr.true()
|
|
406
411
|
}, ActiveEditorGroupLockedContext, CLOSE_ORDER - 1);
|
|
407
|
-
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localizeWithPath(_moduleId,
|
|
412
|
+
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localizeWithPath(_moduleId, 51, 'Icon for the previous change action in the diff editor.')));
|
|
408
413
|
appendEditorToolItem({
|
|
409
414
|
id: GOTO_PREVIOUS_CHANGE,
|
|
410
|
-
title: ( localizeWithPath(_moduleId,
|
|
415
|
+
title: ( localizeWithPath(_moduleId, 52, "Previous Change")),
|
|
411
416
|
icon: previousChangeIcon
|
|
412
417
|
}, TextCompareEditorActiveContext, 10, undefined, EditorContextKeys.hasChanges);
|
|
413
|
-
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localizeWithPath(_moduleId,
|
|
418
|
+
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localizeWithPath(_moduleId, 53, 'Icon for the next change action in the diff editor.')));
|
|
414
419
|
appendEditorToolItem({
|
|
415
420
|
id: GOTO_NEXT_CHANGE,
|
|
416
|
-
title: ( localizeWithPath(_moduleId,
|
|
421
|
+
title: ( localizeWithPath(_moduleId, 54, "Next Change")),
|
|
417
422
|
icon: nextChangeIcon
|
|
418
423
|
}, TextCompareEditorActiveContext, 11, undefined, EditorContextKeys.hasChanges);
|
|
419
424
|
appendEditorToolItem({
|
|
420
425
|
id: DIFF_SWAP_SIDES,
|
|
421
|
-
title: ( localizeWithPath(_moduleId,
|
|
426
|
+
title: ( localizeWithPath(_moduleId, 55, "Swap Left and Right Side")),
|
|
422
427
|
icon: Codicon.arrowSwap
|
|
423
428
|
}, ( (ContextKeyExpr.and(TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext))), 15, undefined, undefined);
|
|
424
|
-
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localizeWithPath(_moduleId,
|
|
429
|
+
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localizeWithPath(_moduleId, 56, 'Icon for the toggle whitespace action in the diff editor.')));
|
|
425
430
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
426
431
|
command: {
|
|
427
432
|
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
428
|
-
title: ( localizeWithPath(_moduleId,
|
|
433
|
+
title: ( localizeWithPath(_moduleId, 57, "Show Leading/Trailing Whitespace Differences")),
|
|
429
434
|
icon: toggleWhitespace,
|
|
430
435
|
precondition: TextCompareEditorActiveContext,
|
|
431
436
|
toggled: ( (ContextKeyExpr.equals('config.diffEditor.ignoreTrimWhitespace', false))),
|
|
@@ -434,22 +439,22 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
434
439
|
when: TextCompareEditorActiveContext,
|
|
435
440
|
order: 20,
|
|
436
441
|
});
|
|
437
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2WithPath(_moduleId,
|
|
438
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2WithPath(_moduleId,
|
|
439
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2WithPath(_moduleId,
|
|
440
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2WithPath(_moduleId,
|
|
441
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2WithPath(_moduleId,
|
|
442
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2WithPath(_moduleId,
|
|
443
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2WithPath(_moduleId,
|
|
444
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2WithPath(_moduleId,
|
|
445
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2WithPath(_moduleId,
|
|
446
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2WithPath(_moduleId,
|
|
442
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2WithPath(_moduleId, 58, 'Keep Editor')), category: Categories.View }, when: ( (ContextKeyExpr.has('config.workbench.editor.enablePreview'))) });
|
|
443
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2WithPath(_moduleId, 59, 'Pin Editor')), category: Categories.View } });
|
|
444
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2WithPath(_moduleId, 60, 'Unpin Editor')), category: Categories.View } });
|
|
445
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2WithPath(_moduleId, 61, 'Close Editor')), category: Categories.View } });
|
|
446
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2WithPath(_moduleId, 62, 'Close Pinned Editor')), category: Categories.View } });
|
|
447
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2WithPath(_moduleId, 63, 'Close All Editors in Group')), category: Categories.View } });
|
|
448
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2WithPath(_moduleId, 64, 'Close Saved Editors in Group')), category: Categories.View } });
|
|
449
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2WithPath(_moduleId, 65, 'Close Other Editors in Group')), category: Categories.View } });
|
|
450
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2WithPath(_moduleId, 66, '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: ( localize2WithPath(_moduleId, 67, 'Close Editor Group')), category: Categories.View }, when: MultipleEditorGroupsContext });
|
|
447
452
|
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2WithPath(_moduleId, 31, "Reopen Editor With...")), category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
|
|
448
453
|
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
449
454
|
group: '1_editor',
|
|
450
455
|
command: {
|
|
451
456
|
id: ReopenClosedEditorAction.ID,
|
|
452
|
-
title: ( localizeWithPath(_moduleId,
|
|
457
|
+
title: ( localizeWithPath(_moduleId, 68, "&&Reopen Closed Editor")),
|
|
453
458
|
precondition: ( (ContextKeyExpr.has('canReopenClosedEditor')))
|
|
454
459
|
},
|
|
455
460
|
order: 1
|
|
@@ -458,19 +463,19 @@ MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
|
458
463
|
group: 'z_clear',
|
|
459
464
|
command: {
|
|
460
465
|
id: ClearRecentFilesAction.ID,
|
|
461
|
-
title: ( localizeWithPath(_moduleId,
|
|
466
|
+
title: ( localizeWithPath(_moduleId, 69, "&&Clear Recently Opened..."))
|
|
462
467
|
},
|
|
463
468
|
order: 1
|
|
464
469
|
});
|
|
465
470
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
466
|
-
title: ( localizeWithPath(_moduleId,
|
|
471
|
+
title: ( localizeWithPath(_moduleId, 70, "Share")),
|
|
467
472
|
submenu: MenuId.MenubarShare,
|
|
468
473
|
group: '45_share',
|
|
469
474
|
order: 1,
|
|
470
475
|
});
|
|
471
476
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
472
477
|
group: '2_appearance',
|
|
473
|
-
title: ( localizeWithPath(_moduleId,
|
|
478
|
+
title: ( localizeWithPath(_moduleId, 71, "Editor &&Layout")),
|
|
474
479
|
submenu: MenuId.MenubarLayoutMenu,
|
|
475
480
|
order: 2
|
|
476
481
|
});
|
|
@@ -479,8 +484,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
479
484
|
command: {
|
|
480
485
|
id: SPLIT_EDITOR_UP,
|
|
481
486
|
title: {
|
|
482
|
-
...( localize2WithPath(_moduleId,
|
|
483
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
487
|
+
...( localize2WithPath(_moduleId, 72, "Split Up")),
|
|
488
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 73, "Split &&Up")),
|
|
484
489
|
}
|
|
485
490
|
},
|
|
486
491
|
order: 1
|
|
@@ -490,8 +495,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
490
495
|
command: {
|
|
491
496
|
id: SPLIT_EDITOR_DOWN,
|
|
492
497
|
title: {
|
|
493
|
-
...( localize2WithPath(_moduleId,
|
|
494
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
498
|
+
...( localize2WithPath(_moduleId, 74, "Split Down")),
|
|
499
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 75, "Split &&Down")),
|
|
495
500
|
}
|
|
496
501
|
},
|
|
497
502
|
order: 2
|
|
@@ -501,8 +506,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
501
506
|
command: {
|
|
502
507
|
id: SPLIT_EDITOR_LEFT,
|
|
503
508
|
title: {
|
|
504
|
-
...( localize2WithPath(_moduleId,
|
|
505
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
509
|
+
...( localize2WithPath(_moduleId, 76, "Split Left")),
|
|
510
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 77, "Split &&Left")),
|
|
506
511
|
}
|
|
507
512
|
},
|
|
508
513
|
order: 3
|
|
@@ -512,8 +517,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
512
517
|
command: {
|
|
513
518
|
id: SPLIT_EDITOR_RIGHT,
|
|
514
519
|
title: {
|
|
515
|
-
...( localize2WithPath(_moduleId,
|
|
516
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
520
|
+
...( localize2WithPath(_moduleId, 78, "Split Right")),
|
|
521
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 79, "Split &&Right")),
|
|
517
522
|
}
|
|
518
523
|
},
|
|
519
524
|
order: 4
|
|
@@ -523,8 +528,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
523
528
|
command: {
|
|
524
529
|
id: SPLIT_EDITOR_IN_GROUP,
|
|
525
530
|
title: {
|
|
526
|
-
...( localize2WithPath(_moduleId,
|
|
527
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
531
|
+
...( localize2WithPath(_moduleId, 80, "Split in Group")),
|
|
532
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 81, "Split in &&Group")),
|
|
528
533
|
}
|
|
529
534
|
},
|
|
530
535
|
when: ActiveEditorCanSplitInGroupContext,
|
|
@@ -535,8 +540,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
535
540
|
command: {
|
|
536
541
|
id: JOIN_EDITOR_IN_GROUP,
|
|
537
542
|
title: {
|
|
538
|
-
...( localize2WithPath(_moduleId,
|
|
539
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
543
|
+
...( localize2WithPath(_moduleId, 82, "Join in Group")),
|
|
544
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 83, "Join in &&Group")),
|
|
540
545
|
}
|
|
541
546
|
},
|
|
542
547
|
when: SideBySideEditorActiveContext,
|
|
@@ -547,8 +552,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
547
552
|
command: {
|
|
548
553
|
id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
549
554
|
title: {
|
|
550
|
-
...( localize2WithPath(_moduleId,
|
|
551
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
555
|
+
...( localize2WithPath(_moduleId, 84, "Move Editor into New Window")),
|
|
556
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 85, "&&Move Editor into New Window")),
|
|
552
557
|
}
|
|
553
558
|
},
|
|
554
559
|
order: 1
|
|
@@ -558,8 +563,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
558
563
|
command: {
|
|
559
564
|
id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
560
565
|
title: {
|
|
561
|
-
...( localize2WithPath(_moduleId,
|
|
562
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
566
|
+
...( localize2WithPath(_moduleId, 86, "Copy Editor into New Window")),
|
|
567
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 87, "&&Copy Editor into New Window")),
|
|
563
568
|
}
|
|
564
569
|
},
|
|
565
570
|
order: 2
|
|
@@ -569,8 +574,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
569
574
|
command: {
|
|
570
575
|
id: EditorLayoutSingleAction.ID,
|
|
571
576
|
title: {
|
|
572
|
-
...( localize2WithPath(_moduleId,
|
|
573
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
577
|
+
...( localize2WithPath(_moduleId, 88, "Single")),
|
|
578
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 89, "&&Single")),
|
|
574
579
|
}
|
|
575
580
|
},
|
|
576
581
|
order: 1
|
|
@@ -580,8 +585,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
580
585
|
command: {
|
|
581
586
|
id: EditorLayoutTwoColumnsAction.ID,
|
|
582
587
|
title: {
|
|
583
|
-
...( localize2WithPath(_moduleId,
|
|
584
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
588
|
+
...( localize2WithPath(_moduleId, 90, "Two Columns")),
|
|
589
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 91, "&&Two Columns")),
|
|
585
590
|
}
|
|
586
591
|
},
|
|
587
592
|
order: 3
|
|
@@ -591,8 +596,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
591
596
|
command: {
|
|
592
597
|
id: EditorLayoutThreeColumnsAction.ID,
|
|
593
598
|
title: {
|
|
594
|
-
...( localize2WithPath(_moduleId,
|
|
595
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
599
|
+
...( localize2WithPath(_moduleId, 92, "Three Columns")),
|
|
600
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 93, "T&&hree Columns")),
|
|
596
601
|
}
|
|
597
602
|
},
|
|
598
603
|
order: 4
|
|
@@ -602,8 +607,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
602
607
|
command: {
|
|
603
608
|
id: EditorLayoutTwoRowsAction.ID,
|
|
604
609
|
title: {
|
|
605
|
-
...( localize2WithPath(_moduleId,
|
|
606
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
610
|
+
...( localize2WithPath(_moduleId, 94, "Two Rows")),
|
|
611
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 95, "T&&wo Rows")),
|
|
607
612
|
}
|
|
608
613
|
},
|
|
609
614
|
order: 5
|
|
@@ -613,8 +618,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
613
618
|
command: {
|
|
614
619
|
id: EditorLayoutThreeRowsAction.ID,
|
|
615
620
|
title: {
|
|
616
|
-
...( localize2WithPath(_moduleId,
|
|
617
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
621
|
+
...( localize2WithPath(_moduleId, 96, "Three Rows")),
|
|
622
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 97, "Three &&Rows")),
|
|
618
623
|
}
|
|
619
624
|
},
|
|
620
625
|
order: 6
|
|
@@ -624,8 +629,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
624
629
|
command: {
|
|
625
630
|
id: EditorLayoutTwoByTwoGridAction.ID,
|
|
626
631
|
title: {
|
|
627
|
-
...( localize2WithPath(_moduleId,
|
|
628
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
632
|
+
...( localize2WithPath(_moduleId, 98, "Grid (2x2)")),
|
|
633
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 99, "&&Grid (2x2)")),
|
|
629
634
|
}
|
|
630
635
|
},
|
|
631
636
|
order: 7
|
|
@@ -635,8 +640,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
635
640
|
command: {
|
|
636
641
|
id: EditorLayoutTwoRowsRightAction.ID,
|
|
637
642
|
title: {
|
|
638
|
-
...( localize2WithPath(_moduleId,
|
|
639
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
643
|
+
...( localize2WithPath(_moduleId, 100, "Two Rows Right")),
|
|
644
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 101, "Two R&&ows Right")),
|
|
640
645
|
}
|
|
641
646
|
},
|
|
642
647
|
order: 8
|
|
@@ -646,8 +651,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
646
651
|
command: {
|
|
647
652
|
id: EditorLayoutTwoColumnsBottomAction.ID,
|
|
648
653
|
title: {
|
|
649
|
-
...( localize2WithPath(_moduleId,
|
|
650
|
-
mnemonicTitle: ( localizeWithPath(_moduleId,
|
|
654
|
+
...( localize2WithPath(_moduleId, 102, "Two Columns Bottom")),
|
|
655
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 103, "Two &&Columns Bottom")),
|
|
651
656
|
}
|
|
652
657
|
},
|
|
653
658
|
order: 9
|
|
@@ -656,7 +661,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
656
661
|
group: '1_history_nav',
|
|
657
662
|
command: {
|
|
658
663
|
id: 'workbench.action.navigateToLastEditLocation',
|
|
659
|
-
title: ( localizeWithPath(_moduleId,
|
|
664
|
+
title: ( localizeWithPath(_moduleId, 104, "&&Last Edit Location")),
|
|
660
665
|
precondition: ( (ContextKeyExpr.has('canNavigateToLastEditLocation')))
|
|
661
666
|
},
|
|
662
667
|
order: 3
|
|
@@ -665,7 +670,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
665
670
|
group: '1_sideBySide',
|
|
666
671
|
command: {
|
|
667
672
|
id: FOCUS_FIRST_SIDE_EDITOR,
|
|
668
|
-
title: ( localizeWithPath(_moduleId,
|
|
673
|
+
title: ( localizeWithPath(_moduleId, 105, "&&First Side in Editor"))
|
|
669
674
|
},
|
|
670
675
|
when: ( (ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext))),
|
|
671
676
|
order: 1
|
|
@@ -674,7 +679,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
674
679
|
group: '1_sideBySide',
|
|
675
680
|
command: {
|
|
676
681
|
id: FOCUS_SECOND_SIDE_EDITOR,
|
|
677
|
-
title: ( localizeWithPath(_moduleId,
|
|
682
|
+
title: ( localizeWithPath(_moduleId, 106, "&&Second Side in Editor"))
|
|
678
683
|
},
|
|
679
684
|
when: ( (ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext))),
|
|
680
685
|
order: 2
|
|
@@ -683,7 +688,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
683
688
|
group: '2_any',
|
|
684
689
|
command: {
|
|
685
690
|
id: 'workbench.action.nextEditor',
|
|
686
|
-
title: ( localizeWithPath(_moduleId,
|
|
691
|
+
title: ( localizeWithPath(_moduleId, 107, "&&Next Editor"))
|
|
687
692
|
},
|
|
688
693
|
order: 1
|
|
689
694
|
});
|
|
@@ -691,7 +696,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
691
696
|
group: '2_any',
|
|
692
697
|
command: {
|
|
693
698
|
id: 'workbench.action.previousEditor',
|
|
694
|
-
title: ( localizeWithPath(_moduleId,
|
|
699
|
+
title: ( localizeWithPath(_moduleId, 108, "&&Previous Editor"))
|
|
695
700
|
},
|
|
696
701
|
order: 2
|
|
697
702
|
});
|
|
@@ -699,7 +704,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
699
704
|
group: '3_any_used',
|
|
700
705
|
command: {
|
|
701
706
|
id: 'workbench.action.openNextRecentlyUsedEditor',
|
|
702
|
-
title: ( localizeWithPath(_moduleId,
|
|
707
|
+
title: ( localizeWithPath(_moduleId, 109, "&&Next Used Editor"))
|
|
703
708
|
},
|
|
704
709
|
order: 1
|
|
705
710
|
});
|
|
@@ -707,7 +712,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
707
712
|
group: '3_any_used',
|
|
708
713
|
command: {
|
|
709
714
|
id: 'workbench.action.openPreviousRecentlyUsedEditor',
|
|
710
|
-
title: ( localizeWithPath(_moduleId,
|
|
715
|
+
title: ( localizeWithPath(_moduleId, 110, "&&Previous Used Editor"))
|
|
711
716
|
},
|
|
712
717
|
order: 2
|
|
713
718
|
});
|
|
@@ -715,7 +720,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
715
720
|
group: '4_group',
|
|
716
721
|
command: {
|
|
717
722
|
id: 'workbench.action.nextEditorInGroup',
|
|
718
|
-
title: ( localizeWithPath(_moduleId,
|
|
723
|
+
title: ( localizeWithPath(_moduleId, 111, "&&Next Editor in Group"))
|
|
719
724
|
},
|
|
720
725
|
order: 1
|
|
721
726
|
});
|
|
@@ -723,7 +728,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
723
728
|
group: '4_group',
|
|
724
729
|
command: {
|
|
725
730
|
id: 'workbench.action.previousEditorInGroup',
|
|
726
|
-
title: ( localizeWithPath(_moduleId,
|
|
731
|
+
title: ( localizeWithPath(_moduleId, 112, "&&Previous Editor in Group"))
|
|
727
732
|
},
|
|
728
733
|
order: 2
|
|
729
734
|
});
|
|
@@ -731,7 +736,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
731
736
|
group: '5_group_used',
|
|
732
737
|
command: {
|
|
733
738
|
id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
734
|
-
title: ( localizeWithPath(_moduleId,
|
|
739
|
+
title: ( localizeWithPath(_moduleId, 113, "&&Next Used Editor in Group"))
|
|
735
740
|
},
|
|
736
741
|
order: 1
|
|
737
742
|
});
|
|
@@ -739,13 +744,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
739
744
|
group: '5_group_used',
|
|
740
745
|
command: {
|
|
741
746
|
id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
742
|
-
title: ( localizeWithPath(_moduleId,
|
|
747
|
+
title: ( localizeWithPath(_moduleId, 114, "&&Previous Used Editor in Group"))
|
|
743
748
|
},
|
|
744
749
|
order: 2
|
|
745
750
|
});
|
|
746
751
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
747
752
|
group: '2_editor_nav',
|
|
748
|
-
title: ( localizeWithPath(_moduleId,
|
|
753
|
+
title: ( localizeWithPath(_moduleId, 115, "Switch &&Editor")),
|
|
749
754
|
submenu: MenuId.MenubarSwitchEditorMenu,
|
|
750
755
|
order: 1
|
|
751
756
|
});
|
|
@@ -753,7 +758,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
753
758
|
group: '1_focus_index',
|
|
754
759
|
command: {
|
|
755
760
|
id: 'workbench.action.focusFirstEditorGroup',
|
|
756
|
-
title: ( localizeWithPath(_moduleId,
|
|
761
|
+
title: ( localizeWithPath(_moduleId, 116, "Group &&1"))
|
|
757
762
|
},
|
|
758
763
|
order: 1
|
|
759
764
|
});
|
|
@@ -761,7 +766,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
761
766
|
group: '1_focus_index',
|
|
762
767
|
command: {
|
|
763
768
|
id: 'workbench.action.focusSecondEditorGroup',
|
|
764
|
-
title: ( localizeWithPath(_moduleId,
|
|
769
|
+
title: ( localizeWithPath(_moduleId, 117, "Group &&2"))
|
|
765
770
|
},
|
|
766
771
|
order: 2
|
|
767
772
|
});
|
|
@@ -769,7 +774,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
769
774
|
group: '1_focus_index',
|
|
770
775
|
command: {
|
|
771
776
|
id: 'workbench.action.focusThirdEditorGroup',
|
|
772
|
-
title: ( localizeWithPath(_moduleId,
|
|
777
|
+
title: ( localizeWithPath(_moduleId, 118, "Group &&3")),
|
|
773
778
|
precondition: MultipleEditorGroupsContext
|
|
774
779
|
},
|
|
775
780
|
order: 3
|
|
@@ -778,7 +783,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
778
783
|
group: '1_focus_index',
|
|
779
784
|
command: {
|
|
780
785
|
id: 'workbench.action.focusFourthEditorGroup',
|
|
781
|
-
title: ( localizeWithPath(_moduleId,
|
|
786
|
+
title: ( localizeWithPath(_moduleId, 119, "Group &&4")),
|
|
782
787
|
precondition: MultipleEditorGroupsContext
|
|
783
788
|
},
|
|
784
789
|
order: 4
|
|
@@ -787,7 +792,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
787
792
|
group: '1_focus_index',
|
|
788
793
|
command: {
|
|
789
794
|
id: 'workbench.action.focusFifthEditorGroup',
|
|
790
|
-
title: ( localizeWithPath(_moduleId,
|
|
795
|
+
title: ( localizeWithPath(_moduleId, 120, "Group &&5")),
|
|
791
796
|
precondition: MultipleEditorGroupsContext
|
|
792
797
|
},
|
|
793
798
|
order: 5
|
|
@@ -796,7 +801,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
796
801
|
group: '2_next_prev',
|
|
797
802
|
command: {
|
|
798
803
|
id: 'workbench.action.focusNextGroup',
|
|
799
|
-
title: ( localizeWithPath(_moduleId,
|
|
804
|
+
title: ( localizeWithPath(_moduleId, 121, "&&Next Group")),
|
|
800
805
|
precondition: MultipleEditorGroupsContext
|
|
801
806
|
},
|
|
802
807
|
order: 1
|
|
@@ -805,7 +810,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
805
810
|
group: '2_next_prev',
|
|
806
811
|
command: {
|
|
807
812
|
id: 'workbench.action.focusPreviousGroup',
|
|
808
|
-
title: ( localizeWithPath(_moduleId,
|
|
813
|
+
title: ( localizeWithPath(_moduleId, 122, "&&Previous Group")),
|
|
809
814
|
precondition: MultipleEditorGroupsContext
|
|
810
815
|
},
|
|
811
816
|
order: 2
|
|
@@ -814,7 +819,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
814
819
|
group: '3_directional',
|
|
815
820
|
command: {
|
|
816
821
|
id: 'workbench.action.focusLeftGroup',
|
|
817
|
-
title: ( localizeWithPath(_moduleId,
|
|
822
|
+
title: ( localizeWithPath(_moduleId, 123, "Group &&Left")),
|
|
818
823
|
precondition: MultipleEditorGroupsContext
|
|
819
824
|
},
|
|
820
825
|
order: 1
|
|
@@ -823,7 +828,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
823
828
|
group: '3_directional',
|
|
824
829
|
command: {
|
|
825
830
|
id: 'workbench.action.focusRightGroup',
|
|
826
|
-
title: ( localizeWithPath(_moduleId,
|
|
831
|
+
title: ( localizeWithPath(_moduleId, 124, "Group &&Right")),
|
|
827
832
|
precondition: MultipleEditorGroupsContext
|
|
828
833
|
},
|
|
829
834
|
order: 2
|
|
@@ -832,7 +837,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
832
837
|
group: '3_directional',
|
|
833
838
|
command: {
|
|
834
839
|
id: 'workbench.action.focusAboveGroup',
|
|
835
|
-
title: ( localizeWithPath(_moduleId,
|
|
840
|
+
title: ( localizeWithPath(_moduleId, 125, "Group &&Above")),
|
|
836
841
|
precondition: MultipleEditorGroupsContext
|
|
837
842
|
},
|
|
838
843
|
order: 3
|
|
@@ -841,14 +846,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
841
846
|
group: '3_directional',
|
|
842
847
|
command: {
|
|
843
848
|
id: 'workbench.action.focusBelowGroup',
|
|
844
|
-
title: ( localizeWithPath(_moduleId,
|
|
849
|
+
title: ( localizeWithPath(_moduleId, 126, "Group &&Below")),
|
|
845
850
|
precondition: MultipleEditorGroupsContext
|
|
846
851
|
},
|
|
847
852
|
order: 4
|
|
848
853
|
});
|
|
849
854
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
850
855
|
group: '2_editor_nav',
|
|
851
|
-
title: ( localizeWithPath(_moduleId,
|
|
856
|
+
title: ( localizeWithPath(_moduleId, 127, "Switch &&Group")),
|
|
852
857
|
submenu: MenuId.MenubarSwitchGroupMenu,
|
|
853
858
|
order: 2
|
|
854
859
|
});
|