@codingame/monaco-vscode-views-service-override 2.1.4 → 2.2.0-next.2
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/index.d.ts +11 -9
- package/index.js +8 -6
- package/package.json +11 -11
- package/tools/views.d.ts +102 -0
- package/tools/views.js +253 -0
- package/views.d.ts +4 -99
- package/views.js +52 -280
- package/external/rollup-plugin-styles/dist/runtime/inject-css.js +0 -3
- package/vscode/src/vs/base/browser/ui/centered/centeredViewLayout.js +0 -180
- package/vscode/src/vs/base/browser/ui/grid/grid.js +0 -494
- package/vscode/src/vs/base/browser/ui/grid/gridview.css.js +0 -6
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +0 -1112
- package/vscode/src/vs/base/common/codicons.d.ts +0 -579
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +0 -24
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +0 -64
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +0 -790
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +0 -764
- package/vscode/src/vs/workbench/browser/layout.d.ts +0 -26
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +0 -612
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +0 -150
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/media/auxiliaryBarPart.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +0 -605
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +0 -335
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +0 -223
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +0 -1407
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +0 -186
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +0 -511
- package/vscode/src/vs/workbench/browser/parts/editor/editorPane.d.ts +0 -112
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +0 -1020
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +0 -391
- package/vscode/src/vs/workbench/browser/parts/editor/media/editordroptarget.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/media/compositepart.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +0 -645
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +0 -379
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +0 -68
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +0 -146
- package/vscode/src/vs/workbench/browser/parts/sidebar/media/sidebarpart.css.js +0 -6
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +0 -222
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +0 -299
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +0 -365
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +0 -135
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +0 -17
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +0 -145
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +0 -214
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +0 -78
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +0 -63
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +0 -119
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +0 -6
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +0 -79
- package/vscode/src/vs/workbench/contrib/files/browser/editors/fileEditorHandler.js +0 -74
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +0 -256
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditorTracker.js +0 -99
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +0 -444
- package/vscode/src/vs/workbench/contrib/files/browser/explorerService.js +0 -432
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +0 -786
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +0 -488
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution.js +0 -522
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +0 -152
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +0 -63
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +0 -409
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +0 -693
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +0 -240
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +0 -77
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +0 -42
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +0 -71
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/conflictActions.js +0 -348
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +0 -98
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +0 -146
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +0 -105
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +0 -401
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +0 -197
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/fixedZoneWidget.js +0 -41
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +0 -128
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +0 -612
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +0 -158
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +0 -264
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +0 -173
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +0 -6
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +0 -282
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +0 -360
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +0 -133
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +0 -290
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +0 -96
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +0 -88
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +0 -79
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +0 -648
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +0 -65
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +0 -59
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +0 -142
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +0 -121
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +0 -68
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +0 -235
- package/vscode/src/vs/workbench/services/activity/browser/activityService.js +0 -145
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +0 -670
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +0 -1484
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +0 -6
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +0 -523
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +0 -101
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +0 -713
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +0 -598
|
@@ -1,1407 +0,0 @@
|
|
|
1
|
-
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
2
|
-
import { localizeWithPath, localize2WithPath } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
4
|
-
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
5
|
-
import { IsAuxiliaryEditorPartContext, ActiveEditorGroupLockedContext, EditorPartMultipleEditorGroupsContext, MultipleEditorGroupsContext, InEditorZenModeContext, EditorGroupEditorsCountContext, ActiveEditorLastInGroupContext, EditorTabsVisibleContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, EditorPartMaximizedEditorGroupContext, ActiveEditorDirtyContext, TextCompareEditorActiveContext, ActiveCompareEditorOriginalWriteableContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
6
|
-
import { SideBySideEditorInput, SideBySideEditorInputSerializer } from 'vscode/vscode/vs/workbench/common/editor/sideBySideEditorInput';
|
|
7
|
-
import { TextResourceEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/textResourceEditor';
|
|
8
|
-
import { SideBySideEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/sideBySideEditor';
|
|
9
|
-
import { DiffEditorInput, DiffEditorInputSerializer } from 'vscode/vscode/vs/workbench/common/editor/diffEditorInput';
|
|
10
|
-
import { UntitledTextEditorInput } from 'vscode/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput';
|
|
11
|
-
import { TextResourceEditorInput } from 'vscode/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
12
|
-
import { TextDiffEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/textDiffEditor';
|
|
13
|
-
import { BinaryResourceDiffEditor } from 'vscode/vscode/vs/workbench/browser/parts/editor/binaryDiffEditor';
|
|
14
|
-
import { EditorStatusContribution, ChangeLanguageAction, ChangeEOLAction, ChangeEncodingAction } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorStatus';
|
|
15
|
-
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
16
|
-
import { registerAction2, MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
17
|
-
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
18
|
-
import { ShowEditorsInActiveGroupByMostRecentlyUsedAction, ShowAllEditorsByAppearanceAction, ShowAllEditorsByMostRecentlyUsedAction, NavigateForwardAction, NavigateBackwardsAction, OpenNextEditor, OpenPreviousEditor, OpenNextEditorInGroup, OpenPreviousEditorInGroup, OpenFirstEditorInGroup, OpenLastEditorInGroup, OpenNextRecentlyUsedEditorAction, OpenPreviousRecentlyUsedEditorAction, OpenNextRecentlyUsedEditorInGroupAction, OpenPreviousRecentlyUsedEditorInGroupAction, ReopenClosedEditorAction, ClearRecentFilesAction, CloseAllEditorsAction, CloseAllEditorGroupsAction, CloseLeftEditorsInGroupAction, CloseEditorsInOtherGroupsAction, CloseEditorInAllGroupsAction, RevertAndCloseEditorAction, SplitEditorAction, SplitEditorOrthogonalAction, SplitEditorLeftAction, SplitEditorRightAction, SplitEditorUpAction, SplitEditorDownAction, JoinTwoGroupsAction, JoinAllGroupsAction, NavigateBetweenGroupsAction, ResetGroupSizesAction, ToggleGroupSizesAction, MaximizeGroupHideSidebarAction, ToggleMaximizeEditorGroupAction, MinimizeOtherGroupsAction, MinimizeOtherGroupsHideSidebarAction, MoveEditorLeftInGroupAction, MoveEditorRightInGroupAction, MoveGroupLeftAction, MoveGroupRightAction, MoveGroupUpAction, MoveGroupDownAction, DuplicateGroupLeftAction, DuplicateGroupRightAction, DuplicateGroupUpAction, DuplicateGroupDownAction, MoveEditorToPreviousGroupAction, MoveEditorToNextGroupAction, MoveEditorToFirstGroupAction, MoveEditorToLastGroupAction, MoveEditorToLeftGroupAction, MoveEditorToRightGroupAction, MoveEditorToAboveGroupAction, MoveEditorToBelowGroupAction, SplitEditorToPreviousGroupAction, SplitEditorToNextGroupAction, SplitEditorToFirstGroupAction, SplitEditorToLastGroupAction, SplitEditorToLeftGroupAction, SplitEditorToRightGroupAction, SplitEditorToAboveGroupAction, SplitEditorToBelowGroupAction, FocusActiveGroupAction, FocusFirstGroupAction, FocusLastGroupAction, FocusPreviousGroup, FocusNextGroup, FocusLeftGroup, FocusRightGroup, FocusAboveGroup, FocusBelowGroup, NewEditorGroupLeftAction, NewEditorGroupRightAction, NewEditorGroupAboveAction, NewEditorGroupBelowAction, NavigatePreviousAction, NavigateForwardInEditsAction, NavigateBackwardsInEditsAction, NavigatePreviousInEditsAction, NavigateToLastEditLocationAction, NavigateForwardInNavigationsAction, NavigateBackwardsInNavigationsAction, NavigatePreviousInNavigationsAction, NavigateToLastNavigationLocationAction, ClearEditorHistoryAction, EditorLayoutSingleAction, EditorLayoutTwoColumnsAction, EditorLayoutThreeColumnsAction, EditorLayoutTwoRowsAction, EditorLayoutThreeRowsAction, EditorLayoutTwoByTwoGridAction, EditorLayoutTwoRowsRightAction, EditorLayoutTwoColumnsBottomAction, ToggleEditorTypeAction, ReOpenInTextEditorAction, QuickAccessPreviousRecentlyUsedEditorAction, QuickAccessLeastRecentlyUsedEditorAction, QuickAccessPreviousRecentlyUsedEditorInGroupAction, QuickAccessLeastRecentlyUsedEditorInGroupAction, QuickAccessPreviousEditorFromHistoryAction, MoveEditorToNewWindowAction, CopyEditorToNewindowAction, MoveEditorGroupToNewWindowAction, CopyEditorGroupToNewWindowAction, RestoreEditorsToMainWindowAction, NewEmptyEditorWindowAction } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorActions';
|
|
19
|
-
import { setup, LOCK_GROUP_COMMAND_ID, UNLOCK_GROUP_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, TOGGLE_LOCK_GROUP_COMMAND_ID, MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, CLOSE_EDITOR_COMMAND_ID, CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, CLOSE_SAVED_EDITORS_COMMAND_ID, CLOSE_EDITORS_IN_GROUP_COMMAND_ID, REOPEN_WITH_COMMAND_ID, KEEP_EDITOR_COMMAND_ID, PIN_EDITOR_COMMAND_ID, UNPIN_EDITOR_COMMAND_ID, SPLIT_EDITOR_IN_GROUP, JOIN_EDITOR_IN_GROUP, MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, TOGGLE_DIFF_SIDE_BY_SIDE, SHOW_EDITORS_IN_GROUP, TOGGLE_KEEP_EDITORS_COMMAND_ID, TOGGLE_MAXIMIZE_EDITOR_GROUP, SPLIT_EDITOR, TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT, GOTO_PREVIOUS_CHANGE, GOTO_NEXT_CHANGE, DIFF_SWAP_SIDES, TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE, CLOSE_PINNED_EDITOR_COMMAND_ID, CLOSE_EDITORS_AND_GROUP_COMMAND_ID, FOCUS_FIRST_SIDE_EDITOR, FOCUS_SECOND_SIDE_EDITOR } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
20
|
-
import { inQuickPickContext, getQuickNavigateHandler } from 'vscode/vscode/vs/workbench/browser/quickaccess';
|
|
21
|
-
import { KeybindingsRegistry } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
22
|
-
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
23
|
-
import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
24
|
-
import { FloatingEditorClickMenu } from 'vscode/vscode/vs/workbench/browser/codeeditor';
|
|
25
|
-
import { Extensions } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
26
|
-
import { Extensions as Extensions$1 } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
|
|
27
|
-
import { ActiveGroupEditorsByMostRecentlyUsedQuickAccess, AllEditorsByAppearanceQuickAccess, AllEditorsByMostRecentlyUsedQuickAccess } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorQuickAccess';
|
|
28
|
-
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
29
|
-
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
30
|
-
import { UntitledTextEditorInputSerializer, UntitledTextEditorWorkingCopyEditorHandler } from '../../../services/untitled/common/untitledTextEditorHandler.js';
|
|
31
|
-
import { DynamicEditorConfigurations } from './editorConfiguration.js';
|
|
32
|
-
import { ShowMultipleEditorTabsAction, ShowSingleEditorTabAction, HideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingleEditorTabAction, ZenHideEditorTabsAction, EditorActionsDefaultAction, EditorActionsTitleBarAction, HideEditorActionsAction } from 'vscode/vscode/vs/workbench/browser/actions/layoutActions';
|
|
33
|
-
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
34
|
-
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.autosave.contribution';
|
|
35
|
-
|
|
36
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localizeWithPath(
|
|
37
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
38
|
-
'textEditor',
|
|
39
|
-
"Text Editor"
|
|
40
|
-
))), [
|
|
41
|
-
( new SyncDescriptor(UntitledTextEditorInput)),
|
|
42
|
-
( new SyncDescriptor(TextResourceEditorInput))
|
|
43
|
-
]);
|
|
44
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localizeWithPath(
|
|
45
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
46
|
-
'textDiffEditor',
|
|
47
|
-
"Text Diff Editor"
|
|
48
|
-
))), [
|
|
49
|
-
( new SyncDescriptor(DiffEditorInput))
|
|
50
|
-
]);
|
|
51
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localizeWithPath(
|
|
52
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
53
|
-
'binaryDiffEditor',
|
|
54
|
-
"Binary Diff Editor"
|
|
55
|
-
))), [
|
|
56
|
-
( new SyncDescriptor(DiffEditorInput))
|
|
57
|
-
]);
|
|
58
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localizeWithPath(
|
|
59
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
60
|
-
'sideBySideEditor',
|
|
61
|
-
"Side by Side Editor"
|
|
62
|
-
))), [
|
|
63
|
-
( new SyncDescriptor(SideBySideEditorInput))
|
|
64
|
-
]);
|
|
65
|
-
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(UntitledTextEditorInput.ID, UntitledTextEditorInputSerializer);
|
|
66
|
-
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(SideBySideEditorInput.ID, SideBySideEditorInputSerializer);
|
|
67
|
-
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(DiffEditorInput.ID, DiffEditorInputSerializer);
|
|
68
|
-
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(EditorStatusContribution, 2 );
|
|
69
|
-
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(UntitledTextEditorWorkingCopyEditorHandler, 2 );
|
|
70
|
-
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(DynamicEditorConfigurations, 2 );
|
|
71
|
-
registerEditorContribution(FloatingEditorClickMenu.ID, FloatingEditorClickMenu, 1 );
|
|
72
|
-
const quickAccessRegistry = ( Registry.as(Extensions$1.Quickaccess));
|
|
73
|
-
const editorPickerContextKey = 'inEditorsPicker';
|
|
74
|
-
const editorPickerContext = ( ContextKeyExpr.and(inQuickPickContext, ( ContextKeyExpr.has(editorPickerContextKey))));
|
|
75
|
-
quickAccessRegistry.registerQuickAccessProvider({
|
|
76
|
-
ctor: ActiveGroupEditorsByMostRecentlyUsedQuickAccess,
|
|
77
|
-
prefix: ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
78
|
-
contextKey: editorPickerContextKey,
|
|
79
|
-
placeholder: ( localizeWithPath(
|
|
80
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
81
|
-
'editorQuickAccessPlaceholder',
|
|
82
|
-
"Type the name of an editor to open it."
|
|
83
|
-
)),
|
|
84
|
-
helpEntries: [{ description: ( localizeWithPath(
|
|
85
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
86
|
-
'activeGroupEditorsByMostRecentlyUsedQuickAccess',
|
|
87
|
-
"Show Editors in Active Group by Most Recently Used"
|
|
88
|
-
)), commandId: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID }]
|
|
89
|
-
});
|
|
90
|
-
quickAccessRegistry.registerQuickAccessProvider({
|
|
91
|
-
ctor: AllEditorsByAppearanceQuickAccess,
|
|
92
|
-
prefix: AllEditorsByAppearanceQuickAccess.PREFIX,
|
|
93
|
-
contextKey: editorPickerContextKey,
|
|
94
|
-
placeholder: ( localizeWithPath(
|
|
95
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
96
|
-
'editorQuickAccessPlaceholder',
|
|
97
|
-
"Type the name of an editor to open it."
|
|
98
|
-
)),
|
|
99
|
-
helpEntries: [{ description: ( localizeWithPath(
|
|
100
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
101
|
-
'allEditorsByAppearanceQuickAccess',
|
|
102
|
-
"Show All Opened Editors By Appearance"
|
|
103
|
-
)), commandId: ShowAllEditorsByAppearanceAction.ID }]
|
|
104
|
-
});
|
|
105
|
-
quickAccessRegistry.registerQuickAccessProvider({
|
|
106
|
-
ctor: AllEditorsByMostRecentlyUsedQuickAccess,
|
|
107
|
-
prefix: AllEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
108
|
-
contextKey: editorPickerContextKey,
|
|
109
|
-
placeholder: ( localizeWithPath(
|
|
110
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
111
|
-
'editorQuickAccessPlaceholder',
|
|
112
|
-
"Type the name of an editor to open it."
|
|
113
|
-
)),
|
|
114
|
-
helpEntries: [{ description: ( localizeWithPath(
|
|
115
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
116
|
-
'allEditorsByMostRecentlyUsedQuickAccess',
|
|
117
|
-
"Show All Opened Editors By Most Recently Used"
|
|
118
|
-
)), commandId: ShowAllEditorsByMostRecentlyUsedAction.ID }]
|
|
119
|
-
});
|
|
120
|
-
registerAction2(ChangeLanguageAction);
|
|
121
|
-
registerAction2(ChangeEOLAction);
|
|
122
|
-
registerAction2(ChangeEncodingAction);
|
|
123
|
-
registerAction2(NavigateForwardAction);
|
|
124
|
-
registerAction2(NavigateBackwardsAction);
|
|
125
|
-
registerAction2(OpenNextEditor);
|
|
126
|
-
registerAction2(OpenPreviousEditor);
|
|
127
|
-
registerAction2(OpenNextEditorInGroup);
|
|
128
|
-
registerAction2(OpenPreviousEditorInGroup);
|
|
129
|
-
registerAction2(OpenFirstEditorInGroup);
|
|
130
|
-
registerAction2(OpenLastEditorInGroup);
|
|
131
|
-
registerAction2(OpenNextRecentlyUsedEditorAction);
|
|
132
|
-
registerAction2(OpenPreviousRecentlyUsedEditorAction);
|
|
133
|
-
registerAction2(OpenNextRecentlyUsedEditorInGroupAction);
|
|
134
|
-
registerAction2(OpenPreviousRecentlyUsedEditorInGroupAction);
|
|
135
|
-
registerAction2(ReopenClosedEditorAction);
|
|
136
|
-
registerAction2(ClearRecentFilesAction);
|
|
137
|
-
registerAction2(ShowAllEditorsByAppearanceAction);
|
|
138
|
-
registerAction2(ShowAllEditorsByMostRecentlyUsedAction);
|
|
139
|
-
registerAction2(ShowEditorsInActiveGroupByMostRecentlyUsedAction);
|
|
140
|
-
registerAction2(CloseAllEditorsAction);
|
|
141
|
-
registerAction2(CloseAllEditorGroupsAction);
|
|
142
|
-
registerAction2(CloseLeftEditorsInGroupAction);
|
|
143
|
-
registerAction2(CloseEditorsInOtherGroupsAction);
|
|
144
|
-
registerAction2(CloseEditorInAllGroupsAction);
|
|
145
|
-
registerAction2(RevertAndCloseEditorAction);
|
|
146
|
-
registerAction2(SplitEditorAction);
|
|
147
|
-
registerAction2(SplitEditorOrthogonalAction);
|
|
148
|
-
registerAction2(SplitEditorLeftAction);
|
|
149
|
-
registerAction2(SplitEditorRightAction);
|
|
150
|
-
registerAction2(SplitEditorUpAction);
|
|
151
|
-
registerAction2(SplitEditorDownAction);
|
|
152
|
-
registerAction2(JoinTwoGroupsAction);
|
|
153
|
-
registerAction2(JoinAllGroupsAction);
|
|
154
|
-
registerAction2(NavigateBetweenGroupsAction);
|
|
155
|
-
registerAction2(ResetGroupSizesAction);
|
|
156
|
-
registerAction2(ToggleGroupSizesAction);
|
|
157
|
-
registerAction2(MaximizeGroupHideSidebarAction);
|
|
158
|
-
registerAction2(ToggleMaximizeEditorGroupAction);
|
|
159
|
-
registerAction2(MinimizeOtherGroupsAction);
|
|
160
|
-
registerAction2(MinimizeOtherGroupsHideSidebarAction);
|
|
161
|
-
registerAction2(MoveEditorLeftInGroupAction);
|
|
162
|
-
registerAction2(MoveEditorRightInGroupAction);
|
|
163
|
-
registerAction2(MoveGroupLeftAction);
|
|
164
|
-
registerAction2(MoveGroupRightAction);
|
|
165
|
-
registerAction2(MoveGroupUpAction);
|
|
166
|
-
registerAction2(MoveGroupDownAction);
|
|
167
|
-
registerAction2(DuplicateGroupLeftAction);
|
|
168
|
-
registerAction2(DuplicateGroupRightAction);
|
|
169
|
-
registerAction2(DuplicateGroupUpAction);
|
|
170
|
-
registerAction2(DuplicateGroupDownAction);
|
|
171
|
-
registerAction2(MoveEditorToPreviousGroupAction);
|
|
172
|
-
registerAction2(MoveEditorToNextGroupAction);
|
|
173
|
-
registerAction2(MoveEditorToFirstGroupAction);
|
|
174
|
-
registerAction2(MoveEditorToLastGroupAction);
|
|
175
|
-
registerAction2(MoveEditorToLeftGroupAction);
|
|
176
|
-
registerAction2(MoveEditorToRightGroupAction);
|
|
177
|
-
registerAction2(MoveEditorToAboveGroupAction);
|
|
178
|
-
registerAction2(MoveEditorToBelowGroupAction);
|
|
179
|
-
registerAction2(SplitEditorToPreviousGroupAction);
|
|
180
|
-
registerAction2(SplitEditorToNextGroupAction);
|
|
181
|
-
registerAction2(SplitEditorToFirstGroupAction);
|
|
182
|
-
registerAction2(SplitEditorToLastGroupAction);
|
|
183
|
-
registerAction2(SplitEditorToLeftGroupAction);
|
|
184
|
-
registerAction2(SplitEditorToRightGroupAction);
|
|
185
|
-
registerAction2(SplitEditorToAboveGroupAction);
|
|
186
|
-
registerAction2(SplitEditorToBelowGroupAction);
|
|
187
|
-
registerAction2(FocusActiveGroupAction);
|
|
188
|
-
registerAction2(FocusFirstGroupAction);
|
|
189
|
-
registerAction2(FocusLastGroupAction);
|
|
190
|
-
registerAction2(FocusPreviousGroup);
|
|
191
|
-
registerAction2(FocusNextGroup);
|
|
192
|
-
registerAction2(FocusLeftGroup);
|
|
193
|
-
registerAction2(FocusRightGroup);
|
|
194
|
-
registerAction2(FocusAboveGroup);
|
|
195
|
-
registerAction2(FocusBelowGroup);
|
|
196
|
-
registerAction2(NewEditorGroupLeftAction);
|
|
197
|
-
registerAction2(NewEditorGroupRightAction);
|
|
198
|
-
registerAction2(NewEditorGroupAboveAction);
|
|
199
|
-
registerAction2(NewEditorGroupBelowAction);
|
|
200
|
-
registerAction2(NavigatePreviousAction);
|
|
201
|
-
registerAction2(NavigateForwardInEditsAction);
|
|
202
|
-
registerAction2(NavigateBackwardsInEditsAction);
|
|
203
|
-
registerAction2(NavigatePreviousInEditsAction);
|
|
204
|
-
registerAction2(NavigateToLastEditLocationAction);
|
|
205
|
-
registerAction2(NavigateForwardInNavigationsAction);
|
|
206
|
-
registerAction2(NavigateBackwardsInNavigationsAction);
|
|
207
|
-
registerAction2(NavigatePreviousInNavigationsAction);
|
|
208
|
-
registerAction2(NavigateToLastNavigationLocationAction);
|
|
209
|
-
registerAction2(ClearEditorHistoryAction);
|
|
210
|
-
registerAction2(EditorLayoutSingleAction);
|
|
211
|
-
registerAction2(EditorLayoutTwoColumnsAction);
|
|
212
|
-
registerAction2(EditorLayoutThreeColumnsAction);
|
|
213
|
-
registerAction2(EditorLayoutTwoRowsAction);
|
|
214
|
-
registerAction2(EditorLayoutThreeRowsAction);
|
|
215
|
-
registerAction2(EditorLayoutTwoByTwoGridAction);
|
|
216
|
-
registerAction2(EditorLayoutTwoRowsRightAction);
|
|
217
|
-
registerAction2(EditorLayoutTwoColumnsBottomAction);
|
|
218
|
-
registerAction2(ToggleEditorTypeAction);
|
|
219
|
-
registerAction2(ReOpenInTextEditorAction);
|
|
220
|
-
registerAction2(QuickAccessPreviousRecentlyUsedEditorAction);
|
|
221
|
-
registerAction2(QuickAccessLeastRecentlyUsedEditorAction);
|
|
222
|
-
registerAction2(QuickAccessPreviousRecentlyUsedEditorInGroupAction);
|
|
223
|
-
registerAction2(QuickAccessLeastRecentlyUsedEditorInGroupAction);
|
|
224
|
-
registerAction2(QuickAccessPreviousEditorFromHistoryAction);
|
|
225
|
-
registerAction2(MoveEditorToNewWindowAction);
|
|
226
|
-
registerAction2(CopyEditorToNewindowAction);
|
|
227
|
-
registerAction2(MoveEditorGroupToNewWindowAction);
|
|
228
|
-
registerAction2(CopyEditorGroupToNewWindowAction);
|
|
229
|
-
registerAction2(RestoreEditorsToMainWindowAction);
|
|
230
|
-
registerAction2(NewEmptyEditorWindowAction);
|
|
231
|
-
const quickAccessNavigateNextInEditorPickerId = 'workbench.action.quickOpenNavigateNextInEditorPicker';
|
|
232
|
-
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
233
|
-
id: quickAccessNavigateNextInEditorPickerId,
|
|
234
|
-
weight: 200 + 50,
|
|
235
|
-
handler: getQuickNavigateHandler(quickAccessNavigateNextInEditorPickerId, true),
|
|
236
|
-
when: editorPickerContext,
|
|
237
|
-
primary: 2048 | 2 ,
|
|
238
|
-
mac: { primary: 256 | 2 }
|
|
239
|
-
});
|
|
240
|
-
const quickAccessNavigatePreviousInEditorPickerId = 'workbench.action.quickOpenNavigatePreviousInEditorPicker';
|
|
241
|
-
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
242
|
-
id: quickAccessNavigatePreviousInEditorPickerId,
|
|
243
|
-
weight: 200 + 50,
|
|
244
|
-
handler: getQuickNavigateHandler(quickAccessNavigatePreviousInEditorPickerId, false),
|
|
245
|
-
when: editorPickerContext,
|
|
246
|
-
primary: 2048 | 1024 | 2 ,
|
|
247
|
-
mac: { primary: 256 | 1024 | 2 }
|
|
248
|
-
});
|
|
249
|
-
setup();
|
|
250
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localizeWithPath(
|
|
251
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
252
|
-
'lockGroupAction',
|
|
253
|
-
"Lock Group"
|
|
254
|
-
)), icon: Codicon.unlock }, group: 'navigation', order: 10, when: ( ContextKeyExpr.and(IsAuxiliaryEditorPartContext, ( ActiveEditorGroupLockedContext.toNegated()))) });
|
|
255
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localizeWithPath(
|
|
256
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
257
|
-
'unlockGroupAction',
|
|
258
|
-
"Unlock Group"
|
|
259
|
-
)), icon: Codicon.lock, toggled: ContextKeyExpr.true() }, group: 'navigation', order: 10, when: ActiveEditorGroupLockedContext });
|
|
260
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localizeWithPath(
|
|
261
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
262
|
-
'closeGroupAction',
|
|
263
|
-
"Close Group"
|
|
264
|
-
)), icon: Codicon.close }, group: 'navigation', order: 20, when: ( ContextKeyExpr.or(IsAuxiliaryEditorPartContext, EditorPartMultipleEditorGroupsContext)) });
|
|
265
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localizeWithPath(
|
|
266
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
267
|
-
'splitUp',
|
|
268
|
-
"Split Up"
|
|
269
|
-
)) }, group: '2_split', order: 10 });
|
|
270
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localizeWithPath(
|
|
271
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
272
|
-
'splitDown',
|
|
273
|
-
"Split Down"
|
|
274
|
-
)) }, group: '2_split', order: 20 });
|
|
275
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localizeWithPath(
|
|
276
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
277
|
-
'splitLeft',
|
|
278
|
-
"Split Left"
|
|
279
|
-
)) }, group: '2_split', order: 30 });
|
|
280
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localizeWithPath(
|
|
281
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
282
|
-
'splitRight',
|
|
283
|
-
"Split Right"
|
|
284
|
-
)) }, group: '2_split', order: 40 });
|
|
285
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localizeWithPath(
|
|
286
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
287
|
-
'newWindow',
|
|
288
|
-
"New Window"
|
|
289
|
-
)) }, group: '3_window', order: 10 });
|
|
290
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localizeWithPath(
|
|
291
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
292
|
-
'toggleLockGroup',
|
|
293
|
-
"Lock Group"
|
|
294
|
-
)), toggled: ActiveEditorGroupLockedContext }, group: '4_lock', order: 10, when: ( IsAuxiliaryEditorPartContext.toNegated()) });
|
|
295
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")) }, group: '5_close', order: 10, when: MultipleEditorGroupsContext });
|
|
296
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localizeWithPath(
|
|
297
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
298
|
-
'splitUp',
|
|
299
|
-
"Split Up"
|
|
300
|
-
)) }, group: '2_split', order: 10 });
|
|
301
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localizeWithPath(
|
|
302
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
303
|
-
'splitDown',
|
|
304
|
-
"Split Down"
|
|
305
|
-
)) }, group: '2_split', order: 20 });
|
|
306
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localizeWithPath(
|
|
307
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
308
|
-
'splitLeft',
|
|
309
|
-
"Split Left"
|
|
310
|
-
)) }, group: '2_split', order: 30 });
|
|
311
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localizeWithPath(
|
|
312
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
313
|
-
'splitRight',
|
|
314
|
-
"Split Right"
|
|
315
|
-
)) }, group: '2_split', order: 40 });
|
|
316
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localizeWithPath(
|
|
317
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
318
|
-
'moveEditorGroupToNewWindow',
|
|
319
|
-
"Move into New Window"
|
|
320
|
-
)) }, group: '3_window', order: 10 });
|
|
321
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localizeWithPath(
|
|
322
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
323
|
-
'copyEditorGroupToNewWindow',
|
|
324
|
-
"Copy into New Window"
|
|
325
|
-
)) }, group: '3_window', order: 20 });
|
|
326
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localizeWithPath(
|
|
327
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
328
|
-
'tabBar',
|
|
329
|
-
"Tab Bar"
|
|
330
|
-
)), group: '4_config', order: 10, when: ( InEditorZenModeContext.negate()) });
|
|
331
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localizeWithPath(
|
|
332
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
333
|
-
'multipleTabs',
|
|
334
|
-
"Multiple Tabs"
|
|
335
|
-
)), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'multiple')) }, group: '1_config', order: 10 });
|
|
336
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localizeWithPath(
|
|
337
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
338
|
-
'singleTab',
|
|
339
|
-
"Single Tab"
|
|
340
|
-
)), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'single')) }, group: '1_config', order: 20 });
|
|
341
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localizeWithPath(
|
|
342
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
343
|
-
'hideTabs',
|
|
344
|
-
"Hidden"
|
|
345
|
-
)), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')) }, group: '1_config', order: 30 });
|
|
346
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localizeWithPath(
|
|
347
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
348
|
-
'tabBar',
|
|
349
|
-
"Tab Bar"
|
|
350
|
-
)), group: '4_config', order: 10, when: InEditorZenModeContext });
|
|
351
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localizeWithPath(
|
|
352
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
353
|
-
'multipleTabs',
|
|
354
|
-
"Multiple Tabs"
|
|
355
|
-
)), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'multiple')) }, group: '1_config', order: 10 });
|
|
356
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localizeWithPath(
|
|
357
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
358
|
-
'singleTab',
|
|
359
|
-
"Single Tab"
|
|
360
|
-
)), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'single')) }, group: '1_config', order: 20 });
|
|
361
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localizeWithPath(
|
|
362
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
363
|
-
'hideTabs',
|
|
364
|
-
"Hidden"
|
|
365
|
-
)), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'none')) }, group: '1_config', order: 30 });
|
|
366
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localizeWithPath(
|
|
367
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
368
|
-
'editorActionsPosition',
|
|
369
|
-
"Editor Actions Position"
|
|
370
|
-
)), group: '4_config', order: 20 });
|
|
371
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localizeWithPath(
|
|
372
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
373
|
-
'tabBar',
|
|
374
|
-
"Tab Bar"
|
|
375
|
-
)), toggled: ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default')) }, group: '1_config', order: 10, when: ( ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')).negate()) });
|
|
376
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localizeWithPath(
|
|
377
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
378
|
-
'titleBar',
|
|
379
|
-
"Title Bar"
|
|
380
|
-
)), 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 });
|
|
381
|
-
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localizeWithPath(
|
|
382
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
383
|
-
'hidden',
|
|
384
|
-
"Hidden"
|
|
385
|
-
)), toggled: ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'hidden')) }, group: '1_config', order: 30 });
|
|
386
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")) }, group: '1_close', order: 10 });
|
|
387
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localizeWithPath(
|
|
388
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
389
|
-
'closeOthers',
|
|
390
|
-
"Close Others"
|
|
391
|
-
)), precondition: ( EditorGroupEditorsCountContext.notEqualsTo('1')) }, group: '1_close', order: 20 });
|
|
392
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localizeWithPath(
|
|
393
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
394
|
-
'closeRight',
|
|
395
|
-
"Close to the Right"
|
|
396
|
-
)), precondition: ( ActiveEditorLastInGroupContext.toNegated()) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
|
|
397
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localizeWithPath(
|
|
398
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
399
|
-
'closeAllSaved',
|
|
400
|
-
"Close Saved"
|
|
401
|
-
)) }, group: '1_close', order: 40 });
|
|
402
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localizeWithPath(
|
|
403
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
404
|
-
'closeAll',
|
|
405
|
-
"Close All"
|
|
406
|
-
)) }, group: '1_close', order: 50 });
|
|
407
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localizeWithPath(
|
|
408
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
409
|
-
'reopenWith',
|
|
410
|
-
"Reopen Editor With..."
|
|
411
|
-
)) }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
|
|
412
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localizeWithPath(
|
|
413
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
414
|
-
'keepOpen',
|
|
415
|
-
"Keep Open"
|
|
416
|
-
)), precondition: ( ActiveEditorPinnedContext.toNegated()) }, group: '3_preview', order: 10, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
|
|
417
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'pin', "Pin")) }, group: '3_preview', order: 20, when: ( ActiveEditorStickyContext.toNegated()) });
|
|
418
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unpin', "Unpin")) }, group: '3_preview', order: 20, when: ActiveEditorStickyContext });
|
|
419
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: ( localizeWithPath(
|
|
420
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
421
|
-
'splitUp',
|
|
422
|
-
"Split Up"
|
|
423
|
-
)) }, group: '5_split', order: 10 });
|
|
424
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localizeWithPath(
|
|
425
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
426
|
-
'splitDown',
|
|
427
|
-
"Split Down"
|
|
428
|
-
)) }, group: '5_split', order: 20 });
|
|
429
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localizeWithPath(
|
|
430
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
431
|
-
'splitLeft',
|
|
432
|
-
"Split Left"
|
|
433
|
-
)) }, group: '5_split', order: 30 });
|
|
434
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localizeWithPath(
|
|
435
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
436
|
-
'splitRight',
|
|
437
|
-
"Split Right"
|
|
438
|
-
)) }, group: '5_split', order: 40 });
|
|
439
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localizeWithPath(
|
|
440
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
441
|
-
'splitInGroup',
|
|
442
|
-
"Split in Group"
|
|
443
|
-
)) }, group: '6_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
|
|
444
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localizeWithPath(
|
|
445
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
446
|
-
'joinInGroup',
|
|
447
|
-
"Join in Group"
|
|
448
|
-
)) }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
|
|
449
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localizeWithPath(
|
|
450
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
451
|
-
'moveToNewWindow',
|
|
452
|
-
"Move into New Window"
|
|
453
|
-
)) }, group: '7_new_window', order: 10 });
|
|
454
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localizeWithPath(
|
|
455
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
456
|
-
'copyToNewWindow',
|
|
457
|
-
"Copy into New Window"
|
|
458
|
-
)) }, group: '7_new_window', order: 20 });
|
|
459
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localizeWithPath(
|
|
460
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
461
|
-
'inlineView',
|
|
462
|
-
"Inline View"
|
|
463
|
-
)), toggled: ( ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false)) }, group: '1_diff', order: 10, when: ( ContextKeyExpr.has('isInDiffEditor')) });
|
|
464
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localizeWithPath(
|
|
465
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
466
|
-
'showOpenedEditors',
|
|
467
|
-
"Show Opened Editors"
|
|
468
|
-
)) }, group: '3_open', order: 10 });
|
|
469
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localizeWithPath(
|
|
470
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
471
|
-
'closeAll',
|
|
472
|
-
"Close All"
|
|
473
|
-
)) }, group: '5_close', order: 10 });
|
|
474
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localizeWithPath(
|
|
475
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
476
|
-
'closeAllSaved',
|
|
477
|
-
"Close Saved"
|
|
478
|
-
)) }, group: '5_close', order: 20 });
|
|
479
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localizeWithPath(
|
|
480
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
481
|
-
'togglePreviewMode',
|
|
482
|
-
"Enable Preview Editors"
|
|
483
|
-
)), toggled: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) }, group: '7_settings', order: 10 });
|
|
484
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localizeWithPath(
|
|
485
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
486
|
-
'maximizeGroup',
|
|
487
|
-
"Maximize Group"
|
|
488
|
-
)) }, group: '8_group_operations', order: 5, when: ( ContextKeyExpr.and(( EditorPartMaximizedEditorGroupContext.negate()), EditorPartMultipleEditorGroupsContext)) });
|
|
489
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localizeWithPath(
|
|
490
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
491
|
-
'unmaximizeGroup',
|
|
492
|
-
"Unmaximize Group"
|
|
493
|
-
)) }, group: '8_group_operations', order: 5, when: EditorPartMaximizedEditorGroupContext });
|
|
494
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localizeWithPath(
|
|
495
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
496
|
-
'lockGroup',
|
|
497
|
-
"Lock Group"
|
|
498
|
-
)), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( IsAuxiliaryEditorPartContext.toNegated()) });
|
|
499
|
-
function appendEditorToolItem(primary, when, order, alternative, precondition) {
|
|
500
|
-
const item = {
|
|
501
|
-
command: {
|
|
502
|
-
id: primary.id,
|
|
503
|
-
title: primary.title,
|
|
504
|
-
icon: primary.icon,
|
|
505
|
-
toggled: primary.toggled,
|
|
506
|
-
precondition
|
|
507
|
-
},
|
|
508
|
-
group: 'navigation',
|
|
509
|
-
when,
|
|
510
|
-
order
|
|
511
|
-
};
|
|
512
|
-
if (alternative) {
|
|
513
|
-
item.alt = {
|
|
514
|
-
id: alternative.id,
|
|
515
|
-
title: alternative.title,
|
|
516
|
-
icon: alternative.icon
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, item);
|
|
520
|
-
}
|
|
521
|
-
const SPLIT_ORDER = 100000;
|
|
522
|
-
const CLOSE_ORDER = 1000000;
|
|
523
|
-
appendEditorToolItem({
|
|
524
|
-
id: SPLIT_EDITOR,
|
|
525
|
-
title: ( localizeWithPath(
|
|
526
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
527
|
-
'splitEditorRight',
|
|
528
|
-
"Split Editor Right"
|
|
529
|
-
)),
|
|
530
|
-
icon: Codicon.splitHorizontal
|
|
531
|
-
}, ContextKeyExpr.not('splitEditorsVertically'), SPLIT_ORDER, {
|
|
532
|
-
id: SPLIT_EDITOR_DOWN,
|
|
533
|
-
title: ( localizeWithPath(
|
|
534
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
535
|
-
'splitEditorDown',
|
|
536
|
-
"Split Editor Down"
|
|
537
|
-
)),
|
|
538
|
-
icon: Codicon.splitVertical
|
|
539
|
-
});
|
|
540
|
-
appendEditorToolItem({
|
|
541
|
-
id: SPLIT_EDITOR,
|
|
542
|
-
title: ( localizeWithPath(
|
|
543
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
544
|
-
'splitEditorDown',
|
|
545
|
-
"Split Editor Down"
|
|
546
|
-
)),
|
|
547
|
-
icon: Codicon.splitVertical
|
|
548
|
-
}, ( ContextKeyExpr.has('splitEditorsVertically')), SPLIT_ORDER, {
|
|
549
|
-
id: SPLIT_EDITOR_RIGHT,
|
|
550
|
-
title: ( localizeWithPath(
|
|
551
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
552
|
-
'splitEditorRight',
|
|
553
|
-
"Split Editor Right"
|
|
554
|
-
)),
|
|
555
|
-
icon: Codicon.splitHorizontal
|
|
556
|
-
});
|
|
557
|
-
appendEditorToolItem({
|
|
558
|
-
id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
|
|
559
|
-
title: ( localizeWithPath(
|
|
560
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
561
|
-
'toggleSplitEditorInGroupLayout',
|
|
562
|
-
"Toggle Layout"
|
|
563
|
-
)),
|
|
564
|
-
icon: Codicon.editorLayout
|
|
565
|
-
}, SideBySideEditorActiveContext, SPLIT_ORDER - 1);
|
|
566
|
-
appendEditorToolItem({
|
|
567
|
-
id: CLOSE_EDITOR_COMMAND_ID,
|
|
568
|
-
title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")),
|
|
569
|
-
icon: Codicon.close
|
|
570
|
-
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
571
|
-
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
572
|
-
title: ( localizeWithPath(
|
|
573
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
574
|
-
'closeAll',
|
|
575
|
-
"Close All"
|
|
576
|
-
)),
|
|
577
|
-
icon: Codicon.closeAll
|
|
578
|
-
});
|
|
579
|
-
appendEditorToolItem({
|
|
580
|
-
id: CLOSE_EDITOR_COMMAND_ID,
|
|
581
|
-
title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")),
|
|
582
|
-
icon: Codicon.closeDirty
|
|
583
|
-
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
584
|
-
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
585
|
-
title: ( localizeWithPath(
|
|
586
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
587
|
-
'closeAll',
|
|
588
|
-
"Close All"
|
|
589
|
-
)),
|
|
590
|
-
icon: Codicon.closeAll
|
|
591
|
-
});
|
|
592
|
-
appendEditorToolItem({
|
|
593
|
-
id: UNPIN_EDITOR_COMMAND_ID,
|
|
594
|
-
title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unpin', "Unpin")),
|
|
595
|
-
icon: Codicon.pinned
|
|
596
|
-
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
597
|
-
id: CLOSE_EDITOR_COMMAND_ID,
|
|
598
|
-
title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")),
|
|
599
|
-
icon: Codicon.close
|
|
600
|
-
});
|
|
601
|
-
appendEditorToolItem({
|
|
602
|
-
id: UNPIN_EDITOR_COMMAND_ID,
|
|
603
|
-
title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'unpin', "Unpin")),
|
|
604
|
-
icon: Codicon.pinnedDirty
|
|
605
|
-
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
606
|
-
id: CLOSE_EDITOR_COMMAND_ID,
|
|
607
|
-
title: ( localizeWithPath('vs/workbench/browser/parts/editor/editor.contribution', 'close', "Close")),
|
|
608
|
-
icon: Codicon.close
|
|
609
|
-
});
|
|
610
|
-
appendEditorToolItem({
|
|
611
|
-
id: LOCK_GROUP_COMMAND_ID,
|
|
612
|
-
title: ( localizeWithPath(
|
|
613
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
614
|
-
'lockEditorGroup',
|
|
615
|
-
"Lock Group"
|
|
616
|
-
)),
|
|
617
|
-
icon: Codicon.unlock
|
|
618
|
-
}, ( ContextKeyExpr.and(IsAuxiliaryEditorPartContext, ( ActiveEditorGroupLockedContext.toNegated()))), CLOSE_ORDER - 1);
|
|
619
|
-
appendEditorToolItem({
|
|
620
|
-
id: UNLOCK_GROUP_COMMAND_ID,
|
|
621
|
-
title: ( localizeWithPath(
|
|
622
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
623
|
-
'unlockEditorGroup',
|
|
624
|
-
"Unlock Group"
|
|
625
|
-
)),
|
|
626
|
-
icon: Codicon.lock,
|
|
627
|
-
toggled: ContextKeyExpr.true()
|
|
628
|
-
}, ActiveEditorGroupLockedContext, CLOSE_ORDER - 1);
|
|
629
|
-
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localizeWithPath(
|
|
630
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
631
|
-
'previousChangeIcon',
|
|
632
|
-
'Icon for the previous change action in the diff editor.'
|
|
633
|
-
)));
|
|
634
|
-
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localizeWithPath(
|
|
635
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
636
|
-
'nextChangeIcon',
|
|
637
|
-
'Icon for the next change action in the diff editor.'
|
|
638
|
-
)));
|
|
639
|
-
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localizeWithPath(
|
|
640
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
641
|
-
'toggleWhitespace',
|
|
642
|
-
'Icon for the toggle whitespace action in the diff editor.'
|
|
643
|
-
)));
|
|
644
|
-
appendEditorToolItem({
|
|
645
|
-
id: GOTO_PREVIOUS_CHANGE,
|
|
646
|
-
title: ( localizeWithPath(
|
|
647
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
648
|
-
'navigate.prev.label',
|
|
649
|
-
"Previous Change"
|
|
650
|
-
)),
|
|
651
|
-
icon: previousChangeIcon
|
|
652
|
-
}, TextCompareEditorActiveContext, 10, undefined, EditorContextKeys.hasChanges);
|
|
653
|
-
appendEditorToolItem({
|
|
654
|
-
id: GOTO_NEXT_CHANGE,
|
|
655
|
-
title: ( localizeWithPath(
|
|
656
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
657
|
-
'navigate.next.label',
|
|
658
|
-
"Next Change"
|
|
659
|
-
)),
|
|
660
|
-
icon: nextChangeIcon
|
|
661
|
-
}, TextCompareEditorActiveContext, 11, undefined, EditorContextKeys.hasChanges);
|
|
662
|
-
appendEditorToolItem({
|
|
663
|
-
id: DIFF_SWAP_SIDES,
|
|
664
|
-
title: ( localizeWithPath(
|
|
665
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
666
|
-
'swapDiffSides',
|
|
667
|
-
"Swap Left and Right Side"
|
|
668
|
-
)),
|
|
669
|
-
icon: Codicon.arrowSwap
|
|
670
|
-
}, ( ContextKeyExpr.and(
|
|
671
|
-
TextCompareEditorActiveContext,
|
|
672
|
-
ActiveCompareEditorOriginalWriteableContext
|
|
673
|
-
)), 15, undefined, undefined);
|
|
674
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
675
|
-
command: {
|
|
676
|
-
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
677
|
-
title: ( localizeWithPath(
|
|
678
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
679
|
-
'ignoreTrimWhitespace.label',
|
|
680
|
-
"Show Leading/Trailing Whitespace Differences"
|
|
681
|
-
)),
|
|
682
|
-
icon: toggleWhitespace,
|
|
683
|
-
precondition: TextCompareEditorActiveContext,
|
|
684
|
-
toggled: ( ContextKeyExpr.equals('config.diffEditor.ignoreTrimWhitespace', false)),
|
|
685
|
-
},
|
|
686
|
-
group: 'navigation',
|
|
687
|
-
when: TextCompareEditorActiveContext,
|
|
688
|
-
order: 20,
|
|
689
|
-
});
|
|
690
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2WithPath(
|
|
691
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
692
|
-
'keepEditor',
|
|
693
|
-
'Keep Editor'
|
|
694
|
-
)), category: Categories.View }, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
|
|
695
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2WithPath(
|
|
696
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
697
|
-
'pinEditor',
|
|
698
|
-
'Pin Editor'
|
|
699
|
-
)), category: Categories.View } });
|
|
700
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2WithPath(
|
|
701
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
702
|
-
'unpinEditor',
|
|
703
|
-
'Unpin Editor'
|
|
704
|
-
)), category: Categories.View } });
|
|
705
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2WithPath(
|
|
706
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
707
|
-
'closeEditor',
|
|
708
|
-
'Close Editor'
|
|
709
|
-
)), category: Categories.View } });
|
|
710
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2WithPath(
|
|
711
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
712
|
-
'closePinnedEditor',
|
|
713
|
-
'Close Pinned Editor'
|
|
714
|
-
)), category: Categories.View } });
|
|
715
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2WithPath(
|
|
716
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
717
|
-
'closeEditorsInGroup',
|
|
718
|
-
'Close All Editors in Group'
|
|
719
|
-
)), category: Categories.View } });
|
|
720
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2WithPath(
|
|
721
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
722
|
-
'closeSavedEditors',
|
|
723
|
-
'Close Saved Editors in Group'
|
|
724
|
-
)), category: Categories.View } });
|
|
725
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2WithPath(
|
|
726
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
727
|
-
'closeOtherEditors',
|
|
728
|
-
'Close Other Editors in Group'
|
|
729
|
-
)), category: Categories.View } });
|
|
730
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2WithPath(
|
|
731
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
732
|
-
'closeRightEditors',
|
|
733
|
-
'Close Editors to the Right in Group'
|
|
734
|
-
)), category: Categories.View }, when: ( ActiveEditorLastInGroupContext.toNegated()) });
|
|
735
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2WithPath(
|
|
736
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
737
|
-
'closeEditorGroup',
|
|
738
|
-
'Close Editor Group'
|
|
739
|
-
)), category: Categories.View }, when: MultipleEditorGroupsContext });
|
|
740
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2WithPath(
|
|
741
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
742
|
-
'reopenWith',
|
|
743
|
-
"Reopen Editor With..."
|
|
744
|
-
)), category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
|
|
745
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
746
|
-
group: '1_editor',
|
|
747
|
-
command: {
|
|
748
|
-
id: ReopenClosedEditorAction.ID,
|
|
749
|
-
title: ( localizeWithPath(
|
|
750
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
751
|
-
{ key: 'miReopenClosedEditor', comment: ['&& denotes a mnemonic'] },
|
|
752
|
-
"&&Reopen Closed Editor"
|
|
753
|
-
)),
|
|
754
|
-
precondition: ( ContextKeyExpr.has('canReopenClosedEditor'))
|
|
755
|
-
},
|
|
756
|
-
order: 1
|
|
757
|
-
});
|
|
758
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
759
|
-
group: 'z_clear',
|
|
760
|
-
command: {
|
|
761
|
-
id: ClearRecentFilesAction.ID,
|
|
762
|
-
title: ( localizeWithPath(
|
|
763
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
764
|
-
{ key: 'miClearRecentOpen', comment: ['&& denotes a mnemonic'] },
|
|
765
|
-
"&&Clear Recently Opened..."
|
|
766
|
-
))
|
|
767
|
-
},
|
|
768
|
-
order: 1
|
|
769
|
-
});
|
|
770
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
771
|
-
title: ( localizeWithPath(
|
|
772
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
773
|
-
'miShare',
|
|
774
|
-
"Share"
|
|
775
|
-
)),
|
|
776
|
-
submenu: MenuId.MenubarShare,
|
|
777
|
-
group: '45_share',
|
|
778
|
-
order: 1,
|
|
779
|
-
});
|
|
780
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
781
|
-
group: '2_appearance',
|
|
782
|
-
title: ( localizeWithPath(
|
|
783
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
784
|
-
{ key: 'miEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
785
|
-
"Editor &&Layout"
|
|
786
|
-
)),
|
|
787
|
-
submenu: MenuId.MenubarLayoutMenu,
|
|
788
|
-
order: 2
|
|
789
|
-
});
|
|
790
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
791
|
-
group: '1_split',
|
|
792
|
-
command: {
|
|
793
|
-
id: SPLIT_EDITOR_UP,
|
|
794
|
-
title: {
|
|
795
|
-
original: 'Split Up',
|
|
796
|
-
value: ( localizeWithPath(
|
|
797
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
798
|
-
'miSplitEditorUpWithoutMnemonic',
|
|
799
|
-
"Split Up"
|
|
800
|
-
)),
|
|
801
|
-
mnemonicTitle: ( localizeWithPath(
|
|
802
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
803
|
-
{ key: 'miSplitEditorUp', comment: ['&& denotes a mnemonic'] },
|
|
804
|
-
"Split &&Up"
|
|
805
|
-
)),
|
|
806
|
-
}
|
|
807
|
-
},
|
|
808
|
-
order: 1
|
|
809
|
-
});
|
|
810
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
811
|
-
group: '1_split',
|
|
812
|
-
command: {
|
|
813
|
-
id: SPLIT_EDITOR_DOWN,
|
|
814
|
-
title: {
|
|
815
|
-
original: 'Split Down',
|
|
816
|
-
value: ( localizeWithPath(
|
|
817
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
818
|
-
'miSplitEditorDownWithoutMnemonic',
|
|
819
|
-
"Split Down"
|
|
820
|
-
)),
|
|
821
|
-
mnemonicTitle: ( localizeWithPath(
|
|
822
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
823
|
-
{ key: 'miSplitEditorDown', comment: ['&& denotes a mnemonic'] },
|
|
824
|
-
"Split &&Down"
|
|
825
|
-
))
|
|
826
|
-
}
|
|
827
|
-
},
|
|
828
|
-
order: 2
|
|
829
|
-
});
|
|
830
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
831
|
-
group: '1_split',
|
|
832
|
-
command: {
|
|
833
|
-
id: SPLIT_EDITOR_LEFT,
|
|
834
|
-
title: {
|
|
835
|
-
original: 'Split Left',
|
|
836
|
-
value: ( localizeWithPath(
|
|
837
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
838
|
-
'miSplitEditorLeftWithoutMnemonic',
|
|
839
|
-
"Split Left"
|
|
840
|
-
)),
|
|
841
|
-
mnemonicTitle: ( localizeWithPath(
|
|
842
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
843
|
-
{ key: 'miSplitEditorLeft', comment: ['&& denotes a mnemonic'] },
|
|
844
|
-
"Split &&Left"
|
|
845
|
-
))
|
|
846
|
-
}
|
|
847
|
-
},
|
|
848
|
-
order: 3
|
|
849
|
-
});
|
|
850
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
851
|
-
group: '1_split',
|
|
852
|
-
command: {
|
|
853
|
-
id: SPLIT_EDITOR_RIGHT,
|
|
854
|
-
title: {
|
|
855
|
-
original: 'Split Right',
|
|
856
|
-
value: ( localizeWithPath(
|
|
857
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
858
|
-
'miSplitEditorRightWithoutMnemonic',
|
|
859
|
-
"Split Right"
|
|
860
|
-
)),
|
|
861
|
-
mnemonicTitle: ( localizeWithPath(
|
|
862
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
863
|
-
{ key: 'miSplitEditorRight', comment: ['&& denotes a mnemonic'] },
|
|
864
|
-
"Split &&Right"
|
|
865
|
-
))
|
|
866
|
-
}
|
|
867
|
-
},
|
|
868
|
-
order: 4
|
|
869
|
-
});
|
|
870
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
871
|
-
group: '2_split_in_group',
|
|
872
|
-
command: {
|
|
873
|
-
id: SPLIT_EDITOR_IN_GROUP,
|
|
874
|
-
title: {
|
|
875
|
-
original: 'Split in Group',
|
|
876
|
-
value: ( localizeWithPath(
|
|
877
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
878
|
-
'miSplitEditorInGroupWithoutMnemonic',
|
|
879
|
-
"Split in Group"
|
|
880
|
-
)),
|
|
881
|
-
mnemonicTitle: ( localizeWithPath(
|
|
882
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
883
|
-
{ key: 'miSplitEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
884
|
-
"Split in &&Group"
|
|
885
|
-
))
|
|
886
|
-
}
|
|
887
|
-
},
|
|
888
|
-
when: ActiveEditorCanSplitInGroupContext,
|
|
889
|
-
order: 1
|
|
890
|
-
});
|
|
891
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
892
|
-
group: '2_split_in_group',
|
|
893
|
-
command: {
|
|
894
|
-
id: JOIN_EDITOR_IN_GROUP,
|
|
895
|
-
title: {
|
|
896
|
-
original: 'Join in Group',
|
|
897
|
-
value: ( localizeWithPath(
|
|
898
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
899
|
-
'miJoinEditorInGroupWithoutMnemonic',
|
|
900
|
-
"Join in Group"
|
|
901
|
-
)),
|
|
902
|
-
mnemonicTitle: ( localizeWithPath(
|
|
903
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
904
|
-
{ key: 'miJoinEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
905
|
-
"Join in &&Group"
|
|
906
|
-
))
|
|
907
|
-
}
|
|
908
|
-
},
|
|
909
|
-
when: SideBySideEditorActiveContext,
|
|
910
|
-
order: 1
|
|
911
|
-
});
|
|
912
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
913
|
-
group: '3_new_window',
|
|
914
|
-
command: {
|
|
915
|
-
id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
916
|
-
title: {
|
|
917
|
-
original: 'Move Editor into New Window',
|
|
918
|
-
value: ( localizeWithPath(
|
|
919
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
920
|
-
'moveEditorToNewWindow',
|
|
921
|
-
"Move Editor into New Window"
|
|
922
|
-
)),
|
|
923
|
-
mnemonicTitle: ( localizeWithPath(
|
|
924
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
925
|
-
{ key: 'miMoveEditorToNewWindow', comment: ['&& denotes a mnemonic'] },
|
|
926
|
-
"&&Move Editor into New Window"
|
|
927
|
-
))
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
order: 1
|
|
931
|
-
});
|
|
932
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
933
|
-
group: '3_new_window',
|
|
934
|
-
command: {
|
|
935
|
-
id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
936
|
-
title: {
|
|
937
|
-
original: 'Copy Editor into New Window',
|
|
938
|
-
value: ( localizeWithPath(
|
|
939
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
940
|
-
'copyEditorToNewWindow',
|
|
941
|
-
"Copy Editor into New Window"
|
|
942
|
-
)),
|
|
943
|
-
mnemonicTitle: ( localizeWithPath(
|
|
944
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
945
|
-
{ key: 'miCopyEditorToNewWindow', comment: ['&& denotes a mnemonic'] },
|
|
946
|
-
"&&Copy Editor into New Window"
|
|
947
|
-
))
|
|
948
|
-
}
|
|
949
|
-
},
|
|
950
|
-
order: 2
|
|
951
|
-
});
|
|
952
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
953
|
-
group: '4_layouts',
|
|
954
|
-
command: {
|
|
955
|
-
id: EditorLayoutSingleAction.ID,
|
|
956
|
-
title: {
|
|
957
|
-
original: 'Single',
|
|
958
|
-
value: ( localizeWithPath(
|
|
959
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
960
|
-
'miSingleColumnEditorLayoutWithoutMnemonic',
|
|
961
|
-
"Single"
|
|
962
|
-
)),
|
|
963
|
-
mnemonicTitle: ( localizeWithPath(
|
|
964
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
965
|
-
{ key: 'miSingleColumnEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
966
|
-
"&&Single"
|
|
967
|
-
))
|
|
968
|
-
}
|
|
969
|
-
},
|
|
970
|
-
order: 1
|
|
971
|
-
});
|
|
972
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
973
|
-
group: '4_layouts',
|
|
974
|
-
command: {
|
|
975
|
-
id: EditorLayoutTwoColumnsAction.ID,
|
|
976
|
-
title: {
|
|
977
|
-
original: 'Two Columns',
|
|
978
|
-
value: ( localizeWithPath(
|
|
979
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
980
|
-
'miTwoColumnsEditorLayoutWithoutMnemonic',
|
|
981
|
-
"Two Columns"
|
|
982
|
-
)),
|
|
983
|
-
mnemonicTitle: ( localizeWithPath(
|
|
984
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
985
|
-
{ key: 'miTwoColumnsEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
986
|
-
"&&Two Columns"
|
|
987
|
-
))
|
|
988
|
-
}
|
|
989
|
-
},
|
|
990
|
-
order: 3
|
|
991
|
-
});
|
|
992
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
993
|
-
group: '4_layouts',
|
|
994
|
-
command: {
|
|
995
|
-
id: EditorLayoutThreeColumnsAction.ID,
|
|
996
|
-
title: {
|
|
997
|
-
original: 'Three Columns',
|
|
998
|
-
value: ( localizeWithPath(
|
|
999
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1000
|
-
'miThreeColumnsEditorLayoutWithoutMnemonic',
|
|
1001
|
-
"Three Columns"
|
|
1002
|
-
)),
|
|
1003
|
-
mnemonicTitle: ( localizeWithPath(
|
|
1004
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1005
|
-
{ key: 'miThreeColumnsEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
1006
|
-
"T&&hree Columns"
|
|
1007
|
-
))
|
|
1008
|
-
}
|
|
1009
|
-
},
|
|
1010
|
-
order: 4
|
|
1011
|
-
});
|
|
1012
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
1013
|
-
group: '4_layouts',
|
|
1014
|
-
command: {
|
|
1015
|
-
id: EditorLayoutTwoRowsAction.ID,
|
|
1016
|
-
title: {
|
|
1017
|
-
original: 'Two Rows',
|
|
1018
|
-
value: ( localizeWithPath(
|
|
1019
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1020
|
-
'miTwoRowsEditorLayoutWithoutMnemonic',
|
|
1021
|
-
"Two Rows"
|
|
1022
|
-
)),
|
|
1023
|
-
mnemonicTitle: ( localizeWithPath(
|
|
1024
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1025
|
-
{ key: 'miTwoRowsEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
1026
|
-
"T&&wo Rows"
|
|
1027
|
-
))
|
|
1028
|
-
}
|
|
1029
|
-
},
|
|
1030
|
-
order: 5
|
|
1031
|
-
});
|
|
1032
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
1033
|
-
group: '4_layouts',
|
|
1034
|
-
command: {
|
|
1035
|
-
id: EditorLayoutThreeRowsAction.ID,
|
|
1036
|
-
title: {
|
|
1037
|
-
original: 'Three Rows',
|
|
1038
|
-
value: ( localizeWithPath(
|
|
1039
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1040
|
-
'miThreeRowsEditorLayoutWithoutMnemonic',
|
|
1041
|
-
"Three Rows"
|
|
1042
|
-
)),
|
|
1043
|
-
mnemonicTitle: ( localizeWithPath(
|
|
1044
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1045
|
-
{ key: 'miThreeRowsEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
1046
|
-
"Three &&Rows"
|
|
1047
|
-
))
|
|
1048
|
-
}
|
|
1049
|
-
},
|
|
1050
|
-
order: 6
|
|
1051
|
-
});
|
|
1052
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
1053
|
-
group: '4_layouts',
|
|
1054
|
-
command: {
|
|
1055
|
-
id: EditorLayoutTwoByTwoGridAction.ID,
|
|
1056
|
-
title: {
|
|
1057
|
-
original: 'Grid (2x2)',
|
|
1058
|
-
value: ( localizeWithPath(
|
|
1059
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1060
|
-
'miTwoByTwoGridEditorLayoutWithoutMnemonic',
|
|
1061
|
-
"Grid (2x2)"
|
|
1062
|
-
)),
|
|
1063
|
-
mnemonicTitle: ( localizeWithPath(
|
|
1064
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1065
|
-
{ key: 'miTwoByTwoGridEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
1066
|
-
"&&Grid (2x2)"
|
|
1067
|
-
))
|
|
1068
|
-
}
|
|
1069
|
-
},
|
|
1070
|
-
order: 7
|
|
1071
|
-
});
|
|
1072
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
1073
|
-
group: '4_layouts',
|
|
1074
|
-
command: {
|
|
1075
|
-
id: EditorLayoutTwoRowsRightAction.ID,
|
|
1076
|
-
title: {
|
|
1077
|
-
original: 'Two Rows Right',
|
|
1078
|
-
value: ( localizeWithPath(
|
|
1079
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1080
|
-
'miTwoRowsRightEditorLayoutWithoutMnemonic',
|
|
1081
|
-
"Two Rows Right"
|
|
1082
|
-
)),
|
|
1083
|
-
mnemonicTitle: ( localizeWithPath(
|
|
1084
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1085
|
-
{ key: 'miTwoRowsRightEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
1086
|
-
"Two R&&ows Right"
|
|
1087
|
-
))
|
|
1088
|
-
}
|
|
1089
|
-
},
|
|
1090
|
-
order: 8
|
|
1091
|
-
});
|
|
1092
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
1093
|
-
group: '4_layouts',
|
|
1094
|
-
command: {
|
|
1095
|
-
id: EditorLayoutTwoColumnsBottomAction.ID,
|
|
1096
|
-
title: {
|
|
1097
|
-
original: 'Two Columns Bottom',
|
|
1098
|
-
value: ( localizeWithPath(
|
|
1099
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1100
|
-
'miTwoColumnsBottomEditorLayoutWithoutMnemonic',
|
|
1101
|
-
"Two Columns Bottom"
|
|
1102
|
-
)),
|
|
1103
|
-
mnemonicTitle: ( localizeWithPath(
|
|
1104
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1105
|
-
{ key: 'miTwoColumnsBottomEditorLayout', comment: ['&& denotes a mnemonic'] },
|
|
1106
|
-
"Two &&Columns Bottom"
|
|
1107
|
-
))
|
|
1108
|
-
}
|
|
1109
|
-
},
|
|
1110
|
-
order: 9
|
|
1111
|
-
});
|
|
1112
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
1113
|
-
group: '1_history_nav',
|
|
1114
|
-
command: {
|
|
1115
|
-
id: 'workbench.action.navigateToLastEditLocation',
|
|
1116
|
-
title: ( localizeWithPath(
|
|
1117
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1118
|
-
{ key: 'miLastEditLocation', comment: ['&& denotes a mnemonic'] },
|
|
1119
|
-
"&&Last Edit Location"
|
|
1120
|
-
)),
|
|
1121
|
-
precondition: ( ContextKeyExpr.has('canNavigateToLastEditLocation'))
|
|
1122
|
-
},
|
|
1123
|
-
order: 3
|
|
1124
|
-
});
|
|
1125
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
1126
|
-
group: '1_sideBySide',
|
|
1127
|
-
command: {
|
|
1128
|
-
id: FOCUS_FIRST_SIDE_EDITOR,
|
|
1129
|
-
title: ( localizeWithPath(
|
|
1130
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1131
|
-
{ key: 'miFirstSideEditor', comment: ['&& denotes a mnemonic'] },
|
|
1132
|
-
"&&First Side in Editor"
|
|
1133
|
-
))
|
|
1134
|
-
},
|
|
1135
|
-
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
1136
|
-
order: 1
|
|
1137
|
-
});
|
|
1138
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
1139
|
-
group: '1_sideBySide',
|
|
1140
|
-
command: {
|
|
1141
|
-
id: FOCUS_SECOND_SIDE_EDITOR,
|
|
1142
|
-
title: ( localizeWithPath(
|
|
1143
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1144
|
-
{ key: 'miSecondSideEditor', comment: ['&& denotes a mnemonic'] },
|
|
1145
|
-
"&&Second Side in Editor"
|
|
1146
|
-
))
|
|
1147
|
-
},
|
|
1148
|
-
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
1149
|
-
order: 2
|
|
1150
|
-
});
|
|
1151
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
1152
|
-
group: '2_any',
|
|
1153
|
-
command: {
|
|
1154
|
-
id: 'workbench.action.nextEditor',
|
|
1155
|
-
title: ( localizeWithPath(
|
|
1156
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1157
|
-
{ key: 'miNextEditor', comment: ['&& denotes a mnemonic'] },
|
|
1158
|
-
"&&Next Editor"
|
|
1159
|
-
))
|
|
1160
|
-
},
|
|
1161
|
-
order: 1
|
|
1162
|
-
});
|
|
1163
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
1164
|
-
group: '2_any',
|
|
1165
|
-
command: {
|
|
1166
|
-
id: 'workbench.action.previousEditor',
|
|
1167
|
-
title: ( localizeWithPath(
|
|
1168
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1169
|
-
{ key: 'miPreviousEditor', comment: ['&& denotes a mnemonic'] },
|
|
1170
|
-
"&&Previous Editor"
|
|
1171
|
-
))
|
|
1172
|
-
},
|
|
1173
|
-
order: 2
|
|
1174
|
-
});
|
|
1175
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
1176
|
-
group: '3_any_used',
|
|
1177
|
-
command: {
|
|
1178
|
-
id: 'workbench.action.openNextRecentlyUsedEditor',
|
|
1179
|
-
title: ( localizeWithPath(
|
|
1180
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1181
|
-
{ key: 'miNextRecentlyUsedEditor', comment: ['&& denotes a mnemonic'] },
|
|
1182
|
-
"&&Next Used Editor"
|
|
1183
|
-
))
|
|
1184
|
-
},
|
|
1185
|
-
order: 1
|
|
1186
|
-
});
|
|
1187
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
1188
|
-
group: '3_any_used',
|
|
1189
|
-
command: {
|
|
1190
|
-
id: 'workbench.action.openPreviousRecentlyUsedEditor',
|
|
1191
|
-
title: ( localizeWithPath(
|
|
1192
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1193
|
-
{ key: 'miPreviousRecentlyUsedEditor', comment: ['&& denotes a mnemonic'] },
|
|
1194
|
-
"&&Previous Used Editor"
|
|
1195
|
-
))
|
|
1196
|
-
},
|
|
1197
|
-
order: 2
|
|
1198
|
-
});
|
|
1199
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
1200
|
-
group: '4_group',
|
|
1201
|
-
command: {
|
|
1202
|
-
id: 'workbench.action.nextEditorInGroup',
|
|
1203
|
-
title: ( localizeWithPath(
|
|
1204
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1205
|
-
{ key: 'miNextEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
1206
|
-
"&&Next Editor in Group"
|
|
1207
|
-
))
|
|
1208
|
-
},
|
|
1209
|
-
order: 1
|
|
1210
|
-
});
|
|
1211
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
1212
|
-
group: '4_group',
|
|
1213
|
-
command: {
|
|
1214
|
-
id: 'workbench.action.previousEditorInGroup',
|
|
1215
|
-
title: ( localizeWithPath(
|
|
1216
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1217
|
-
{ key: 'miPreviousEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
1218
|
-
"&&Previous Editor in Group"
|
|
1219
|
-
))
|
|
1220
|
-
},
|
|
1221
|
-
order: 2
|
|
1222
|
-
});
|
|
1223
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
1224
|
-
group: '5_group_used',
|
|
1225
|
-
command: {
|
|
1226
|
-
id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
1227
|
-
title: ( localizeWithPath(
|
|
1228
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1229
|
-
{ key: 'miNextUsedEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
1230
|
-
"&&Next Used Editor in Group"
|
|
1231
|
-
))
|
|
1232
|
-
},
|
|
1233
|
-
order: 1
|
|
1234
|
-
});
|
|
1235
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
1236
|
-
group: '5_group_used',
|
|
1237
|
-
command: {
|
|
1238
|
-
id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
1239
|
-
title: ( localizeWithPath(
|
|
1240
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1241
|
-
{ key: 'miPreviousUsedEditorInGroup', comment: ['&& denotes a mnemonic'] },
|
|
1242
|
-
"&&Previous Used Editor in Group"
|
|
1243
|
-
))
|
|
1244
|
-
},
|
|
1245
|
-
order: 2
|
|
1246
|
-
});
|
|
1247
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
1248
|
-
group: '2_editor_nav',
|
|
1249
|
-
title: ( localizeWithPath(
|
|
1250
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1251
|
-
{ key: 'miSwitchEditor', comment: ['&& denotes a mnemonic'] },
|
|
1252
|
-
"Switch &&Editor"
|
|
1253
|
-
)),
|
|
1254
|
-
submenu: MenuId.MenubarSwitchEditorMenu,
|
|
1255
|
-
order: 1
|
|
1256
|
-
});
|
|
1257
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
1258
|
-
group: '1_focus_index',
|
|
1259
|
-
command: {
|
|
1260
|
-
id: 'workbench.action.focusFirstEditorGroup',
|
|
1261
|
-
title: ( localizeWithPath(
|
|
1262
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1263
|
-
{ key: 'miFocusFirstGroup', comment: ['&& denotes a mnemonic'] },
|
|
1264
|
-
"Group &&1"
|
|
1265
|
-
))
|
|
1266
|
-
},
|
|
1267
|
-
order: 1
|
|
1268
|
-
});
|
|
1269
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
1270
|
-
group: '1_focus_index',
|
|
1271
|
-
command: {
|
|
1272
|
-
id: 'workbench.action.focusSecondEditorGroup',
|
|
1273
|
-
title: ( localizeWithPath(
|
|
1274
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1275
|
-
{ key: 'miFocusSecondGroup', comment: ['&& denotes a mnemonic'] },
|
|
1276
|
-
"Group &&2"
|
|
1277
|
-
))
|
|
1278
|
-
},
|
|
1279
|
-
order: 2
|
|
1280
|
-
});
|
|
1281
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
1282
|
-
group: '1_focus_index',
|
|
1283
|
-
command: {
|
|
1284
|
-
id: 'workbench.action.focusThirdEditorGroup',
|
|
1285
|
-
title: ( localizeWithPath(
|
|
1286
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1287
|
-
{ key: 'miFocusThirdGroup', comment: ['&& denotes a mnemonic'] },
|
|
1288
|
-
"Group &&3"
|
|
1289
|
-
)),
|
|
1290
|
-
precondition: MultipleEditorGroupsContext
|
|
1291
|
-
},
|
|
1292
|
-
order: 3
|
|
1293
|
-
});
|
|
1294
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
1295
|
-
group: '1_focus_index',
|
|
1296
|
-
command: {
|
|
1297
|
-
id: 'workbench.action.focusFourthEditorGroup',
|
|
1298
|
-
title: ( localizeWithPath(
|
|
1299
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1300
|
-
{ key: 'miFocusFourthGroup', comment: ['&& denotes a mnemonic'] },
|
|
1301
|
-
"Group &&4"
|
|
1302
|
-
)),
|
|
1303
|
-
precondition: MultipleEditorGroupsContext
|
|
1304
|
-
},
|
|
1305
|
-
order: 4
|
|
1306
|
-
});
|
|
1307
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
1308
|
-
group: '1_focus_index',
|
|
1309
|
-
command: {
|
|
1310
|
-
id: 'workbench.action.focusFifthEditorGroup',
|
|
1311
|
-
title: ( localizeWithPath(
|
|
1312
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1313
|
-
{ key: 'miFocusFifthGroup', comment: ['&& denotes a mnemonic'] },
|
|
1314
|
-
"Group &&5"
|
|
1315
|
-
)),
|
|
1316
|
-
precondition: MultipleEditorGroupsContext
|
|
1317
|
-
},
|
|
1318
|
-
order: 5
|
|
1319
|
-
});
|
|
1320
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
1321
|
-
group: '2_next_prev',
|
|
1322
|
-
command: {
|
|
1323
|
-
id: 'workbench.action.focusNextGroup',
|
|
1324
|
-
title: ( localizeWithPath(
|
|
1325
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1326
|
-
{ key: 'miNextGroup', comment: ['&& denotes a mnemonic'] },
|
|
1327
|
-
"&&Next Group"
|
|
1328
|
-
)),
|
|
1329
|
-
precondition: MultipleEditorGroupsContext
|
|
1330
|
-
},
|
|
1331
|
-
order: 1
|
|
1332
|
-
});
|
|
1333
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
1334
|
-
group: '2_next_prev',
|
|
1335
|
-
command: {
|
|
1336
|
-
id: 'workbench.action.focusPreviousGroup',
|
|
1337
|
-
title: ( localizeWithPath(
|
|
1338
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1339
|
-
{ key: 'miPreviousGroup', comment: ['&& denotes a mnemonic'] },
|
|
1340
|
-
"&&Previous Group"
|
|
1341
|
-
)),
|
|
1342
|
-
precondition: MultipleEditorGroupsContext
|
|
1343
|
-
},
|
|
1344
|
-
order: 2
|
|
1345
|
-
});
|
|
1346
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
1347
|
-
group: '3_directional',
|
|
1348
|
-
command: {
|
|
1349
|
-
id: 'workbench.action.focusLeftGroup',
|
|
1350
|
-
title: ( localizeWithPath(
|
|
1351
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1352
|
-
{ key: 'miFocusLeftGroup', comment: ['&& denotes a mnemonic'] },
|
|
1353
|
-
"Group &&Left"
|
|
1354
|
-
)),
|
|
1355
|
-
precondition: MultipleEditorGroupsContext
|
|
1356
|
-
},
|
|
1357
|
-
order: 1
|
|
1358
|
-
});
|
|
1359
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
1360
|
-
group: '3_directional',
|
|
1361
|
-
command: {
|
|
1362
|
-
id: 'workbench.action.focusRightGroup',
|
|
1363
|
-
title: ( localizeWithPath(
|
|
1364
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1365
|
-
{ key: 'miFocusRightGroup', comment: ['&& denotes a mnemonic'] },
|
|
1366
|
-
"Group &&Right"
|
|
1367
|
-
)),
|
|
1368
|
-
precondition: MultipleEditorGroupsContext
|
|
1369
|
-
},
|
|
1370
|
-
order: 2
|
|
1371
|
-
});
|
|
1372
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
1373
|
-
group: '3_directional',
|
|
1374
|
-
command: {
|
|
1375
|
-
id: 'workbench.action.focusAboveGroup',
|
|
1376
|
-
title: ( localizeWithPath(
|
|
1377
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1378
|
-
{ key: 'miFocusAboveGroup', comment: ['&& denotes a mnemonic'] },
|
|
1379
|
-
"Group &&Above"
|
|
1380
|
-
)),
|
|
1381
|
-
precondition: MultipleEditorGroupsContext
|
|
1382
|
-
},
|
|
1383
|
-
order: 3
|
|
1384
|
-
});
|
|
1385
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
1386
|
-
group: '3_directional',
|
|
1387
|
-
command: {
|
|
1388
|
-
id: 'workbench.action.focusBelowGroup',
|
|
1389
|
-
title: ( localizeWithPath(
|
|
1390
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1391
|
-
{ key: 'miFocusBelowGroup', comment: ['&& denotes a mnemonic'] },
|
|
1392
|
-
"Group &&Below"
|
|
1393
|
-
)),
|
|
1394
|
-
precondition: MultipleEditorGroupsContext
|
|
1395
|
-
},
|
|
1396
|
-
order: 4
|
|
1397
|
-
});
|
|
1398
|
-
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
1399
|
-
group: '2_editor_nav',
|
|
1400
|
-
title: ( localizeWithPath(
|
|
1401
|
-
'vs/workbench/browser/parts/editor/editor.contribution',
|
|
1402
|
-
{ key: 'miSwitchGroup', comment: ['&& denotes a mnemonic'] },
|
|
1403
|
-
"Switch &&Group"
|
|
1404
|
-
)),
|
|
1405
|
-
submenu: MenuId.MenubarSwitchGroupMenu,
|
|
1406
|
-
order: 2
|
|
1407
|
-
});
|