@codingame/monaco-vscode-view-common-service-override 11.1.2 → 12.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/index.d.ts +3 -1
- package/index.js +110 -1
- package/package.json +64 -10
- package/service-override/tools/editorAssets.d.ts +1 -0
- package/service-override/tools/editorAssets.js +5 -0
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.d.ts +21 -0
- package/vscode/src/vs/platform/actions/browser/actionViewItemService.js +2 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.d.ts +2 -0
- package/vscode/src/vs/platform/webview/common/mimeTypes.js +1 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.d.ts +18 -0
- package/vscode/src/vs/platform/webview/common/webviewPortMapping.js +1 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.d.ts +7 -0
- package/vscode/src/vs/workbench/api/browser/viewsExtensionPoint.js +116 -115
- package/vscode/src/vs/workbench/browser/actions/listCommands.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/actions/listCommands.js +120 -125
- package/vscode/src/vs/workbench/browser/actions/navigationActions.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/actions/navigationActions.js +81 -74
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +216 -250
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.d.ts +21 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +26 -25
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.d.ts +32 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePartService.js +10 -8
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchy.contribution.js +58 -64
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyPeek.js +48 -38
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.d.ts +54 -0
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/callHierarchyTree.js +19 -40
- package/vscode/src/vs/workbench/contrib/callHierarchy/browser/media/callHierarchy.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditor.contribution.js +7 -5
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInputFactory.js +6 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditors.js +6 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/media/customEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/contributedCustomEditors.js +16 -16
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.d.ts +65 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +15 -10
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditorModelManager.js +1 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/customEditor/common/extensionPoint.js +27 -25
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpener.contribution.js +4 -2
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.contribution.js +6 -386
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/languageStatus.js +385 -0
- package/vscode/src/vs/workbench/contrib/languageStatus/browser/media/languageStatus.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/limitIndicator/browser/limitIndicator.contribution.js +20 -20
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.d.ts +105 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/commands.js +50 -62
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/commands/devCommands.js +16 -15
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditor.contribution.js +15 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorSerializer.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/colors.js +14 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editorGutter.js +2 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/baseCodeEditorView.js +15 -14
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/codeEditorView.js +3 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/inputCodeEditorView.js +37 -39
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/editors/resultCodeEditorView.js +22 -21
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/lineAlignment.js +3 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/media/mergeEditor.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.d.ts +117 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/mergeEditor.js +57 -53
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/scrollSynchronizer.js +27 -25
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewModel.js +15 -13
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.d.ts +29 -0
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/view/viewZones.js +4 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/keyboardLayoutPicker.js +28 -28
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.contribution.js +7 -5
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/sash/browser/sash.js +2 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/media/typeHierarchy.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchy.contribution.js +54 -56
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyPeek.js +48 -38
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/typeHierarchy/browser/typeHierarchyTree.js +19 -30
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.d.ts +101 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/overlayWebview.js +3 -2
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/resourceLoading.js +7 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/themeing.js +7 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.d.ts +139 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewElement.js +58 -56
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindWidget.js +4 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewService.js +2 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewCommands.js +28 -28
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.d.ts +50 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditorInputSerializer.js +3 -2
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewPanel.contribution.js +15 -13
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewPane.js +10 -8
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.d.ts +30 -0
- package/vscode/src/vs/workbench/contrib/webviewView/browser/webviewViewService.js +1 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.d.ts +6 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorPaneService.js +3 -1
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.d.ts +60 -0
- package/vscode/src/vs/workbench/services/editor/browser/editorResolverService.js +64 -63
- package/vscode/src/vs/workbench/services/history/browser/historyService.d.ts +184 -0
- package/vscode/src/vs/workbench/services/history/browser/historyService.js +154 -148
- package/vscode/src/vs/workbench/services/progress/browser/media/progressService.css.js +1 -1
- package/vscode/src/vs/workbench/services/progress/browser/progressService.d.ts +36 -0
- package/vscode/src/vs/workbench/services/progress/browser/progressService.js +59 -54
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.d.ts +34 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorHandler.js +4 -3
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.d.ts +71 -0
- package/vscode/src/vs/workbench/services/untitled/common/untitledTextEditorService.js +4 -2
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.d.ts +122 -0
- package/vscode/src/vs/workbench/services/views/browser/viewDescriptorService.js +86 -90
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.d.ts +80 -0
- package/vscode/src/vs/workbench/services/views/common/viewContainerModel.js +58 -64
- package/override/vs/workbench/browser/parts/editor/textEditor.js +0 -5
- package/override/vs/workbench/browser/parts/editor/textEditor.weak.js +0 -11
- package/tools/editorAssets.js +0 -4
- package/tools/url.js +0 -10
- package/viewCommon.js +0 -109
|
@@ -1,88 +1,88 @@
|
|
|
1
|
+
|
|
1
2
|
import { Registry } from 'vscode/vscode/vs/platform/registry/common/platform';
|
|
2
3
|
import { localize, localize2 } from 'vscode/vscode/vs/nls';
|
|
3
|
-
import { EditorPaneDescriptor } from 'vscode/vscode/vs/workbench/browser/editor';
|
|
4
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-9e888134-1a6f-58d9-b0e6-0fc047448366-common/vscode/vs/workbench/browser/editor';
|
|
4
5
|
import { EditorExtensions } from 'vscode/vscode/vs/workbench/common/editor';
|
|
5
6
|
import { IsAuxiliaryEditorPartContext, ActiveEditorGroupLockedContext, EditorPartMultipleEditorGroupsContext, MultipleEditorGroupsContext, InEditorZenModeContext, EditorGroupEditorsCountContext, ActiveEditorLastInGroupContext, MultipleEditorsSelectedInGroupContext, EditorTabsVisibleContext, ActiveEditorAvailableEditorIdsContext, ActiveEditorPinnedContext, ActiveEditorStickyContext, ActiveEditorCanSplitInGroupContext, SideBySideEditorActiveContext, EditorPartMaximizedEditorGroupContext, ActiveEditorDirtyContext, TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext } from 'vscode/vscode/vs/workbench/common/contextkeys';
|
|
6
|
-
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';
|
|
7
|
+
import { SideBySideEditorInput, SideBySideEditorInputSerializer } from '@codingame/monaco-vscode-5108c2c9-4ada-52d8-8c4b-fe03b3160e71-common/vscode/vs/workbench/common/editor/sideBySideEditorInput';
|
|
8
|
+
import { TextResourceEditor } from '@codingame/monaco-vscode-523730aa-81e6-55d7-9916-87ad537fe087-common/vscode/vs/workbench/browser/parts/editor/textResourceEditor';
|
|
9
|
+
import { SideBySideEditor } from '@codingame/monaco-vscode-5108c2c9-4ada-52d8-8c4b-fe03b3160e71-common/vscode/vs/workbench/browser/parts/editor/sideBySideEditor';
|
|
10
|
+
import { DiffEditorInput, DiffEditorInputSerializer } from '@codingame/monaco-vscode-5108c2c9-4ada-52d8-8c4b-fe03b3160e71-common/vscode/vs/workbench/common/editor/diffEditorInput';
|
|
11
|
+
import { UntitledTextEditorInput } from '@codingame/monaco-vscode-5945a5e2-a66c-5a82-bd2c-1965724b29eb-common/vscode/vs/workbench/services/untitled/common/untitledTextEditorInput';
|
|
12
|
+
import { TextResourceEditorInput } from '@codingame/monaco-vscode-0139c6af-2375-559c-af57-b738f2fd6d8e-common/vscode/vs/workbench/common/editor/textResourceEditorInput';
|
|
13
|
+
import { TextDiffEditor } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/browser/parts/editor/textDiffEditor';
|
|
14
|
+
import { BinaryResourceDiffEditor } from '@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common/vscode/vs/workbench/browser/parts/editor/binaryDiffEditor';
|
|
15
|
+
import { EditorStatusContribution, ChangeLanguageAction, ChangeEOLAction, ChangeEncodingAction } from '@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common/vscode/vs/workbench/browser/parts/editor/editorStatus';
|
|
15
16
|
import { Categories } from 'vscode/vscode/vs/platform/action/common/actionCommonCategories';
|
|
16
17
|
import { registerAction2, MenuRegistry, MenuId } from 'vscode/vscode/vs/platform/actions/common/actions';
|
|
17
18
|
import { SyncDescriptor } from 'vscode/vscode/vs/platform/instantiation/common/descriptors';
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
19
|
+
import { KeyMod, KeyCode } from 'vscode/vscode/vs/base/common/keyCodes';
|
|
20
|
+
import { ShowEditorsInActiveGroupByMostRecentlyUsedAction, ShowAllEditorsByAppearanceAction, ShowAllEditorsByMostRecentlyUsedAction, ToggleOvertypeInsertMode, 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 '@codingame/monaco-vscode-c3c61c00-c254-5856-9dc9-d7929c1f9062-common/vscode/vs/workbench/browser/parts/editor/editorActions';
|
|
21
|
+
import { setup, LOCK_GROUP_COMMAND_ID, UNLOCK_GROUP_COMMAND_ID, CLOSE_EDITOR_GROUP_COMMAND_ID, SPLIT_EDITOR_UP, SPLIT_EDITOR_DOWN, SPLIT_EDITOR_LEFT, SPLIT_EDITOR_RIGHT, NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, TOGGLE_LOCK_GROUP_COMMAND_ID, MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, CLOSE_EDITOR_COMMAND_ID, CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, CLOSE_SAVED_EDITORS_COMMAND_ID, CLOSE_EDITORS_IN_GROUP_COMMAND_ID, REOPEN_WITH_COMMAND_ID, KEEP_EDITOR_COMMAND_ID, PIN_EDITOR_COMMAND_ID, UNPIN_EDITOR_COMMAND_ID, SPLIT_EDITOR_IN_GROUP, JOIN_EDITOR_IN_GROUP, MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, SHOW_EDITORS_IN_GROUP, TOGGLE_KEEP_EDITORS_COMMAND_ID, TOGGLE_MAXIMIZE_EDITOR_GROUP, SPLIT_EDITOR, TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT, CLOSE_PINNED_EDITOR_COMMAND_ID, CLOSE_EDITORS_AND_GROUP_COMMAND_ID, FOCUS_FIRST_SIDE_EDITOR, FOCUS_SECOND_SIDE_EDITOR } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/browser/parts/editor/editorCommands';
|
|
22
|
+
import { TOGGLE_DIFF_SIDE_BY_SIDE, GOTO_PREVIOUS_CHANGE, GOTO_NEXT_CHANGE, DIFF_SWAP_SIDES, TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/browser/parts/editor/diffEditorCommands';
|
|
23
|
+
import { inQuickPickContext, getQuickNavigateHandler } from '@codingame/monaco-vscode-56402b83-4a60-5b15-86f9-71fe99c32744-common/vscode/vs/workbench/browser/quickaccess';
|
|
24
|
+
import { KeybindingsRegistry, KeybindingWeight } from 'vscode/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
23
25
|
import { ContextKeyExpr } from 'vscode/vscode/vs/platform/contextkey/common/contextkey';
|
|
24
26
|
import { isMacintosh } from 'vscode/vscode/vs/base/common/platform';
|
|
25
|
-
import { registerEditorContribution } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
27
|
+
import { registerEditorContribution, EditorContributionInstantiation } from 'vscode/vscode/vs/editor/browser/editorExtensions';
|
|
26
28
|
import { FloatingEditorClickMenu } from 'vscode/vscode/vs/workbench/browser/codeeditor';
|
|
27
|
-
import { registerWorkbenchContribution2 } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
29
|
+
import { registerWorkbenchContribution2, WorkbenchPhase } from 'vscode/vscode/vs/workbench/common/contributions';
|
|
28
30
|
import { Extensions } from 'vscode/vscode/vs/platform/quickinput/common/quickAccess';
|
|
29
|
-
import { ActiveGroupEditorsByMostRecentlyUsedQuickAccess, AllEditorsByAppearanceQuickAccess, AllEditorsByMostRecentlyUsedQuickAccess } from 'vscode/vscode/vs/workbench/browser/parts/editor/editorQuickAccess';
|
|
31
|
+
import { ActiveGroupEditorsByMostRecentlyUsedQuickAccess, AllEditorsByAppearanceQuickAccess, AllEditorsByMostRecentlyUsedQuickAccess } from '@codingame/monaco-vscode-f48982c4-9e82-55e2-b800-20e6d1e6096f-common/vscode/vs/workbench/browser/parts/editor/editorQuickAccess';
|
|
30
32
|
import { FileAccess } from 'vscode/vscode/vs/base/common/network';
|
|
31
33
|
import { Codicon } from 'vscode/vscode/vs/base/common/codicons';
|
|
32
34
|
import { registerIcon } from 'vscode/vscode/vs/platform/theme/common/iconRegistry';
|
|
33
35
|
import { UntitledTextEditorInputSerializer, UntitledTextEditorWorkingCopyEditorHandler } from '../../../services/untitled/common/untitledTextEditorHandler.js';
|
|
34
36
|
import { DynamicEditorConfigurations } from './editorConfiguration.js';
|
|
35
|
-
import { ShowMultipleEditorTabsAction, ShowSingleEditorTabAction, HideEditorTabsAction, ZenShowMultipleEditorTabsAction, ZenShowSingleEditorTabAction, ZenHideEditorTabsAction, EditorActionsDefaultAction, EditorActionsTitleBarAction, HideEditorActionsAction, ConfigureEditorTabsAction, ConfigureEditorAction } from 'vscode/vscode/vs/workbench/browser/actions/layoutActions';
|
|
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';
|
|
36
38
|
import { EditorContextKeys } from 'vscode/vscode/vs/editor/common/editorContextKeys';
|
|
37
|
-
import 'vscode/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
|
|
39
|
+
import '@codingame/monaco-vscode-b1e8558d-1726-5299-bc75-e43ee6d1a124-common/vscode/vs/workbench/browser/parts/editor/editor.contribution._autosave';
|
|
38
40
|
|
|
39
|
-
(
|
|
40
|
-
(
|
|
41
|
-
(
|
|
41
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextResourceEditor, TextResourceEditor.ID, ( localize(2794, "Text Editor"))), [
|
|
42
|
+
( new SyncDescriptor(UntitledTextEditorInput)),
|
|
43
|
+
( new SyncDescriptor(TextResourceEditorInput))
|
|
42
44
|
]);
|
|
43
|
-
(
|
|
44
|
-
(
|
|
45
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(TextDiffEditor, TextDiffEditor.ID, ( localize(2795, "Text Diff Editor"))), [
|
|
46
|
+
( new SyncDescriptor(DiffEditorInput))
|
|
45
47
|
]);
|
|
46
|
-
(
|
|
47
|
-
(
|
|
48
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(BinaryResourceDiffEditor, BinaryResourceDiffEditor.ID, ( localize(2796, "Binary Diff Editor"))), [
|
|
49
|
+
( new SyncDescriptor(DiffEditorInput))
|
|
48
50
|
]);
|
|
49
|
-
(
|
|
50
|
-
(
|
|
51
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(SideBySideEditor, SideBySideEditor.ID, ( localize(2797, "Side by Side Editor"))), [
|
|
52
|
+
( new SyncDescriptor(SideBySideEditorInput))
|
|
51
53
|
]);
|
|
52
|
-
(
|
|
53
|
-
(
|
|
54
|
-
(
|
|
55
|
-
registerWorkbenchContribution2(EditorStatusContribution.ID, EditorStatusContribution,
|
|
56
|
-
registerWorkbenchContribution2(UntitledTextEditorWorkingCopyEditorHandler.ID, UntitledTextEditorWorkingCopyEditorHandler,
|
|
57
|
-
registerWorkbenchContribution2(DynamicEditorConfigurations.ID, DynamicEditorConfigurations,
|
|
58
|
-
registerEditorContribution(FloatingEditorClickMenu.ID, FloatingEditorClickMenu,
|
|
59
|
-
const quickAccessRegistry = (
|
|
54
|
+
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(UntitledTextEditorInput.ID, UntitledTextEditorInputSerializer);
|
|
55
|
+
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(SideBySideEditorInput.ID, SideBySideEditorInputSerializer);
|
|
56
|
+
( Registry.as(EditorExtensions.EditorFactory)).registerEditorSerializer(DiffEditorInput.ID, DiffEditorInputSerializer);
|
|
57
|
+
registerWorkbenchContribution2(EditorStatusContribution.ID, EditorStatusContribution, WorkbenchPhase.BlockRestore);
|
|
58
|
+
registerWorkbenchContribution2(UntitledTextEditorWorkingCopyEditorHandler.ID, UntitledTextEditorWorkingCopyEditorHandler, WorkbenchPhase.BlockRestore);
|
|
59
|
+
registerWorkbenchContribution2(DynamicEditorConfigurations.ID, DynamicEditorConfigurations, WorkbenchPhase.BlockRestore);
|
|
60
|
+
registerEditorContribution(FloatingEditorClickMenu.ID, FloatingEditorClickMenu, EditorContributionInstantiation.AfterFirstRender);
|
|
61
|
+
const quickAccessRegistry = ( Registry.as(Extensions.Quickaccess));
|
|
60
62
|
const editorPickerContextKey = 'inEditorsPicker';
|
|
61
|
-
const editorPickerContext = (
|
|
62
|
-
inQuickPickContext,
|
|
63
|
-
(ContextKeyExpr.has(editorPickerContextKey))
|
|
64
|
-
)));
|
|
63
|
+
const editorPickerContext = ( ContextKeyExpr.and(inQuickPickContext, ( ContextKeyExpr.has(editorPickerContextKey))));
|
|
65
64
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
66
65
|
ctor: ActiveGroupEditorsByMostRecentlyUsedQuickAccess,
|
|
67
66
|
prefix: ActiveGroupEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
68
67
|
contextKey: editorPickerContextKey,
|
|
69
|
-
placeholder: ( localize(
|
|
70
|
-
helpEntries: [{ description: ( localize(
|
|
68
|
+
placeholder: ( localize(2798, "Type the name of an editor to open it.")),
|
|
69
|
+
helpEntries: [{ description: ( localize(2799, "Show Editors in Active Group by Most Recently Used")), commandId: ShowEditorsInActiveGroupByMostRecentlyUsedAction.ID }]
|
|
71
70
|
});
|
|
72
71
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
73
72
|
ctor: AllEditorsByAppearanceQuickAccess,
|
|
74
73
|
prefix: AllEditorsByAppearanceQuickAccess.PREFIX,
|
|
75
74
|
contextKey: editorPickerContextKey,
|
|
76
|
-
placeholder: ( localize(
|
|
77
|
-
helpEntries: [{ description: ( localize(
|
|
75
|
+
placeholder: ( localize(2798, "Type the name of an editor to open it.")),
|
|
76
|
+
helpEntries: [{ description: ( localize(2800, "Show All Opened Editors By Appearance")), commandId: ShowAllEditorsByAppearanceAction.ID }]
|
|
78
77
|
});
|
|
79
78
|
quickAccessRegistry.registerQuickAccessProvider({
|
|
80
79
|
ctor: AllEditorsByMostRecentlyUsedQuickAccess,
|
|
81
80
|
prefix: AllEditorsByMostRecentlyUsedQuickAccess.PREFIX,
|
|
82
81
|
contextKey: editorPickerContextKey,
|
|
83
|
-
placeholder: ( localize(
|
|
84
|
-
helpEntries: [{ description: ( localize(
|
|
82
|
+
placeholder: ( localize(2798, "Type the name of an editor to open it.")),
|
|
83
|
+
helpEntries: [{ description: ( localize(2801, "Show All Opened Editors By Most Recently Used")), commandId: ShowAllEditorsByMostRecentlyUsedAction.ID }]
|
|
85
84
|
});
|
|
85
|
+
registerAction2(ToggleOvertypeInsertMode);
|
|
86
86
|
registerAction2(ChangeLanguageAction);
|
|
87
87
|
registerAction2(ChangeEOLAction);
|
|
88
88
|
registerAction2(ChangeEncodingAction);
|
|
@@ -197,105 +197,90 @@ registerAction2(NewEmptyEditorWindowAction);
|
|
|
197
197
|
const quickAccessNavigateNextInEditorPickerId = 'workbench.action.quickOpenNavigateNextInEditorPicker';
|
|
198
198
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
199
199
|
id: quickAccessNavigateNextInEditorPickerId,
|
|
200
|
-
weight:
|
|
200
|
+
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
201
201
|
handler: getQuickNavigateHandler(quickAccessNavigateNextInEditorPickerId, true),
|
|
202
202
|
when: editorPickerContext,
|
|
203
|
-
primary:
|
|
204
|
-
mac: { primary:
|
|
203
|
+
primary: KeyMod.CtrlCmd | KeyCode.Tab,
|
|
204
|
+
mac: { primary: KeyMod.WinCtrl | KeyCode.Tab }
|
|
205
205
|
});
|
|
206
206
|
const quickAccessNavigatePreviousInEditorPickerId = 'workbench.action.quickOpenNavigatePreviousInEditorPicker';
|
|
207
207
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
208
208
|
id: quickAccessNavigatePreviousInEditorPickerId,
|
|
209
|
-
weight:
|
|
209
|
+
weight: KeybindingWeight.WorkbenchContrib + 50,
|
|
210
210
|
handler: getQuickNavigateHandler(quickAccessNavigatePreviousInEditorPickerId, false),
|
|
211
211
|
when: editorPickerContext,
|
|
212
|
-
primary:
|
|
213
|
-
mac: { primary:
|
|
212
|
+
primary: KeyMod.CtrlCmd | KeyMod.Shift | KeyCode.Tab,
|
|
213
|
+
mac: { primary: KeyMod.WinCtrl | KeyMod.Shift | KeyCode.Tab }
|
|
214
214
|
});
|
|
215
215
|
setup();
|
|
216
216
|
if (isMacintosh) {
|
|
217
217
|
MenuRegistry.appendMenuItem(MenuId.TouchBarContext, {
|
|
218
|
-
command: { id: NavigateBackwardsAction.ID, title: NavigateBackwardsAction.LABEL, icon: { dark: (
|
|
218
|
+
command: { id: NavigateBackwardsAction.ID, title: NavigateBackwardsAction.LABEL, icon: { dark: ( FileAccess.asFileUri('vs/workbench/browser/parts/editor/media/back-tb.png')) } },
|
|
219
219
|
group: 'navigation',
|
|
220
220
|
order: 0
|
|
221
221
|
});
|
|
222
222
|
MenuRegistry.appendMenuItem(MenuId.TouchBarContext, {
|
|
223
|
-
command: { id: NavigateForwardAction.ID, title: NavigateForwardAction.LABEL, icon: { dark: (
|
|
223
|
+
command: { id: NavigateForwardAction.ID, title: NavigateForwardAction.LABEL, icon: { dark: ( FileAccess.asFileUri('vs/workbench/browser/parts/editor/media/forward-tb.png')) } },
|
|
224
224
|
group: 'navigation',
|
|
225
225
|
order: 1
|
|
226
226
|
});
|
|
227
227
|
}
|
|
228
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
))
|
|
232
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
233
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
234
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id:
|
|
235
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id:
|
|
236
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id:
|
|
237
|
-
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id:
|
|
238
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
239
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
240
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
241
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id:
|
|
242
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id:
|
|
243
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id:
|
|
244
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, {
|
|
245
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
246
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
247
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
248
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
249
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
250
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
251
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
252
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
253
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
254
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
255
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
256
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
257
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
))) }, group: '
|
|
264
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
265
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
266
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id:
|
|
267
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id:
|
|
268
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id:
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
))) }, group: '
|
|
272
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id:
|
|
273
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id:
|
|
274
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, {
|
|
275
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
276
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
277
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
278
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
279
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
280
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
281
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
282
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
283
|
-
MenuRegistry.appendMenuItem(MenuId.
|
|
284
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4337, "Move into New Window")) }, group: '7_new_window', order: 10 });
|
|
285
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(4338, "Copy into New Window")) }, group: '7_new_window', order: 20 });
|
|
286
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(4339, "Share")), group: '11_share', order: -1, when: ( (MultipleEditorsSelectedInGroupContext.negate())) });
|
|
287
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(4340, "Inline View")), toggled: ( (ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false))) }, group: '1_diff', order: 10, when: ( (ContextKeyExpr.has('isInDiffEditor'))) });
|
|
288
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(4341, "Show Opened Editors")) }, group: '3_open', order: 10 });
|
|
289
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(4330, "Close All")) }, group: '5_close', order: 10 });
|
|
290
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(4329, "Close Saved")) }, group: '5_close', order: 20 });
|
|
291
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(4342, "Enable Preview Editors")), toggled: ( (ContextKeyExpr.has('config.workbench.editor.enablePreview'))) }, group: '7_settings', order: 10 });
|
|
292
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(4343, "Maximize Group")) }, group: '8_group_operations', order: 5, when: ( (ContextKeyExpr.and(
|
|
293
|
-
(EditorPartMaximizedEditorGroupContext.negate()),
|
|
294
|
-
EditorPartMultipleEditorGroupsContext
|
|
295
|
-
))) });
|
|
296
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(4344, "Unmaximize Group")) }, group: '8_group_operations', order: 5, when: EditorPartMaximizedEditorGroupContext });
|
|
297
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(4345, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( (IsAuxiliaryEditorPartContext.toNegated())) });
|
|
298
|
-
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(4346, "Configure Editors")) }, group: '9_configure', order: 10 });
|
|
228
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: LOCK_GROUP_COMMAND_ID, title: ( localize(2802, "Lock Group")), icon: Codicon.unlock }, group: 'navigation', order: 10, when: ( ContextKeyExpr.and(IsAuxiliaryEditorPartContext, ( ActiveEditorGroupLockedContext.toNegated()))) });
|
|
229
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: UNLOCK_GROUP_COMMAND_ID, title: ( localize(2803, "Unlock Group")), icon: Codicon.lock, toggled: ContextKeyExpr.true() }, group: 'navigation', order: 10, when: ActiveEditorGroupLockedContext });
|
|
230
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroup, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(2804, "Close Group")), icon: Codicon.close }, group: 'navigation', order: 20, when: ( ContextKeyExpr.or(IsAuxiliaryEditorPartContext, EditorPartMultipleEditorGroupsContext)) });
|
|
231
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(2805, "Split Up")) }, group: '2_split', order: 10 });
|
|
232
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(2806, "Split Down")) }, group: '2_split', order: 20 });
|
|
233
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(2807, "Split Left")) }, group: '2_split', order: 30 });
|
|
234
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(2808, "Split Right")) }, group: '2_split', order: 40 });
|
|
235
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: NEW_EMPTY_EDITOR_WINDOW_COMMAND_ID, title: ( localize(2809, "New Window")) }, group: '3_window', order: 10 });
|
|
236
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(2810, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '4_lock', order: 10, when: ( IsAuxiliaryEditorPartContext.toNegated()) });
|
|
237
|
+
MenuRegistry.appendMenuItem(MenuId.EmptyEditorGroupContext, { command: { id: CLOSE_EDITOR_GROUP_COMMAND_ID, title: ( localize(2811, "Close")) }, group: '5_close', order: 10, when: MultipleEditorGroupsContext });
|
|
238
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(2805, "Split Up")) }, group: '2_split', order: 10 });
|
|
239
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(2806, "Split Down")) }, group: '2_split', order: 20 });
|
|
240
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(2807, "Split Left")) }, group: '2_split', order: 30 });
|
|
241
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(2808, "Split Right")) }, group: '2_split', order: 40 });
|
|
242
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: MOVE_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(2812, "Move into New Window")) }, group: '3_window', order: 10 });
|
|
243
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: COPY_EDITOR_GROUP_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(2813, "Copy into New Window")) }, group: '3_window', order: 20 });
|
|
244
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsSubmenu, title: ( localize(2814, "Tab Bar")), group: '4_config', order: 10, when: ( InEditorZenModeContext.negate()) });
|
|
245
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowMultipleEditorTabsAction.ID, title: ( localize(2815, "Multiple Tabs")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'multiple')) }, group: '1_config', order: 10 });
|
|
246
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: ShowSingleEditorTabAction.ID, title: ( localize(2816, "Single Tab")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'single')) }, group: '1_config', order: 20 });
|
|
247
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsSubmenu, { command: { id: HideEditorTabsAction.ID, title: ( localize(2817, "Hidden")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')) }, group: '1_config', order: 30 });
|
|
248
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu, title: ( localize(2814, "Tab Bar")), group: '4_config', order: 10, when: InEditorZenModeContext });
|
|
249
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowMultipleEditorTabsAction.ID, title: ( localize(2815, "Multiple Tabs")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'multiple')) }, group: '1_config', order: 10 });
|
|
250
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenShowSingleEditorTabAction.ID, title: ( localize(2816, "Single Tab")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'single')) }, group: '1_config', order: 20 });
|
|
251
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarShowTabsZenModeSubmenu, { command: { id: ZenHideEditorTabsAction.ID, title: ( localize(2817, "Hidden")), toggled: ( ContextKeyExpr.equals('config.zenMode.showTabs', 'none')) }, group: '1_config', order: 30 });
|
|
252
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { submenu: MenuId.EditorActionsPositionSubmenu, title: ( localize(2818, "Editor Actions Position")), group: '4_config', order: 20 });
|
|
253
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsDefaultAction.ID, title: ( localize(2814, "Tab Bar")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'default')) }, group: '1_config', order: 10, when: ( ( ContextKeyExpr.equals('config.workbench.editor.showTabs', 'none')).negate()) });
|
|
254
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: EditorActionsTitleBarAction.ID, title: ( localize(2819, "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 });
|
|
255
|
+
MenuRegistry.appendMenuItem(MenuId.EditorActionsPositionSubmenu, { command: { id: HideEditorActionsAction.ID, title: ( localize(2820, "Hidden")), toggled: ( ContextKeyExpr.equals('config.workbench.editor.editorActionsLocation', 'hidden')) }, group: '1_config', order: 30 });
|
|
256
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTabsBarContext, { command: { id: ConfigureEditorTabsAction.ID, title: ( localize(2821, "Configure Tabs")) }, group: '9_configure', order: 10 });
|
|
257
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize(2811, "Close")) }, group: '1_close', order: 10 });
|
|
258
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(2822, "Close Others")), precondition: ( EditorGroupEditorsCountContext.notEqualsTo('1')) }, group: '1_close', order: 20 });
|
|
259
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize(2823, "Close to the Right")), precondition: ( ContextKeyExpr.and(( ActiveEditorLastInGroupContext.toNegated()), ( MultipleEditorsSelectedInGroupContext.negate()))) }, group: '1_close', order: 30, when: EditorTabsVisibleContext });
|
|
260
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(2824, "Close Saved")) }, group: '1_close', order: 40 });
|
|
261
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(2825, "Close All")) }, group: '1_close', order: 50 });
|
|
262
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize(2826, "Reopen Editor With...")) }, group: '1_open', order: 10, when: ActiveEditorAvailableEditorIdsContext });
|
|
263
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize(2827, "Keep Open")), precondition: ( ActiveEditorPinnedContext.toNegated()) }, group: '3_preview', order: 10, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
|
|
264
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize(2828, "Pin")) }, group: '3_preview', order: 20, when: ( ActiveEditorStickyContext.toNegated()) });
|
|
265
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize(2829, "Unpin")) }, group: '3_preview', order: 20, when: ActiveEditorStickyContext });
|
|
266
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_UP, title: ( localize(2805, "Split Up")) }, group: '5_split', order: 10 });
|
|
267
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_DOWN, title: ( localize(2806, "Split Down")) }, group: '5_split', order: 20 });
|
|
268
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_LEFT, title: ( localize(2807, "Split Left")) }, group: '5_split', order: 30 });
|
|
269
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_RIGHT, title: ( localize(2808, "Split Right")) }, group: '5_split', order: 40 });
|
|
270
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: SPLIT_EDITOR_IN_GROUP, title: ( localize(2830, "Split in Group")), precondition: ( MultipleEditorsSelectedInGroupContext.negate()) }, group: '6_split_in_group', order: 10, when: ActiveEditorCanSplitInGroupContext });
|
|
271
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: JOIN_EDITOR_IN_GROUP, title: ( localize(2831, "Join in Group")), precondition: ( MultipleEditorsSelectedInGroupContext.negate()) }, group: '6_split_in_group', order: 10, when: SideBySideEditorActiveContext });
|
|
272
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(2832, "Move into New Window")) }, group: '7_new_window', order: 10 });
|
|
273
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { command: { id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID, title: ( localize(2833, "Copy into New Window")) }, group: '7_new_window', order: 20 });
|
|
274
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitleContext, { submenu: MenuId.EditorTitleContextShare, title: ( localize(2834, "Share")), group: '11_share', order: -1, when: ( MultipleEditorsSelectedInGroupContext.negate()) });
|
|
275
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_DIFF_SIDE_BY_SIDE, title: ( localize(2835, "Inline View")), toggled: ( ContextKeyExpr.equals('config.diffEditor.renderSideBySide', false)) }, group: '1_diff', order: 10, when: ( ContextKeyExpr.has('isInDiffEditor')) });
|
|
276
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: SHOW_EDITORS_IN_GROUP, title: ( localize(2836, "Show Opened Editors")) }, group: '3_open', order: 10 });
|
|
277
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize(2825, "Close All")) }, group: '5_close', order: 10 });
|
|
278
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize(2824, "Close Saved")) }, group: '5_close', order: 20 });
|
|
279
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_KEEP_EDITORS_COMMAND_ID, title: ( localize(2837, "Enable Preview Editors")), toggled: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) }, group: '7_settings', order: 10 });
|
|
280
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(2838, "Maximize Group")) }, group: '8_group_operations', order: 5, when: ( ContextKeyExpr.and(( EditorPartMaximizedEditorGroupContext.negate()), EditorPartMultipleEditorGroupsContext)) });
|
|
281
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_MAXIMIZE_EDITOR_GROUP, title: ( localize(2839, "Unmaximize Group")) }, group: '8_group_operations', order: 5, when: EditorPartMaximizedEditorGroupContext });
|
|
282
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: TOGGLE_LOCK_GROUP_COMMAND_ID, title: ( localize(2840, "Lock Group")), toggled: ActiveEditorGroupLockedContext }, group: '8_group_operations', order: 10, when: ( IsAuxiliaryEditorPartContext.toNegated()) });
|
|
283
|
+
MenuRegistry.appendMenuItem(MenuId.EditorTitle, { command: { id: ConfigureEditorAction.ID, title: ( localize(2841, "Configure Editors")) }, group: '9_configure', order: 10 });
|
|
299
284
|
function appendEditorToolItem(primary, when, order, alternative, precondition) {
|
|
300
285
|
const item = {
|
|
301
286
|
command: {
|
|
@@ -322,140 +307,121 @@ const SPLIT_ORDER = 100000;
|
|
|
322
307
|
const CLOSE_ORDER = 1000000;
|
|
323
308
|
appendEditorToolItem({
|
|
324
309
|
id: SPLIT_EDITOR,
|
|
325
|
-
title: ( localize(
|
|
310
|
+
title: ( localize(2842, "Split Editor Right")),
|
|
326
311
|
icon: Codicon.splitHorizontal
|
|
327
312
|
}, ContextKeyExpr.not('splitEditorsVertically'), SPLIT_ORDER, {
|
|
328
313
|
id: SPLIT_EDITOR_DOWN,
|
|
329
|
-
title: ( localize(
|
|
314
|
+
title: ( localize(2843, "Split Editor Down")),
|
|
330
315
|
icon: Codicon.splitVertical
|
|
331
316
|
});
|
|
332
317
|
appendEditorToolItem({
|
|
333
318
|
id: SPLIT_EDITOR,
|
|
334
|
-
title: ( localize(
|
|
319
|
+
title: ( localize(2843, "Split Editor Down")),
|
|
335
320
|
icon: Codicon.splitVertical
|
|
336
|
-
}, (
|
|
321
|
+
}, ( ContextKeyExpr.has('splitEditorsVertically')), SPLIT_ORDER, {
|
|
337
322
|
id: SPLIT_EDITOR_RIGHT,
|
|
338
|
-
title: ( localize(
|
|
323
|
+
title: ( localize(2842, "Split Editor Right")),
|
|
339
324
|
icon: Codicon.splitHorizontal
|
|
340
325
|
});
|
|
341
326
|
appendEditorToolItem({
|
|
342
327
|
id: TOGGLE_SPLIT_EDITOR_IN_GROUP_LAYOUT,
|
|
343
|
-
title: ( localize(
|
|
328
|
+
title: ( localize(2844, "Toggle Layout")),
|
|
344
329
|
icon: Codicon.editorLayout
|
|
345
330
|
}, SideBySideEditorActiveContext, SPLIT_ORDER - 1);
|
|
346
331
|
appendEditorToolItem({
|
|
347
332
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
348
|
-
title: ( localize(
|
|
333
|
+
title: ( localize(2811, "Close")),
|
|
349
334
|
icon: Codicon.close
|
|
350
|
-
}, (
|
|
351
|
-
(EditorTabsVisibleContext.toNegated()),
|
|
352
|
-
(ActiveEditorDirtyContext.toNegated()),
|
|
353
|
-
(ActiveEditorStickyContext.toNegated())
|
|
354
|
-
))), CLOSE_ORDER, {
|
|
335
|
+
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
355
336
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
356
|
-
title: ( localize(
|
|
337
|
+
title: ( localize(2825, "Close All")),
|
|
357
338
|
icon: Codicon.closeAll
|
|
358
339
|
});
|
|
359
340
|
appendEditorToolItem({
|
|
360
341
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
361
|
-
title: ( localize(
|
|
342
|
+
title: ( localize(2811, "Close")),
|
|
362
343
|
icon: Codicon.closeDirty
|
|
363
|
-
}, (
|
|
364
|
-
(EditorTabsVisibleContext.toNegated()),
|
|
365
|
-
ActiveEditorDirtyContext,
|
|
366
|
-
(ActiveEditorStickyContext.toNegated())
|
|
367
|
-
))), CLOSE_ORDER, {
|
|
344
|
+
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ( ActiveEditorStickyContext.toNegated()))), CLOSE_ORDER, {
|
|
368
345
|
id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID,
|
|
369
|
-
title: ( localize(
|
|
346
|
+
title: ( localize(2825, "Close All")),
|
|
370
347
|
icon: Codicon.closeAll
|
|
371
348
|
});
|
|
372
349
|
appendEditorToolItem({
|
|
373
350
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
374
|
-
title: ( localize(
|
|
351
|
+
title: ( localize(2829, "Unpin")),
|
|
375
352
|
icon: Codicon.pinned
|
|
376
|
-
}, (
|
|
377
|
-
(EditorTabsVisibleContext.toNegated()),
|
|
378
|
-
(ActiveEditorDirtyContext.toNegated()),
|
|
379
|
-
ActiveEditorStickyContext
|
|
380
|
-
))), CLOSE_ORDER, {
|
|
353
|
+
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ( ActiveEditorDirtyContext.toNegated()), ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
381
354
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
382
|
-
title: ( localize(
|
|
355
|
+
title: ( localize(2811, "Close")),
|
|
383
356
|
icon: Codicon.close
|
|
384
357
|
});
|
|
385
358
|
appendEditorToolItem({
|
|
386
359
|
id: UNPIN_EDITOR_COMMAND_ID,
|
|
387
|
-
title: ( localize(
|
|
360
|
+
title: ( localize(2829, "Unpin")),
|
|
388
361
|
icon: Codicon.pinnedDirty
|
|
389
|
-
}, (
|
|
390
|
-
(EditorTabsVisibleContext.toNegated()),
|
|
391
|
-
ActiveEditorDirtyContext,
|
|
392
|
-
ActiveEditorStickyContext
|
|
393
|
-
))), CLOSE_ORDER, {
|
|
362
|
+
}, ( ContextKeyExpr.and(( EditorTabsVisibleContext.toNegated()), ActiveEditorDirtyContext, ActiveEditorStickyContext)), CLOSE_ORDER, {
|
|
394
363
|
id: CLOSE_EDITOR_COMMAND_ID,
|
|
395
|
-
title: ( localize(
|
|
364
|
+
title: ( localize(2811, "Close")),
|
|
396
365
|
icon: Codicon.close
|
|
397
366
|
});
|
|
398
367
|
appendEditorToolItem({
|
|
399
368
|
id: LOCK_GROUP_COMMAND_ID,
|
|
400
|
-
title: ( localize(
|
|
369
|
+
title: ( localize(2845, "Lock Group")),
|
|
401
370
|
icon: Codicon.unlock
|
|
402
|
-
}, (
|
|
403
|
-
IsAuxiliaryEditorPartContext,
|
|
404
|
-
(ActiveEditorGroupLockedContext.toNegated())
|
|
405
|
-
))), CLOSE_ORDER - 1);
|
|
371
|
+
}, ( ContextKeyExpr.and(IsAuxiliaryEditorPartContext, ( ActiveEditorGroupLockedContext.toNegated()))), CLOSE_ORDER - 1);
|
|
406
372
|
appendEditorToolItem({
|
|
407
373
|
id: UNLOCK_GROUP_COMMAND_ID,
|
|
408
|
-
title: ( localize(
|
|
374
|
+
title: ( localize(2846, "Unlock Group")),
|
|
409
375
|
icon: Codicon.lock,
|
|
410
376
|
toggled: ContextKeyExpr.true()
|
|
411
377
|
}, ActiveEditorGroupLockedContext, CLOSE_ORDER - 1);
|
|
412
|
-
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(
|
|
378
|
+
const previousChangeIcon = registerIcon('diff-editor-previous-change', Codicon.arrowUp, ( localize(2847, 'Icon for the previous change action in the diff editor.')));
|
|
413
379
|
appendEditorToolItem({
|
|
414
380
|
id: GOTO_PREVIOUS_CHANGE,
|
|
415
|
-
title: ( localize(
|
|
381
|
+
title: ( localize(2848, "Previous Change")),
|
|
416
382
|
icon: previousChangeIcon
|
|
417
383
|
}, TextCompareEditorActiveContext, 10, undefined, EditorContextKeys.hasChanges);
|
|
418
|
-
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(
|
|
384
|
+
const nextChangeIcon = registerIcon('diff-editor-next-change', Codicon.arrowDown, ( localize(2849, 'Icon for the next change action in the diff editor.')));
|
|
419
385
|
appendEditorToolItem({
|
|
420
386
|
id: GOTO_NEXT_CHANGE,
|
|
421
|
-
title: ( localize(
|
|
387
|
+
title: ( localize(2850, "Next Change")),
|
|
422
388
|
icon: nextChangeIcon
|
|
423
389
|
}, TextCompareEditorActiveContext, 11, undefined, EditorContextKeys.hasChanges);
|
|
424
390
|
appendEditorToolItem({
|
|
425
391
|
id: DIFF_SWAP_SIDES,
|
|
426
|
-
title: ( localize(
|
|
392
|
+
title: ( localize(2851, "Swap Left and Right Side")),
|
|
427
393
|
icon: Codicon.arrowSwap
|
|
428
|
-
}, (
|
|
429
|
-
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(
|
|
394
|
+
}, ( ContextKeyExpr.and(TextCompareEditorActiveContext, ActiveCompareEditorCanSwapContext)), 15, undefined, undefined);
|
|
395
|
+
const toggleWhitespace = registerIcon('diff-editor-toggle-whitespace', Codicon.whitespace, ( localize(2852, 'Icon for the toggle whitespace action in the diff editor.')));
|
|
430
396
|
MenuRegistry.appendMenuItem(MenuId.EditorTitle, {
|
|
431
397
|
command: {
|
|
432
398
|
id: TOGGLE_DIFF_IGNORE_TRIM_WHITESPACE,
|
|
433
|
-
title: ( localize(
|
|
399
|
+
title: ( localize(2853, "Show Leading/Trailing Whitespace Differences")),
|
|
434
400
|
icon: toggleWhitespace,
|
|
435
401
|
precondition: TextCompareEditorActiveContext,
|
|
436
|
-
toggled: (
|
|
402
|
+
toggled: ( ContextKeyExpr.equals('config.diffEditor.ignoreTrimWhitespace', false)),
|
|
437
403
|
},
|
|
438
404
|
group: 'navigation',
|
|
439
405
|
when: TextCompareEditorActiveContext,
|
|
440
406
|
order: 20,
|
|
441
407
|
});
|
|
442
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(
|
|
443
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
444
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(
|
|
445
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(
|
|
446
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(
|
|
447
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
448
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(
|
|
449
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(
|
|
450
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(
|
|
451
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(
|
|
452
|
-
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(
|
|
408
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: KEEP_EDITOR_COMMAND_ID, title: ( localize2(2854, 'Keep Editor')), category: Categories.View }, when: ( ContextKeyExpr.has('config.workbench.editor.enablePreview')) });
|
|
409
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: PIN_EDITOR_COMMAND_ID, title: ( localize2(2855, 'Pin Editor')), category: Categories.View } });
|
|
410
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: UNPIN_EDITOR_COMMAND_ID, title: ( localize2(2856, 'Unpin Editor')), category: Categories.View } });
|
|
411
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITOR_COMMAND_ID, title: ( localize2(2857, 'Close Editor')), category: Categories.View } });
|
|
412
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_PINNED_EDITOR_COMMAND_ID, title: ( localize2(2858, 'Close Pinned Editor')), category: Categories.View } });
|
|
413
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(2859, 'Close All Editors in Group')), category: Categories.View } });
|
|
414
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_SAVED_EDITORS_COMMAND_ID, title: ( localize2(2860, 'Close Saved Editors in Group')), category: Categories.View } });
|
|
415
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_OTHER_EDITORS_IN_GROUP_COMMAND_ID, title: ( localize2(2861, 'Close Other Editors in Group')), category: Categories.View } });
|
|
416
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_TO_THE_RIGHT_COMMAND_ID, title: ( localize2(2862, 'Close Editors to the Right in Group')), category: Categories.View }, when: ( ActiveEditorLastInGroupContext.toNegated()) });
|
|
417
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: CLOSE_EDITORS_AND_GROUP_COMMAND_ID, title: ( localize2(2863, 'Close Editor Group')), category: Categories.View }, when: MultipleEditorGroupsContext });
|
|
418
|
+
MenuRegistry.appendMenuItem(MenuId.CommandPalette, { command: { id: REOPEN_WITH_COMMAND_ID, title: ( localize2(2826, "Reopen Editor With...")), category: Categories.View }, when: ActiveEditorAvailableEditorIdsContext });
|
|
453
419
|
MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
454
420
|
group: '1_editor',
|
|
455
421
|
command: {
|
|
456
422
|
id: ReopenClosedEditorAction.ID,
|
|
457
|
-
title: ( localize(
|
|
458
|
-
precondition: (
|
|
423
|
+
title: ( localize(2864, "&&Reopen Closed Editor")),
|
|
424
|
+
precondition: ( ContextKeyExpr.has('canReopenClosedEditor'))
|
|
459
425
|
},
|
|
460
426
|
order: 1
|
|
461
427
|
});
|
|
@@ -463,19 +429,19 @@ MenuRegistry.appendMenuItem(MenuId.MenubarRecentMenu, {
|
|
|
463
429
|
group: 'z_clear',
|
|
464
430
|
command: {
|
|
465
431
|
id: ClearRecentFilesAction.ID,
|
|
466
|
-
title: ( localize(
|
|
432
|
+
title: ( localize(2865, "&&Clear Recently Opened..."))
|
|
467
433
|
},
|
|
468
434
|
order: 1
|
|
469
435
|
});
|
|
470
436
|
MenuRegistry.appendMenuItem(MenuId.MenubarFileMenu, {
|
|
471
|
-
title: ( localize(
|
|
437
|
+
title: ( localize(2866, "Share")),
|
|
472
438
|
submenu: MenuId.MenubarShare,
|
|
473
439
|
group: '45_share',
|
|
474
440
|
order: 1,
|
|
475
441
|
});
|
|
476
442
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
477
443
|
group: '2_appearance',
|
|
478
|
-
title: ( localize(
|
|
444
|
+
title: ( localize(2867, "Editor &&Layout")),
|
|
479
445
|
submenu: MenuId.MenubarLayoutMenu,
|
|
480
446
|
order: 2
|
|
481
447
|
});
|
|
@@ -484,8 +450,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
484
450
|
command: {
|
|
485
451
|
id: SPLIT_EDITOR_UP,
|
|
486
452
|
title: {
|
|
487
|
-
...( localize2(
|
|
488
|
-
mnemonicTitle: ( localize(
|
|
453
|
+
...( localize2(2868, "Split Up")),
|
|
454
|
+
mnemonicTitle: ( localize(2869, "Split &&Up")),
|
|
489
455
|
}
|
|
490
456
|
},
|
|
491
457
|
order: 1
|
|
@@ -495,8 +461,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
495
461
|
command: {
|
|
496
462
|
id: SPLIT_EDITOR_DOWN,
|
|
497
463
|
title: {
|
|
498
|
-
...( localize2(
|
|
499
|
-
mnemonicTitle: ( localize(
|
|
464
|
+
...( localize2(2870, "Split Down")),
|
|
465
|
+
mnemonicTitle: ( localize(2871, "Split &&Down")),
|
|
500
466
|
}
|
|
501
467
|
},
|
|
502
468
|
order: 2
|
|
@@ -506,8 +472,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
506
472
|
command: {
|
|
507
473
|
id: SPLIT_EDITOR_LEFT,
|
|
508
474
|
title: {
|
|
509
|
-
...( localize2(
|
|
510
|
-
mnemonicTitle: ( localize(
|
|
475
|
+
...( localize2(2872, "Split Left")),
|
|
476
|
+
mnemonicTitle: ( localize(2873, "Split &&Left")),
|
|
511
477
|
}
|
|
512
478
|
},
|
|
513
479
|
order: 3
|
|
@@ -517,8 +483,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
517
483
|
command: {
|
|
518
484
|
id: SPLIT_EDITOR_RIGHT,
|
|
519
485
|
title: {
|
|
520
|
-
...( localize2(
|
|
521
|
-
mnemonicTitle: ( localize(
|
|
486
|
+
...( localize2(2874, "Split Right")),
|
|
487
|
+
mnemonicTitle: ( localize(2875, "Split &&Right")),
|
|
522
488
|
}
|
|
523
489
|
},
|
|
524
490
|
order: 4
|
|
@@ -528,8 +494,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
528
494
|
command: {
|
|
529
495
|
id: SPLIT_EDITOR_IN_GROUP,
|
|
530
496
|
title: {
|
|
531
|
-
...( localize2(
|
|
532
|
-
mnemonicTitle: ( localize(
|
|
497
|
+
...( localize2(2876, "Split in Group")),
|
|
498
|
+
mnemonicTitle: ( localize(2877, "Split in &&Group")),
|
|
533
499
|
}
|
|
534
500
|
},
|
|
535
501
|
when: ActiveEditorCanSplitInGroupContext,
|
|
@@ -540,8 +506,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
540
506
|
command: {
|
|
541
507
|
id: JOIN_EDITOR_IN_GROUP,
|
|
542
508
|
title: {
|
|
543
|
-
...( localize2(
|
|
544
|
-
mnemonicTitle: ( localize(
|
|
509
|
+
...( localize2(2878, "Join in Group")),
|
|
510
|
+
mnemonicTitle: ( localize(2879, "Join in &&Group")),
|
|
545
511
|
}
|
|
546
512
|
},
|
|
547
513
|
when: SideBySideEditorActiveContext,
|
|
@@ -552,8 +518,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
552
518
|
command: {
|
|
553
519
|
id: MOVE_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
554
520
|
title: {
|
|
555
|
-
...( localize2(
|
|
556
|
-
mnemonicTitle: ( localize(
|
|
521
|
+
...( localize2(2880, "Move Editor into New Window")),
|
|
522
|
+
mnemonicTitle: ( localize(2881, "&&Move Editor into New Window")),
|
|
557
523
|
}
|
|
558
524
|
},
|
|
559
525
|
order: 1
|
|
@@ -563,8 +529,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
563
529
|
command: {
|
|
564
530
|
id: COPY_EDITOR_INTO_NEW_WINDOW_COMMAND_ID,
|
|
565
531
|
title: {
|
|
566
|
-
...( localize2(
|
|
567
|
-
mnemonicTitle: ( localize(
|
|
532
|
+
...( localize2(2882, "Copy Editor into New Window")),
|
|
533
|
+
mnemonicTitle: ( localize(2883, "&&Copy Editor into New Window")),
|
|
568
534
|
}
|
|
569
535
|
},
|
|
570
536
|
order: 2
|
|
@@ -574,8 +540,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
574
540
|
command: {
|
|
575
541
|
id: EditorLayoutSingleAction.ID,
|
|
576
542
|
title: {
|
|
577
|
-
...( localize2(
|
|
578
|
-
mnemonicTitle: ( localize(
|
|
543
|
+
...( localize2(2884, "Single")),
|
|
544
|
+
mnemonicTitle: ( localize(2885, "&&Single")),
|
|
579
545
|
}
|
|
580
546
|
},
|
|
581
547
|
order: 1
|
|
@@ -585,8 +551,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
585
551
|
command: {
|
|
586
552
|
id: EditorLayoutTwoColumnsAction.ID,
|
|
587
553
|
title: {
|
|
588
|
-
...( localize2(
|
|
589
|
-
mnemonicTitle: ( localize(
|
|
554
|
+
...( localize2(2886, "Two Columns")),
|
|
555
|
+
mnemonicTitle: ( localize(2887, "&&Two Columns")),
|
|
590
556
|
}
|
|
591
557
|
},
|
|
592
558
|
order: 3
|
|
@@ -596,8 +562,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
596
562
|
command: {
|
|
597
563
|
id: EditorLayoutThreeColumnsAction.ID,
|
|
598
564
|
title: {
|
|
599
|
-
...( localize2(
|
|
600
|
-
mnemonicTitle: ( localize(
|
|
565
|
+
...( localize2(2888, "Three Columns")),
|
|
566
|
+
mnemonicTitle: ( localize(2889, "T&&hree Columns")),
|
|
601
567
|
}
|
|
602
568
|
},
|
|
603
569
|
order: 4
|
|
@@ -607,8 +573,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
607
573
|
command: {
|
|
608
574
|
id: EditorLayoutTwoRowsAction.ID,
|
|
609
575
|
title: {
|
|
610
|
-
...( localize2(
|
|
611
|
-
mnemonicTitle: ( localize(
|
|
576
|
+
...( localize2(2890, "Two Rows")),
|
|
577
|
+
mnemonicTitle: ( localize(2891, "T&&wo Rows")),
|
|
612
578
|
}
|
|
613
579
|
},
|
|
614
580
|
order: 5
|
|
@@ -618,8 +584,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
618
584
|
command: {
|
|
619
585
|
id: EditorLayoutThreeRowsAction.ID,
|
|
620
586
|
title: {
|
|
621
|
-
...( localize2(
|
|
622
|
-
mnemonicTitle: ( localize(
|
|
587
|
+
...( localize2(2892, "Three Rows")),
|
|
588
|
+
mnemonicTitle: ( localize(2893, "Three &&Rows")),
|
|
623
589
|
}
|
|
624
590
|
},
|
|
625
591
|
order: 6
|
|
@@ -629,8 +595,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
629
595
|
command: {
|
|
630
596
|
id: EditorLayoutTwoByTwoGridAction.ID,
|
|
631
597
|
title: {
|
|
632
|
-
...( localize2(
|
|
633
|
-
mnemonicTitle: ( localize(
|
|
598
|
+
...( localize2(2894, "Grid (2x2)")),
|
|
599
|
+
mnemonicTitle: ( localize(2895, "&&Grid (2x2)")),
|
|
634
600
|
}
|
|
635
601
|
},
|
|
636
602
|
order: 7
|
|
@@ -640,8 +606,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
640
606
|
command: {
|
|
641
607
|
id: EditorLayoutTwoRowsRightAction.ID,
|
|
642
608
|
title: {
|
|
643
|
-
...( localize2(
|
|
644
|
-
mnemonicTitle: ( localize(
|
|
609
|
+
...( localize2(2896, "Two Rows Right")),
|
|
610
|
+
mnemonicTitle: ( localize(2897, "Two R&&ows Right")),
|
|
645
611
|
}
|
|
646
612
|
},
|
|
647
613
|
order: 8
|
|
@@ -651,8 +617,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarLayoutMenu, {
|
|
|
651
617
|
command: {
|
|
652
618
|
id: EditorLayoutTwoColumnsBottomAction.ID,
|
|
653
619
|
title: {
|
|
654
|
-
...( localize2(
|
|
655
|
-
mnemonicTitle: ( localize(
|
|
620
|
+
...( localize2(2898, "Two Columns Bottom")),
|
|
621
|
+
mnemonicTitle: ( localize(2899, "Two &&Columns Bottom")),
|
|
656
622
|
}
|
|
657
623
|
},
|
|
658
624
|
order: 9
|
|
@@ -661,8 +627,8 @@ MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
|
661
627
|
group: '1_history_nav',
|
|
662
628
|
command: {
|
|
663
629
|
id: 'workbench.action.navigateToLastEditLocation',
|
|
664
|
-
title: ( localize(
|
|
665
|
-
precondition: (
|
|
630
|
+
title: ( localize(2900, "&&Last Edit Location")),
|
|
631
|
+
precondition: ( ContextKeyExpr.has('canNavigateToLastEditLocation'))
|
|
666
632
|
},
|
|
667
633
|
order: 3
|
|
668
634
|
});
|
|
@@ -670,25 +636,25 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
670
636
|
group: '1_sideBySide',
|
|
671
637
|
command: {
|
|
672
638
|
id: FOCUS_FIRST_SIDE_EDITOR,
|
|
673
|
-
title: ( localize(
|
|
639
|
+
title: ( localize(2901, "&&First Side in Editor"))
|
|
674
640
|
},
|
|
675
|
-
when: (
|
|
641
|
+
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
676
642
|
order: 1
|
|
677
643
|
});
|
|
678
644
|
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
679
645
|
group: '1_sideBySide',
|
|
680
646
|
command: {
|
|
681
647
|
id: FOCUS_SECOND_SIDE_EDITOR,
|
|
682
|
-
title: ( localize(
|
|
648
|
+
title: ( localize(2902, "&&Second Side in Editor"))
|
|
683
649
|
},
|
|
684
|
-
when: (
|
|
650
|
+
when: ( ContextKeyExpr.or(SideBySideEditorActiveContext, TextCompareEditorActiveContext)),
|
|
685
651
|
order: 2
|
|
686
652
|
});
|
|
687
653
|
MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
688
654
|
group: '2_any',
|
|
689
655
|
command: {
|
|
690
656
|
id: 'workbench.action.nextEditor',
|
|
691
|
-
title: ( localize(
|
|
657
|
+
title: ( localize(2903, "&&Next Editor"))
|
|
692
658
|
},
|
|
693
659
|
order: 1
|
|
694
660
|
});
|
|
@@ -696,7 +662,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
696
662
|
group: '2_any',
|
|
697
663
|
command: {
|
|
698
664
|
id: 'workbench.action.previousEditor',
|
|
699
|
-
title: ( localize(
|
|
665
|
+
title: ( localize(2904, "&&Previous Editor"))
|
|
700
666
|
},
|
|
701
667
|
order: 2
|
|
702
668
|
});
|
|
@@ -704,7 +670,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
704
670
|
group: '3_any_used',
|
|
705
671
|
command: {
|
|
706
672
|
id: 'workbench.action.openNextRecentlyUsedEditor',
|
|
707
|
-
title: ( localize(
|
|
673
|
+
title: ( localize(2905, "&&Next Used Editor"))
|
|
708
674
|
},
|
|
709
675
|
order: 1
|
|
710
676
|
});
|
|
@@ -712,7 +678,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
712
678
|
group: '3_any_used',
|
|
713
679
|
command: {
|
|
714
680
|
id: 'workbench.action.openPreviousRecentlyUsedEditor',
|
|
715
|
-
title: ( localize(
|
|
681
|
+
title: ( localize(2906, "&&Previous Used Editor"))
|
|
716
682
|
},
|
|
717
683
|
order: 2
|
|
718
684
|
});
|
|
@@ -720,7 +686,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
720
686
|
group: '4_group',
|
|
721
687
|
command: {
|
|
722
688
|
id: 'workbench.action.nextEditorInGroup',
|
|
723
|
-
title: ( localize(
|
|
689
|
+
title: ( localize(2907, "&&Next Editor in Group"))
|
|
724
690
|
},
|
|
725
691
|
order: 1
|
|
726
692
|
});
|
|
@@ -728,7 +694,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
728
694
|
group: '4_group',
|
|
729
695
|
command: {
|
|
730
696
|
id: 'workbench.action.previousEditorInGroup',
|
|
731
|
-
title: ( localize(
|
|
697
|
+
title: ( localize(2908, "&&Previous Editor in Group"))
|
|
732
698
|
},
|
|
733
699
|
order: 2
|
|
734
700
|
});
|
|
@@ -736,7 +702,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
736
702
|
group: '5_group_used',
|
|
737
703
|
command: {
|
|
738
704
|
id: 'workbench.action.openNextRecentlyUsedEditorInGroup',
|
|
739
|
-
title: ( localize(
|
|
705
|
+
title: ( localize(2909, "&&Next Used Editor in Group"))
|
|
740
706
|
},
|
|
741
707
|
order: 1
|
|
742
708
|
});
|
|
@@ -744,13 +710,13 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchEditorMenu, {
|
|
|
744
710
|
group: '5_group_used',
|
|
745
711
|
command: {
|
|
746
712
|
id: 'workbench.action.openPreviousRecentlyUsedEditorInGroup',
|
|
747
|
-
title: ( localize(
|
|
713
|
+
title: ( localize(2910, "&&Previous Used Editor in Group"))
|
|
748
714
|
},
|
|
749
715
|
order: 2
|
|
750
716
|
});
|
|
751
717
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
752
718
|
group: '2_editor_nav',
|
|
753
|
-
title: ( localize(
|
|
719
|
+
title: ( localize(2911, "Switch &&Editor")),
|
|
754
720
|
submenu: MenuId.MenubarSwitchEditorMenu,
|
|
755
721
|
order: 1
|
|
756
722
|
});
|
|
@@ -758,7 +724,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
758
724
|
group: '1_focus_index',
|
|
759
725
|
command: {
|
|
760
726
|
id: 'workbench.action.focusFirstEditorGroup',
|
|
761
|
-
title: ( localize(
|
|
727
|
+
title: ( localize(2912, "Group &&1"))
|
|
762
728
|
},
|
|
763
729
|
order: 1
|
|
764
730
|
});
|
|
@@ -766,7 +732,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
766
732
|
group: '1_focus_index',
|
|
767
733
|
command: {
|
|
768
734
|
id: 'workbench.action.focusSecondEditorGroup',
|
|
769
|
-
title: ( localize(
|
|
735
|
+
title: ( localize(2913, "Group &&2"))
|
|
770
736
|
},
|
|
771
737
|
order: 2
|
|
772
738
|
});
|
|
@@ -774,7 +740,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
774
740
|
group: '1_focus_index',
|
|
775
741
|
command: {
|
|
776
742
|
id: 'workbench.action.focusThirdEditorGroup',
|
|
777
|
-
title: ( localize(
|
|
743
|
+
title: ( localize(2914, "Group &&3")),
|
|
778
744
|
precondition: MultipleEditorGroupsContext
|
|
779
745
|
},
|
|
780
746
|
order: 3
|
|
@@ -783,7 +749,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
783
749
|
group: '1_focus_index',
|
|
784
750
|
command: {
|
|
785
751
|
id: 'workbench.action.focusFourthEditorGroup',
|
|
786
|
-
title: ( localize(
|
|
752
|
+
title: ( localize(2915, "Group &&4")),
|
|
787
753
|
precondition: MultipleEditorGroupsContext
|
|
788
754
|
},
|
|
789
755
|
order: 4
|
|
@@ -792,7 +758,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
792
758
|
group: '1_focus_index',
|
|
793
759
|
command: {
|
|
794
760
|
id: 'workbench.action.focusFifthEditorGroup',
|
|
795
|
-
title: ( localize(
|
|
761
|
+
title: ( localize(2916, "Group &&5")),
|
|
796
762
|
precondition: MultipleEditorGroupsContext
|
|
797
763
|
},
|
|
798
764
|
order: 5
|
|
@@ -801,7 +767,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
801
767
|
group: '2_next_prev',
|
|
802
768
|
command: {
|
|
803
769
|
id: 'workbench.action.focusNextGroup',
|
|
804
|
-
title: ( localize(
|
|
770
|
+
title: ( localize(2917, "&&Next Group")),
|
|
805
771
|
precondition: MultipleEditorGroupsContext
|
|
806
772
|
},
|
|
807
773
|
order: 1
|
|
@@ -810,7 +776,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
810
776
|
group: '2_next_prev',
|
|
811
777
|
command: {
|
|
812
778
|
id: 'workbench.action.focusPreviousGroup',
|
|
813
|
-
title: ( localize(
|
|
779
|
+
title: ( localize(2918, "&&Previous Group")),
|
|
814
780
|
precondition: MultipleEditorGroupsContext
|
|
815
781
|
},
|
|
816
782
|
order: 2
|
|
@@ -819,7 +785,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
819
785
|
group: '3_directional',
|
|
820
786
|
command: {
|
|
821
787
|
id: 'workbench.action.focusLeftGroup',
|
|
822
|
-
title: ( localize(
|
|
788
|
+
title: ( localize(2919, "Group &&Left")),
|
|
823
789
|
precondition: MultipleEditorGroupsContext
|
|
824
790
|
},
|
|
825
791
|
order: 1
|
|
@@ -828,7 +794,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
828
794
|
group: '3_directional',
|
|
829
795
|
command: {
|
|
830
796
|
id: 'workbench.action.focusRightGroup',
|
|
831
|
-
title: ( localize(
|
|
797
|
+
title: ( localize(2920, "Group &&Right")),
|
|
832
798
|
precondition: MultipleEditorGroupsContext
|
|
833
799
|
},
|
|
834
800
|
order: 2
|
|
@@ -837,7 +803,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
837
803
|
group: '3_directional',
|
|
838
804
|
command: {
|
|
839
805
|
id: 'workbench.action.focusAboveGroup',
|
|
840
|
-
title: ( localize(
|
|
806
|
+
title: ( localize(2921, "Group &&Above")),
|
|
841
807
|
precondition: MultipleEditorGroupsContext
|
|
842
808
|
},
|
|
843
809
|
order: 3
|
|
@@ -846,14 +812,14 @@ MenuRegistry.appendMenuItem(MenuId.MenubarSwitchGroupMenu, {
|
|
|
846
812
|
group: '3_directional',
|
|
847
813
|
command: {
|
|
848
814
|
id: 'workbench.action.focusBelowGroup',
|
|
849
|
-
title: ( localize(
|
|
815
|
+
title: ( localize(2922, "Group &&Below")),
|
|
850
816
|
precondition: MultipleEditorGroupsContext
|
|
851
817
|
},
|
|
852
818
|
order: 4
|
|
853
819
|
});
|
|
854
820
|
MenuRegistry.appendMenuItem(MenuId.MenubarGoMenu, {
|
|
855
821
|
group: '2_editor_nav',
|
|
856
|
-
title: ( localize(
|
|
822
|
+
title: ( localize(2923, "Switch &&Group")),
|
|
857
823
|
submenu: MenuId.MenubarSwitchGroupMenu,
|
|
858
824
|
order: 2
|
|
859
825
|
});
|