@codingame/monaco-vscode-view-common-service-override 21.6.0 → 22.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 +41 -41
- package/service-override/vs/workbench/contrib/webview/browser/pre/service-worker.js +14 -9
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +62 -62
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +167 -170
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +8 -8
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +2 -2
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +14 -14
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +7 -7
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +10 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +29 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +6 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -9
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.d.ts +5 -7
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +16 -15
- package/vscode/src/vs/workbench/contrib/scrollLocking/browser/scrollLocking.js +7 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +5 -5
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +10 -6
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +3 -3
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +9 -9
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +9 -9
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +9 -9
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -6
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
3
3
|
import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
4
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/editor';
|
|
5
5
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
6
6
|
import { IsAuxiliaryWindowContext, ActiveEditorGroupLockedContext, EditorPartMultipleEditorGroupsContext, MultipleEditorGroupsContext, InEditorZenModeContext, EditorGroupEditorsCountContext, EditorTabsVisibleContext, ActiveEditorLastInGroupContext, MultipleEditorsSelectedInGroupContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, SplitEditorsVertically, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, EditorPartMaximizedEditorGroupContext, ActiveEditorDirtyContext, TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
7
7
|
import { SideBySideEditorInput, SideBySideEditorInputSerializer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/sideBySideEditorInput';
|
|
@@ -24,8 +24,6 @@ import { inQuickPickContext, getQuickNavigateHandler } from '@codingame/monaco-v
|
|
|
24
24
|
import { KeybindingsRegistry, KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
25
25
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
26
26
|
import { isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
27
|
-
import { registerEditorContribution, EditorContributionInstantiation } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions';
|
|
28
|
-
import { FloatingEditorClickMenu } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/codeeditor';
|
|
29
27
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
30
28
|
import { Extensions } from '@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickAccess';
|
|
31
29
|
import { ActiveGroupEditorsByMostRecentlyUsedQuickAccess, AllEditorsByAppearanceQuickAccess, AllEditorsByMostRecentlyUsedQuickAccess } from '@codingame/monaco-vscode-dbfe5f85-b426-55ed-a79b-5f811b395762-common/vscode/vs/workbench/browser/parts/editor/editorQuickAccess';
|
|
@@ -40,17 +38,17 @@ import { getFontSnippets } from '@codingame/monaco-vscode-api/vscode/vs/base/bro
|
|
|
40
38
|
import { registerEditorFontConfigurations } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorConfigurationSchema';
|
|
41
39
|
import '@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
|
|
42
40
|
|
|
43
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(
|
|
41
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(3035, "Text Editor"))), [
|
|
44
42
|
( new SyncDescriptor(UntitledTextEditorInput)),
|
|
45
43
|
( new SyncDescriptor(TextResourceEditorInput))
|
|
46
44
|
]);
|
|
47
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(
|
|
45
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(3036, "Text Diff Editor"))), [
|
|
48
46
|
( new SyncDescriptor(DiffEditorInput))
|
|
49
47
|
]);
|
|
50
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(
|
|
48
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(3037, "Binary Diff Editor"))), [
|
|
51
49
|
( new SyncDescriptor(DiffEditorInput))
|
|
52
50
|
]);
|
|
53
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(
|
|
51
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(3038, "Side by Side Editor"))), [
|
|
54
52
|
( new SyncDescriptor(SideBySideEditorInput))
|
|
55
53
|
]);
|
|
56
54
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(UntitledTextEditorInput.ID, UntitledTextEditorInputSerializer);
|
|
@@ -59,7 +57,6 @@ import '@codingame/monaco-vscode-ac93482b-2178-52df-a200-ba0d1a4963fb-common/vsc
|
|
|
59
57
|
registerWorkbenchContribution2(EditorStatusContribution.ID, EditorStatusContribution, WorkbenchPhase.BlockRestore);
|
|
60
58
|
registerWorkbenchContribution2(UntitledTextEditorWorkingCopyEditorHandler.ID, UntitledTextEditorWorkingCopyEditorHandler, WorkbenchPhase.BlockRestore);
|
|
61
59
|
registerWorkbenchContribution2(DynamicEditorConfigurations.ID, DynamicEditorConfigurations, WorkbenchPhase.BlockRestore);
|
|
62
|
-
registerEditorContribution(FloatingEditorClickMenu.ID, FloatingEditorClickMenu, EditorContributionInstantiation.AfterFirstRender);
|
|
63
60
|
const quickAccessRegistry = ( Registry.as(Extensions.Quickaccess));
|
|
64
61
|
const editorPickerContextKey = 'inEditorsPicker';
|
|
65
62
|
const editorPickerContext = ( ContextKeyExpr.and(inQuickPickContext, ( ContextKeyExpr.has(editorPickerContextKey))));
|
|
@@ -67,22 +64,22 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
67
64
|
ctor: ActiveGroupEditorsByMostRecentlyUsedQuickAccess,
|
|
68
65
|
prefix: ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
69
66
|
contextKey: editorPickerContextKey,
|
|
70
|
-
placeholder: ( localize(
|
|
71
|
-
helpEntries: [{ description: ( localize(
|
|
67
|
+
placeholder: ( localize(3039, "Type the name of an editor to open it.")),
|
|
68
|
+
helpEntries: [{ description: ( localize(3040, "Show Editors in Active Group by Most Recently Used")), commandId: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID }]
|
|
72
69
|
});
|
|
73
70
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
74
71
|
ctor: AllEditorsByAppearanceQuickAccess,
|
|
75
72
|
prefix: AllEditorsByAppearanceQuickAccess.PREFIX,
|
|
76
73
|
contextKey: editorPickerContextKey,
|
|
77
|
-
placeholder: ( localize(
|
|
78
|
-
helpEntries: [{ description: ( localize(
|
|
74
|
+
placeholder: ( localize(3039, "Type the name of an editor to open it.")),
|
|
75
|
+
helpEntries: [{ description: ( localize(3041, "Show All Opened Editors By Appearance")), commandId: ShowAllEditorsByAppearanceAction.ID }]
|
|
79
76
|
});
|
|
80
77
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
81
78
|
ctor: AllEditorsByMostRecentlyUsedQuickAccess,
|
|
82
79
|
prefix: AllEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
83
80
|
contextKey: editorPickerContextKey,
|
|
84
|
-
placeholder: ( localize(
|
|
85
|
-
helpEntries: [{ description: ( localize(
|
|
81
|
+
placeholder: ( localize(3039, "Type the name of an editor to open it.")),
|
|
82
|
+
helpEntries: [{ description: ( localize(3042, "Show All Opened Editors By Most Recently Used")), commandId: ShowAllEditorsByMostRecentlyUsedAction.ID }]
|
|
86
83
|
});
|
|
87
84
|
registerAction2(ChangeLanguageAction);
|
|
88
85
|
registerAction2(ChangeEOLAction);
|
|
@@ -227,69 +224,69 @@ if (isMacintosh) {
|
|
|
227
224
|
order: 1
|
|
228
225
|
});
|
|
229
226
|
}
|
|
230
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
231
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
232
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(
|
|
233
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
234
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
235
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
236
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
237
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(
|
|
238
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
239
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(
|
|
240
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
241
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
242
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
243
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
244
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
245
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
246
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(
|
|
247
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(
|
|
248
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(
|
|
249
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(
|
|
250
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(
|
|
251
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(
|
|
252
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(
|
|
253
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(
|
|
254
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(
|
|
255
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(
|
|
256
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(
|
|
257
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(
|
|
258
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(
|
|
259
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(
|
|
260
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
261
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(
|
|
262
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(
|
|
263
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
264
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(
|
|
265
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(
|
|
266
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(
|
|
267
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(
|
|
268
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR, title: ( localize(
|
|
269
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR, title: ( localize(
|
|
270
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorSplitMoveSubmenu, title: ( localize(
|
|
271
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
272
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
273
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(
|
|
274
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
275
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
276
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
277
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
278
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_ABOVE_GROUP, title: ( localize(
|
|
279
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_BELOW_GROUP, title: ( localize(
|
|
280
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_LEFT_GROUP, title: ( localize(
|
|
281
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_RIGHT_GROUP, title: ( localize(
|
|
282
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(
|
|
283
|
-
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localize(
|
|
284
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(
|
|
285
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(
|
|
286
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
287
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(
|
|
288
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(
|
|
289
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(
|
|
290
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(
|
|
291
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
292
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(
|
|
227
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(3043, "Lock Group")), icon: Codicon.unlock }, group: 'navigation', order: 10, when: ( ContextKeyExpr.and(IsAuxiliaryWindowContext, ( ActiveEditorGroupLockedContext.toNegated()))) });
|
|
228
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(3044, "Unlock Group")), icon: Codicon.lock, toggled: ContextKeyExpr.true() }, group: 'navigation', order: 10, when: ActiveEditorGroupLockedContext });
|
|
229
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(3045, "Close Group")), icon: Codicon.close }, group: 'navigation', order: 20, when: ( ContextKeyExpr.or(IsAuxiliaryWindowContext, EditorPartMultipleEditorGroupsContext)) });
|
|
230
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(3046, "Split Up")) }, group: '2_split', order: 10 });
|
|
231
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(3047, "Split Down")) }, group: '2_split', order: 20 });
|
|
232
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(3048, "Split Left")) }, group: '2_split', order: 30 });
|
|
233
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(3049, "Split Right")) }, group: '2_split', order: 40 });
|
|
234
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(3050, "New Window")) }, group: '3_window', order: 10 });
|
|
235
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(3051, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '4_lock', order: 10, when: ( IsAuxiliaryWindowContext.toNegated()) });
|
|
236
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(3052, "Close")) }, group: '5_close', order: 10, when: MultipleEditorGroupsContext });
|
|
237
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(3046, "Split Up")) }, group: '2_split', order: 10 });
|
|
238
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(3047, "Split Down")) }, group: '2_split', order: 20 });
|
|
239
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(3048, "Split Left")) }, group: '2_split', order: 30 });
|
|
240
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(3049, "Split Right")) }, group: '2_split', order: 40 });
|
|
241
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(3053, "Move into New Window")) }, group: '3_window', order: 10 });
|
|
242
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(3054, "Copy into New Window")) }, group: '3_window', order: 20 });
|
|
243
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(3055, "Tab Bar")), group: '4_config', order: 10, when: ( InEditorZenModeContext.negate()) });
|
|
244
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(3056, "Multiple Tabs")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'multiple')) }, group: '1_config', order: 10 });
|
|
245
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(3057, "Single Tab")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'single')) }, group: '1_config', order: 20 });
|
|
246
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(3058, "Hidden")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')) }, group: '1_config', order: 30 });
|
|
247
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(3055, "Tab Bar")), group: '4_config', order: 10, when: InEditorZenModeContext });
|
|
248
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(3056, "Multiple Tabs")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'multiple')) }, group: '1_config', order: 10 });
|
|
249
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(3057, "Single Tab")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'single')) }, group: '1_config', order: 20 });
|
|
250
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(3058, "Hidden")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'none')) }, group: '1_config', order: 30 });
|
|
251
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(3059, "Editor Actions Position")), group: '4_config', order: 20 });
|
|
252
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(3055, "Tab Bar")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default')) }, group: '1_config', order: 10, when: ( ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')).negate()) });
|
|
253
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(3060, "Title Bar")), toggled: ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'titleBar')), ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')), ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default')))))) }, group: '1_config', order: 20 });
|
|
254
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(3061, "Hidden")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'hidden')) }, group: '1_config', order: 30 });
|
|
255
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(3062, "Configure Tabs")) }, group: '9_configure', order: 10 });
|
|
256
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(3052, "Close")) }, group: '1_close', order: 10 });
|
|
257
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(3063, "Close Others")), precondition: ( EditorGroupEditorsCountContext.notEqualsTo('1')) }, group: '1_close', order: 20 });
|
|
258
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(3064, "Close to the Right")), precondition: ( ContextKeyExpr.and(( ActiveEditorLastInGroupContext.toNegated()), ( MultipleEditorsSelectedInGroupContext.negate()))) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
|
|
259
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(3065, "Close Saved")) }, group: '1_close', order: 40 });
|
|
260
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(3066, "Close All")) }, group: '1_close', order: 50 });
|
|
261
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(3067, "Reopen Editor With...")) }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
|
|
262
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(3068, "Keep Open")), precondition: ( ActiveEditorPinnedContext.toNegated()) }, group: '3_preview', order: 10, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
|
|
263
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(3069, "Pin")) }, group: '3_preview', order: 20, when: ( ActiveEditorStickyContext.toNegated()) });
|
|
264
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(3070, "Unpin")) }, group: '3_preview', order: 20, when: ActiveEditorStickyContext });
|
|
265
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR, title: ( localize(3049, "Split Right")) }, group: '5_split', order: 10, when: ( SplitEditorsVertically.negate()) });
|
|
266
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR, title: ( localize(3047, "Split Down")) }, group: '5_split', order: 10, when: SplitEditorsVertically });
|
|
267
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorSplitMoveSubmenu, title: ( localize(3071, "Split & Move")), group: '5_split', order: 15 });
|
|
268
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(3072, "Move into New Window")) }, group: '7_new_window', order: 10 });
|
|
269
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(3073, "Copy into New Window")) }, group: '7_new_window', order: 20 });
|
|
270
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(3074, "Share")), group: '11_share', order: -1, when: ( MultipleEditorsSelectedInGroupContext.negate()) });
|
|
271
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_UP, title: ( localize(3046, "Split Up")) }, group: '1_split', order: 10 });
|
|
272
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(3047, "Split Down")) }, group: '1_split', order: 20 });
|
|
273
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(3048, "Split Left")) }, group: '1_split', order: 30 });
|
|
274
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(3049, "Split Right")) }, group: '1_split', order: 40 });
|
|
275
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_ABOVE_GROUP, title: ( localize(3075, "Move Above")) }, group: '2_move', order: 10 });
|
|
276
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_BELOW_GROUP, title: ( localize(3076, "Move Below")) }, group: '2_move', order: 20 });
|
|
277
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_LEFT_GROUP, title: ( localize(3077, "Move Left")) }, group: '2_move', order: 30 });
|
|
278
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: MOVE_EDITOR_INTO_RIGHT_GROUP, title: ( localize(3078, "Move Right")) }, group: '2_move', order: 40 });
|
|
279
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(3079, "Split in Group")), precondition: ( MultipleEditorsSelectedInGroupContext.negate()) }, group: '3_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
|
|
280
|
+
MenuRegistry.appendMenuItem(MenuId.EditorSplitMoveSubmenu, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localize(3080, "Join in Group")), precondition: ( MultipleEditorsSelectedInGroupContext.negate()) }, group: '3_split_in_group', order: 10, when: SideBySideEditorActiveContext });
|
|
281
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(3081, "Inline View")), toggled: ( ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false)) }, group: '1_diff', order: 10, when: ( ContextKeyExpr.has('isInDiffEditor')) });
|
|
282
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(3082, "Show Opened Editors")) }, group: '3_open', order: 10 });
|
|
283
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(3066, "Close All")) }, group: '5_close', order: 10 });
|
|
284
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(3065, "Close Saved")) }, group: '5_close', order: 20 });
|
|
285
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(3083, "Enable Preview Editors")), toggled: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) }, group: '7_settings', order: 10 });
|
|
286
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(3084, "Maximize Group")) }, group: '8_group_operations', order: 5, when: ( ContextKeyExpr.and(( EditorPartMaximizedEditorGroupContext.negate()), EditorPartMultipleEditorGroupsContext)) });
|
|
287
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(3085, "Unmaximize Group")) }, group: '8_group_operations', order: 5, when: EditorPartMaximizedEditorGroupContext });
|
|
288
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(3086, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( IsAuxiliaryWindowContext.toNegated()) });
|
|
289
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(3087, "Configure Editors")) }, group: '9_configure', order: 10 });
|
|
293
290
|
function appendEditorToolItem(primary, when, order, alternative, precondition, enableInCompactMode) {
|
|
294
291
|
const item = {
|
|
295
292
|
command: {
|
|
@@ -319,96 +316,96 @@ const SPLIT_ORDER = 100000;
|
|
|
319
316
|
const CLOSE_ORDER = 1000000;
|
|
320
317
|
appendEditorToolItem({
|
|
321
318
|
id: SPLIT_EDITOR,
|
|
322
|
-
title: ( localize(
|
|
319
|
+
title: ( localize(3088, "Split Editor Right")),
|
|
323
320
|
icon: Codicon.splitHorizontal
|
|
324
321
|
}, ( SplitEditorsVertically.negate()), SPLIT_ORDER, {
|
|
325
322
|
id: SPLIT_EDITOR_DOWN,
|
|
326
|
-
title: ( localize(
|
|
323
|
+
title: ( localize(3089, "Split Editor Down")),
|
|
327
324
|
icon: Codicon.splitVertical
|
|
328
325
|
});
|
|
329
326
|
appendEditorToolItem({
|
|
330
327
|
id: SPLIT_EDITOR,
|
|
331
|
-
title: ( localize(
|
|
328
|
+
title: ( localize(3089, "Split Editor Down")),
|
|
332
329
|
icon: Codicon.splitVertical
|
|
333
330
|
}, SplitEditorsVertically, SPLIT_ORDER, {
|
|
334
331
|
id: SPLIT_EDITOR_RIGHT,
|
|
335
|
-
title: ( localize(
|
|
332
|
+
title: ( localize(3088, "Split Editor Right")),
|
|
336
333
|
icon: Codicon.splitHorizontal
|
|
337
334
|
});
|
|
338
335
|
appendEditorToolItem({
|
|
339
336
|
id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
|
|
340
|
-
title: ( localize(
|
|
337
|
+
title: ( localize(3090, "Toggle Layout")),
|
|
341
338
|
icon: Codicon.editorLayout
|
|
342
339
|
}, SideBySideEditorActiveContext, SPLIT_ORDER - 1);
|
|
343
340
|
appendEditorToolItem({
|
|
344
341
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
345
|
-
title: ( localize(
|
|
342
|
+
title: ( localize(3052, "Close")),
|
|
346
343
|
icon: Codicon.close
|
|
347
344
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
348
345
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
349
|
-
title: ( localize(
|
|
346
|
+
title: ( localize(3066, "Close All")),
|
|
350
347
|
icon: Codicon.closeAll
|
|
351
348
|
});
|
|
352
349
|
appendEditorToolItem({
|
|
353
350
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
354
|
-
title: ( localize(
|
|
351
|
+
title: ( localize(3052, "Close")),
|
|
355
352
|
icon: Codicon.closeDirty
|
|
356
353
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
357
354
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
358
|
-
title: ( localize(
|
|
355
|
+
title: ( localize(3066, "Close All")),
|
|
359
356
|
icon: Codicon.closeAll
|
|
360
357
|
});
|
|
361
358
|
appendEditorToolItem({
|
|
362
359
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
363
|
-
title: ( localize(
|
|
360
|
+
title: ( localize(3070, "Unpin")),
|
|
364
361
|
icon: Codicon.pinned
|
|
365
362
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
366
363
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
367
|
-
title: ( localize(
|
|
364
|
+
title: ( localize(3052, "Close")),
|
|
368
365
|
icon: Codicon.close
|
|
369
366
|
});
|
|
370
367
|
appendEditorToolItem({
|
|
371
368
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
372
|
-
title: ( localize(
|
|
369
|
+
title: ( localize(3070, "Unpin")),
|
|
373
370
|
icon: Codicon.pinnedDirty
|
|
374
371
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
375
372
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
376
|
-
title: ( localize(
|
|
373
|
+
title: ( localize(3052, "Close")),
|
|
377
374
|
icon: Codicon.close
|
|
378
375
|
});
|
|
379
376
|
appendEditorToolItem({
|
|
380
377
|
id: LOCK_GROUP_COMMAND_ID,
|
|
381
|
-
title: ( localize(
|
|
378
|
+
title: ( localize(3091, "Lock Group")),
|
|
382
379
|
icon: Codicon.unlock
|
|
383
380
|
}, ( ContextKeyExpr.and(IsAuxiliaryWindowContext, ( ActiveEditorGroupLockedContext.toNegated()))), CLOSE_ORDER - 1);
|
|
384
381
|
appendEditorToolItem({
|
|
385
382
|
id: UNLOCK_GROUP_COMMAND_ID,
|
|
386
|
-
title: ( localize(
|
|
383
|
+
title: ( localize(3092, "Unlock Group")),
|
|
387
384
|
icon: Codicon.lock,
|
|
388
385
|
toggled: ContextKeyExpr.true()
|
|
389
386
|
}, ActiveEditorGroupLockedContext, CLOSE_ORDER - 1);
|
|
390
|
-
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(
|
|
387
|
+
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(3093, 'Icon for the previous change action in the diff editor.')));
|
|
391
388
|
appendEditorToolItem({
|
|
392
389
|
id: GOTO_PREVIOUS_CHANGE,
|
|
393
|
-
title: ( localize(
|
|
390
|
+
title: ( localize(3094, "Previous Change")),
|
|
394
391
|
icon: previousChangeIcon
|
|
395
392
|
}, TextCompareEditorActiveContext, 10, undefined, EditorContextKeys.hasChanges, true);
|
|
396
|
-
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(
|
|
393
|
+
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(3095, 'Icon for the next change action in the diff editor.')));
|
|
397
394
|
appendEditorToolItem({
|
|
398
395
|
id: GOTO_NEXT_CHANGE,
|
|
399
|
-
title: ( localize(
|
|
396
|
+
title: ( localize(3096, "Next Change")),
|
|
400
397
|
icon: nextChangeIcon
|
|
401
398
|
}, TextCompareEditorActiveContext, 11, undefined, EditorContextKeys.hasChanges, true);
|
|
402
399
|
appendEditorToolItem({
|
|
403
400
|
id: DIFF_SWAP_SIDES,
|
|
404
|
-
title: ( localize(
|
|
401
|
+
title: ( localize(3097, "Swap Left and Right Side")),
|
|
405
402
|
icon: Codicon.arrowSwap
|
|
406
403
|
}, ( ContextKeyExpr.and(TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext)), 15, undefined, undefined);
|
|
407
|
-
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(
|
|
404
|
+
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(3098, 'Icon for the toggle whitespace action in the diff editor.')));
|
|
408
405
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
409
406
|
command: {
|
|
410
407
|
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
411
|
-
title: ( localize(
|
|
408
|
+
title: ( localize(3099, "Show Leading/Trailing Whitespace Differences")),
|
|
412
409
|
icon: toggleWhitespace,
|
|
413
410
|
precondition: TextCompareEditorActiveContext,
|
|
414
411
|
toggled: ( ContextKeyExpr.equals('config.diffEditor.ignoreTrimWhitespace', false)),
|
|
@@ -417,22 +414,22 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
417
414
|
when: TextCompareEditorActiveContext,
|
|
418
415
|
order: 20,
|
|
419
416
|
});
|
|
420
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(
|
|
421
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
422
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
423
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(
|
|
424
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(
|
|
425
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
426
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(
|
|
427
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
428
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(
|
|
429
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(
|
|
430
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(
|
|
417
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(3100, 'Keep Editor')), category: Categories.View }, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
|
|
418
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(3101, 'Pin Editor')), category: Categories.View } });
|
|
419
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(3102, 'Unpin Editor')), category: Categories.View } });
|
|
420
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(3103, 'Close Editor')), category: Categories.View } });
|
|
421
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(3104, 'Close Pinned Editor')), category: Categories.View } });
|
|
422
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(3105, 'Close All Editors in Group')), category: Categories.View } });
|
|
423
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(3106, 'Close Saved Editors in Group')), category: Categories.View } });
|
|
424
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(3107, 'Close Other Editors in Group')), category: Categories.View } });
|
|
425
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(3108, 'Close Editors to the Right in Group')), category: Categories.View }, when: ( ActiveEditorLastInGroupContext.toNegated()) });
|
|
426
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(3109, 'Close Editor Group')), category: Categories.View }, when: MultipleEditorGroupsContext });
|
|
427
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(3067, "Reopen Editor With...")), category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
|
|
431
428
|
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
432
429
|
group: '1_editor',
|
|
433
430
|
command: {
|
|
434
431
|
id: ReopenClosedEditorAction.ID,
|
|
435
|
-
title: ( localize(
|
|
432
|
+
title: ( localize(3110, "&&Reopen Closed Editor")),
|
|
436
433
|
precondition: ( ContextKeyExpr.has('canReopenClosedEditor'))
|
|
437
434
|
},
|
|
438
435
|
order: 1
|
|
@@ -441,19 +438,19 @@ MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
|
441
438
|
group: 'z_clear',
|
|
442
439
|
command: {
|
|
443
440
|
id: ClearRecentFilesAction.ID,
|
|
444
|
-
title: ( localize(
|
|
441
|
+
title: ( localize(3111, "&&Clear Recently Opened..."))
|
|
445
442
|
},
|
|
446
443
|
order: 1
|
|
447
444
|
});
|
|
448
445
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
449
|
-
title: ( localize(
|
|
446
|
+
title: ( localize(3112, "Share")),
|
|
450
447
|
submenu: MenuId.MenubarShare,
|
|
451
448
|
group: '45_share',
|
|
452
449
|
order: 1,
|
|
453
450
|
});
|
|
454
451
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
455
452
|
group: '2_appearance',
|
|
456
|
-
title: ( localize(
|
|
453
|
+
title: ( localize(3113, "Editor &&Layout")),
|
|
457
454
|
submenu: MenuId.MenubarLayoutMenu,
|
|
458
455
|
order: 2
|
|
459
456
|
});
|
|
@@ -462,8 +459,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
462
459
|
command: {
|
|
463
460
|
id: SPLIT_EDITOR_UP,
|
|
464
461
|
title: {
|
|
465
|
-
...( localize2(
|
|
466
|
-
mnemonicTitle: ( localize(
|
|
462
|
+
...( localize2(3114, "Split Up")),
|
|
463
|
+
mnemonicTitle: ( localize(3115, "Split &&Up")),
|
|
467
464
|
}
|
|
468
465
|
},
|
|
469
466
|
order: 1
|
|
@@ -473,8 +470,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
473
470
|
command: {
|
|
474
471
|
id: SPLIT_EDITOR_DOWN,
|
|
475
472
|
title: {
|
|
476
|
-
...( localize2(
|
|
477
|
-
mnemonicTitle: ( localize(
|
|
473
|
+
...( localize2(3116, "Split Down")),
|
|
474
|
+
mnemonicTitle: ( localize(3117, "Split &&Down")),
|
|
478
475
|
}
|
|
479
476
|
},
|
|
480
477
|
order: 2
|
|
@@ -484,8 +481,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
484
481
|
command: {
|
|
485
482
|
id: SPLIT_EDITOR_LEFT,
|
|
486
483
|
title: {
|
|
487
|
-
...( localize2(
|
|
488
|
-
mnemonicTitle: ( localize(
|
|
484
|
+
...( localize2(3118, "Split Left")),
|
|
485
|
+
mnemonicTitle: ( localize(3119, "Split &&Left")),
|
|
489
486
|
}
|
|
490
487
|
},
|
|
491
488
|
order: 3
|
|
@@ -495,8 +492,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
495
492
|
command: {
|
|
496
493
|
id: SPLIT_EDITOR_RIGHT,
|
|
497
494
|
title: {
|
|
498
|
-
...( localize2(
|
|
499
|
-
mnemonicTitle: ( localize(
|
|
495
|
+
...( localize2(3120, "Split Right")),
|
|
496
|
+
mnemonicTitle: ( localize(3121, "Split &&Right")),
|
|
500
497
|
}
|
|
501
498
|
},
|
|
502
499
|
order: 4
|
|
@@ -506,8 +503,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
506
503
|
command: {
|
|
507
504
|
id: SPLIT_EDITOR_IN_GROUP,
|
|
508
505
|
title: {
|
|
509
|
-
...( localize2(
|
|
510
|
-
mnemonicTitle: ( localize(
|
|
506
|
+
...( localize2(3122, "Split in Group")),
|
|
507
|
+
mnemonicTitle: ( localize(3123, "Split in &&Group")),
|
|
511
508
|
}
|
|
512
509
|
},
|
|
513
510
|
when: ActiveEditorCanSplitInGroupContext,
|
|
@@ -518,8 +515,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
518
515
|
command: {
|
|
519
516
|
id: JOIN_EDITOR_IN_GROUP,
|
|
520
517
|
title: {
|
|
521
|
-
...( localize2(
|
|
522
|
-
mnemonicTitle: ( localize(
|
|
518
|
+
...( localize2(3124, "Join in Group")),
|
|
519
|
+
mnemonicTitle: ( localize(3125, "Join in &&Group")),
|
|
523
520
|
}
|
|
524
521
|
},
|
|
525
522
|
when: SideBySideEditorActiveContext,
|
|
@@ -530,8 +527,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
530
527
|
command: {
|
|
531
528
|
id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
532
529
|
title: {
|
|
533
|
-
...( localize2(
|
|
534
|
-
mnemonicTitle: ( localize(
|
|
530
|
+
...( localize2(3126, "Move Editor into New Window")),
|
|
531
|
+
mnemonicTitle: ( localize(3127, "&&Move Editor into New Window")),
|
|
535
532
|
}
|
|
536
533
|
},
|
|
537
534
|
order: 1
|
|
@@ -541,8 +538,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
541
538
|
command: {
|
|
542
539
|
id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
543
540
|
title: {
|
|
544
|
-
...( localize2(
|
|
545
|
-
mnemonicTitle: ( localize(
|
|
541
|
+
...( localize2(3128, "Copy Editor into New Window")),
|
|
542
|
+
mnemonicTitle: ( localize(3129, "&&Copy Editor into New Window")),
|
|
546
543
|
}
|
|
547
544
|
},
|
|
548
545
|
order: 2
|
|
@@ -552,8 +549,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
552
549
|
command: {
|
|
553
550
|
id: EditorLayoutSingleAction.ID,
|
|
554
551
|
title: {
|
|
555
|
-
...( localize2(
|
|
556
|
-
mnemonicTitle: ( localize(
|
|
552
|
+
...( localize2(3130, "Single")),
|
|
553
|
+
mnemonicTitle: ( localize(3131, "&&Single")),
|
|
557
554
|
}
|
|
558
555
|
},
|
|
559
556
|
order: 1
|
|
@@ -563,8 +560,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
563
560
|
command: {
|
|
564
561
|
id: EditorLayoutTwoColumnsAction.ID,
|
|
565
562
|
title: {
|
|
566
|
-
...( localize2(
|
|
567
|
-
mnemonicTitle: ( localize(
|
|
563
|
+
...( localize2(3132, "Two Columns")),
|
|
564
|
+
mnemonicTitle: ( localize(3133, "&&Two Columns")),
|
|
568
565
|
}
|
|
569
566
|
},
|
|
570
567
|
order: 3
|
|
@@ -574,8 +571,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
574
571
|
command: {
|
|
575
572
|
id: EditorLayoutThreeColumnsAction.ID,
|
|
576
573
|
title: {
|
|
577
|
-
...( localize2(
|
|
578
|
-
mnemonicTitle: ( localize(
|
|
574
|
+
...( localize2(3134, "Three Columns")),
|
|
575
|
+
mnemonicTitle: ( localize(3135, "T&&hree Columns")),
|
|
579
576
|
}
|
|
580
577
|
},
|
|
581
578
|
order: 4
|
|
@@ -585,8 +582,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
585
582
|
command: {
|
|
586
583
|
id: EditorLayoutTwoRowsAction.ID,
|
|
587
584
|
title: {
|
|
588
|
-
...( localize2(
|
|
589
|
-
mnemonicTitle: ( localize(
|
|
585
|
+
...( localize2(3136, "Two Rows")),
|
|
586
|
+
mnemonicTitle: ( localize(3137, "T&&wo Rows")),
|
|
590
587
|
}
|
|
591
588
|
},
|
|
592
589
|
order: 5
|
|
@@ -596,8 +593,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
596
593
|
command: {
|
|
597
594
|
id: EditorLayoutThreeRowsAction.ID,
|
|
598
595
|
title: {
|
|
599
|
-
...( localize2(
|
|
600
|
-
mnemonicTitle: ( localize(
|
|
596
|
+
...( localize2(3138, "Three Rows")),
|
|
597
|
+
mnemonicTitle: ( localize(3139, "Three &&Rows")),
|
|
601
598
|
}
|
|
602
599
|
},
|
|
603
600
|
order: 6
|
|
@@ -607,8 +604,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
607
604
|
command: {
|
|
608
605
|
id: EditorLayoutTwoByTwoGridAction.ID,
|
|
609
606
|
title: {
|
|
610
|
-
...( localize2(
|
|
611
|
-
mnemonicTitle: ( localize(
|
|
607
|
+
...( localize2(3140, "Grid (2x2)")),
|
|
608
|
+
mnemonicTitle: ( localize(3141, "&&Grid (2x2)")),
|
|
612
609
|
}
|
|
613
610
|
},
|
|
614
611
|
order: 7
|
|
@@ -618,8 +615,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
618
615
|
command: {
|
|
619
616
|
id: EditorLayoutTwoRowsRightAction.ID,
|
|
620
617
|
title: {
|
|
621
|
-
...( localize2(
|
|
622
|
-
mnemonicTitle: ( localize(
|
|
618
|
+
...( localize2(3142, "Two Rows Right")),
|
|
619
|
+
mnemonicTitle: ( localize(3143, "Two R&&ows Right")),
|
|
623
620
|
}
|
|
624
621
|
},
|
|
625
622
|
order: 8
|
|
@@ -629,8 +626,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
629
626
|
command: {
|
|
630
627
|
id: EditorLayoutTwoColumnsBottomAction.ID,
|
|
631
628
|
title: {
|
|
632
|
-
...( localize2(
|
|
633
|
-
mnemonicTitle: ( localize(
|
|
629
|
+
...( localize2(3144, "Two Columns Bottom")),
|
|
630
|
+
mnemonicTitle: ( localize(3145, "Two &&Columns Bottom")),
|
|
634
631
|
}
|
|
635
632
|
},
|
|
636
633
|
order: 9
|
|
@@ -639,7 +636,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
639
636
|
group: '1_history_nav',
|
|
640
637
|
command: {
|
|
641
638
|
id: 'workbench.action.navigateToLastEditLocation',
|
|
642
|
-
title: ( localize(
|
|
639
|
+
title: ( localize(3146, "&&Last Edit Location")),
|
|
643
640
|
precondition: ( ContextKeyExpr.has('canNavigateToLastEditLocation'))
|
|
644
641
|
},
|
|
645
642
|
order: 3
|
|
@@ -648,7 +645,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
648
645
|
group: '1_sideBySide',
|
|
649
646
|
command: {
|
|
650
647
|
id: FOCUS_FIRST_SIDE_EDITOR,
|
|
651
|
-
title: ( localize(
|
|
648
|
+
title: ( localize(3147, "&&First Side in Editor"))
|
|
652
649
|
},
|
|
653
650
|
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
654
651
|
order: 1
|
|
@@ -657,7 +654,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
657
654
|
group: '1_sideBySide',
|
|
658
655
|
command: {
|
|
659
656
|
id: FOCUS_SECOND_SIDE_EDITOR,
|
|
660
|
-
title: ( localize(
|
|
657
|
+
title: ( localize(3148, "&&Second Side in Editor"))
|
|
661
658
|
},
|
|
662
659
|
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
663
660
|
order: 2
|
|
@@ -666,7 +663,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
666
663
|
group: '2_any',
|
|
667
664
|
command: {
|
|
668
665
|
id: 'workbench.action.nextEditor',
|
|
669
|
-
title: ( localize(
|
|
666
|
+
title: ( localize(3149, "&&Next Editor"))
|
|
670
667
|
},
|
|
671
668
|
order: 1
|
|
672
669
|
});
|
|
@@ -674,7 +671,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
674
671
|
group: '2_any',
|
|
675
672
|
command: {
|
|
676
673
|
id: 'workbench.action.previousEditor',
|
|
677
|
-
title: ( localize(
|
|
674
|
+
title: ( localize(3150, "&&Previous Editor"))
|
|
678
675
|
},
|
|
679
676
|
order: 2
|
|
680
677
|
});
|
|
@@ -682,7 +679,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
682
679
|
group: '3_any_used',
|
|
683
680
|
command: {
|
|
684
681
|
id: 'workbench.action.openNextRecentlyUsedEditor',
|
|
685
|
-
title: ( localize(
|
|
682
|
+
title: ( localize(3151, "&&Next Used Editor"))
|
|
686
683
|
},
|
|
687
684
|
order: 1
|
|
688
685
|
});
|
|
@@ -690,7 +687,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
690
687
|
group: '3_any_used',
|
|
691
688
|
command: {
|
|
692
689
|
id: 'workbench.action.openPreviousRecentlyUsedEditor',
|
|
693
|
-
title: ( localize(
|
|
690
|
+
title: ( localize(3152, "&&Previous Used Editor"))
|
|
694
691
|
},
|
|
695
692
|
order: 2
|
|
696
693
|
});
|
|
@@ -698,7 +695,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
698
695
|
group: '4_group',
|
|
699
696
|
command: {
|
|
700
697
|
id: 'workbench.action.nextEditorInGroup',
|
|
701
|
-
title: ( localize(
|
|
698
|
+
title: ( localize(3153, "&&Next Editor in Group"))
|
|
702
699
|
},
|
|
703
700
|
order: 1
|
|
704
701
|
});
|
|
@@ -706,7 +703,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
706
703
|
group: '4_group',
|
|
707
704
|
command: {
|
|
708
705
|
id: 'workbench.action.previousEditorInGroup',
|
|
709
|
-
title: ( localize(
|
|
706
|
+
title: ( localize(3154, "&&Previous Editor in Group"))
|
|
710
707
|
},
|
|
711
708
|
order: 2
|
|
712
709
|
});
|
|
@@ -714,7 +711,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
714
711
|
group: '5_group_used',
|
|
715
712
|
command: {
|
|
716
713
|
id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
717
|
-
title: ( localize(
|
|
714
|
+
title: ( localize(3155, "&&Next Used Editor in Group"))
|
|
718
715
|
},
|
|
719
716
|
order: 1
|
|
720
717
|
});
|
|
@@ -722,13 +719,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
722
719
|
group: '5_group_used',
|
|
723
720
|
command: {
|
|
724
721
|
id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
725
|
-
title: ( localize(
|
|
722
|
+
title: ( localize(3156, "&&Previous Used Editor in Group"))
|
|
726
723
|
},
|
|
727
724
|
order: 2
|
|
728
725
|
});
|
|
729
726
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
730
727
|
group: '2_editor_nav',
|
|
731
|
-
title: ( localize(
|
|
728
|
+
title: ( localize(3157, "Switch &&Editor")),
|
|
732
729
|
submenu: MenuId.MenubarSwitchEditorMenu,
|
|
733
730
|
order: 1
|
|
734
731
|
});
|
|
@@ -736,7 +733,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
736
733
|
group: '1_focus_index',
|
|
737
734
|
command: {
|
|
738
735
|
id: 'workbench.action.focusFirstEditorGroup',
|
|
739
|
-
title: ( localize(
|
|
736
|
+
title: ( localize(3158, "Group &&1"))
|
|
740
737
|
},
|
|
741
738
|
order: 1
|
|
742
739
|
});
|
|
@@ -744,7 +741,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
744
741
|
group: '1_focus_index',
|
|
745
742
|
command: {
|
|
746
743
|
id: 'workbench.action.focusSecondEditorGroup',
|
|
747
|
-
title: ( localize(
|
|
744
|
+
title: ( localize(3159, "Group &&2"))
|
|
748
745
|
},
|
|
749
746
|
order: 2
|
|
750
747
|
});
|
|
@@ -752,7 +749,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
752
749
|
group: '1_focus_index',
|
|
753
750
|
command: {
|
|
754
751
|
id: 'workbench.action.focusThirdEditorGroup',
|
|
755
|
-
title: ( localize(
|
|
752
|
+
title: ( localize(3160, "Group &&3")),
|
|
756
753
|
precondition: MultipleEditorGroupsContext
|
|
757
754
|
},
|
|
758
755
|
order: 3
|
|
@@ -761,7 +758,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
761
758
|
group: '1_focus_index',
|
|
762
759
|
command: {
|
|
763
760
|
id: 'workbench.action.focusFourthEditorGroup',
|
|
764
|
-
title: ( localize(
|
|
761
|
+
title: ( localize(3161, "Group &&4")),
|
|
765
762
|
precondition: MultipleEditorGroupsContext
|
|
766
763
|
},
|
|
767
764
|
order: 4
|
|
@@ -770,7 +767,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
770
767
|
group: '1_focus_index',
|
|
771
768
|
command: {
|
|
772
769
|
id: 'workbench.action.focusFifthEditorGroup',
|
|
773
|
-
title: ( localize(
|
|
770
|
+
title: ( localize(3162, "Group &&5")),
|
|
774
771
|
precondition: MultipleEditorGroupsContext
|
|
775
772
|
},
|
|
776
773
|
order: 5
|
|
@@ -779,7 +776,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
779
776
|
group: '2_next_prev',
|
|
780
777
|
command: {
|
|
781
778
|
id: 'workbench.action.focusNextGroup',
|
|
782
|
-
title: ( localize(
|
|
779
|
+
title: ( localize(3163, "&&Next Group")),
|
|
783
780
|
precondition: MultipleEditorGroupsContext
|
|
784
781
|
},
|
|
785
782
|
order: 1
|
|
@@ -788,7 +785,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
788
785
|
group: '2_next_prev',
|
|
789
786
|
command: {
|
|
790
787
|
id: 'workbench.action.focusPreviousGroup',
|
|
791
|
-
title: ( localize(
|
|
788
|
+
title: ( localize(3164, "&&Previous Group")),
|
|
792
789
|
precondition: MultipleEditorGroupsContext
|
|
793
790
|
},
|
|
794
791
|
order: 2
|
|
@@ -797,7 +794,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
797
794
|
group: '3_directional',
|
|
798
795
|
command: {
|
|
799
796
|
id: 'workbench.action.focusLeftGroup',
|
|
800
|
-
title: ( localize(
|
|
797
|
+
title: ( localize(3165, "Group &&Left")),
|
|
801
798
|
precondition: MultipleEditorGroupsContext
|
|
802
799
|
},
|
|
803
800
|
order: 1
|
|
@@ -806,7 +803,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
806
803
|
group: '3_directional',
|
|
807
804
|
command: {
|
|
808
805
|
id: 'workbench.action.focusRightGroup',
|
|
809
|
-
title: ( localize(
|
|
806
|
+
title: ( localize(3166, "Group &&Right")),
|
|
810
807
|
precondition: MultipleEditorGroupsContext
|
|
811
808
|
},
|
|
812
809
|
order: 2
|
|
@@ -815,7 +812,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
815
812
|
group: '3_directional',
|
|
816
813
|
command: {
|
|
817
814
|
id: 'workbench.action.focusAboveGroup',
|
|
818
|
-
title: ( localize(
|
|
815
|
+
title: ( localize(3167, "Group &&Above")),
|
|
819
816
|
precondition: MultipleEditorGroupsContext
|
|
820
817
|
},
|
|
821
818
|
order: 3
|
|
@@ -824,14 +821,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
824
821
|
group: '3_directional',
|
|
825
822
|
command: {
|
|
826
823
|
id: 'workbench.action.focusBelowGroup',
|
|
827
|
-
title: ( localize(
|
|
824
|
+
title: ( localize(3168, "Group &&Below")),
|
|
828
825
|
precondition: MultipleEditorGroupsContext
|
|
829
826
|
},
|
|
830
827
|
order: 4
|
|
831
828
|
});
|
|
832
829
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
833
830
|
group: '2_editor_nav',
|
|
834
|
-
title: ( localize(
|
|
831
|
+
title: ( localize(3169, "Switch &&Group")),
|
|
835
832
|
submenu: MenuId.MenubarSwitchGroupMenu,
|
|
836
833
|
order: 2
|
|
837
834
|
});
|