@codingame/monaco-vscode-view-common-service-override 7.1.0 → 8.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +80 -149
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +5 -7
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +7 -8
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +24 -26
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +6 -14
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +4 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +161 -160
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +13 -18
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +2 -8
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +3 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +3 -4
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +6 -7
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +19 -16
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -3
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +2 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +13 -14
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +6 -7
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +4 -5
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +2 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +2 -3
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +18 -24
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +9 -10
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +29 -31
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +15 -16
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +4 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -15
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +26 -31
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +5 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +12 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +6 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +2 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +2 -7
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +15 -18
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +5 -8
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +11 -12
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +6 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +4 -5
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +13 -4
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +6 -7
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -3
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +10 -25
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +16 -27
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +8 -9
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +3 -4
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +2 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
2
|
-
import {
|
|
2
|
+
import { localize, localize2 } 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
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';
|
|
@@ -33,22 +33,21 @@ import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
|
33
33
|
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
34
34
|
import { UntitledTextEditorInputSerializer, UntitledTextEditorWorkingCopyEditorHandler } from '../../../services/untitled/common/untitledTextEditorHandler.js';
|
|
35
35
|
import { DynamicEditorConfigurations } from './editorConfiguration.js';
|
|
36
|
-
import { ShowMultipleEditorTabsAction, ShowSingleEditorTabAction, HideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingleEditorTabAction, ZenHideEditorTabsAction, EditorActionsDefaultAction, EditorActionsTitleBarAction, HideEditorActionsAction } from 'vscode/vscode/vs/workbench/browser/actions/layoutActions';
|
|
36
|
+
import { ShowMultipleEditorTabsAction, ShowSingleEditorTabAction, HideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingleEditorTabAction, ZenHideEditorTabsAction, EditorActionsDefaultAction, EditorActionsTitleBarAction, HideEditorActionsAction, ConfigureEditorTabsAction, ConfigureEditorAction } from 'vscode/vscode/vs/workbench/browser/actions/layoutActions';
|
|
37
37
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
38
38
|
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
|
|
39
39
|
|
|
40
|
-
|
|
41
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localizeWithPath(_moduleId, 0, "Text Editor"))), [
|
|
40
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(4217, "Text Editor"))), [
|
|
42
41
|
( (new SyncDescriptor(UntitledTextEditorInput))),
|
|
43
42
|
( (new SyncDescriptor(TextResourceEditorInput)))
|
|
44
43
|
]);
|
|
45
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, (
|
|
44
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(4218, "Text Diff Editor"))), [
|
|
46
45
|
( (new SyncDescriptor(DiffEditorInput)))
|
|
47
46
|
]);
|
|
48
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, (
|
|
47
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(4219, "Binary Diff Editor"))), [
|
|
49
48
|
( (new SyncDescriptor(DiffEditorInput)))
|
|
50
49
|
]);
|
|
51
|
-
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, (
|
|
50
|
+
( (Registry.as(EditorExtensions.EditorPane))).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(4220, "Side by Side Editor"))), [
|
|
52
51
|
( (new SyncDescriptor(SideBySideEditorInput)))
|
|
53
52
|
]);
|
|
54
53
|
( (Registry.as(EditorExtensions.EditorFactory))).registerEditorSerializer(UntitledTextEditorInput.ID, UntitledTextEditorInputSerializer);
|
|
@@ -68,22 +67,22 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
68
67
|
ctor: ActiveGroupEditorsByMostRecentlyUsedQuickAccess,
|
|
69
68
|
prefix: ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
70
69
|
contextKey: editorPickerContextKey,
|
|
71
|
-
placeholder: (
|
|
72
|
-
helpEntries: [{ description: (
|
|
70
|
+
placeholder: ( localize(4221, "Type the name of an editor to open it.")),
|
|
71
|
+
helpEntries: [{ description: ( localize(4222, "Show Editors in Active Group by Most Recently Used")), commandId: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID }]
|
|
73
72
|
});
|
|
74
73
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
75
74
|
ctor: AllEditorsByAppearanceQuickAccess,
|
|
76
75
|
prefix: AllEditorsByAppearanceQuickAccess.PREFIX,
|
|
77
76
|
contextKey: editorPickerContextKey,
|
|
78
|
-
placeholder: (
|
|
79
|
-
helpEntries: [{ description: (
|
|
77
|
+
placeholder: ( localize(4222, "Type the name of an editor to open it.")),
|
|
78
|
+
helpEntries: [{ description: ( localize(4223, "Show All Opened Editors By Appearance")), commandId: ShowAllEditorsByAppearanceAction.ID }]
|
|
80
79
|
});
|
|
81
80
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
82
81
|
ctor: AllEditorsByMostRecentlyUsedQuickAccess,
|
|
83
82
|
prefix: AllEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
84
83
|
contextKey: editorPickerContextKey,
|
|
85
|
-
placeholder: (
|
|
86
|
-
helpEntries: [{ description: (
|
|
84
|
+
placeholder: ( localize(4223, "Type the name of an editor to open it.")),
|
|
85
|
+
helpEntries: [{ description: ( localize(4224, "Show All Opened Editors By Most Recently Used")), commandId: ShowAllEditorsByMostRecentlyUsedAction.ID }]
|
|
87
86
|
});
|
|
88
87
|
registerAction2(ChangeLanguageAction);
|
|
89
88
|
registerAction2(ChangeEOLAction);
|
|
@@ -227,75 +226,77 @@ if (isMacintosh) {
|
|
|
227
226
|
order: 1
|
|
228
227
|
});
|
|
229
228
|
}
|
|
230
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: (
|
|
229
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(4225, "Lock Group")), icon: Codicon.unlock }, group: 'navigation', order: 10, when: ( (ContextKeyExpr.and(
|
|
231
230
|
IsAuxiliaryEditorPartContext,
|
|
232
231
|
(ActiveEditorGroupLockedContext.toNegated())
|
|
233
232
|
))) });
|
|
234
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: (
|
|
235
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: (
|
|
236
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: (
|
|
237
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: (
|
|
238
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: (
|
|
239
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: (
|
|
240
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: (
|
|
241
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: (
|
|
242
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: (
|
|
243
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: (
|
|
244
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: (
|
|
245
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: (
|
|
246
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: (
|
|
247
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: (
|
|
248
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: (
|
|
249
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: (
|
|
250
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: (
|
|
251
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: (
|
|
252
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: (
|
|
253
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: (
|
|
254
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: (
|
|
255
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: (
|
|
256
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: (
|
|
257
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: (
|
|
258
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: (
|
|
259
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: (
|
|
233
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(4226, "Unlock Group")), icon: Codicon.lock, toggled: ContextKeyExpr.true() }, group: 'navigation', order: 10, when: ActiveEditorGroupLockedContext });
|
|
234
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(4227, "Close Group")), icon: Codicon.close }, group: 'navigation', order: 20, when: ( (ContextKeyExpr.or(IsAuxiliaryEditorPartContext, EditorPartMultipleEditorGroupsContext))) });
|
|
235
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(4228, "Split Up")) }, group: '2_split', order: 10 });
|
|
236
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(4229, "Split Down")) }, group: '2_split', order: 20 });
|
|
237
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(4230, "Split Left")) }, group: '2_split', order: 30 });
|
|
238
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(4231, "Split Right")) }, group: '2_split', order: 40 });
|
|
239
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(4232, "New Window")) }, group: '3_window', order: 10 });
|
|
240
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(4233, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '4_lock', order: 10, when: ( (IsAuxiliaryEditorPartContext.toNegated())) });
|
|
241
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(4234, "Close")) }, group: '5_close', order: 10, when: MultipleEditorGroupsContext });
|
|
242
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(4234, "Split Up")) }, group: '2_split', order: 10 });
|
|
243
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(4234, "Split Down")) }, group: '2_split', order: 20 });
|
|
244
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(4234, "Split Left")) }, group: '2_split', order: 30 });
|
|
245
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(4234, "Split Right")) }, group: '2_split', order: 40 });
|
|
246
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4235, "Move into New Window")) }, group: '3_window', order: 10 });
|
|
247
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4236, "Copy into New Window")) }, group: '3_window', order: 20 });
|
|
248
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(4237, "Tab Bar")), group: '4_config', order: 10, when: ( (InEditorZenModeContext.negate())) });
|
|
249
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(4238, "Multiple Tabs")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'multiple'))) }, group: '1_config', order: 10 });
|
|
250
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(4239, "Single Tab")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'single'))) }, group: '1_config', order: 20 });
|
|
251
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(4240, "Hidden")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none'))) }, group: '1_config', order: 30 });
|
|
252
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(4240, "Tab Bar")), group: '4_config', order: 10, when: InEditorZenModeContext });
|
|
253
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(4240, "Multiple Tabs")), toggled: ( (ContextKeyExpr.equals('config.zenMode.showTabs', 'multiple'))) }, group: '1_config', order: 10 });
|
|
254
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(4240, "Single Tab")), toggled: ( (ContextKeyExpr.equals('config.zenMode.showTabs', 'single'))) }, group: '1_config', order: 20 });
|
|
255
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(4240, "Hidden")), toggled: ( (ContextKeyExpr.equals('config.zenMode.showTabs', 'none'))) }, group: '1_config', order: 30 });
|
|
256
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(4241, "Editor Actions Position")), group: '4_config', order: 20 });
|
|
257
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(4241, "Tab Bar")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default'))) }, group: '1_config', order: 10, when: ( (( (ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none'))).negate())) });
|
|
258
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(4242, "Title Bar")), toggled: ( (ContextKeyExpr.or(
|
|
260
259
|
(ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'titleBar')),
|
|
261
260
|
(ContextKeyExpr.and(
|
|
262
261
|
(ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')),
|
|
263
262
|
(ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default'))
|
|
264
263
|
))
|
|
265
264
|
))) }, group: '1_config', order: 20 });
|
|
266
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: (
|
|
267
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
268
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id:
|
|
269
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id:
|
|
265
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(4243, "Hidden")), toggled: ( (ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'hidden'))) }, group: '1_config', order: 30 });
|
|
266
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(4244, "Configure Tabs ...")) }, group: '9_configure', order: 10 });
|
|
267
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(4244, "Close")) }, group: '1_close', order: 10 });
|
|
268
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(4245, "Close Others")), precondition: ( (EditorGroupEditorsCountContext.notEqualsTo('1'))) }, group: '1_close', order: 20 });
|
|
269
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(4246, "Close to the Right")), precondition: ( (ContextKeyExpr.and(
|
|
270
270
|
(ActiveEditorLastInGroupContext.toNegated()),
|
|
271
271
|
(MultipleEditorsSelectedInGroupContext.negate())
|
|
272
272
|
))) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
|
|
273
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: (
|
|
274
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: (
|
|
275
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: (
|
|
276
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: (
|
|
277
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: (
|
|
278
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: (
|
|
279
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: (
|
|
280
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: (
|
|
281
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: (
|
|
282
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: (
|
|
283
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: (
|
|
284
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: (
|
|
285
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: (
|
|
286
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: (
|
|
287
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: (
|
|
288
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: (
|
|
289
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: (
|
|
290
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: (
|
|
291
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: (
|
|
292
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: (
|
|
293
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: (
|
|
273
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(4247, "Close Saved")) }, group: '1_close', order: 40 });
|
|
274
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(4248, "Close All")) }, group: '1_close', order: 50 });
|
|
275
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(4249, "Reopen Editor With...")) }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
|
|
276
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(4250, "Keep Open")), precondition: ( (ActiveEditorPinnedContext.toNegated())) }, group: '3_preview', order: 10, when: ( (ContextKeyExpr.has('config.workbench.editor.enablePreview'))) });
|
|
277
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(4251, "Pin")) }, group: '3_preview', order: 20, when: ( (ActiveEditorStickyContext.toNegated())) });
|
|
278
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(4252, "Unpin")) }, group: '3_preview', order: 20, when: ActiveEditorStickyContext });
|
|
279
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(4252, "Split Up")) }, group: '5_split', order: 10 });
|
|
280
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(4252, "Split Down")) }, group: '5_split', order: 20 });
|
|
281
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(4252, "Split Left")) }, group: '5_split', order: 30 });
|
|
282
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(4252, "Split Right")) }, group: '5_split', order: 40 });
|
|
283
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(4253, "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: ( localize(4254, "Join in Group")), precondition: ( (MultipleEditorsSelectedInGroupContext.negate())) }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
|
|
285
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4255, "Move into New Window")) }, group: '7_new_window', order: 10 });
|
|
286
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4256, "Copy into New Window")) }, group: '7_new_window', order: 20 });
|
|
287
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(4257, "Share")), group: '11_share', order: -1, when: ( (MultipleEditorsSelectedInGroupContext.negate())) });
|
|
288
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(4258, "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: ( localize(4259, "Show Opened Editors")) }, group: '3_open', order: 10 });
|
|
290
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(4259, "Close All")) }, group: '5_close', order: 10 });
|
|
291
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(4259, "Close Saved")) }, group: '5_close', order: 20 });
|
|
292
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(4260, "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: ( localize(4261, "Maximize Group")) }, group: '8_group_operations', order: 5, when: ( (ContextKeyExpr.and(
|
|
294
294
|
(EditorPartMaximizedEditorGroupContext.negate()),
|
|
295
295
|
EditorPartMultipleEditorGroupsContext
|
|
296
296
|
))) });
|
|
297
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: (
|
|
298
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: (
|
|
297
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(4262, "Unmaximize Group")) }, group: '8_group_operations', order: 5, when: EditorPartMaximizedEditorGroupContext });
|
|
298
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(4263, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( (IsAuxiliaryEditorPartContext.toNegated())) });
|
|
299
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(4264, "Configure Editor ...")) }, group: '9_configure', order: 10 });
|
|
299
300
|
function appendEditorToolItem(primary, when, order, alternative, precondition) {
|
|
300
301
|
const item = {
|
|
301
302
|
command: {
|
|
@@ -322,30 +323,30 @@ const SPLIT_ORDER = 100000;
|
|
|
322
323
|
const CLOSE_ORDER = 1000000;
|
|
323
324
|
appendEditorToolItem({
|
|
324
325
|
id: SPLIT_EDITOR,
|
|
325
|
-
title: (
|
|
326
|
+
title: ( localize(4265, "Split Editor Right")),
|
|
326
327
|
icon: Codicon.splitHorizontal
|
|
327
328
|
}, ContextKeyExpr.not('splitEditorsVertically'), SPLIT_ORDER, {
|
|
328
329
|
id: SPLIT_EDITOR_DOWN,
|
|
329
|
-
title: (
|
|
330
|
+
title: ( localize(4266, "Split Editor Down")),
|
|
330
331
|
icon: Codicon.splitVertical
|
|
331
332
|
});
|
|
332
333
|
appendEditorToolItem({
|
|
333
334
|
id: SPLIT_EDITOR,
|
|
334
|
-
title: (
|
|
335
|
+
title: ( localize(4266, "Split Editor Down")),
|
|
335
336
|
icon: Codicon.splitVertical
|
|
336
337
|
}, ( (ContextKeyExpr.has('splitEditorsVertically'))), SPLIT_ORDER, {
|
|
337
338
|
id: SPLIT_EDITOR_RIGHT,
|
|
338
|
-
title: (
|
|
339
|
+
title: ( localize(4266, "Split Editor Right")),
|
|
339
340
|
icon: Codicon.splitHorizontal
|
|
340
341
|
});
|
|
341
342
|
appendEditorToolItem({
|
|
342
343
|
id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
|
|
343
|
-
title: (
|
|
344
|
+
title: ( localize(4267, "Toggle Layout")),
|
|
344
345
|
icon: Codicon.editorLayout
|
|
345
346
|
}, SideBySideEditorActiveContext, SPLIT_ORDER - 1);
|
|
346
347
|
appendEditorToolItem({
|
|
347
348
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
348
|
-
title: (
|
|
349
|
+
title: ( localize(4267, "Close")),
|
|
349
350
|
icon: Codicon.close
|
|
350
351
|
}, ( (ContextKeyExpr.and(
|
|
351
352
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -353,12 +354,12 @@ appendEditorToolItem({
|
|
|
353
354
|
(ActiveEditorStickyContext.toNegated())
|
|
354
355
|
))), CLOSE_ORDER, {
|
|
355
356
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
356
|
-
title: (
|
|
357
|
+
title: ( localize(4267, "Close All")),
|
|
357
358
|
icon: Codicon.closeAll
|
|
358
359
|
});
|
|
359
360
|
appendEditorToolItem({
|
|
360
361
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
361
|
-
title: (
|
|
362
|
+
title: ( localize(4267, "Close")),
|
|
362
363
|
icon: Codicon.closeDirty
|
|
363
364
|
}, ( (ContextKeyExpr.and(
|
|
364
365
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -366,12 +367,12 @@ appendEditorToolItem({
|
|
|
366
367
|
(ActiveEditorStickyContext.toNegated())
|
|
367
368
|
))), CLOSE_ORDER, {
|
|
368
369
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
369
|
-
title: (
|
|
370
|
+
title: ( localize(4267, "Close All")),
|
|
370
371
|
icon: Codicon.closeAll
|
|
371
372
|
});
|
|
372
373
|
appendEditorToolItem({
|
|
373
374
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
374
|
-
title: (
|
|
375
|
+
title: ( localize(4267, "Unpin")),
|
|
375
376
|
icon: Codicon.pinned
|
|
376
377
|
}, ( (ContextKeyExpr.and(
|
|
377
378
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -379,12 +380,12 @@ appendEditorToolItem({
|
|
|
379
380
|
ActiveEditorStickyContext
|
|
380
381
|
))), CLOSE_ORDER, {
|
|
381
382
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
382
|
-
title: (
|
|
383
|
+
title: ( localize(4267, "Close")),
|
|
383
384
|
icon: Codicon.close
|
|
384
385
|
});
|
|
385
386
|
appendEditorToolItem({
|
|
386
387
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
387
|
-
title: (
|
|
388
|
+
title: ( localize(4267, "Unpin")),
|
|
388
389
|
icon: Codicon.pinnedDirty
|
|
389
390
|
}, ( (ContextKeyExpr.and(
|
|
390
391
|
(EditorTabsVisibleContext.toNegated()),
|
|
@@ -392,12 +393,12 @@ appendEditorToolItem({
|
|
|
392
393
|
ActiveEditorStickyContext
|
|
393
394
|
))), CLOSE_ORDER, {
|
|
394
395
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
395
|
-
title: (
|
|
396
|
+
title: ( localize(4267, "Close")),
|
|
396
397
|
icon: Codicon.close
|
|
397
398
|
});
|
|
398
399
|
appendEditorToolItem({
|
|
399
400
|
id: LOCK_GROUP_COMMAND_ID,
|
|
400
|
-
title: (
|
|
401
|
+
title: ( localize(4268, "Lock Group")),
|
|
401
402
|
icon: Codicon.unlock
|
|
402
403
|
}, ( (ContextKeyExpr.and(
|
|
403
404
|
IsAuxiliaryEditorPartContext,
|
|
@@ -405,32 +406,32 @@ appendEditorToolItem({
|
|
|
405
406
|
))), CLOSE_ORDER - 1);
|
|
406
407
|
appendEditorToolItem({
|
|
407
408
|
id: UNLOCK_GROUP_COMMAND_ID,
|
|
408
|
-
title: (
|
|
409
|
+
title: ( localize(4269, "Unlock Group")),
|
|
409
410
|
icon: Codicon.lock,
|
|
410
411
|
toggled: ContextKeyExpr.true()
|
|
411
412
|
}, ActiveEditorGroupLockedContext, CLOSE_ORDER - 1);
|
|
412
|
-
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, (
|
|
413
|
+
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(4270, 'Icon for the previous change action in the diff editor.')));
|
|
413
414
|
appendEditorToolItem({
|
|
414
415
|
id: GOTO_PREVIOUS_CHANGE,
|
|
415
|
-
title: (
|
|
416
|
+
title: ( localize(4271, "Previous Change")),
|
|
416
417
|
icon: previousChangeIcon
|
|
417
418
|
}, TextCompareEditorActiveContext, 10, undefined, EditorContextKeys.hasChanges);
|
|
418
|
-
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, (
|
|
419
|
+
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(4272, 'Icon for the next change action in the diff editor.')));
|
|
419
420
|
appendEditorToolItem({
|
|
420
421
|
id: GOTO_NEXT_CHANGE,
|
|
421
|
-
title: (
|
|
422
|
+
title: ( localize(4273, "Next Change")),
|
|
422
423
|
icon: nextChangeIcon
|
|
423
424
|
}, TextCompareEditorActiveContext, 11, undefined, EditorContextKeys.hasChanges);
|
|
424
425
|
appendEditorToolItem({
|
|
425
426
|
id: DIFF_SWAP_SIDES,
|
|
426
|
-
title: (
|
|
427
|
+
title: ( localize(4274, "Swap Left and Right Side")),
|
|
427
428
|
icon: Codicon.arrowSwap
|
|
428
429
|
}, ( (ContextKeyExpr.and(TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext))), 15, undefined, undefined);
|
|
429
|
-
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, (
|
|
430
|
+
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(4275, 'Icon for the toggle whitespace action in the diff editor.')));
|
|
430
431
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
431
432
|
command: {
|
|
432
433
|
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
433
|
-
title: (
|
|
434
|
+
title: ( localize(4276, "Show Leading/Trailing Whitespace Differences")),
|
|
434
435
|
icon: toggleWhitespace,
|
|
435
436
|
precondition: TextCompareEditorActiveContext,
|
|
436
437
|
toggled: ( (ContextKeyExpr.equals('config.diffEditor.ignoreTrimWhitespace', false))),
|
|
@@ -439,22 +440,22 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
439
440
|
when: TextCompareEditorActiveContext,
|
|
440
441
|
order: 20,
|
|
441
442
|
});
|
|
442
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: (
|
|
443
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: (
|
|
444
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: (
|
|
445
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: (
|
|
446
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: (
|
|
447
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: (
|
|
448
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: (
|
|
449
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: (
|
|
450
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: (
|
|
451
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: (
|
|
452
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: (
|
|
443
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(4277, 'Keep Editor')), category: Categories.View }, when: ( (ContextKeyExpr.has('config.workbench.editor.enablePreview'))) });
|
|
444
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(4278, 'Pin Editor')), category: Categories.View } });
|
|
445
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(4279, 'Unpin Editor')), category: Categories.View } });
|
|
446
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(4280, 'Close Editor')), category: Categories.View } });
|
|
447
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(4281, 'Close Pinned Editor')), category: Categories.View } });
|
|
448
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(4282, 'Close All Editors in Group')), category: Categories.View } });
|
|
449
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(4283, 'Close Saved Editors in Group')), category: Categories.View } });
|
|
450
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(4284, 'Close Other Editors in Group')), category: Categories.View } });
|
|
451
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(4285, 'Close Editors to the Right in Group')), category: Categories.View }, when: ( (ActiveEditorLastInGroupContext.toNegated())) });
|
|
452
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(4286, 'Close Editor Group')), category: Categories.View }, when: MultipleEditorGroupsContext });
|
|
453
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(4286, "Reopen Editor With...")), category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
|
|
453
454
|
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
454
455
|
group: '1_editor',
|
|
455
456
|
command: {
|
|
456
457
|
id: ReopenClosedEditorAction.ID,
|
|
457
|
-
title: (
|
|
458
|
+
title: ( localize(4287, "&&Reopen Closed Editor")),
|
|
458
459
|
precondition: ( (ContextKeyExpr.has('canReopenClosedEditor')))
|
|
459
460
|
},
|
|
460
461
|
order: 1
|
|
@@ -463,19 +464,19 @@ MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
|
463
464
|
group: 'z_clear',
|
|
464
465
|
command: {
|
|
465
466
|
id: ClearRecentFilesAction.ID,
|
|
466
|
-
title: (
|
|
467
|
+
title: ( localize(4288, "&&Clear Recently Opened..."))
|
|
467
468
|
},
|
|
468
469
|
order: 1
|
|
469
470
|
});
|
|
470
471
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
471
|
-
title: (
|
|
472
|
+
title: ( localize(4289, "Share")),
|
|
472
473
|
submenu: MenuId.MenubarShare,
|
|
473
474
|
group: '45_share',
|
|
474
475
|
order: 1,
|
|
475
476
|
});
|
|
476
477
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
477
478
|
group: '2_appearance',
|
|
478
|
-
title: (
|
|
479
|
+
title: ( localize(4290, "Editor &&Layout")),
|
|
479
480
|
submenu: MenuId.MenubarLayoutMenu,
|
|
480
481
|
order: 2
|
|
481
482
|
});
|
|
@@ -484,8 +485,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
484
485
|
command: {
|
|
485
486
|
id: SPLIT_EDITOR_UP,
|
|
486
487
|
title: {
|
|
487
|
-
...(
|
|
488
|
-
mnemonicTitle: (
|
|
488
|
+
...( localize2(4291, "Split Up")),
|
|
489
|
+
mnemonicTitle: ( localize(4292, "Split &&Up")),
|
|
489
490
|
}
|
|
490
491
|
},
|
|
491
492
|
order: 1
|
|
@@ -495,8 +496,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
495
496
|
command: {
|
|
496
497
|
id: SPLIT_EDITOR_DOWN,
|
|
497
498
|
title: {
|
|
498
|
-
...(
|
|
499
|
-
mnemonicTitle: (
|
|
499
|
+
...( localize2(4293, "Split Down")),
|
|
500
|
+
mnemonicTitle: ( localize(4294, "Split &&Down")),
|
|
500
501
|
}
|
|
501
502
|
},
|
|
502
503
|
order: 2
|
|
@@ -506,8 +507,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
506
507
|
command: {
|
|
507
508
|
id: SPLIT_EDITOR_LEFT,
|
|
508
509
|
title: {
|
|
509
|
-
...(
|
|
510
|
-
mnemonicTitle: (
|
|
510
|
+
...( localize2(4295, "Split Left")),
|
|
511
|
+
mnemonicTitle: ( localize(4296, "Split &&Left")),
|
|
511
512
|
}
|
|
512
513
|
},
|
|
513
514
|
order: 3
|
|
@@ -517,8 +518,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
517
518
|
command: {
|
|
518
519
|
id: SPLIT_EDITOR_RIGHT,
|
|
519
520
|
title: {
|
|
520
|
-
...(
|
|
521
|
-
mnemonicTitle: (
|
|
521
|
+
...( localize2(4297, "Split Right")),
|
|
522
|
+
mnemonicTitle: ( localize(4298, "Split &&Right")),
|
|
522
523
|
}
|
|
523
524
|
},
|
|
524
525
|
order: 4
|
|
@@ -528,8 +529,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
528
529
|
command: {
|
|
529
530
|
id: SPLIT_EDITOR_IN_GROUP,
|
|
530
531
|
title: {
|
|
531
|
-
...(
|
|
532
|
-
mnemonicTitle: (
|
|
532
|
+
...( localize2(4299, "Split in Group")),
|
|
533
|
+
mnemonicTitle: ( localize(4300, "Split in &&Group")),
|
|
533
534
|
}
|
|
534
535
|
},
|
|
535
536
|
when: ActiveEditorCanSplitInGroupContext,
|
|
@@ -540,8 +541,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
540
541
|
command: {
|
|
541
542
|
id: JOIN_EDITOR_IN_GROUP,
|
|
542
543
|
title: {
|
|
543
|
-
...(
|
|
544
|
-
mnemonicTitle: (
|
|
544
|
+
...( localize2(4301, "Join in Group")),
|
|
545
|
+
mnemonicTitle: ( localize(4302, "Join in &&Group")),
|
|
545
546
|
}
|
|
546
547
|
},
|
|
547
548
|
when: SideBySideEditorActiveContext,
|
|
@@ -552,8 +553,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
552
553
|
command: {
|
|
553
554
|
id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
554
555
|
title: {
|
|
555
|
-
...(
|
|
556
|
-
mnemonicTitle: (
|
|
556
|
+
...( localize2(4303, "Move Editor into New Window")),
|
|
557
|
+
mnemonicTitle: ( localize(4304, "&&Move Editor into New Window")),
|
|
557
558
|
}
|
|
558
559
|
},
|
|
559
560
|
order: 1
|
|
@@ -563,8 +564,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
563
564
|
command: {
|
|
564
565
|
id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
565
566
|
title: {
|
|
566
|
-
...(
|
|
567
|
-
mnemonicTitle: (
|
|
567
|
+
...( localize2(4305, "Copy Editor into New Window")),
|
|
568
|
+
mnemonicTitle: ( localize(4306, "&&Copy Editor into New Window")),
|
|
568
569
|
}
|
|
569
570
|
},
|
|
570
571
|
order: 2
|
|
@@ -574,8 +575,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
574
575
|
command: {
|
|
575
576
|
id: EditorLayoutSingleAction.ID,
|
|
576
577
|
title: {
|
|
577
|
-
...(
|
|
578
|
-
mnemonicTitle: (
|
|
578
|
+
...( localize2(4307, "Single")),
|
|
579
|
+
mnemonicTitle: ( localize(4308, "&&Single")),
|
|
579
580
|
}
|
|
580
581
|
},
|
|
581
582
|
order: 1
|
|
@@ -585,8 +586,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
585
586
|
command: {
|
|
586
587
|
id: EditorLayoutTwoColumnsAction.ID,
|
|
587
588
|
title: {
|
|
588
|
-
...(
|
|
589
|
-
mnemonicTitle: (
|
|
589
|
+
...( localize2(4309, "Two Columns")),
|
|
590
|
+
mnemonicTitle: ( localize(4310, "&&Two Columns")),
|
|
590
591
|
}
|
|
591
592
|
},
|
|
592
593
|
order: 3
|
|
@@ -596,8 +597,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
596
597
|
command: {
|
|
597
598
|
id: EditorLayoutThreeColumnsAction.ID,
|
|
598
599
|
title: {
|
|
599
|
-
...(
|
|
600
|
-
mnemonicTitle: (
|
|
600
|
+
...( localize2(4311, "Three Columns")),
|
|
601
|
+
mnemonicTitle: ( localize(4312, "T&&hree Columns")),
|
|
601
602
|
}
|
|
602
603
|
},
|
|
603
604
|
order: 4
|
|
@@ -607,8 +608,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
607
608
|
command: {
|
|
608
609
|
id: EditorLayoutTwoRowsAction.ID,
|
|
609
610
|
title: {
|
|
610
|
-
...(
|
|
611
|
-
mnemonicTitle: (
|
|
611
|
+
...( localize2(4313, "Two Rows")),
|
|
612
|
+
mnemonicTitle: ( localize(4314, "T&&wo Rows")),
|
|
612
613
|
}
|
|
613
614
|
},
|
|
614
615
|
order: 5
|
|
@@ -618,8 +619,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
618
619
|
command: {
|
|
619
620
|
id: EditorLayoutThreeRowsAction.ID,
|
|
620
621
|
title: {
|
|
621
|
-
...(
|
|
622
|
-
mnemonicTitle: (
|
|
622
|
+
...( localize2(4315, "Three Rows")),
|
|
623
|
+
mnemonicTitle: ( localize(4316, "Three &&Rows")),
|
|
623
624
|
}
|
|
624
625
|
},
|
|
625
626
|
order: 6
|
|
@@ -629,8 +630,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
629
630
|
command: {
|
|
630
631
|
id: EditorLayoutTwoByTwoGridAction.ID,
|
|
631
632
|
title: {
|
|
632
|
-
...(
|
|
633
|
-
mnemonicTitle: (
|
|
633
|
+
...( localize2(4317, "Grid (2x2)")),
|
|
634
|
+
mnemonicTitle: ( localize(4318, "&&Grid (2x2)")),
|
|
634
635
|
}
|
|
635
636
|
},
|
|
636
637
|
order: 7
|
|
@@ -640,8 +641,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
640
641
|
command: {
|
|
641
642
|
id: EditorLayoutTwoRowsRightAction.ID,
|
|
642
643
|
title: {
|
|
643
|
-
...(
|
|
644
|
-
mnemonicTitle: (
|
|
644
|
+
...( localize2(4319, "Two Rows Right")),
|
|
645
|
+
mnemonicTitle: ( localize(4320, "Two R&&ows Right")),
|
|
645
646
|
}
|
|
646
647
|
},
|
|
647
648
|
order: 8
|
|
@@ -651,8 +652,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
651
652
|
command: {
|
|
652
653
|
id: EditorLayoutTwoColumnsBottomAction.ID,
|
|
653
654
|
title: {
|
|
654
|
-
...(
|
|
655
|
-
mnemonicTitle: (
|
|
655
|
+
...( localize2(4321, "Two Columns Bottom")),
|
|
656
|
+
mnemonicTitle: ( localize(4322, "Two &&Columns Bottom")),
|
|
656
657
|
}
|
|
657
658
|
},
|
|
658
659
|
order: 9
|
|
@@ -661,7 +662,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
661
662
|
group: '1_history_nav',
|
|
662
663
|
command: {
|
|
663
664
|
id: 'workbench.action.navigateToLastEditLocation',
|
|
664
|
-
title: (
|
|
665
|
+
title: ( localize(4323, "&&Last Edit Location")),
|
|
665
666
|
precondition: ( (ContextKeyExpr.has('canNavigateToLastEditLocation')))
|
|
666
667
|
},
|
|
667
668
|
order: 3
|
|
@@ -670,7 +671,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
670
671
|
group: '1_sideBySide',
|
|
671
672
|
command: {
|
|
672
673
|
id: FOCUS_FIRST_SIDE_EDITOR,
|
|
673
|
-
title: (
|
|
674
|
+
title: ( localize(4324, "&&First Side in Editor"))
|
|
674
675
|
},
|
|
675
676
|
when: ( (ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext))),
|
|
676
677
|
order: 1
|
|
@@ -679,7 +680,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
679
680
|
group: '1_sideBySide',
|
|
680
681
|
command: {
|
|
681
682
|
id: FOCUS_SECOND_SIDE_EDITOR,
|
|
682
|
-
title: (
|
|
683
|
+
title: ( localize(4325, "&&Second Side in Editor"))
|
|
683
684
|
},
|
|
684
685
|
when: ( (ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext))),
|
|
685
686
|
order: 2
|
|
@@ -688,7 +689,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
688
689
|
group: '2_any',
|
|
689
690
|
command: {
|
|
690
691
|
id: 'workbench.action.nextEditor',
|
|
691
|
-
title: (
|
|
692
|
+
title: ( localize(4326, "&&Next Editor"))
|
|
692
693
|
},
|
|
693
694
|
order: 1
|
|
694
695
|
});
|
|
@@ -696,7 +697,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
696
697
|
group: '2_any',
|
|
697
698
|
command: {
|
|
698
699
|
id: 'workbench.action.previousEditor',
|
|
699
|
-
title: (
|
|
700
|
+
title: ( localize(4327, "&&Previous Editor"))
|
|
700
701
|
},
|
|
701
702
|
order: 2
|
|
702
703
|
});
|
|
@@ -704,7 +705,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
704
705
|
group: '3_any_used',
|
|
705
706
|
command: {
|
|
706
707
|
id: 'workbench.action.openNextRecentlyUsedEditor',
|
|
707
|
-
title: (
|
|
708
|
+
title: ( localize(4328, "&&Next Used Editor"))
|
|
708
709
|
},
|
|
709
710
|
order: 1
|
|
710
711
|
});
|
|
@@ -712,7 +713,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
712
713
|
group: '3_any_used',
|
|
713
714
|
command: {
|
|
714
715
|
id: 'workbench.action.openPreviousRecentlyUsedEditor',
|
|
715
|
-
title: (
|
|
716
|
+
title: ( localize(4329, "&&Previous Used Editor"))
|
|
716
717
|
},
|
|
717
718
|
order: 2
|
|
718
719
|
});
|
|
@@ -720,7 +721,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
720
721
|
group: '4_group',
|
|
721
722
|
command: {
|
|
722
723
|
id: 'workbench.action.nextEditorInGroup',
|
|
723
|
-
title: (
|
|
724
|
+
title: ( localize(4330, "&&Next Editor in Group"))
|
|
724
725
|
},
|
|
725
726
|
order: 1
|
|
726
727
|
});
|
|
@@ -728,7 +729,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
728
729
|
group: '4_group',
|
|
729
730
|
command: {
|
|
730
731
|
id: 'workbench.action.previousEditorInGroup',
|
|
731
|
-
title: (
|
|
732
|
+
title: ( localize(4331, "&&Previous Editor in Group"))
|
|
732
733
|
},
|
|
733
734
|
order: 2
|
|
734
735
|
});
|
|
@@ -736,7 +737,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
736
737
|
group: '5_group_used',
|
|
737
738
|
command: {
|
|
738
739
|
id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
739
|
-
title: (
|
|
740
|
+
title: ( localize(4332, "&&Next Used Editor in Group"))
|
|
740
741
|
},
|
|
741
742
|
order: 1
|
|
742
743
|
});
|
|
@@ -744,13 +745,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
744
745
|
group: '5_group_used',
|
|
745
746
|
command: {
|
|
746
747
|
id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
747
|
-
title: (
|
|
748
|
+
title: ( localize(4333, "&&Previous Used Editor in Group"))
|
|
748
749
|
},
|
|
749
750
|
order: 2
|
|
750
751
|
});
|
|
751
752
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
752
753
|
group: '2_editor_nav',
|
|
753
|
-
title: (
|
|
754
|
+
title: ( localize(4334, "Switch &&Editor")),
|
|
754
755
|
submenu: MenuId.MenubarSwitchEditorMenu,
|
|
755
756
|
order: 1
|
|
756
757
|
});
|
|
@@ -758,7 +759,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
758
759
|
group: '1_focus_index',
|
|
759
760
|
command: {
|
|
760
761
|
id: 'workbench.action.focusFirstEditorGroup',
|
|
761
|
-
title: (
|
|
762
|
+
title: ( localize(4335, "Group &&1"))
|
|
762
763
|
},
|
|
763
764
|
order: 1
|
|
764
765
|
});
|
|
@@ -766,7 +767,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
766
767
|
group: '1_focus_index',
|
|
767
768
|
command: {
|
|
768
769
|
id: 'workbench.action.focusSecondEditorGroup',
|
|
769
|
-
title: (
|
|
770
|
+
title: ( localize(4336, "Group &&2"))
|
|
770
771
|
},
|
|
771
772
|
order: 2
|
|
772
773
|
});
|
|
@@ -774,7 +775,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
774
775
|
group: '1_focus_index',
|
|
775
776
|
command: {
|
|
776
777
|
id: 'workbench.action.focusThirdEditorGroup',
|
|
777
|
-
title: (
|
|
778
|
+
title: ( localize(4337, "Group &&3")),
|
|
778
779
|
precondition: MultipleEditorGroupsContext
|
|
779
780
|
},
|
|
780
781
|
order: 3
|
|
@@ -783,7 +784,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
783
784
|
group: '1_focus_index',
|
|
784
785
|
command: {
|
|
785
786
|
id: 'workbench.action.focusFourthEditorGroup',
|
|
786
|
-
title: (
|
|
787
|
+
title: ( localize(4338, "Group &&4")),
|
|
787
788
|
precondition: MultipleEditorGroupsContext
|
|
788
789
|
},
|
|
789
790
|
order: 4
|
|
@@ -792,7 +793,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
792
793
|
group: '1_focus_index',
|
|
793
794
|
command: {
|
|
794
795
|
id: 'workbench.action.focusFifthEditorGroup',
|
|
795
|
-
title: (
|
|
796
|
+
title: ( localize(4339, "Group &&5")),
|
|
796
797
|
precondition: MultipleEditorGroupsContext
|
|
797
798
|
},
|
|
798
799
|
order: 5
|
|
@@ -801,7 +802,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
801
802
|
group: '2_next_prev',
|
|
802
803
|
command: {
|
|
803
804
|
id: 'workbench.action.focusNextGroup',
|
|
804
|
-
title: (
|
|
805
|
+
title: ( localize(4340, "&&Next Group")),
|
|
805
806
|
precondition: MultipleEditorGroupsContext
|
|
806
807
|
},
|
|
807
808
|
order: 1
|
|
@@ -810,7 +811,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
810
811
|
group: '2_next_prev',
|
|
811
812
|
command: {
|
|
812
813
|
id: 'workbench.action.focusPreviousGroup',
|
|
813
|
-
title: (
|
|
814
|
+
title: ( localize(4341, "&&Previous Group")),
|
|
814
815
|
precondition: MultipleEditorGroupsContext
|
|
815
816
|
},
|
|
816
817
|
order: 2
|
|
@@ -819,7 +820,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
819
820
|
group: '3_directional',
|
|
820
821
|
command: {
|
|
821
822
|
id: 'workbench.action.focusLeftGroup',
|
|
822
|
-
title: (
|
|
823
|
+
title: ( localize(4342, "Group &&Left")),
|
|
823
824
|
precondition: MultipleEditorGroupsContext
|
|
824
825
|
},
|
|
825
826
|
order: 1
|
|
@@ -828,7 +829,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
828
829
|
group: '3_directional',
|
|
829
830
|
command: {
|
|
830
831
|
id: 'workbench.action.focusRightGroup',
|
|
831
|
-
title: (
|
|
832
|
+
title: ( localize(4343, "Group &&Right")),
|
|
832
833
|
precondition: MultipleEditorGroupsContext
|
|
833
834
|
},
|
|
834
835
|
order: 2
|
|
@@ -837,7 +838,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
837
838
|
group: '3_directional',
|
|
838
839
|
command: {
|
|
839
840
|
id: 'workbench.action.focusAboveGroup',
|
|
840
|
-
title: (
|
|
841
|
+
title: ( localize(4344, "Group &&Above")),
|
|
841
842
|
precondition: MultipleEditorGroupsContext
|
|
842
843
|
},
|
|
843
844
|
order: 3
|
|
@@ -846,14 +847,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
846
847
|
group: '3_directional',
|
|
847
848
|
command: {
|
|
848
849
|
id: 'workbench.action.focusBelowGroup',
|
|
849
|
-
title: (
|
|
850
|
+
title: ( localize(4345, "Group &&Below")),
|
|
850
851
|
precondition: MultipleEditorGroupsContext
|
|
851
852
|
},
|
|
852
853
|
order: 4
|
|
853
854
|
});
|
|
854
855
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
855
856
|
group: '2_editor_nav',
|
|
856
|
-
title: (
|
|
857
|
+
title: ( localize(4346, "Switch &&Group")),
|
|
857
858
|
submenu: MenuId.MenubarSwitchGroupMenu,
|
|
858
859
|
order: 2
|
|
859
860
|
});
|