@codingame/monaco-vscode-view-common-service-override 15.0.2 → 16.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/assets/{index-no-csp.html → webview/index-no-csp.html} +1 -1
- package/assets/{index.html → webview/index.html} +2 -2
- package/index.js +5 -5
- package/package.json +42 -40
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +1 -1
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +60 -60
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +3 -3
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +162 -159
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +10 -9
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +7 -7
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css +47 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css +3 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +12 -12
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +8 -8
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css +90 -0
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +8 -8
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +27 -27
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +14 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +6 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorAccessibilityHelp.js +46 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +13 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +11 -11
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css +235 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +18 -25
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css +47 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +7 -7
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +1 -1
- package/{assets → vscode/src/vs/workbench/contrib/webview/browser/pre}/service-worker.js +34 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +5 -5
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.d.ts +1 -4
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +13 -22
- package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +0 -1
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +29 -30
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css +15 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +29 -42
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +6 -6
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -6
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +0 -6
- /package/{assets → vscode/src/vs/workbench/contrib/webview/browser/pre}/fake.html +0 -0
|
@@ -36,19 +36,21 @@ import { UntitledTextEditorInputSerializer, UntitledTextEditorWorkingCopyEditorH
|
|
|
36
36
|
import { DynamicEditorConfigurations } from './editorConfiguration.js';
|
|
37
37
|
import { ShowMultipleEditorTabsAction, ShowSingleEditorTabAction, HideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingleEditorTabAction, ZenHideEditorTabsAction, EditorActionsDefaultAction, EditorActionsTitleBarAction, HideEditorActionsAction, ConfigureEditorTabsAction, ConfigureEditorAction } from '@codingame/monaco-vscode-0cc5da60-f921-59b9-bd8c-a018e93c0a6f-common/vscode/vs/workbench/browser/actions/layoutActions';
|
|
38
38
|
import { EditorContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorContextKeys';
|
|
39
|
+
import { getFontSnippets } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/fonts';
|
|
40
|
+
import { registerEditorFontConfigurations } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/config/editorConfigurationSchema';
|
|
39
41
|
import '@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
|
|
40
42
|
|
|
41
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(
|
|
43
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(2924, "Text Editor"))), [
|
|
42
44
|
( new SyncDescriptor(UntitledTextEditorInput)),
|
|
43
45
|
( new SyncDescriptor(TextResourceEditorInput))
|
|
44
46
|
]);
|
|
45
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(
|
|
47
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(2925, "Text Diff Editor"))), [
|
|
46
48
|
( new SyncDescriptor(DiffEditorInput))
|
|
47
49
|
]);
|
|
48
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(
|
|
50
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(2926, "Binary Diff Editor"))), [
|
|
49
51
|
( new SyncDescriptor(DiffEditorInput))
|
|
50
52
|
]);
|
|
51
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(
|
|
53
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(2927, "Side by Side Editor"))), [
|
|
52
54
|
( new SyncDescriptor(SideBySideEditorInput))
|
|
53
55
|
]);
|
|
54
56
|
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(UntitledTextEditorInput.ID, UntitledTextEditorInputSerializer);
|
|
@@ -65,22 +67,22 @@ quickAccessRegistry.registerQuickAccessProvider({
|
|
|
65
67
|
ctor: ActiveGroupEditorsByMostRecentlyUsedQuickAccess,
|
|
66
68
|
prefix: ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
67
69
|
contextKey: editorPickerContextKey,
|
|
68
|
-
placeholder: ( localize(
|
|
69
|
-
helpEntries: [{ description: ( localize(
|
|
70
|
+
placeholder: ( localize(2928, "Type the name of an editor to open it.")),
|
|
71
|
+
helpEntries: [{ description: ( localize(2929, "Show Editors in Active Group by Most Recently Used")), commandId: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID }]
|
|
70
72
|
});
|
|
71
73
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
72
74
|
ctor: AllEditorsByAppearanceQuickAccess,
|
|
73
75
|
prefix: AllEditorsByAppearanceQuickAccess.PREFIX,
|
|
74
76
|
contextKey: editorPickerContextKey,
|
|
75
|
-
placeholder: ( localize(
|
|
76
|
-
helpEntries: [{ description: ( localize(
|
|
77
|
+
placeholder: ( localize(2928, "Type the name of an editor to open it.")),
|
|
78
|
+
helpEntries: [{ description: ( localize(2930, "Show All Opened Editors By Appearance")), commandId: ShowAllEditorsByAppearanceAction.ID }]
|
|
77
79
|
});
|
|
78
80
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
79
81
|
ctor: AllEditorsByMostRecentlyUsedQuickAccess,
|
|
80
82
|
prefix: AllEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
81
83
|
contextKey: editorPickerContextKey,
|
|
82
|
-
placeholder: ( localize(
|
|
83
|
-
helpEntries: [{ description: ( localize(
|
|
84
|
+
placeholder: ( localize(2928, "Type the name of an editor to open it.")),
|
|
85
|
+
helpEntries: [{ description: ( localize(2931, "Show All Opened Editors By Most Recently Used")), commandId: ShowAllEditorsByMostRecentlyUsedAction.ID }]
|
|
84
86
|
});
|
|
85
87
|
registerAction2(ChangeLanguageAction);
|
|
86
88
|
registerAction2(ChangeEOLAction);
|
|
@@ -224,62 +226,62 @@ if (isMacintosh) {
|
|
|
224
226
|
order: 1
|
|
225
227
|
});
|
|
226
228
|
}
|
|
227
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
228
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
229
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(
|
|
230
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
231
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
232
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
233
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
234
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(
|
|
235
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
236
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(
|
|
237
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
238
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
239
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
240
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
241
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
242
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(
|
|
243
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(
|
|
244
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(
|
|
245
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(
|
|
246
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(
|
|
247
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(
|
|
248
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(
|
|
249
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(
|
|
250
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(
|
|
251
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(
|
|
252
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(
|
|
253
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(
|
|
254
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(
|
|
255
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(
|
|
256
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(
|
|
257
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
258
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(
|
|
259
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(
|
|
260
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
261
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(
|
|
262
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(
|
|
263
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(
|
|
264
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(
|
|
265
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(
|
|
266
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(
|
|
267
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(
|
|
268
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(
|
|
269
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(
|
|
270
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, 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.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(
|
|
275
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(
|
|
276
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(
|
|
277
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(
|
|
278
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(
|
|
279
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(
|
|
280
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(
|
|
281
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
282
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(
|
|
229
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(2932, "Lock Group")), icon: Codicon.unlock }, group: 'navigation', order: 10, when: ( ContextKeyExpr.and(IsAuxiliaryEditorPartContext, ( ActiveEditorGroupLockedContext.toNegated()))) });
|
|
230
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(2933, "Unlock Group")), icon: Codicon.lock, toggled: ContextKeyExpr.true() }, group: 'navigation', order: 10, when: ActiveEditorGroupLockedContext });
|
|
231
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(2934, "Close Group")), icon: Codicon.close }, group: 'navigation', order: 20, when: ( ContextKeyExpr.or(IsAuxiliaryEditorPartContext, EditorPartMultipleEditorGroupsContext)) });
|
|
232
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(2935, "Split Up")) }, group: '2_split', order: 10 });
|
|
233
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(2936, "Split Down")) }, group: '2_split', order: 20 });
|
|
234
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(2937, "Split Left")) }, group: '2_split', order: 30 });
|
|
235
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(2938, "Split Right")) }, group: '2_split', order: 40 });
|
|
236
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(2939, "New Window")) }, group: '3_window', order: 10 });
|
|
237
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(2940, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '4_lock', order: 10, when: ( IsAuxiliaryEditorPartContext.toNegated()) });
|
|
238
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(2941, "Close")) }, group: '5_close', order: 10, when: MultipleEditorGroupsContext });
|
|
239
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(2935, "Split Up")) }, group: '2_split', order: 10 });
|
|
240
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(2936, "Split Down")) }, group: '2_split', order: 20 });
|
|
241
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(2937, "Split Left")) }, group: '2_split', order: 30 });
|
|
242
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(2938, "Split Right")) }, group: '2_split', order: 40 });
|
|
243
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(2942, "Move into New Window")) }, group: '3_window', order: 10 });
|
|
244
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(2943, "Copy into New Window")) }, group: '3_window', order: 20 });
|
|
245
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(2944, "Tab Bar")), group: '4_config', order: 10, when: ( InEditorZenModeContext.negate()) });
|
|
246
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(2945, "Multiple Tabs")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'multiple')) }, group: '1_config', order: 10 });
|
|
247
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(2946, "Single Tab")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'single')) }, group: '1_config', order: 20 });
|
|
248
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(2947, "Hidden")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')) }, group: '1_config', order: 30 });
|
|
249
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(2944, "Tab Bar")), group: '4_config', order: 10, when: InEditorZenModeContext });
|
|
250
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(2945, "Multiple Tabs")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'multiple')) }, group: '1_config', order: 10 });
|
|
251
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(2946, "Single Tab")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'single')) }, group: '1_config', order: 20 });
|
|
252
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(2947, "Hidden")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'none')) }, group: '1_config', order: 30 });
|
|
253
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(2948, "Editor Actions Position")), group: '4_config', order: 20 });
|
|
254
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(2944, "Tab Bar")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default')) }, group: '1_config', order: 10, when: ( ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')).negate()) });
|
|
255
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(2949, "Title Bar")), toggled: ( ContextKeyExpr.or(( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'titleBar')), ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')), ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default')))))) }, group: '1_config', order: 20 });
|
|
256
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(2950, "Hidden")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'hidden')) }, group: '1_config', order: 30 });
|
|
257
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(2951, "Configure Tabs")) }, group: '9_configure', order: 10 });
|
|
258
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(2941, "Close")) }, group: '1_close', order: 10 });
|
|
259
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(2952, "Close Others")), precondition: ( EditorGroupEditorsCountContext.notEqualsTo('1')) }, group: '1_close', order: 20 });
|
|
260
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(2953, "Close to the Right")), precondition: ( ContextKeyExpr.and(( ActiveEditorLastInGroupContext.toNegated()), ( MultipleEditorsSelectedInGroupContext.negate()))) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
|
|
261
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(2954, "Close Saved")) }, group: '1_close', order: 40 });
|
|
262
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(2955, "Close All")) }, group: '1_close', order: 50 });
|
|
263
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(2956, "Reopen Editor With...")) }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
|
|
264
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(2957, "Keep Open")), precondition: ( ActiveEditorPinnedContext.toNegated()) }, group: '3_preview', order: 10, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
|
|
265
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(2958, "Pin")) }, group: '3_preview', order: 20, when: ( ActiveEditorStickyContext.toNegated()) });
|
|
266
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(2959, "Unpin")) }, group: '3_preview', order: 20, when: ActiveEditorStickyContext });
|
|
267
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(2935, "Split Up")) }, group: '5_split', order: 10 });
|
|
268
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(2936, "Split Down")) }, group: '5_split', order: 20 });
|
|
269
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(2937, "Split Left")) }, group: '5_split', order: 30 });
|
|
270
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(2938, "Split Right")) }, group: '5_split', order: 40 });
|
|
271
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(2960, "Split in Group")), precondition: ( MultipleEditorsSelectedInGroupContext.negate()) }, group: '6_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
|
|
272
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localize(2961, "Join in Group")), precondition: ( MultipleEditorsSelectedInGroupContext.negate()) }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
|
|
273
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(2962, "Move into New Window")) }, group: '7_new_window', order: 10 });
|
|
274
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(2963, "Copy into New Window")) }, group: '7_new_window', order: 20 });
|
|
275
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(2964, "Share")), group: '11_share', order: -1, when: ( MultipleEditorsSelectedInGroupContext.negate()) });
|
|
276
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(2965, "Inline View")), toggled: ( ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false)) }, group: '1_diff', order: 10, when: ( ContextKeyExpr.has('isInDiffEditor')) });
|
|
277
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(2966, "Show Opened Editors")) }, group: '3_open', order: 10 });
|
|
278
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(2955, "Close All")) }, group: '5_close', order: 10 });
|
|
279
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(2954, "Close Saved")) }, group: '5_close', order: 20 });
|
|
280
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(2967, "Enable Preview Editors")), toggled: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) }, group: '7_settings', order: 10 });
|
|
281
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(2968, "Maximize Group")) }, group: '8_group_operations', order: 5, when: ( ContextKeyExpr.and(( EditorPartMaximizedEditorGroupContext.negate()), EditorPartMultipleEditorGroupsContext)) });
|
|
282
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(2969, "Unmaximize Group")) }, group: '8_group_operations', order: 5, when: EditorPartMaximizedEditorGroupContext });
|
|
283
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(2970, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( IsAuxiliaryEditorPartContext.toNegated()) });
|
|
284
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(2971, "Configure Editors")) }, group: '9_configure', order: 10 });
|
|
283
285
|
function appendEditorToolItem(primary, when, order, alternative, precondition) {
|
|
284
286
|
const item = {
|
|
285
287
|
command: {
|
|
@@ -306,96 +308,96 @@ const SPLIT_ORDER = 100000;
|
|
|
306
308
|
const CLOSE_ORDER = 1000000;
|
|
307
309
|
appendEditorToolItem({
|
|
308
310
|
id: SPLIT_EDITOR,
|
|
309
|
-
title: ( localize(
|
|
311
|
+
title: ( localize(2972, "Split Editor Right")),
|
|
310
312
|
icon: Codicon.splitHorizontal
|
|
311
313
|
}, ContextKeyExpr.not('splitEditorsVertically'), SPLIT_ORDER, {
|
|
312
314
|
id: SPLIT_EDITOR_DOWN,
|
|
313
|
-
title: ( localize(
|
|
315
|
+
title: ( localize(2973, "Split Editor Down")),
|
|
314
316
|
icon: Codicon.splitVertical
|
|
315
317
|
});
|
|
316
318
|
appendEditorToolItem({
|
|
317
319
|
id: SPLIT_EDITOR,
|
|
318
|
-
title: ( localize(
|
|
320
|
+
title: ( localize(2973, "Split Editor Down")),
|
|
319
321
|
icon: Codicon.splitVertical
|
|
320
322
|
}, ( ContextKeyExpr.has('splitEditorsVertically')), SPLIT_ORDER, {
|
|
321
323
|
id: SPLIT_EDITOR_RIGHT,
|
|
322
|
-
title: ( localize(
|
|
324
|
+
title: ( localize(2972, "Split Editor Right")),
|
|
323
325
|
icon: Codicon.splitHorizontal
|
|
324
326
|
});
|
|
325
327
|
appendEditorToolItem({
|
|
326
328
|
id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
|
|
327
|
-
title: ( localize(
|
|
329
|
+
title: ( localize(2974, "Toggle Layout")),
|
|
328
330
|
icon: Codicon.editorLayout
|
|
329
331
|
}, SideBySideEditorActiveContext, SPLIT_ORDER - 1);
|
|
330
332
|
appendEditorToolItem({
|
|
331
333
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
332
|
-
title: ( localize(
|
|
334
|
+
title: ( localize(2941, "Close")),
|
|
333
335
|
icon: Codicon.close
|
|
334
336
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
335
337
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
336
|
-
title: ( localize(
|
|
338
|
+
title: ( localize(2955, "Close All")),
|
|
337
339
|
icon: Codicon.closeAll
|
|
338
340
|
});
|
|
339
341
|
appendEditorToolItem({
|
|
340
342
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
341
|
-
title: ( localize(
|
|
343
|
+
title: ( localize(2941, "Close")),
|
|
342
344
|
icon: Codicon.closeDirty
|
|
343
345
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
344
346
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
345
|
-
title: ( localize(
|
|
347
|
+
title: ( localize(2955, "Close All")),
|
|
346
348
|
icon: Codicon.closeAll
|
|
347
349
|
});
|
|
348
350
|
appendEditorToolItem({
|
|
349
351
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
350
|
-
title: ( localize(
|
|
352
|
+
title: ( localize(2959, "Unpin")),
|
|
351
353
|
icon: Codicon.pinned
|
|
352
354
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
353
355
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
354
|
-
title: ( localize(
|
|
356
|
+
title: ( localize(2941, "Close")),
|
|
355
357
|
icon: Codicon.close
|
|
356
358
|
});
|
|
357
359
|
appendEditorToolItem({
|
|
358
360
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
359
|
-
title: ( localize(
|
|
361
|
+
title: ( localize(2959, "Unpin")),
|
|
360
362
|
icon: Codicon.pinnedDirty
|
|
361
363
|
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
362
364
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
363
|
-
title: ( localize(
|
|
365
|
+
title: ( localize(2941, "Close")),
|
|
364
366
|
icon: Codicon.close
|
|
365
367
|
});
|
|
366
368
|
appendEditorToolItem({
|
|
367
369
|
id: LOCK_GROUP_COMMAND_ID,
|
|
368
|
-
title: ( localize(
|
|
370
|
+
title: ( localize(2975, "Lock Group")),
|
|
369
371
|
icon: Codicon.unlock
|
|
370
372
|
}, ( ContextKeyExpr.and(IsAuxiliaryEditorPartContext, ( ActiveEditorGroupLockedContext.toNegated()))), CLOSE_ORDER - 1);
|
|
371
373
|
appendEditorToolItem({
|
|
372
374
|
id: UNLOCK_GROUP_COMMAND_ID,
|
|
373
|
-
title: ( localize(
|
|
375
|
+
title: ( localize(2976, "Unlock Group")),
|
|
374
376
|
icon: Codicon.lock,
|
|
375
377
|
toggled: ContextKeyExpr.true()
|
|
376
378
|
}, ActiveEditorGroupLockedContext, CLOSE_ORDER - 1);
|
|
377
|
-
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(
|
|
379
|
+
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(2977, 'Icon for the previous change action in the diff editor.')));
|
|
378
380
|
appendEditorToolItem({
|
|
379
381
|
id: GOTO_PREVIOUS_CHANGE,
|
|
380
|
-
title: ( localize(
|
|
382
|
+
title: ( localize(2978, "Previous Change")),
|
|
381
383
|
icon: previousChangeIcon
|
|
382
384
|
}, TextCompareEditorActiveContext, 10, undefined, EditorContextKeys.hasChanges);
|
|
383
|
-
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(
|
|
385
|
+
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(2979, 'Icon for the next change action in the diff editor.')));
|
|
384
386
|
appendEditorToolItem({
|
|
385
387
|
id: GOTO_NEXT_CHANGE,
|
|
386
|
-
title: ( localize(
|
|
388
|
+
title: ( localize(2980, "Next Change")),
|
|
387
389
|
icon: nextChangeIcon
|
|
388
390
|
}, TextCompareEditorActiveContext, 11, undefined, EditorContextKeys.hasChanges);
|
|
389
391
|
appendEditorToolItem({
|
|
390
392
|
id: DIFF_SWAP_SIDES,
|
|
391
|
-
title: ( localize(
|
|
393
|
+
title: ( localize(2981, "Swap Left and Right Side")),
|
|
392
394
|
icon: Codicon.arrowSwap
|
|
393
395
|
}, ( ContextKeyExpr.and(TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext)), 15, undefined, undefined);
|
|
394
|
-
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(
|
|
396
|
+
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(2982, 'Icon for the toggle whitespace action in the diff editor.')));
|
|
395
397
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
396
398
|
command: {
|
|
397
399
|
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
398
|
-
title: ( localize(
|
|
400
|
+
title: ( localize(2983, "Show Leading/Trailing Whitespace Differences")),
|
|
399
401
|
icon: toggleWhitespace,
|
|
400
402
|
precondition: TextCompareEditorActiveContext,
|
|
401
403
|
toggled: ( ContextKeyExpr.equals('config.diffEditor.ignoreTrimWhitespace', false)),
|
|
@@ -404,22 +406,22 @@ MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
|
404
406
|
when: TextCompareEditorActiveContext,
|
|
405
407
|
order: 20,
|
|
406
408
|
});
|
|
407
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(
|
|
408
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
409
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
410
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(
|
|
411
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(
|
|
412
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
413
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(
|
|
414
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
415
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(
|
|
416
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(
|
|
417
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(
|
|
409
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(2984, 'Keep Editor')), category: Categories.View }, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
|
|
410
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(2985, 'Pin Editor')), category: Categories.View } });
|
|
411
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(2986, 'Unpin Editor')), category: Categories.View } });
|
|
412
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(2987, 'Close Editor')), category: Categories.View } });
|
|
413
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(2988, 'Close Pinned Editor')), category: Categories.View } });
|
|
414
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(2989, 'Close All Editors in Group')), category: Categories.View } });
|
|
415
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(2990, 'Close Saved Editors in Group')), category: Categories.View } });
|
|
416
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(2991, 'Close Other Editors in Group')), category: Categories.View } });
|
|
417
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(2992, 'Close Editors to the Right in Group')), category: Categories.View }, when: ( ActiveEditorLastInGroupContext.toNegated()) });
|
|
418
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(2993, 'Close Editor Group')), category: Categories.View }, when: MultipleEditorGroupsContext });
|
|
419
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(2956, "Reopen Editor With...")), category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
|
|
418
420
|
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
419
421
|
group: '1_editor',
|
|
420
422
|
command: {
|
|
421
423
|
id: ReopenClosedEditorAction.ID,
|
|
422
|
-
title: ( localize(
|
|
424
|
+
title: ( localize(2994, "&&Reopen Closed Editor")),
|
|
423
425
|
precondition: ( ContextKeyExpr.has('canReopenClosedEditor'))
|
|
424
426
|
},
|
|
425
427
|
order: 1
|
|
@@ -428,19 +430,19 @@ MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
|
428
430
|
group: 'z_clear',
|
|
429
431
|
command: {
|
|
430
432
|
id: ClearRecentFilesAction.ID,
|
|
431
|
-
title: ( localize(
|
|
433
|
+
title: ( localize(2995, "&&Clear Recently Opened..."))
|
|
432
434
|
},
|
|
433
435
|
order: 1
|
|
434
436
|
});
|
|
435
437
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
436
|
-
title: ( localize(
|
|
438
|
+
title: ( localize(2996, "Share")),
|
|
437
439
|
submenu: MenuId.MenubarShare,
|
|
438
440
|
group: '45_share',
|
|
439
441
|
order: 1,
|
|
440
442
|
});
|
|
441
443
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
442
444
|
group: '2_appearance',
|
|
443
|
-
title: ( localize(
|
|
445
|
+
title: ( localize(2997, "Editor &&Layout")),
|
|
444
446
|
submenu: MenuId.MenubarLayoutMenu,
|
|
445
447
|
order: 2
|
|
446
448
|
});
|
|
@@ -449,8 +451,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
449
451
|
command: {
|
|
450
452
|
id: SPLIT_EDITOR_UP,
|
|
451
453
|
title: {
|
|
452
|
-
...( localize2(
|
|
453
|
-
mnemonicTitle: ( localize(
|
|
454
|
+
...( localize2(2998, "Split Up")),
|
|
455
|
+
mnemonicTitle: ( localize(2999, "Split &&Up")),
|
|
454
456
|
}
|
|
455
457
|
},
|
|
456
458
|
order: 1
|
|
@@ -460,8 +462,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
460
462
|
command: {
|
|
461
463
|
id: SPLIT_EDITOR_DOWN,
|
|
462
464
|
title: {
|
|
463
|
-
...( localize2(
|
|
464
|
-
mnemonicTitle: ( localize(
|
|
465
|
+
...( localize2(3000, "Split Down")),
|
|
466
|
+
mnemonicTitle: ( localize(3001, "Split &&Down")),
|
|
465
467
|
}
|
|
466
468
|
},
|
|
467
469
|
order: 2
|
|
@@ -471,8 +473,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
471
473
|
command: {
|
|
472
474
|
id: SPLIT_EDITOR_LEFT,
|
|
473
475
|
title: {
|
|
474
|
-
...( localize2(
|
|
475
|
-
mnemonicTitle: ( localize(
|
|
476
|
+
...( localize2(3002, "Split Left")),
|
|
477
|
+
mnemonicTitle: ( localize(3003, "Split &&Left")),
|
|
476
478
|
}
|
|
477
479
|
},
|
|
478
480
|
order: 3
|
|
@@ -482,8 +484,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
482
484
|
command: {
|
|
483
485
|
id: SPLIT_EDITOR_RIGHT,
|
|
484
486
|
title: {
|
|
485
|
-
...( localize2(
|
|
486
|
-
mnemonicTitle: ( localize(
|
|
487
|
+
...( localize2(3004, "Split Right")),
|
|
488
|
+
mnemonicTitle: ( localize(3005, "Split &&Right")),
|
|
487
489
|
}
|
|
488
490
|
},
|
|
489
491
|
order: 4
|
|
@@ -493,8 +495,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
493
495
|
command: {
|
|
494
496
|
id: SPLIT_EDITOR_IN_GROUP,
|
|
495
497
|
title: {
|
|
496
|
-
...( localize2(
|
|
497
|
-
mnemonicTitle: ( localize(
|
|
498
|
+
...( localize2(3006, "Split in Group")),
|
|
499
|
+
mnemonicTitle: ( localize(3007, "Split in &&Group")),
|
|
498
500
|
}
|
|
499
501
|
},
|
|
500
502
|
when: ActiveEditorCanSplitInGroupContext,
|
|
@@ -505,8 +507,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
505
507
|
command: {
|
|
506
508
|
id: JOIN_EDITOR_IN_GROUP,
|
|
507
509
|
title: {
|
|
508
|
-
...( localize2(
|
|
509
|
-
mnemonicTitle: ( localize(
|
|
510
|
+
...( localize2(3008, "Join in Group")),
|
|
511
|
+
mnemonicTitle: ( localize(3009, "Join in &&Group")),
|
|
510
512
|
}
|
|
511
513
|
},
|
|
512
514
|
when: SideBySideEditorActiveContext,
|
|
@@ -517,8 +519,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
517
519
|
command: {
|
|
518
520
|
id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
519
521
|
title: {
|
|
520
|
-
...( localize2(
|
|
521
|
-
mnemonicTitle: ( localize(
|
|
522
|
+
...( localize2(3010, "Move Editor into New Window")),
|
|
523
|
+
mnemonicTitle: ( localize(3011, "&&Move Editor into New Window")),
|
|
522
524
|
}
|
|
523
525
|
},
|
|
524
526
|
order: 1
|
|
@@ -528,8 +530,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
528
530
|
command: {
|
|
529
531
|
id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
530
532
|
title: {
|
|
531
|
-
...( localize2(
|
|
532
|
-
mnemonicTitle: ( localize(
|
|
533
|
+
...( localize2(3012, "Copy Editor into New Window")),
|
|
534
|
+
mnemonicTitle: ( localize(3013, "&&Copy Editor into New Window")),
|
|
533
535
|
}
|
|
534
536
|
},
|
|
535
537
|
order: 2
|
|
@@ -539,8 +541,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
539
541
|
command: {
|
|
540
542
|
id: EditorLayoutSingleAction.ID,
|
|
541
543
|
title: {
|
|
542
|
-
...( localize2(
|
|
543
|
-
mnemonicTitle: ( localize(
|
|
544
|
+
...( localize2(3014, "Single")),
|
|
545
|
+
mnemonicTitle: ( localize(3015, "&&Single")),
|
|
544
546
|
}
|
|
545
547
|
},
|
|
546
548
|
order: 1
|
|
@@ -550,8 +552,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
550
552
|
command: {
|
|
551
553
|
id: EditorLayoutTwoColumnsAction.ID,
|
|
552
554
|
title: {
|
|
553
|
-
...( localize2(
|
|
554
|
-
mnemonicTitle: ( localize(
|
|
555
|
+
...( localize2(3016, "Two Columns")),
|
|
556
|
+
mnemonicTitle: ( localize(3017, "&&Two Columns")),
|
|
555
557
|
}
|
|
556
558
|
},
|
|
557
559
|
order: 3
|
|
@@ -561,8 +563,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
561
563
|
command: {
|
|
562
564
|
id: EditorLayoutThreeColumnsAction.ID,
|
|
563
565
|
title: {
|
|
564
|
-
...( localize2(
|
|
565
|
-
mnemonicTitle: ( localize(
|
|
566
|
+
...( localize2(3018, "Three Columns")),
|
|
567
|
+
mnemonicTitle: ( localize(3019, "T&&hree Columns")),
|
|
566
568
|
}
|
|
567
569
|
},
|
|
568
570
|
order: 4
|
|
@@ -572,8 +574,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
572
574
|
command: {
|
|
573
575
|
id: EditorLayoutTwoRowsAction.ID,
|
|
574
576
|
title: {
|
|
575
|
-
...( localize2(
|
|
576
|
-
mnemonicTitle: ( localize(
|
|
577
|
+
...( localize2(3020, "Two Rows")),
|
|
578
|
+
mnemonicTitle: ( localize(3021, "T&&wo Rows")),
|
|
577
579
|
}
|
|
578
580
|
},
|
|
579
581
|
order: 5
|
|
@@ -583,8 +585,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
583
585
|
command: {
|
|
584
586
|
id: EditorLayoutThreeRowsAction.ID,
|
|
585
587
|
title: {
|
|
586
|
-
...( localize2(
|
|
587
|
-
mnemonicTitle: ( localize(
|
|
588
|
+
...( localize2(3022, "Three Rows")),
|
|
589
|
+
mnemonicTitle: ( localize(3023, "Three &&Rows")),
|
|
588
590
|
}
|
|
589
591
|
},
|
|
590
592
|
order: 6
|
|
@@ -594,8 +596,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
594
596
|
command: {
|
|
595
597
|
id: EditorLayoutTwoByTwoGridAction.ID,
|
|
596
598
|
title: {
|
|
597
|
-
...( localize2(
|
|
598
|
-
mnemonicTitle: ( localize(
|
|
599
|
+
...( localize2(3024, "Grid (2x2)")),
|
|
600
|
+
mnemonicTitle: ( localize(3025, "&&Grid (2x2)")),
|
|
599
601
|
}
|
|
600
602
|
},
|
|
601
603
|
order: 7
|
|
@@ -605,8 +607,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
605
607
|
command: {
|
|
606
608
|
id: EditorLayoutTwoRowsRightAction.ID,
|
|
607
609
|
title: {
|
|
608
|
-
...( localize2(
|
|
609
|
-
mnemonicTitle: ( localize(
|
|
610
|
+
...( localize2(3026, "Two Rows Right")),
|
|
611
|
+
mnemonicTitle: ( localize(3027, "Two R&&ows Right")),
|
|
610
612
|
}
|
|
611
613
|
},
|
|
612
614
|
order: 8
|
|
@@ -616,8 +618,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
616
618
|
command: {
|
|
617
619
|
id: EditorLayoutTwoColumnsBottomAction.ID,
|
|
618
620
|
title: {
|
|
619
|
-
...( localize2(
|
|
620
|
-
mnemonicTitle: ( localize(
|
|
621
|
+
...( localize2(3028, "Two Columns Bottom")),
|
|
622
|
+
mnemonicTitle: ( localize(3029, "Two &&Columns Bottom")),
|
|
621
623
|
}
|
|
622
624
|
},
|
|
623
625
|
order: 9
|
|
@@ -626,7 +628,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
626
628
|
group: '1_history_nav',
|
|
627
629
|
command: {
|
|
628
630
|
id: 'workbench.action.navigateToLastEditLocation',
|
|
629
|
-
title: ( localize(
|
|
631
|
+
title: ( localize(3030, "&&Last Edit Location")),
|
|
630
632
|
precondition: ( ContextKeyExpr.has('canNavigateToLastEditLocation'))
|
|
631
633
|
},
|
|
632
634
|
order: 3
|
|
@@ -635,7 +637,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
635
637
|
group: '1_sideBySide',
|
|
636
638
|
command: {
|
|
637
639
|
id: FOCUS_FIRST_SIDE_EDITOR,
|
|
638
|
-
title: ( localize(
|
|
640
|
+
title: ( localize(3031, "&&First Side in Editor"))
|
|
639
641
|
},
|
|
640
642
|
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
641
643
|
order: 1
|
|
@@ -644,7 +646,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
644
646
|
group: '1_sideBySide',
|
|
645
647
|
command: {
|
|
646
648
|
id: FOCUS_SECOND_SIDE_EDITOR,
|
|
647
|
-
title: ( localize(
|
|
649
|
+
title: ( localize(3032, "&&Second Side in Editor"))
|
|
648
650
|
},
|
|
649
651
|
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
650
652
|
order: 2
|
|
@@ -653,7 +655,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
653
655
|
group: '2_any',
|
|
654
656
|
command: {
|
|
655
657
|
id: 'workbench.action.nextEditor',
|
|
656
|
-
title: ( localize(
|
|
658
|
+
title: ( localize(3033, "&&Next Editor"))
|
|
657
659
|
},
|
|
658
660
|
order: 1
|
|
659
661
|
});
|
|
@@ -661,7 +663,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
661
663
|
group: '2_any',
|
|
662
664
|
command: {
|
|
663
665
|
id: 'workbench.action.previousEditor',
|
|
664
|
-
title: ( localize(
|
|
666
|
+
title: ( localize(3034, "&&Previous Editor"))
|
|
665
667
|
},
|
|
666
668
|
order: 2
|
|
667
669
|
});
|
|
@@ -669,7 +671,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
669
671
|
group: '3_any_used',
|
|
670
672
|
command: {
|
|
671
673
|
id: 'workbench.action.openNextRecentlyUsedEditor',
|
|
672
|
-
title: ( localize(
|
|
674
|
+
title: ( localize(3035, "&&Next Used Editor"))
|
|
673
675
|
},
|
|
674
676
|
order: 1
|
|
675
677
|
});
|
|
@@ -677,7 +679,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
677
679
|
group: '3_any_used',
|
|
678
680
|
command: {
|
|
679
681
|
id: 'workbench.action.openPreviousRecentlyUsedEditor',
|
|
680
|
-
title: ( localize(
|
|
682
|
+
title: ( localize(3036, "&&Previous Used Editor"))
|
|
681
683
|
},
|
|
682
684
|
order: 2
|
|
683
685
|
});
|
|
@@ -685,7 +687,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
685
687
|
group: '4_group',
|
|
686
688
|
command: {
|
|
687
689
|
id: 'workbench.action.nextEditorInGroup',
|
|
688
|
-
title: ( localize(
|
|
690
|
+
title: ( localize(3037, "&&Next Editor in Group"))
|
|
689
691
|
},
|
|
690
692
|
order: 1
|
|
691
693
|
});
|
|
@@ -693,7 +695,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
693
695
|
group: '4_group',
|
|
694
696
|
command: {
|
|
695
697
|
id: 'workbench.action.previousEditorInGroup',
|
|
696
|
-
title: ( localize(
|
|
698
|
+
title: ( localize(3038, "&&Previous Editor in Group"))
|
|
697
699
|
},
|
|
698
700
|
order: 2
|
|
699
701
|
});
|
|
@@ -701,7 +703,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
701
703
|
group: '5_group_used',
|
|
702
704
|
command: {
|
|
703
705
|
id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
704
|
-
title: ( localize(
|
|
706
|
+
title: ( localize(3039, "&&Next Used Editor in Group"))
|
|
705
707
|
},
|
|
706
708
|
order: 1
|
|
707
709
|
});
|
|
@@ -709,13 +711,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
709
711
|
group: '5_group_used',
|
|
710
712
|
command: {
|
|
711
713
|
id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
712
|
-
title: ( localize(
|
|
714
|
+
title: ( localize(3040, "&&Previous Used Editor in Group"))
|
|
713
715
|
},
|
|
714
716
|
order: 2
|
|
715
717
|
});
|
|
716
718
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
717
719
|
group: '2_editor_nav',
|
|
718
|
-
title: ( localize(
|
|
720
|
+
title: ( localize(3041, "Switch &&Editor")),
|
|
719
721
|
submenu: MenuId.MenubarSwitchEditorMenu,
|
|
720
722
|
order: 1
|
|
721
723
|
});
|
|
@@ -723,7 +725,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
723
725
|
group: '1_focus_index',
|
|
724
726
|
command: {
|
|
725
727
|
id: 'workbench.action.focusFirstEditorGroup',
|
|
726
|
-
title: ( localize(
|
|
728
|
+
title: ( localize(3042, "Group &&1"))
|
|
727
729
|
},
|
|
728
730
|
order: 1
|
|
729
731
|
});
|
|
@@ -731,7 +733,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
731
733
|
group: '1_focus_index',
|
|
732
734
|
command: {
|
|
733
735
|
id: 'workbench.action.focusSecondEditorGroup',
|
|
734
|
-
title: ( localize(
|
|
736
|
+
title: ( localize(3043, "Group &&2"))
|
|
735
737
|
},
|
|
736
738
|
order: 2
|
|
737
739
|
});
|
|
@@ -739,7 +741,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
739
741
|
group: '1_focus_index',
|
|
740
742
|
command: {
|
|
741
743
|
id: 'workbench.action.focusThirdEditorGroup',
|
|
742
|
-
title: ( localize(
|
|
744
|
+
title: ( localize(3044, "Group &&3")),
|
|
743
745
|
precondition: MultipleEditorGroupsContext
|
|
744
746
|
},
|
|
745
747
|
order: 3
|
|
@@ -748,7 +750,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
748
750
|
group: '1_focus_index',
|
|
749
751
|
command: {
|
|
750
752
|
id: 'workbench.action.focusFourthEditorGroup',
|
|
751
|
-
title: ( localize(
|
|
753
|
+
title: ( localize(3045, "Group &&4")),
|
|
752
754
|
precondition: MultipleEditorGroupsContext
|
|
753
755
|
},
|
|
754
756
|
order: 4
|
|
@@ -757,7 +759,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
757
759
|
group: '1_focus_index',
|
|
758
760
|
command: {
|
|
759
761
|
id: 'workbench.action.focusFifthEditorGroup',
|
|
760
|
-
title: ( localize(
|
|
762
|
+
title: ( localize(3046, "Group &&5")),
|
|
761
763
|
precondition: MultipleEditorGroupsContext
|
|
762
764
|
},
|
|
763
765
|
order: 5
|
|
@@ -766,7 +768,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
766
768
|
group: '2_next_prev',
|
|
767
769
|
command: {
|
|
768
770
|
id: 'workbench.action.focusNextGroup',
|
|
769
|
-
title: ( localize(
|
|
771
|
+
title: ( localize(3047, "&&Next Group")),
|
|
770
772
|
precondition: MultipleEditorGroupsContext
|
|
771
773
|
},
|
|
772
774
|
order: 1
|
|
@@ -775,7 +777,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
775
777
|
group: '2_next_prev',
|
|
776
778
|
command: {
|
|
777
779
|
id: 'workbench.action.focusPreviousGroup',
|
|
778
|
-
title: ( localize(
|
|
780
|
+
title: ( localize(3048, "&&Previous Group")),
|
|
779
781
|
precondition: MultipleEditorGroupsContext
|
|
780
782
|
},
|
|
781
783
|
order: 2
|
|
@@ -784,7 +786,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
784
786
|
group: '3_directional',
|
|
785
787
|
command: {
|
|
786
788
|
id: 'workbench.action.focusLeftGroup',
|
|
787
|
-
title: ( localize(
|
|
789
|
+
title: ( localize(3049, "Group &&Left")),
|
|
788
790
|
precondition: MultipleEditorGroupsContext
|
|
789
791
|
},
|
|
790
792
|
order: 1
|
|
@@ -793,7 +795,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
793
795
|
group: '3_directional',
|
|
794
796
|
command: {
|
|
795
797
|
id: 'workbench.action.focusRightGroup',
|
|
796
|
-
title: ( localize(
|
|
798
|
+
title: ( localize(3050, "Group &&Right")),
|
|
797
799
|
precondition: MultipleEditorGroupsContext
|
|
798
800
|
},
|
|
799
801
|
order: 2
|
|
@@ -802,7 +804,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
802
804
|
group: '3_directional',
|
|
803
805
|
command: {
|
|
804
806
|
id: 'workbench.action.focusAboveGroup',
|
|
805
|
-
title: ( localize(
|
|
807
|
+
title: ( localize(3051, "Group &&Above")),
|
|
806
808
|
precondition: MultipleEditorGroupsContext
|
|
807
809
|
},
|
|
808
810
|
order: 3
|
|
@@ -811,14 +813,15 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
811
813
|
group: '3_directional',
|
|
812
814
|
command: {
|
|
813
815
|
id: 'workbench.action.focusBelowGroup',
|
|
814
|
-
title: ( localize(
|
|
816
|
+
title: ( localize(3052, "Group &&Below")),
|
|
815
817
|
precondition: MultipleEditorGroupsContext
|
|
816
818
|
},
|
|
817
819
|
order: 4
|
|
818
820
|
});
|
|
819
821
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
820
822
|
group: '2_editor_nav',
|
|
821
|
-
title: ( localize(
|
|
823
|
+
title: ( localize(3053, "Switch &&Group")),
|
|
822
824
|
submenu: MenuId.MenubarSwitchGroupMenu,
|
|
823
825
|
order: 2
|
|
824
826
|
});
|
|
827
|
+
registerEditorFontConfigurations(getFontSnippets);
|