@codingame/monaco-vscode-api 1.83.4 → 1.83.6
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/lifecycle.js +3 -1
- package/missing-services.js +32 -28
- package/monaco-editor-treemending.patch +786 -760
- package/monaco.js +1 -0
- package/package.json +1 -1
- package/service-override/extensions.js +5 -5
- package/service-override/files.js +37 -13
- package/service-override/keybindings.js +10 -4
- package/service-override/layout.js +1 -3
- package/services.d.ts +13 -2
- package/services.js +35 -5
- package/vscode/src/vs/base/browser/broadcast.js +52 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +1 -1
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +6 -1
- package/vscode/src/vs/base/common/date.js +244 -54
- package/vscode/src/vs/base/common/jsonErrorMessages.js +45 -9
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.d.ts +65 -0
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +33 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +165 -32
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +30 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +0 -3
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +6 -1
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.js +404 -0
- package/vscode/src/vs/platform/files/common/fileService.js +13 -2
- package/vscode/src/vs/platform/files/common/files.js +25 -5
- package/vscode/src/vs/platform/keyboardLayout/common/keyboardConfig.js +15 -3
- package/vscode/src/vs/platform/quickinput/browser/commandsQuickAccess.js +38 -7
- package/vscode/src/vs/platform/quickinput/browser/helpQuickAccess.js +7 -1
- package/vscode/src/vs/platform/request/common/request.js +1 -1
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +210 -42
- package/vscode/src/vs/workbench/api/browser/mainThreadAuthentication.js +73 -13
- package/vscode/src/vs/workbench/api/browser/mainThreadComments.js +5 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadCustomEditors.js +11 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadEditSessionIdentityParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadExtensionService.js +70 -35
- package/vscode/src/vs/workbench/api/browser/mainThreadFileSystemEventService.js +108 -20
- package/vscode/src/vs/workbench/api/browser/mainThreadMessageService.js +17 -4
- package/vscode/src/vs/workbench/api/browser/mainThreadNotebookSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadProgress.js +5 -5
- package/vscode/src/vs/workbench/api/browser/mainThreadSaveParticipant.js +5 -3
- package/vscode/src/vs/workbench/api/browser/mainThreadTask.js +7 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadTunnelService.js +14 -2
- package/vscode/src/vs/workbench/api/browser/mainThreadUriOpeners.js +12 -14
- package/vscode/src/vs/workbench/api/browser/mainThreadWebviews.js +6 -1
- package/vscode/src/vs/workbench/api/browser/mainThreadWorkspace.js +32 -5
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +0 -60
- package/vscode/src/vs/workbench/api/common/extHostChat.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +12 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +9 -1
- package/vscode/src/vs/workbench/api/common/extHostProgress.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +11 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +10 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +7 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +49 -9
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +397 -274
- package/vscode/src/vs/workbench/browser/actions/quickAccessActions.js +30 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +85 -31
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +56 -102
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +5 -1
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +55 -11
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +63 -11
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +7 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +15 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +205 -41
- package/vscode/src/vs/workbench/browser/parts/editor/editor.contribution.js +617 -139
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +578 -114
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +96 -20
- package/vscode/src/vs/workbench/browser/parts/editor/editorConfiguration.js +30 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +46 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +30 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +309 -59
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +35 -7
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +185 -33
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +90 -57
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +5 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +16 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +26 -6
- package/vscode/src/vs/workbench/browser/parts/views/viewsService.js +35 -6
- package/vscode/src/vs/workbench/browser/quickaccess.js +6 -6
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +918 -185
- package/vscode/src/vs/workbench/common/configuration.js +25 -11
- package/vscode/src/vs/workbench/common/contextkeys.js +244 -228
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/resourceEditorInput.d.ts +44 -0
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +7 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +6 -1
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/common/editor.d.ts +26 -1
- package/vscode/src/vs/workbench/common/editor.js +26 -5
- package/vscode/src/vs/workbench/common/theme.js +676 -136
- package/vscode/src/vs/workbench/common/views.js +8 -3
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +71 -14
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +21 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +133 -21
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +36 -8
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkEditService.js +96 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +0 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +22 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +22 -4
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +41 -8
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +25 -5
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +34 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/editorFeatures.js +44 -0
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/languageConfigurationExtensionPoint.js +320 -63
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +12 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoLineQuickAccess.js +15 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +30 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +25 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +20 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +10 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +25 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +30 -6
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +25 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +16 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +8 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +23 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +15 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +18 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/comments.contribution.js +142 -26
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +33 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +45 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +63 -10
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +45 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +16 -8
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +41 -21
- package/vscode/src/vs/workbench/contrib/comments/common/commentModel.js +5 -1
- package/vscode/src/vs/workbench/contrib/customEditor/common/customEditor.js +5 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +60 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +275 -55
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +7 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +255 -94
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +120 -24
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +22 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +39 -51
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +394 -75
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +17 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +190 -32
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +5 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +21 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +81 -14
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +26 -5
- package/vscode/src/vs/workbench/contrib/files/common/files.js +70 -26
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +5 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +20 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +75 -111
- package/vscode/src/vs/workbench/contrib/keybindings/browser/keybindings.contribution.js +5 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +6 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +151 -29
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +10 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +0 -42
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +115 -23
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +17 -3
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/commandsQuickAccess.js +49 -9
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.js +66 -13
- package/vscode/src/vs/workbench/contrib/quickaccess/browser/viewQuickAccess.js +52 -10
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +10 -2
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +110 -26
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +21 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +15 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +56 -9
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +25 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +16 -26
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +7 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +20 -4
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +35 -7
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +106 -21
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +81 -21
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +6 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +6 -2
- package/vscode/src/vs/workbench/services/actions/common/menusExtensionPoint.js +592 -112
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.js +5 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +6 -32
- package/vscode/src/vs/workbench/services/configuration/common/jsonEditingService.js +5 -1
- package/vscode/src/vs/workbench/services/decorations/browser/decorationsService.js +5 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +15 -3
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.js +58 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManager.js +5 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +392 -80
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +28 -5
- package/vscode/src/vs/workbench/services/host/browser/browserHostService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/browser/keybindingService.js +129 -24
- package/vscode/src/vs/workbench/services/keybinding/browser/keyboardLayoutService.js +10 -2
- package/vscode/src/vs/workbench/services/keybinding/common/keybindingEditing.js +20 -10
- package/vscode/src/vs/workbench/services/language/common/languageService.js +122 -22
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +28 -9
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +6 -1
- package/vscode/src/vs/workbench/services/textfile/browser/textFileService.js +48 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +5 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModelManager.js +7 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileSaveParticipant.js +6 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +81 -16
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +1 -50
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +126 -25
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +6 -5
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +6 -14
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopySaveParticipant.js +6 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { localizeWithPath } from 'monaco-editor/esm/vs/nls.js';
|
|
2
|
-
import { registerAction2, Action2, MenuId
|
|
2
|
+
import { registerAction2, Action2, MenuId } from 'monaco-editor/esm/vs/platform/actions/common/actions.js';
|
|
3
3
|
import { Categories } from 'monaco-editor/esm/vs/platform/action/common/actionCommonCategories.js';
|
|
4
4
|
import { IConfigurationService } from 'monaco-editor/esm/vs/platform/configuration/common/configuration.js';
|
|
5
5
|
import { IWorkbenchLayoutService, positionToString } from '../../services/layout/browser/layoutService.js';
|
|
@@ -9,7 +9,7 @@ import { isWindows, isLinux, isWeb, isMacintosh, isNative } from 'monaco-editor/
|
|
|
9
9
|
import { IsMacNativeContext } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkeys.js';
|
|
10
10
|
import { KeybindingsRegistry } from 'monaco-editor/esm/vs/platform/keybinding/common/keybindingsRegistry.js';
|
|
11
11
|
import { ContextKeyExpr, IContextKeyService } from 'monaco-editor/esm/vs/platform/contextkey/common/contextkey.js';
|
|
12
|
-
import {
|
|
12
|
+
import { IViewDescriptorService, IViewsService } from '../../common/views.js';
|
|
13
13
|
import { IQuickInputService } from 'monaco-editor/esm/vs/platform/quickinput/common/quickInput.js';
|
|
14
14
|
import '../../../../../../override/vs/platform/dialogs/common/dialogs.js';
|
|
15
15
|
import { IPaneCompositePartService } from '../../services/panecomposite/browser/panecomposite.js';
|
|
@@ -22,27 +22,95 @@ import { ThemeIcon } from 'monaco-editor/esm/vs/base/common/themables.js';
|
|
|
22
22
|
import { DisposableStore } from 'monaco-editor/esm/vs/base/common/lifecycle.js';
|
|
23
23
|
import { registerIcon } from 'monaco-editor/esm/vs/platform/theme/common/iconRegistry.js';
|
|
24
24
|
import { IDialogService } from '../../../platform/dialogs/common/dialogs.js';
|
|
25
|
-
const menubarIcon = registerIcon('menuBar', Codicon.layoutMenubar, localizeWithPath(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
const
|
|
25
|
+
const menubarIcon = registerIcon('menuBar', Codicon.layoutMenubar, ( localizeWithPath(
|
|
26
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
27
|
+
'menuBarIcon',
|
|
28
|
+
"Represents the menu bar"
|
|
29
|
+
)));
|
|
30
|
+
const activityBarLeftIcon = registerIcon('activity-bar-left', Codicon.layoutActivitybarLeft, ( localizeWithPath(
|
|
31
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
32
|
+
'activityBarLeft',
|
|
33
|
+
"Represents the activity bar in the left position"
|
|
34
|
+
)));
|
|
35
|
+
const activityBarRightIcon = registerIcon('activity-bar-right', Codicon.layoutActivitybarRight, ( localizeWithPath(
|
|
36
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
37
|
+
'activityBarRight',
|
|
38
|
+
"Represents the activity bar in the right position"
|
|
39
|
+
)));
|
|
40
|
+
const panelLeftIcon = registerIcon('panel-left', Codicon.layoutSidebarLeft, ( localizeWithPath(
|
|
41
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
42
|
+
'panelLeft',
|
|
43
|
+
"Represents a side bar in the left position"
|
|
44
|
+
)));
|
|
45
|
+
registerIcon('panel-left-off', Codicon.layoutSidebarLeftOff, ( localizeWithPath(
|
|
46
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
47
|
+
'panelLeftOff',
|
|
48
|
+
"Represents a side bar in the left position toggled off"
|
|
49
|
+
)));
|
|
50
|
+
const panelRightIcon = registerIcon('panel-right', Codicon.layoutSidebarRight, ( localizeWithPath(
|
|
51
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
52
|
+
'panelRight',
|
|
53
|
+
"Represents side bar in the right position"
|
|
54
|
+
)));
|
|
55
|
+
registerIcon('panel-right-off', Codicon.layoutSidebarRightOff, ( localizeWithPath(
|
|
56
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
57
|
+
'panelRightOff',
|
|
58
|
+
"Represents side bar in the right position toggled off"
|
|
59
|
+
)));
|
|
60
|
+
const panelIcon = registerIcon('panel-bottom', Codicon.layoutPanel, ( localizeWithPath(
|
|
61
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
62
|
+
'panelBottom',
|
|
63
|
+
"Represents the bottom panel"
|
|
64
|
+
)));
|
|
65
|
+
const statusBarIcon = registerIcon('statusBar', Codicon.layoutStatusbar, ( localizeWithPath(
|
|
66
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
67
|
+
'statusBarIcon',
|
|
68
|
+
"Represents the status bar"
|
|
69
|
+
)));
|
|
70
|
+
const panelAlignmentLeftIcon = registerIcon('panel-align-left', Codicon.layoutPanelLeft, ( localizeWithPath(
|
|
71
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
72
|
+
'panelBottomLeft',
|
|
73
|
+
"Represents the bottom panel alignment set to the left"
|
|
74
|
+
)));
|
|
75
|
+
const panelAlignmentRightIcon = registerIcon('panel-align-right', Codicon.layoutPanelRight, ( localizeWithPath(
|
|
76
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
77
|
+
'panelBottomRight',
|
|
78
|
+
"Represents the bottom panel alignment set to the right"
|
|
79
|
+
)));
|
|
80
|
+
const panelAlignmentCenterIcon = registerIcon('panel-align-center', Codicon.layoutPanelCenter, ( localizeWithPath(
|
|
81
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
82
|
+
'panelBottomCenter',
|
|
83
|
+
"Represents the bottom panel alignment set to the center"
|
|
84
|
+
)));
|
|
85
|
+
const panelAlignmentJustifyIcon = registerIcon('panel-align-justify', Codicon.layoutPanelJustify, ( localizeWithPath(
|
|
86
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
87
|
+
'panelBottomJustify',
|
|
88
|
+
"Represents the bottom panel alignment set to justified"
|
|
89
|
+
)));
|
|
90
|
+
const fullscreenIcon = registerIcon('fullscreen', Codicon.screenFull, ( localizeWithPath(
|
|
91
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
92
|
+
'fullScreenIcon',
|
|
93
|
+
"Represents full screen"
|
|
94
|
+
)));
|
|
95
|
+
const centerLayoutIcon = registerIcon('centerLayoutIcon', Codicon.layoutCentered, ( localizeWithPath(
|
|
96
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
97
|
+
'centerLayoutIcon',
|
|
98
|
+
"Represents centered layout mode"
|
|
99
|
+
)));
|
|
100
|
+
const zenModeIcon = registerIcon('zenMode', Codicon.target, ( localizeWithPath(
|
|
101
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
102
|
+
'zenModeIcon',
|
|
103
|
+
"Represents zen mode"
|
|
104
|
+
)));
|
|
41
105
|
registerAction2(class extends Action2 {
|
|
42
106
|
constructor() {
|
|
43
107
|
super({
|
|
44
108
|
id: 'workbench.action.closeSidebar',
|
|
45
|
-
title: { value: localizeWithPath(
|
|
109
|
+
title: { value: ( localizeWithPath(
|
|
110
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
111
|
+
'closeSidebar',
|
|
112
|
+
"Close Primary Side Bar"
|
|
113
|
+
)), original: 'Close Primary Side Bar' },
|
|
46
114
|
category: Categories.View,
|
|
47
115
|
f1: true
|
|
48
116
|
});
|
|
@@ -58,8 +126,16 @@ class ToggleActivityBarVisibilityAction extends Action2 {
|
|
|
58
126
|
super({
|
|
59
127
|
id: ToggleActivityBarVisibilityAction.ID,
|
|
60
128
|
title: {
|
|
61
|
-
value: localizeWithPath(
|
|
62
|
-
|
|
129
|
+
value: ( localizeWithPath(
|
|
130
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
131
|
+
'toggleActivityBar',
|
|
132
|
+
"Toggle Activity Bar Visibility"
|
|
133
|
+
)),
|
|
134
|
+
mnemonicTitle: ( localizeWithPath(
|
|
135
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
136
|
+
{ key: 'miActivityBar', comment: ['&& denotes a mnemonic'] },
|
|
137
|
+
"&&Activity Bar"
|
|
138
|
+
)),
|
|
63
139
|
original: 'Toggle Activity Bar Visibility'
|
|
64
140
|
},
|
|
65
141
|
category: Categories.View,
|
|
@@ -86,8 +162,16 @@ registerAction2(class extends Action2 {
|
|
|
86
162
|
super({
|
|
87
163
|
id: 'workbench.action.toggleCenteredLayout',
|
|
88
164
|
title: {
|
|
89
|
-
value: localizeWithPath(
|
|
90
|
-
|
|
165
|
+
value: ( localizeWithPath(
|
|
166
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
167
|
+
'toggleCenteredLayout',
|
|
168
|
+
"Toggle Centered Layout"
|
|
169
|
+
)),
|
|
170
|
+
mnemonicTitle: ( localizeWithPath(
|
|
171
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
172
|
+
{ key: 'miToggleCenteredLayout', comment: ['&& denotes a mnemonic'] },
|
|
173
|
+
"&&Centered Layout"
|
|
174
|
+
)),
|
|
91
175
|
original: 'Toggle Centered Layout'
|
|
92
176
|
},
|
|
93
177
|
category: Categories.View,
|
|
@@ -128,7 +212,11 @@ class MoveSidebarRightAction extends MoveSidebarPositionAction {
|
|
|
128
212
|
static { this.ID = 'workbench.action.moveSideBarRight'; }
|
|
129
213
|
constructor() {
|
|
130
214
|
super(MoveSidebarRightAction.ID, {
|
|
131
|
-
value: localizeWithPath(
|
|
215
|
+
value: ( localizeWithPath(
|
|
216
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
217
|
+
'moveSidebarRight',
|
|
218
|
+
"Move Primary Side Bar Right"
|
|
219
|
+
)),
|
|
132
220
|
original: 'Move Primary Side Bar Right'
|
|
133
221
|
}, 1 );
|
|
134
222
|
}
|
|
@@ -137,7 +225,11 @@ class MoveSidebarLeftAction extends MoveSidebarPositionAction {
|
|
|
137
225
|
static { this.ID = 'workbench.action.moveSideBarLeft'; }
|
|
138
226
|
constructor() {
|
|
139
227
|
super(MoveSidebarLeftAction.ID, {
|
|
140
|
-
value: localizeWithPath(
|
|
228
|
+
value: ( localizeWithPath(
|
|
229
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
230
|
+
'moveSidebarLeft',
|
|
231
|
+
"Move Primary Side Bar Left"
|
|
232
|
+
)),
|
|
141
233
|
original: 'Move Primary Side Bar Left'
|
|
142
234
|
}, 0 );
|
|
143
235
|
}
|
|
@@ -146,14 +238,30 @@ registerAction2(MoveSidebarRightAction);
|
|
|
146
238
|
registerAction2(MoveSidebarLeftAction);
|
|
147
239
|
class ToggleSidebarPositionAction extends Action2 {
|
|
148
240
|
static { this.ID = 'workbench.action.toggleSidebarPosition'; }
|
|
149
|
-
static { this.LABEL = localizeWithPath(
|
|
241
|
+
static { this.LABEL = ( localizeWithPath(
|
|
242
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
243
|
+
'toggleSidebarPosition',
|
|
244
|
+
"Toggle Primary Side Bar Position"
|
|
245
|
+
)); }
|
|
150
246
|
static getLabel(layoutService) {
|
|
151
|
-
return layoutService.getSideBarPosition() === 0 ?
|
|
247
|
+
return layoutService.getSideBarPosition() === 0 ? ( localizeWithPath(
|
|
248
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
249
|
+
'moveSidebarRight',
|
|
250
|
+
"Move Primary Side Bar Right"
|
|
251
|
+
)) : ( localizeWithPath(
|
|
252
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
253
|
+
'moveSidebarLeft',
|
|
254
|
+
"Move Primary Side Bar Left"
|
|
255
|
+
));
|
|
152
256
|
}
|
|
153
257
|
constructor() {
|
|
154
258
|
super({
|
|
155
259
|
id: ToggleSidebarPositionAction.ID,
|
|
156
|
-
title: { value: localizeWithPath(
|
|
260
|
+
title: { value: ( localizeWithPath(
|
|
261
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
262
|
+
'toggleSidebarPosition',
|
|
263
|
+
"Toggle Primary Side Bar Position"
|
|
264
|
+
)), original: 'Toggle Primary Side Bar Position' },
|
|
157
265
|
category: Categories.View,
|
|
158
266
|
f1: true
|
|
159
267
|
});
|
|
@@ -167,124 +275,26 @@ class ToggleSidebarPositionAction extends Action2 {
|
|
|
167
275
|
}
|
|
168
276
|
}
|
|
169
277
|
registerAction2(ToggleSidebarPositionAction);
|
|
170
|
-
const configureLayoutIcon = registerIcon('configure-layout-icon', Codicon.layout, localizeWithPath(
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
group: '1_workbench_layout',
|
|
176
|
-
when: ( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'menu'))
|
|
177
|
-
}));
|
|
178
|
-
( MenuRegistry.appendMenuItems([{
|
|
179
|
-
id: MenuId.ViewContainerTitleContext,
|
|
180
|
-
item: {
|
|
181
|
-
group: '3_workbench_layout_move',
|
|
182
|
-
command: {
|
|
183
|
-
id: ToggleSidebarPositionAction.ID,
|
|
184
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'move side bar right', "Move Primary Side Bar Right")
|
|
185
|
-
},
|
|
186
|
-
when: ( ContextKeyExpr.and(( ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
|
|
187
|
-
'viewContainerLocation',
|
|
188
|
-
ViewContainerLocationToString(0 )
|
|
189
|
-
)))),
|
|
190
|
-
order: 1
|
|
191
|
-
}
|
|
192
|
-
}, {
|
|
193
|
-
id: MenuId.ViewTitleContext,
|
|
194
|
-
item: {
|
|
195
|
-
group: '3_workbench_layout_move',
|
|
196
|
-
command: {
|
|
197
|
-
id: ToggleSidebarPositionAction.ID,
|
|
198
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'move sidebar right', "Move Primary Side Bar Right")
|
|
199
|
-
},
|
|
200
|
-
when: ( ContextKeyExpr.and(( ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
|
|
201
|
-
'viewLocation',
|
|
202
|
-
ViewContainerLocationToString(0 )
|
|
203
|
-
)))),
|
|
204
|
-
order: 1
|
|
205
|
-
}
|
|
206
|
-
}, {
|
|
207
|
-
id: MenuId.ViewContainerTitleContext,
|
|
208
|
-
item: {
|
|
209
|
-
group: '3_workbench_layout_move',
|
|
210
|
-
command: {
|
|
211
|
-
id: ToggleSidebarPositionAction.ID,
|
|
212
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'move sidebar left', "Move Primary Side Bar Left")
|
|
213
|
-
},
|
|
214
|
-
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
|
|
215
|
-
'viewContainerLocation',
|
|
216
|
-
ViewContainerLocationToString(0 )
|
|
217
|
-
)))),
|
|
218
|
-
order: 1
|
|
219
|
-
}
|
|
220
|
-
}, {
|
|
221
|
-
id: MenuId.ViewTitleContext,
|
|
222
|
-
item: {
|
|
223
|
-
group: '3_workbench_layout_move',
|
|
224
|
-
command: {
|
|
225
|
-
id: ToggleSidebarPositionAction.ID,
|
|
226
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'move sidebar left', "Move Primary Side Bar Left")
|
|
227
|
-
},
|
|
228
|
-
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
|
|
229
|
-
'viewLocation',
|
|
230
|
-
ViewContainerLocationToString(0 )
|
|
231
|
-
)))),
|
|
232
|
-
order: 1
|
|
233
|
-
}
|
|
234
|
-
}, {
|
|
235
|
-
id: MenuId.ViewTitleContext,
|
|
236
|
-
item: {
|
|
237
|
-
group: '3_workbench_layout_move',
|
|
238
|
-
command: {
|
|
239
|
-
id: ToggleSidebarPositionAction.ID,
|
|
240
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'move second sidebar left', "Move Secondary Side Bar Left")
|
|
241
|
-
},
|
|
242
|
-
when: ( ContextKeyExpr.and(( ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
|
|
243
|
-
'viewLocation',
|
|
244
|
-
ViewContainerLocationToString(2 )
|
|
245
|
-
)))),
|
|
246
|
-
order: 1
|
|
247
|
-
}
|
|
248
|
-
}, {
|
|
249
|
-
id: MenuId.ViewTitleContext,
|
|
250
|
-
item: {
|
|
251
|
-
group: '3_workbench_layout_move',
|
|
252
|
-
command: {
|
|
253
|
-
id: ToggleSidebarPositionAction.ID,
|
|
254
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'move second sidebar right', "Move Secondary Side Bar Right")
|
|
255
|
-
},
|
|
256
|
-
when: ( ContextKeyExpr.and(( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')), ( ContextKeyExpr.equals(
|
|
257
|
-
'viewLocation',
|
|
258
|
-
ViewContainerLocationToString(2 )
|
|
259
|
-
)))),
|
|
260
|
-
order: 1
|
|
261
|
-
}
|
|
262
|
-
}]));
|
|
263
|
-
( MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
264
|
-
group: '3_workbench_layout_move',
|
|
265
|
-
command: {
|
|
266
|
-
id: ToggleSidebarPositionAction.ID,
|
|
267
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', { key: 'miMoveSidebarRight', comment: ['&& denotes a mnemonic'] }, "&&Move Primary Side Bar Right")
|
|
268
|
-
},
|
|
269
|
-
when: ( ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')),
|
|
270
|
-
order: 2
|
|
271
|
-
}));
|
|
272
|
-
( MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
273
|
-
group: '3_workbench_layout_move',
|
|
274
|
-
command: {
|
|
275
|
-
id: ToggleSidebarPositionAction.ID,
|
|
276
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', { key: 'miMoveSidebarLeft', comment: ['&& denotes a mnemonic'] }, "&&Move Primary Side Bar Left")
|
|
277
|
-
},
|
|
278
|
-
when: ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')),
|
|
279
|
-
order: 2
|
|
280
|
-
}));
|
|
278
|
+
const configureLayoutIcon = registerIcon('configure-layout-icon', Codicon.layout, ( localizeWithPath(
|
|
279
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
280
|
+
'cofigureLayoutIcon',
|
|
281
|
+
'Icon represents workbench layout configuration.'
|
|
282
|
+
)));
|
|
281
283
|
registerAction2(class extends Action2 {
|
|
282
284
|
constructor() {
|
|
283
285
|
super({
|
|
284
286
|
id: 'workbench.action.toggleEditorVisibility',
|
|
285
287
|
title: {
|
|
286
|
-
value: localizeWithPath(
|
|
287
|
-
|
|
288
|
+
value: ( localizeWithPath(
|
|
289
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
290
|
+
'toggleEditor',
|
|
291
|
+
"Toggle Editor Area Visibility"
|
|
292
|
+
)),
|
|
293
|
+
mnemonicTitle: ( localizeWithPath(
|
|
294
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
295
|
+
{ key: 'miShowEditorArea', comment: ['&& denotes a mnemonic'] },
|
|
296
|
+
"Show &&Editor Area"
|
|
297
|
+
)),
|
|
288
298
|
original: 'Toggle Editor Area Visibility'
|
|
289
299
|
},
|
|
290
300
|
category: Categories.View,
|
|
@@ -297,22 +307,28 @@ registerAction2(class extends Action2 {
|
|
|
297
307
|
accessor.get(IWorkbenchLayoutService).toggleMaximizedPanel();
|
|
298
308
|
}
|
|
299
309
|
});
|
|
300
|
-
( MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
301
|
-
group: '2_appearance',
|
|
302
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', { key: 'miAppearance', comment: ['&& denotes a mnemonic'] }, "&&Appearance"),
|
|
303
|
-
submenu: MenuId.MenubarAppearanceMenu,
|
|
304
|
-
order: 1
|
|
305
|
-
}));
|
|
306
310
|
class ToggleSidebarVisibilityAction extends Action2 {
|
|
307
311
|
static { this.ID = 'workbench.action.toggleSidebarVisibility'; }
|
|
308
312
|
constructor() {
|
|
309
313
|
super({
|
|
310
314
|
id: ToggleSidebarVisibilityAction.ID,
|
|
311
|
-
title: { value: localizeWithPath(
|
|
315
|
+
title: { value: ( localizeWithPath(
|
|
316
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
317
|
+
'toggleSidebar',
|
|
318
|
+
"Toggle Primary Side Bar Visibility"
|
|
319
|
+
)), original: 'Toggle Primary Side Bar Visibility' },
|
|
312
320
|
toggled: {
|
|
313
321
|
condition: SideBarVisibleContext,
|
|
314
|
-
title: localizeWithPath(
|
|
315
|
-
|
|
322
|
+
title: ( localizeWithPath(
|
|
323
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
324
|
+
'primary sidebar',
|
|
325
|
+
"Primary Side Bar"
|
|
326
|
+
)),
|
|
327
|
+
mnemonicTitle: ( localizeWithPath(
|
|
328
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
329
|
+
{ key: 'primary sidebar mnemonic', comment: ['&& denotes a mnemonic'] },
|
|
330
|
+
"&&Primary Side Bar"
|
|
331
|
+
)),
|
|
316
332
|
},
|
|
317
333
|
category: Categories.View,
|
|
318
334
|
f1: true,
|
|
@@ -340,63 +356,6 @@ class ToggleSidebarVisibilityAction extends Action2 {
|
|
|
340
356
|
}
|
|
341
357
|
}
|
|
342
358
|
registerAction2(ToggleSidebarVisibilityAction);
|
|
343
|
-
( MenuRegistry.appendMenuItems([
|
|
344
|
-
{
|
|
345
|
-
id: MenuId.ViewContainerTitleContext,
|
|
346
|
-
item: {
|
|
347
|
-
group: '3_workbench_layout_move',
|
|
348
|
-
command: {
|
|
349
|
-
id: ToggleSidebarVisibilityAction.ID,
|
|
350
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'compositePart.hideSideBarLabel', "Hide Primary Side Bar"),
|
|
351
|
-
},
|
|
352
|
-
when: ( ContextKeyExpr.and(SideBarVisibleContext, ( ContextKeyExpr.equals(
|
|
353
|
-
'viewContainerLocation',
|
|
354
|
-
ViewContainerLocationToString(0 )
|
|
355
|
-
)))),
|
|
356
|
-
order: 2
|
|
357
|
-
}
|
|
358
|
-
}, {
|
|
359
|
-
id: MenuId.ViewTitleContext,
|
|
360
|
-
item: {
|
|
361
|
-
group: '3_workbench_layout_move',
|
|
362
|
-
command: {
|
|
363
|
-
id: ToggleSidebarVisibilityAction.ID,
|
|
364
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'compositePart.hideSideBarLabel', "Hide Primary Side Bar"),
|
|
365
|
-
},
|
|
366
|
-
when: ( ContextKeyExpr.and(SideBarVisibleContext, ( ContextKeyExpr.equals(
|
|
367
|
-
'viewLocation',
|
|
368
|
-
ViewContainerLocationToString(0 )
|
|
369
|
-
)))),
|
|
370
|
-
order: 2
|
|
371
|
-
}
|
|
372
|
-
}, {
|
|
373
|
-
id: MenuId.LayoutControlMenu,
|
|
374
|
-
item: {
|
|
375
|
-
group: '0_workbench_toggles',
|
|
376
|
-
command: {
|
|
377
|
-
id: ToggleSidebarVisibilityAction.ID,
|
|
378
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'toggleSideBar', "Toggle Primary Side Bar"),
|
|
379
|
-
icon: panelLeftOffIcon,
|
|
380
|
-
toggled: { condition: SideBarVisibleContext, icon: panelLeftIcon }
|
|
381
|
-
},
|
|
382
|
-
when: ( ContextKeyExpr.and(( ContextKeyExpr.or(( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'toggles')), ( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'both')))), ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'left')))),
|
|
383
|
-
order: 0
|
|
384
|
-
}
|
|
385
|
-
}, {
|
|
386
|
-
id: MenuId.LayoutControlMenu,
|
|
387
|
-
item: {
|
|
388
|
-
group: '0_workbench_toggles',
|
|
389
|
-
command: {
|
|
390
|
-
id: ToggleSidebarVisibilityAction.ID,
|
|
391
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'toggleSideBar', "Toggle Primary Side Bar"),
|
|
392
|
-
icon: panelRightOffIcon,
|
|
393
|
-
toggled: { condition: SideBarVisibleContext, icon: panelRightIcon }
|
|
394
|
-
},
|
|
395
|
-
when: ( ContextKeyExpr.and(( ContextKeyExpr.or(( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'toggles')), ( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'both')))), ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')))),
|
|
396
|
-
order: 2
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
]));
|
|
400
359
|
class ToggleStatusbarVisibilityAction extends Action2 {
|
|
401
360
|
static { this.ID = 'workbench.action.toggleStatusbarVisibility'; }
|
|
402
361
|
static { this.statusbarVisibleKey = 'workbench.statusBar.visible'; }
|
|
@@ -404,8 +363,16 @@ class ToggleStatusbarVisibilityAction extends Action2 {
|
|
|
404
363
|
super({
|
|
405
364
|
id: ToggleStatusbarVisibilityAction.ID,
|
|
406
365
|
title: {
|
|
407
|
-
value: localizeWithPath(
|
|
408
|
-
|
|
366
|
+
value: ( localizeWithPath(
|
|
367
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
368
|
+
'toggleStatusbar',
|
|
369
|
+
"Toggle Status Bar Visibility"
|
|
370
|
+
)),
|
|
371
|
+
mnemonicTitle: ( localizeWithPath(
|
|
372
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
373
|
+
{ key: 'miStatusbar', comment: ['&& denotes a mnemonic'] },
|
|
374
|
+
"S&&tatus Bar"
|
|
375
|
+
)),
|
|
409
376
|
original: 'Toggle Status Bar Visibility'
|
|
410
377
|
},
|
|
411
378
|
category: Categories.View,
|
|
@@ -441,7 +408,11 @@ class ToggleTabsVisibilityAction extends BaseToggleBooleanSettingAction {
|
|
|
441
408
|
super({
|
|
442
409
|
id: ToggleTabsVisibilityAction.ID,
|
|
443
410
|
title: {
|
|
444
|
-
value: localizeWithPath(
|
|
411
|
+
value: ( localizeWithPath(
|
|
412
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
413
|
+
'toggleTabs',
|
|
414
|
+
"Toggle Editor Tab Visibility"
|
|
415
|
+
)),
|
|
445
416
|
original: 'Toggle Editor Tab Visibility'
|
|
446
417
|
},
|
|
447
418
|
category: Categories.View,
|
|
@@ -459,7 +430,11 @@ class ToggleSeparatePinnedTabsAction extends BaseToggleBooleanSettingAction {
|
|
|
459
430
|
super({
|
|
460
431
|
id: ToggleSeparatePinnedTabsAction.ID,
|
|
461
432
|
title: {
|
|
462
|
-
value: localizeWithPath(
|
|
433
|
+
value: ( localizeWithPath(
|
|
434
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
435
|
+
'toggleSeparatePinnedEditorTabs',
|
|
436
|
+
"Separate Pinned Editor Tabs"
|
|
437
|
+
)),
|
|
463
438
|
original: 'Separate Pinned Editor Tabs'
|
|
464
439
|
},
|
|
465
440
|
category: Categories.View,
|
|
@@ -477,8 +452,16 @@ registerAction2(class extends Action2 {
|
|
|
477
452
|
super({
|
|
478
453
|
id: 'workbench.action.toggleZenMode',
|
|
479
454
|
title: {
|
|
480
|
-
value: localizeWithPath(
|
|
481
|
-
|
|
455
|
+
value: ( localizeWithPath(
|
|
456
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
457
|
+
'toggleZenMode',
|
|
458
|
+
"Toggle Zen Mode"
|
|
459
|
+
)),
|
|
460
|
+
mnemonicTitle: ( localizeWithPath(
|
|
461
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
462
|
+
{ key: 'miToggleZenMode', comment: ['&& denotes a mnemonic'] },
|
|
463
|
+
"Zen Mode"
|
|
464
|
+
)),
|
|
482
465
|
original: 'Toggle Zen Mode'
|
|
483
466
|
},
|
|
484
467
|
category: Categories.View,
|
|
@@ -518,8 +501,16 @@ if (isWindows || isLinux || isWeb) {
|
|
|
518
501
|
super({
|
|
519
502
|
id: 'workbench.action.toggleMenuBar',
|
|
520
503
|
title: {
|
|
521
|
-
value: localizeWithPath(
|
|
522
|
-
|
|
504
|
+
value: ( localizeWithPath(
|
|
505
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
506
|
+
'toggleMenuBar',
|
|
507
|
+
"Toggle Menu Bar"
|
|
508
|
+
)),
|
|
509
|
+
mnemonicTitle: ( localizeWithPath(
|
|
510
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
511
|
+
{ key: 'miMenuBar', comment: ['&& denotes a mnemonic'] },
|
|
512
|
+
"Menu &&Bar"
|
|
513
|
+
)),
|
|
523
514
|
original: 'Toggle Menu Bar'
|
|
524
515
|
},
|
|
525
516
|
category: Categories.View,
|
|
@@ -536,21 +527,17 @@ if (isWindows || isLinux || isWeb) {
|
|
|
536
527
|
return accessor.get(IWorkbenchLayoutService).toggleMenuBar();
|
|
537
528
|
}
|
|
538
529
|
});
|
|
539
|
-
( MenuRegistry.appendMenuItem(MenuId.TitleBarContext, {
|
|
540
|
-
command: {
|
|
541
|
-
id: 'workbench.action.toggleMenuBar',
|
|
542
|
-
title: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'miMenuBarNoMnemonic', "Menu Bar"),
|
|
543
|
-
toggled: ( ContextKeyExpr.and(( IsMacNativeContext.toNegated()), ( ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'hidden')), ( ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'toggle')), ( ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'compact'))))
|
|
544
|
-
},
|
|
545
|
-
order: 0
|
|
546
|
-
}));
|
|
547
530
|
}
|
|
548
531
|
registerAction2(class extends Action2 {
|
|
549
532
|
constructor() {
|
|
550
533
|
super({
|
|
551
534
|
id: 'workbench.action.resetViewLocations',
|
|
552
535
|
title: {
|
|
553
|
-
value: localizeWithPath(
|
|
536
|
+
value: ( localizeWithPath(
|
|
537
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
538
|
+
'resetViewLocations',
|
|
539
|
+
"Reset View Locations"
|
|
540
|
+
)),
|
|
554
541
|
original: 'Reset View Locations'
|
|
555
542
|
},
|
|
556
543
|
category: Categories.View,
|
|
@@ -566,7 +553,7 @@ registerAction2(class extends Action2 {
|
|
|
566
553
|
super({
|
|
567
554
|
id: 'workbench.action.moveView',
|
|
568
555
|
title: {
|
|
569
|
-
value: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'moveView', "Move View"),
|
|
556
|
+
value: ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'moveView', "Move View")),
|
|
570
557
|
original: 'Move View'
|
|
571
558
|
},
|
|
572
559
|
category: Categories.View,
|
|
@@ -606,7 +593,12 @@ registerAction2(class extends Action2 {
|
|
|
606
593
|
if (!hasAddedView) {
|
|
607
594
|
results.push({
|
|
608
595
|
type: 'separator',
|
|
609
|
-
label: localizeWithPath(
|
|
596
|
+
label: ( localizeWithPath(
|
|
597
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
598
|
+
'sidebarContainer',
|
|
599
|
+
"Side Bar / {0}",
|
|
600
|
+
containerModel.title
|
|
601
|
+
))
|
|
610
602
|
});
|
|
611
603
|
hasAddedView = true;
|
|
612
604
|
}
|
|
@@ -627,7 +619,12 @@ registerAction2(class extends Action2 {
|
|
|
627
619
|
if (!hasAddedView) {
|
|
628
620
|
results.push({
|
|
629
621
|
type: 'separator',
|
|
630
|
-
label: localizeWithPath(
|
|
622
|
+
label: ( localizeWithPath(
|
|
623
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
624
|
+
'panelContainer',
|
|
625
|
+
"Panel / {0}",
|
|
626
|
+
containerModel.title
|
|
627
|
+
))
|
|
631
628
|
});
|
|
632
629
|
hasAddedView = true;
|
|
633
630
|
}
|
|
@@ -648,7 +645,12 @@ registerAction2(class extends Action2 {
|
|
|
648
645
|
if (!hasAddedView) {
|
|
649
646
|
results.push({
|
|
650
647
|
type: 'separator',
|
|
651
|
-
label: localizeWithPath(
|
|
648
|
+
label: ( localizeWithPath(
|
|
649
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
650
|
+
'secondarySideBarContainer',
|
|
651
|
+
"Secondary Side Bar / {0}",
|
|
652
|
+
containerModel.title
|
|
653
|
+
))
|
|
652
654
|
});
|
|
653
655
|
hasAddedView = true;
|
|
654
656
|
}
|
|
@@ -663,7 +665,11 @@ registerAction2(class extends Action2 {
|
|
|
663
665
|
}
|
|
664
666
|
async getView(quickInputService, viewDescriptorService, paneCompositePartService, viewId) {
|
|
665
667
|
const quickPick = quickInputService.createQuickPick();
|
|
666
|
-
quickPick.placeholder = localizeWithPath(
|
|
668
|
+
quickPick.placeholder = ( localizeWithPath(
|
|
669
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
670
|
+
'moveFocusedView.selectView',
|
|
671
|
+
"Select a View to Move"
|
|
672
|
+
));
|
|
667
673
|
quickPick.items = this.getViewItems(viewDescriptorService, paneCompositePartService);
|
|
668
674
|
quickPick.selectedItems = quickPick.items.filter(item => item.id === viewId);
|
|
669
675
|
return ( new Promise((resolve, reject) => {
|
|
@@ -687,7 +693,11 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
687
693
|
super({
|
|
688
694
|
id: 'workbench.action.moveFocusedView',
|
|
689
695
|
title: {
|
|
690
|
-
value: localizeWithPath(
|
|
696
|
+
value: ( localizeWithPath(
|
|
697
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
698
|
+
'moveFocusedView',
|
|
699
|
+
"Move Focused View"
|
|
700
|
+
)),
|
|
691
701
|
original: 'Move Focused View'
|
|
692
702
|
},
|
|
693
703
|
category: Categories.View,
|
|
@@ -704,17 +714,34 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
704
714
|
const paneCompositePartService = accessor.get(IPaneCompositePartService);
|
|
705
715
|
const focusedViewId = viewId || FocusedViewContext.getValue(contextKeyService);
|
|
706
716
|
if (focusedViewId === undefined || focusedViewId.trim() === '') {
|
|
707
|
-
dialogService.error(localizeWithPath(
|
|
717
|
+
dialogService.error(( localizeWithPath(
|
|
718
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
719
|
+
'moveFocusedView.error.noFocusedView',
|
|
720
|
+
"There is no view currently focused."
|
|
721
|
+
)));
|
|
708
722
|
return;
|
|
709
723
|
}
|
|
710
724
|
const viewDescriptor = viewDescriptorService.getViewDescriptorById(focusedViewId);
|
|
711
725
|
if (!viewDescriptor || !viewDescriptor.canMoveView) {
|
|
712
|
-
dialogService.error(localizeWithPath(
|
|
726
|
+
dialogService.error(( localizeWithPath(
|
|
727
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
728
|
+
'moveFocusedView.error.nonMovableView',
|
|
729
|
+
"The currently focused view is not movable."
|
|
730
|
+
)));
|
|
713
731
|
return;
|
|
714
732
|
}
|
|
715
733
|
const quickPick = quickInputService.createQuickPick();
|
|
716
|
-
quickPick.placeholder = localizeWithPath(
|
|
717
|
-
|
|
734
|
+
quickPick.placeholder = ( localizeWithPath(
|
|
735
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
736
|
+
'moveFocusedView.selectDestination',
|
|
737
|
+
"Select a Destination for the View"
|
|
738
|
+
));
|
|
739
|
+
quickPick.title = ( localizeWithPath(
|
|
740
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
741
|
+
{ key: 'moveFocusedView.title', comment: ['{0} indicates the title of the view the user has selected to move.'] },
|
|
742
|
+
"View: Move {0}",
|
|
743
|
+
viewDescriptor.name
|
|
744
|
+
));
|
|
718
745
|
const items = [];
|
|
719
746
|
const currentContainer = viewDescriptorService.getViewContainerByViewId(focusedViewId);
|
|
720
747
|
const currentLocation = viewDescriptorService.getViewLocationById(focusedViewId);
|
|
@@ -722,24 +749,36 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
722
749
|
if (!((isViewSolo && currentLocation === 1) )) {
|
|
723
750
|
items.push({
|
|
724
751
|
id: '_.panel.newcontainer',
|
|
725
|
-
label: localizeWithPath(
|
|
752
|
+
label: ( localizeWithPath(
|
|
753
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
754
|
+
{ key: 'moveFocusedView.newContainerInPanel', comment: ['Creates a new top-level tab in the panel.'] },
|
|
755
|
+
"New Panel Entry"
|
|
756
|
+
)),
|
|
726
757
|
});
|
|
727
758
|
}
|
|
728
759
|
if (!((isViewSolo && currentLocation === 0) )) {
|
|
729
760
|
items.push({
|
|
730
761
|
id: '_.sidebar.newcontainer',
|
|
731
|
-
label: localizeWithPath(
|
|
762
|
+
label: ( localizeWithPath(
|
|
763
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
764
|
+
'moveFocusedView.newContainerInSidebar',
|
|
765
|
+
"New Side Bar Entry"
|
|
766
|
+
))
|
|
732
767
|
});
|
|
733
768
|
}
|
|
734
769
|
if (!((isViewSolo && currentLocation === 2) )) {
|
|
735
770
|
items.push({
|
|
736
771
|
id: '_.auxiliarybar.newcontainer',
|
|
737
|
-
label: localizeWithPath(
|
|
772
|
+
label: ( localizeWithPath(
|
|
773
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
774
|
+
'moveFocusedView.newContainerInSidePanel',
|
|
775
|
+
"New Secondary Side Bar Entry"
|
|
776
|
+
))
|
|
738
777
|
});
|
|
739
778
|
}
|
|
740
779
|
items.push({
|
|
741
780
|
type: 'separator',
|
|
742
|
-
label: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'sidebar', "Side Bar")
|
|
781
|
+
label: ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'sidebar', "Side Bar"))
|
|
743
782
|
});
|
|
744
783
|
const pinnedViewlets = paneCompositePartService.getVisiblePaneCompositeIds(0 );
|
|
745
784
|
items.push(...( pinnedViewlets
|
|
@@ -757,7 +796,7 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
757
796
|
})));
|
|
758
797
|
items.push({
|
|
759
798
|
type: 'separator',
|
|
760
|
-
label: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'panel', "Panel")
|
|
799
|
+
label: ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'panel', "Panel"))
|
|
761
800
|
});
|
|
762
801
|
const pinnedPanels = paneCompositePartService.getPinnedPaneCompositeIds(1 );
|
|
763
802
|
items.push(...( pinnedPanels
|
|
@@ -775,7 +814,11 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
775
814
|
})));
|
|
776
815
|
items.push({
|
|
777
816
|
type: 'separator',
|
|
778
|
-
label: localizeWithPath(
|
|
817
|
+
label: ( localizeWithPath(
|
|
818
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
819
|
+
'secondarySideBar',
|
|
820
|
+
"Secondary Side Bar"
|
|
821
|
+
))
|
|
779
822
|
});
|
|
780
823
|
const pinnedAuxPanels = paneCompositePartService.getPinnedPaneCompositeIds(2 );
|
|
781
824
|
items.push(...( pinnedAuxPanels
|
|
@@ -821,7 +864,11 @@ registerAction2(class extends Action2 {
|
|
|
821
864
|
super({
|
|
822
865
|
id: 'workbench.action.resetFocusedViewLocation',
|
|
823
866
|
title: {
|
|
824
|
-
value: localizeWithPath(
|
|
867
|
+
value: ( localizeWithPath(
|
|
868
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
869
|
+
'resetFocusedViewLocation',
|
|
870
|
+
"Reset Focused View Location"
|
|
871
|
+
)),
|
|
825
872
|
original: 'Reset Focused View Location'
|
|
826
873
|
},
|
|
827
874
|
category: Categories.View,
|
|
@@ -840,7 +887,11 @@ registerAction2(class extends Action2 {
|
|
|
840
887
|
viewDescriptor = viewDescriptorService.getViewDescriptorById(focusedViewId);
|
|
841
888
|
}
|
|
842
889
|
if (!viewDescriptor) {
|
|
843
|
-
dialogService.error(localizeWithPath(
|
|
890
|
+
dialogService.error(( localizeWithPath(
|
|
891
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
892
|
+
'resetFocusedView.error.noFocusedView',
|
|
893
|
+
"There is no view currently focused."
|
|
894
|
+
)));
|
|
844
895
|
return;
|
|
845
896
|
}
|
|
846
897
|
const defaultContainer = viewDescriptorService.getDefaultContainerById(viewDescriptor.id);
|
|
@@ -885,7 +936,11 @@ class IncreaseViewSizeAction extends BaseResizeViewAction {
|
|
|
885
936
|
constructor() {
|
|
886
937
|
super({
|
|
887
938
|
id: 'workbench.action.increaseViewSize',
|
|
888
|
-
title: { value: localizeWithPath(
|
|
939
|
+
title: { value: ( localizeWithPath(
|
|
940
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
941
|
+
'increaseViewSize',
|
|
942
|
+
"Increase Current View Size"
|
|
943
|
+
)), original: 'Increase Current View Size' },
|
|
889
944
|
f1: true
|
|
890
945
|
});
|
|
891
946
|
}
|
|
@@ -897,7 +952,11 @@ class IncreaseViewWidthAction extends BaseResizeViewAction {
|
|
|
897
952
|
constructor() {
|
|
898
953
|
super({
|
|
899
954
|
id: 'workbench.action.increaseViewWidth',
|
|
900
|
-
title: { value: localizeWithPath(
|
|
955
|
+
title: { value: ( localizeWithPath(
|
|
956
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
957
|
+
'increaseEditorWidth',
|
|
958
|
+
"Increase Editor Width"
|
|
959
|
+
)), original: 'Increase Editor Width' },
|
|
901
960
|
f1: true
|
|
902
961
|
});
|
|
903
962
|
}
|
|
@@ -909,7 +968,11 @@ class IncreaseViewHeightAction extends BaseResizeViewAction {
|
|
|
909
968
|
constructor() {
|
|
910
969
|
super({
|
|
911
970
|
id: 'workbench.action.increaseViewHeight',
|
|
912
|
-
title: { value: localizeWithPath(
|
|
971
|
+
title: { value: ( localizeWithPath(
|
|
972
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
973
|
+
'increaseEditorHeight',
|
|
974
|
+
"Increase Editor Height"
|
|
975
|
+
)), original: 'Increase Editor Height' },
|
|
913
976
|
f1: true
|
|
914
977
|
});
|
|
915
978
|
}
|
|
@@ -921,7 +984,11 @@ class DecreaseViewSizeAction extends BaseResizeViewAction {
|
|
|
921
984
|
constructor() {
|
|
922
985
|
super({
|
|
923
986
|
id: 'workbench.action.decreaseViewSize',
|
|
924
|
-
title: { value: localizeWithPath(
|
|
987
|
+
title: { value: ( localizeWithPath(
|
|
988
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
989
|
+
'decreaseViewSize',
|
|
990
|
+
"Decrease Current View Size"
|
|
991
|
+
)), original: 'Decrease Current View Size' },
|
|
925
992
|
f1: true
|
|
926
993
|
});
|
|
927
994
|
}
|
|
@@ -933,7 +1000,11 @@ class DecreaseViewWidthAction extends BaseResizeViewAction {
|
|
|
933
1000
|
constructor() {
|
|
934
1001
|
super({
|
|
935
1002
|
id: 'workbench.action.decreaseViewWidth',
|
|
936
|
-
title: { value: localizeWithPath(
|
|
1003
|
+
title: { value: ( localizeWithPath(
|
|
1004
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1005
|
+
'decreaseEditorWidth',
|
|
1006
|
+
"Decrease Editor Width"
|
|
1007
|
+
)), original: 'Decrease Editor Width' },
|
|
937
1008
|
f1: true
|
|
938
1009
|
});
|
|
939
1010
|
}
|
|
@@ -945,7 +1016,11 @@ class DecreaseViewHeightAction extends BaseResizeViewAction {
|
|
|
945
1016
|
constructor() {
|
|
946
1017
|
super({
|
|
947
1018
|
id: 'workbench.action.decreaseViewHeight',
|
|
948
|
-
title: { value: localizeWithPath(
|
|
1019
|
+
title: { value: ( localizeWithPath(
|
|
1020
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1021
|
+
'decreaseEditorHeight',
|
|
1022
|
+
"Decrease Editor Height"
|
|
1023
|
+
)), original: 'Decrease Editor Height' },
|
|
949
1024
|
f1: true
|
|
950
1025
|
});
|
|
951
1026
|
}
|
|
@@ -970,8 +1045,16 @@ const CreateToggleLayoutItem = (id, active, label, visualIcon) => {
|
|
|
970
1045
|
visualIcon,
|
|
971
1046
|
activeIcon: Codicon.eye,
|
|
972
1047
|
inactiveIcon: Codicon.eyeClosed,
|
|
973
|
-
activeAriaLabel: localizeWithPath(
|
|
974
|
-
|
|
1048
|
+
activeAriaLabel: ( localizeWithPath(
|
|
1049
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1050
|
+
'selectToHide',
|
|
1051
|
+
"Select to Hide"
|
|
1052
|
+
)),
|
|
1053
|
+
inactiveAriaLabel: ( localizeWithPath(
|
|
1054
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1055
|
+
'selectToShow',
|
|
1056
|
+
"Select to Show"
|
|
1057
|
+
)),
|
|
975
1058
|
useButtons: true,
|
|
976
1059
|
};
|
|
977
1060
|
};
|
|
@@ -982,36 +1065,52 @@ const CreateOptionLayoutItem = (id, active, label, visualIcon) => {
|
|
|
982
1065
|
label,
|
|
983
1066
|
visualIcon,
|
|
984
1067
|
activeIcon: Codicon.check,
|
|
985
|
-
activeAriaLabel: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'active', "Active"),
|
|
1068
|
+
activeAriaLabel: ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'active', "Active")),
|
|
986
1069
|
useButtons: false
|
|
987
1070
|
};
|
|
988
1071
|
};
|
|
989
1072
|
const MenuBarToggledContext = ( ContextKeyExpr.and(( IsMacNativeContext.toNegated()), ( ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'hidden')), ( ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'toggle')), ( ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'compact'))));
|
|
990
1073
|
const ToggleVisibilityActions = [];
|
|
991
1074
|
if (!isMacintosh || !isNative) {
|
|
992
|
-
ToggleVisibilityActions.push(CreateToggleLayoutItem('workbench.action.toggleMenuBar', MenuBarToggledContext, localizeWithPath('vs/workbench/browser/actions/layoutActions', 'menuBar', "Menu Bar"), menubarIcon));
|
|
1075
|
+
ToggleVisibilityActions.push(CreateToggleLayoutItem('workbench.action.toggleMenuBar', MenuBarToggledContext, ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'menuBar', "Menu Bar")), menubarIcon));
|
|
993
1076
|
}
|
|
994
1077
|
ToggleVisibilityActions.push(...[
|
|
995
|
-
CreateToggleLayoutItem(ToggleActivityBarVisibilityAction.ID, ( ContextKeyExpr.equals('config.workbench.activityBar.visible', true)),
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1078
|
+
CreateToggleLayoutItem(ToggleActivityBarVisibilityAction.ID, ( ContextKeyExpr.equals('config.workbench.activityBar.visible', true)), ( localizeWithPath(
|
|
1079
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1080
|
+
'activityBar',
|
|
1081
|
+
"Activity Bar"
|
|
1082
|
+
)), { whenA: ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'left')), iconA: activityBarLeftIcon, iconB: activityBarRightIcon }),
|
|
1083
|
+
CreateToggleLayoutItem(ToggleSidebarVisibilityAction.ID, SideBarVisibleContext, ( localizeWithPath(
|
|
1084
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1085
|
+
'sideBar',
|
|
1086
|
+
"Primary Side Bar"
|
|
1087
|
+
)), { whenA: ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'left')), iconA: panelLeftIcon, iconB: panelRightIcon }),
|
|
1088
|
+
CreateToggleLayoutItem(ToggleAuxiliaryBarAction.ID, AuxiliaryBarVisibleContext, ( localizeWithPath(
|
|
1089
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1090
|
+
'secondarySideBar',
|
|
1091
|
+
"Secondary Side Bar"
|
|
1092
|
+
)), { whenA: ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'left')), iconA: panelRightIcon, iconB: panelLeftIcon }),
|
|
1093
|
+
CreateToggleLayoutItem(TogglePanelAction.ID, PanelVisibleContext, ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'panel', "Panel")), panelIcon),
|
|
1094
|
+
CreateToggleLayoutItem(ToggleStatusbarVisibilityAction.ID, ( ContextKeyExpr.equals('config.workbench.statusBar.visible', true)), ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'statusBar', "Status Bar")), statusBarIcon),
|
|
1000
1095
|
]);
|
|
1001
1096
|
const MoveSideBarActions = [
|
|
1002
|
-
CreateOptionLayoutItem(MoveSidebarLeftAction.ID, ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'left')), localizeWithPath('vs/workbench/browser/actions/layoutActions', 'leftSideBar', "Left"), panelLeftIcon),
|
|
1003
|
-
CreateOptionLayoutItem(MoveSidebarRightAction.ID, ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')), localizeWithPath('vs/workbench/browser/actions/layoutActions', 'rightSideBar', "Right"), panelRightIcon),
|
|
1097
|
+
CreateOptionLayoutItem(MoveSidebarLeftAction.ID, ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'left')), ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'leftSideBar', "Left")), panelLeftIcon),
|
|
1098
|
+
CreateOptionLayoutItem(MoveSidebarRightAction.ID, ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')), ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'rightSideBar', "Right")), panelRightIcon),
|
|
1004
1099
|
];
|
|
1005
1100
|
const AlignPanelActions = [
|
|
1006
|
-
CreateOptionLayoutItem('workbench.action.alignPanelLeft', ( PanelAlignmentContext.isEqualTo('left')), localizeWithPath('vs/workbench/browser/actions/layoutActions', 'leftPanel', "Left"), panelAlignmentLeftIcon),
|
|
1007
|
-
CreateOptionLayoutItem('workbench.action.alignPanelRight', ( PanelAlignmentContext.isEqualTo('right')), localizeWithPath('vs/workbench/browser/actions/layoutActions', 'rightPanel', "Right"), panelAlignmentRightIcon),
|
|
1008
|
-
CreateOptionLayoutItem('workbench.action.alignPanelCenter', ( PanelAlignmentContext.isEqualTo('center')), localizeWithPath('vs/workbench/browser/actions/layoutActions', 'centerPanel', "Center"), panelAlignmentCenterIcon),
|
|
1009
|
-
CreateOptionLayoutItem('workbench.action.alignPanelJustify', ( PanelAlignmentContext.isEqualTo('justify')), localizeWithPath('vs/workbench/browser/actions/layoutActions', 'justifyPanel', "Justify"), panelAlignmentJustifyIcon),
|
|
1101
|
+
CreateOptionLayoutItem('workbench.action.alignPanelLeft', ( PanelAlignmentContext.isEqualTo('left')), ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'leftPanel', "Left")), panelAlignmentLeftIcon),
|
|
1102
|
+
CreateOptionLayoutItem('workbench.action.alignPanelRight', ( PanelAlignmentContext.isEqualTo('right')), ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'rightPanel', "Right")), panelAlignmentRightIcon),
|
|
1103
|
+
CreateOptionLayoutItem('workbench.action.alignPanelCenter', ( PanelAlignmentContext.isEqualTo('center')), ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'centerPanel', "Center")), panelAlignmentCenterIcon),
|
|
1104
|
+
CreateOptionLayoutItem('workbench.action.alignPanelJustify', ( PanelAlignmentContext.isEqualTo('justify')), ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'justifyPanel', "Justify")), panelAlignmentJustifyIcon),
|
|
1010
1105
|
];
|
|
1011
1106
|
const MiscLayoutOptions = [
|
|
1012
|
-
CreateOptionLayoutItem('workbench.action.toggleFullScreen', IsFullscreenContext, localizeWithPath('vs/workbench/browser/actions/layoutActions', 'fullscreen', "Full Screen"), fullscreenIcon),
|
|
1013
|
-
CreateOptionLayoutItem('workbench.action.toggleZenMode', InEditorZenModeContext, localizeWithPath('vs/workbench/browser/actions/layoutActions', 'zenMode', "Zen Mode"), zenModeIcon),
|
|
1014
|
-
CreateOptionLayoutItem('workbench.action.toggleCenteredLayout', IsCenteredLayoutContext, localizeWithPath(
|
|
1107
|
+
CreateOptionLayoutItem('workbench.action.toggleFullScreen', IsFullscreenContext, ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'fullscreen', "Full Screen")), fullscreenIcon),
|
|
1108
|
+
CreateOptionLayoutItem('workbench.action.toggleZenMode', InEditorZenModeContext, ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'zenMode', "Zen Mode")), zenModeIcon),
|
|
1109
|
+
CreateOptionLayoutItem('workbench.action.toggleCenteredLayout', IsCenteredLayoutContext, ( localizeWithPath(
|
|
1110
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1111
|
+
'centeredLayout',
|
|
1112
|
+
"Centered Layout"
|
|
1113
|
+
)), centerLayoutIcon),
|
|
1015
1114
|
];
|
|
1016
1115
|
const LayoutContextKeySet = ( new Set());
|
|
1017
1116
|
for (const { active } of [...ToggleVisibilityActions, ...MoveSideBarActions, ...AlignPanelActions, ...MiscLayoutOptions]) {
|
|
@@ -1023,7 +1122,11 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1023
1122
|
constructor() {
|
|
1024
1123
|
super({
|
|
1025
1124
|
id: 'workbench.action.customizeLayout',
|
|
1026
|
-
title: { original: 'Customize Layout...', value: localizeWithPath(
|
|
1125
|
+
title: { original: 'Customize Layout...', value: ( localizeWithPath(
|
|
1126
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1127
|
+
'customizeLayout',
|
|
1128
|
+
"Customize Layout..."
|
|
1129
|
+
)) },
|
|
1027
1130
|
f1: true,
|
|
1028
1131
|
icon: configureLayoutIcon,
|
|
1029
1132
|
menu: [
|
|
@@ -1072,22 +1175,34 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1072
1175
|
return [
|
|
1073
1176
|
{
|
|
1074
1177
|
type: 'separator',
|
|
1075
|
-
label: localizeWithPath(
|
|
1178
|
+
label: ( localizeWithPath(
|
|
1179
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1180
|
+
'toggleVisibility',
|
|
1181
|
+
"Visibility"
|
|
1182
|
+
))
|
|
1076
1183
|
},
|
|
1077
1184
|
...( ToggleVisibilityActions.map(toQuickPickItem)),
|
|
1078
1185
|
{
|
|
1079
1186
|
type: 'separator',
|
|
1080
|
-
label: localizeWithPath(
|
|
1187
|
+
label: ( localizeWithPath(
|
|
1188
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1189
|
+
'sideBarPosition',
|
|
1190
|
+
"Primary Side Bar Position"
|
|
1191
|
+
))
|
|
1081
1192
|
},
|
|
1082
1193
|
...( MoveSideBarActions.map(toQuickPickItem)),
|
|
1083
1194
|
{
|
|
1084
1195
|
type: 'separator',
|
|
1085
|
-
label: localizeWithPath(
|
|
1196
|
+
label: ( localizeWithPath(
|
|
1197
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1198
|
+
'panelAlignment',
|
|
1199
|
+
"Panel Alignment"
|
|
1200
|
+
))
|
|
1086
1201
|
},
|
|
1087
1202
|
...( AlignPanelActions.map(toQuickPickItem)),
|
|
1088
1203
|
{
|
|
1089
1204
|
type: 'separator',
|
|
1090
|
-
label: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'layoutModes', "Modes"),
|
|
1205
|
+
label: ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'layoutModes', "Modes")),
|
|
1091
1206
|
},
|
|
1092
1207
|
...( MiscLayoutOptions.map(toQuickPickItem)),
|
|
1093
1208
|
];
|
|
@@ -1106,16 +1221,24 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1106
1221
|
quickPick.items = this.getItems(contextKeyService);
|
|
1107
1222
|
quickPick.ignoreFocusOut = true;
|
|
1108
1223
|
quickPick.hideInput = true;
|
|
1109
|
-
quickPick.title = localizeWithPath(
|
|
1224
|
+
quickPick.title = ( localizeWithPath(
|
|
1225
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1226
|
+
'customizeLayoutQuickPickTitle',
|
|
1227
|
+
"Customize Layout"
|
|
1228
|
+
));
|
|
1110
1229
|
const closeButton = {
|
|
1111
1230
|
alwaysVisible: true,
|
|
1112
1231
|
iconClass: ThemeIcon.asClassName(Codicon.close),
|
|
1113
|
-
tooltip: localizeWithPath('vs/workbench/browser/actions/layoutActions', 'close', "Close")
|
|
1232
|
+
tooltip: ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'close', "Close"))
|
|
1114
1233
|
};
|
|
1115
1234
|
const resetButton = {
|
|
1116
1235
|
alwaysVisible: true,
|
|
1117
1236
|
iconClass: ThemeIcon.asClassName(Codicon.discard),
|
|
1118
|
-
tooltip: localizeWithPath(
|
|
1237
|
+
tooltip: ( localizeWithPath(
|
|
1238
|
+
'vs/workbench/browser/actions/layoutActions',
|
|
1239
|
+
'restore defaults',
|
|
1240
|
+
"Restore Defaults"
|
|
1241
|
+
))
|
|
1119
1242
|
};
|
|
1120
1243
|
quickPick.buttons = [
|
|
1121
1244
|
resetButton,
|