@codingame/monaco-vscode-api 10.0.1 → 10.1.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/api.js +1 -1
- package/missing-services.js +7062 -1575
- package/monaco.d.ts +1 -1
- package/monaco.js +1 -1
- package/package.json +8 -8
- package/services.js +2 -2
- package/vscode/src/vs/base/browser/ui/button/button.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +6 -6
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +3 -3
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +6 -6
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +9 -9
- package/vscode/src/vs/base/common/date.js +61 -61
- package/vscode/src/vs/base/common/errorMessage.js +15 -6
- package/vscode/src/vs/base/common/errors.d.ts +3 -1
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +2 -2
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +51 -51
- package/vscode/src/vs/editor/common/config/editorOptions.js +368 -368
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +32 -32
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +23 -23
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +5 -5
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +42 -23
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +49 -49
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +2 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -11
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/request/common/request.js +14 -14
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +5 -5
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +129 -129
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +41 -41
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +131 -131
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +61 -61
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +17 -17
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +9 -9
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +7 -7
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +217 -217
- package/vscode/src/vs/workbench/common/configuration.js +10 -10
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +131 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatAttachmentsContentPart.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatCodeCitationContentPart.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +10 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +4 -4
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugExpressionRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +63 -63
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +173 -173
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +52 -52
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +11 -9
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +6 -6
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookMultiDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +15 -15
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +23 -23
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +2 -2
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +3 -3
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +15 -15
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +7 -7
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +17 -17
|
@@ -28,27 +28,27 @@ import { registerIcon } from '../../../platform/theme/common/iconRegistry.js';
|
|
|
28
28
|
import { mainWindow } from '../../../base/browser/window.js';
|
|
29
29
|
import { IKeybindingService } from '../../../platform/keybinding/common/keybinding.service.js';
|
|
30
30
|
import { IPreferencesService } from '../../services/preferences/common/preferences.service.js';
|
|
31
|
-
const menubarIcon = registerIcon('menuBar', Codicon.layoutMenubar, ( localize(
|
|
32
|
-
const activityBarLeftIcon = registerIcon('activity-bar-left', Codicon.layoutActivitybarLeft, ( localize(
|
|
33
|
-
const activityBarRightIcon = registerIcon('activity-bar-right', Codicon.layoutActivitybarRight, ( localize(
|
|
34
|
-
const panelLeftIcon = registerIcon('panel-left', Codicon.layoutSidebarLeft, ( localize(
|
|
35
|
-
const panelLeftOffIcon = registerIcon('panel-left-off', Codicon.layoutSidebarLeftOff, ( localize(
|
|
36
|
-
const panelRightIcon = registerIcon('panel-right', Codicon.layoutSidebarRight, ( localize(
|
|
37
|
-
const panelRightOffIcon = registerIcon('panel-right-off', Codicon.layoutSidebarRightOff, ( localize(
|
|
38
|
-
const panelIcon = registerIcon('panel-bottom', Codicon.layoutPanel, ( localize(
|
|
39
|
-
const statusBarIcon = registerIcon('statusBar', Codicon.layoutStatusbar, ( localize(
|
|
40
|
-
const panelAlignmentLeftIcon = registerIcon('panel-align-left', Codicon.layoutPanelLeft, ( localize(
|
|
41
|
-
const panelAlignmentRightIcon = registerIcon('panel-align-right', Codicon.layoutPanelRight, ( localize(
|
|
42
|
-
const panelAlignmentCenterIcon = registerIcon('panel-align-center', Codicon.layoutPanelCenter, ( localize(
|
|
43
|
-
const panelAlignmentJustifyIcon = registerIcon('panel-align-justify', Codicon.layoutPanelJustify, ( localize(
|
|
44
|
-
const fullscreenIcon = registerIcon('fullscreen', Codicon.screenFull, ( localize(
|
|
45
|
-
const centerLayoutIcon = registerIcon('centerLayoutIcon', Codicon.layoutCentered, ( localize(
|
|
46
|
-
const zenModeIcon = registerIcon('zenMode', Codicon.target, ( localize(
|
|
31
|
+
const menubarIcon = registerIcon('menuBar', Codicon.layoutMenubar, ( localize(6781, "Represents the menu bar")));
|
|
32
|
+
const activityBarLeftIcon = registerIcon('activity-bar-left', Codicon.layoutActivitybarLeft, ( localize(6782, "Represents the activity bar in the left position")));
|
|
33
|
+
const activityBarRightIcon = registerIcon('activity-bar-right', Codicon.layoutActivitybarRight, ( localize(6783, "Represents the activity bar in the right position")));
|
|
34
|
+
const panelLeftIcon = registerIcon('panel-left', Codicon.layoutSidebarLeft, ( localize(6784, "Represents a side bar in the left position")));
|
|
35
|
+
const panelLeftOffIcon = registerIcon('panel-left-off', Codicon.layoutSidebarLeftOff, ( localize(6785, "Represents a side bar in the left position toggled off")));
|
|
36
|
+
const panelRightIcon = registerIcon('panel-right', Codicon.layoutSidebarRight, ( localize(6786, "Represents side bar in the right position")));
|
|
37
|
+
const panelRightOffIcon = registerIcon('panel-right-off', Codicon.layoutSidebarRightOff, ( localize(6787, "Represents side bar in the right position toggled off")));
|
|
38
|
+
const panelIcon = registerIcon('panel-bottom', Codicon.layoutPanel, ( localize(6788, "Represents the bottom panel")));
|
|
39
|
+
const statusBarIcon = registerIcon('statusBar', Codicon.layoutStatusbar, ( localize(6789, "Represents the status bar")));
|
|
40
|
+
const panelAlignmentLeftIcon = registerIcon('panel-align-left', Codicon.layoutPanelLeft, ( localize(6790, "Represents the bottom panel alignment set to the left")));
|
|
41
|
+
const panelAlignmentRightIcon = registerIcon('panel-align-right', Codicon.layoutPanelRight, ( localize(6791, "Represents the bottom panel alignment set to the right")));
|
|
42
|
+
const panelAlignmentCenterIcon = registerIcon('panel-align-center', Codicon.layoutPanelCenter, ( localize(6792, "Represents the bottom panel alignment set to the center")));
|
|
43
|
+
const panelAlignmentJustifyIcon = registerIcon('panel-align-justify', Codicon.layoutPanelJustify, ( localize(6793, "Represents the bottom panel alignment set to justified")));
|
|
44
|
+
const fullscreenIcon = registerIcon('fullscreen', Codicon.screenFull, ( localize(6794, "Represents full screen")));
|
|
45
|
+
const centerLayoutIcon = registerIcon('centerLayoutIcon', Codicon.layoutCentered, ( localize(6795, "Represents centered layout mode")));
|
|
46
|
+
const zenModeIcon = registerIcon('zenMode', Codicon.target, ( localize(6796, "Represents zen mode")));
|
|
47
47
|
registerAction2(class extends Action2 {
|
|
48
48
|
constructor() {
|
|
49
49
|
super({
|
|
50
50
|
id: 'workbench.action.closeSidebar',
|
|
51
|
-
title: ( localize2(
|
|
51
|
+
title: ( localize2(6797, 'Close Primary Side Bar')),
|
|
52
52
|
category: Categories.View,
|
|
53
53
|
f1: true
|
|
54
54
|
});
|
|
@@ -63,8 +63,8 @@ registerAction2(class extends Action2 {
|
|
|
63
63
|
super({
|
|
64
64
|
id: 'workbench.action.toggleCenteredLayout',
|
|
65
65
|
title: {
|
|
66
|
-
...( localize2(
|
|
67
|
-
mnemonicTitle: ( localize(
|
|
66
|
+
...( localize2(6798, "Toggle Centered Layout")),
|
|
67
|
+
mnemonicTitle: ( localize(6799, "&&Centered Layout")),
|
|
68
68
|
},
|
|
69
69
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated())),
|
|
70
70
|
category: Categories.View,
|
|
@@ -104,27 +104,27 @@ class MoveSidebarPositionAction extends Action2 {
|
|
|
104
104
|
class MoveSidebarRightAction extends MoveSidebarPositionAction {
|
|
105
105
|
static { this.ID = 'workbench.action.moveSideBarRight'; }
|
|
106
106
|
constructor() {
|
|
107
|
-
super(MoveSidebarRightAction.ID, ( localize2(
|
|
107
|
+
super(MoveSidebarRightAction.ID, ( localize2(6800, "Move Primary Side Bar Right")), 1 );
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
class MoveSidebarLeftAction extends MoveSidebarPositionAction {
|
|
111
111
|
static { this.ID = 'workbench.action.moveSideBarLeft'; }
|
|
112
112
|
constructor() {
|
|
113
|
-
super(MoveSidebarLeftAction.ID, ( localize2(
|
|
113
|
+
super(MoveSidebarLeftAction.ID, ( localize2(6801, "Move Primary Side Bar Left")), 0 );
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
registerAction2(MoveSidebarRightAction);
|
|
117
117
|
registerAction2(MoveSidebarLeftAction);
|
|
118
118
|
class ToggleSidebarPositionAction extends Action2 {
|
|
119
119
|
static { this.ID = 'workbench.action.toggleSidebarPosition'; }
|
|
120
|
-
static { this.LABEL = ( localize(
|
|
120
|
+
static { this.LABEL = ( localize(6802, "Toggle Primary Side Bar Position")); }
|
|
121
121
|
static getLabel(layoutService) {
|
|
122
|
-
return layoutService.getSideBarPosition() === 0 ? ( localize(
|
|
122
|
+
return layoutService.getSideBarPosition() === 0 ? ( localize(6800, "Move Primary Side Bar Right")) : ( localize(6801, "Move Primary Side Bar Left"));
|
|
123
123
|
}
|
|
124
124
|
constructor() {
|
|
125
125
|
super({
|
|
126
126
|
id: ToggleSidebarPositionAction.ID,
|
|
127
|
-
title: ( localize2(
|
|
127
|
+
title: ( localize2(6802, "Toggle Primary Side Bar Position")),
|
|
128
128
|
category: Categories.View,
|
|
129
129
|
f1: true
|
|
130
130
|
});
|
|
@@ -138,10 +138,10 @@ class ToggleSidebarPositionAction extends Action2 {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
registerAction2(ToggleSidebarPositionAction);
|
|
141
|
-
const configureLayoutIcon = registerIcon('configure-layout-icon', Codicon.layout, ( localize(
|
|
141
|
+
const configureLayoutIcon = registerIcon('configure-layout-icon', Codicon.layout, ( localize(6803, 'Icon represents workbench layout configuration.')));
|
|
142
142
|
MenuRegistry.appendMenuItem(MenuId.LayoutControlMenu, {
|
|
143
143
|
submenu: MenuId.LayoutControlMenuSubmenu,
|
|
144
|
-
title: ( localize(
|
|
144
|
+
title: ( localize(6804, "Configure Layout")),
|
|
145
145
|
icon: configureLayoutIcon,
|
|
146
146
|
group: '1_workbench_layout',
|
|
147
147
|
when: ( (ContextKeyExpr.equals('config.workbench.layoutControl.type', 'menu')))
|
|
@@ -152,7 +152,7 @@ MenuRegistry.appendMenuItems([{
|
|
|
152
152
|
group: '3_workbench_layout_move',
|
|
153
153
|
command: {
|
|
154
154
|
id: ToggleSidebarPositionAction.ID,
|
|
155
|
-
title: ( localize(
|
|
155
|
+
title: ( localize(6805, "Move Primary Side Bar Right"))
|
|
156
156
|
},
|
|
157
157
|
when: ( (ContextKeyExpr.and(
|
|
158
158
|
(ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')),
|
|
@@ -169,7 +169,7 @@ MenuRegistry.appendMenuItems([{
|
|
|
169
169
|
group: '3_workbench_layout_move',
|
|
170
170
|
command: {
|
|
171
171
|
id: ToggleSidebarPositionAction.ID,
|
|
172
|
-
title: ( localize(
|
|
172
|
+
title: ( localize(6806, "Move Primary Side Bar Right"))
|
|
173
173
|
},
|
|
174
174
|
when: ( (ContextKeyExpr.and(
|
|
175
175
|
(ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')),
|
|
@@ -186,7 +186,7 @@ MenuRegistry.appendMenuItems([{
|
|
|
186
186
|
group: '3_workbench_layout_move',
|
|
187
187
|
command: {
|
|
188
188
|
id: ToggleSidebarPositionAction.ID,
|
|
189
|
-
title: ( localize(
|
|
189
|
+
title: ( localize(6807, "Move Primary Side Bar Left"))
|
|
190
190
|
},
|
|
191
191
|
when: ( (ContextKeyExpr.and(
|
|
192
192
|
(ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')),
|
|
@@ -203,7 +203,7 @@ MenuRegistry.appendMenuItems([{
|
|
|
203
203
|
group: '3_workbench_layout_move',
|
|
204
204
|
command: {
|
|
205
205
|
id: ToggleSidebarPositionAction.ID,
|
|
206
|
-
title: ( localize(
|
|
206
|
+
title: ( localize(6807, "Move Primary Side Bar Left"))
|
|
207
207
|
},
|
|
208
208
|
when: ( (ContextKeyExpr.and(
|
|
209
209
|
(ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')),
|
|
@@ -220,7 +220,7 @@ MenuRegistry.appendMenuItems([{
|
|
|
220
220
|
group: '3_workbench_layout_move',
|
|
221
221
|
command: {
|
|
222
222
|
id: ToggleSidebarPositionAction.ID,
|
|
223
|
-
title: ( localize(
|
|
223
|
+
title: ( localize(6808, "Move Secondary Side Bar Left"))
|
|
224
224
|
},
|
|
225
225
|
when: ( (ContextKeyExpr.and(
|
|
226
226
|
(ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')),
|
|
@@ -237,7 +237,7 @@ MenuRegistry.appendMenuItems([{
|
|
|
237
237
|
group: '3_workbench_layout_move',
|
|
238
238
|
command: {
|
|
239
239
|
id: ToggleSidebarPositionAction.ID,
|
|
240
|
-
title: ( localize(
|
|
240
|
+
title: ( localize(6809, "Move Secondary Side Bar Right"))
|
|
241
241
|
},
|
|
242
242
|
when: ( (ContextKeyExpr.and(
|
|
243
243
|
(ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')),
|
|
@@ -253,7 +253,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
|
253
253
|
group: '3_workbench_layout_move',
|
|
254
254
|
command: {
|
|
255
255
|
id: ToggleSidebarPositionAction.ID,
|
|
256
|
-
title: ( localize(
|
|
256
|
+
title: ( localize(6810, "&&Move Primary Side Bar Right"))
|
|
257
257
|
},
|
|
258
258
|
when: ( (ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right'))),
|
|
259
259
|
order: 2
|
|
@@ -262,7 +262,7 @@ MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
|
262
262
|
group: '3_workbench_layout_move',
|
|
263
263
|
command: {
|
|
264
264
|
id: ToggleSidebarPositionAction.ID,
|
|
265
|
-
title: ( localize(
|
|
265
|
+
title: ( localize(6811, "&&Move Primary Side Bar Left"))
|
|
266
266
|
},
|
|
267
267
|
when: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'right'))),
|
|
268
268
|
order: 2
|
|
@@ -272,8 +272,8 @@ registerAction2(class extends Action2 {
|
|
|
272
272
|
super({
|
|
273
273
|
id: 'workbench.action.toggleEditorVisibility',
|
|
274
274
|
title: {
|
|
275
|
-
...( localize2(
|
|
276
|
-
mnemonicTitle: ( localize(
|
|
275
|
+
...( localize2(6812, "Toggle Editor Area Visibility")),
|
|
276
|
+
mnemonicTitle: ( localize(6813, "Show &&Editor Area")),
|
|
277
277
|
},
|
|
278
278
|
category: Categories.View,
|
|
279
279
|
f1: true,
|
|
@@ -293,7 +293,7 @@ registerAction2(class extends Action2 {
|
|
|
293
293
|
});
|
|
294
294
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
295
295
|
group: '2_appearance',
|
|
296
|
-
title: ( localize(
|
|
296
|
+
title: ( localize(6814, "&&Appearance")),
|
|
297
297
|
submenu: MenuId.MenubarAppearanceMenu,
|
|
298
298
|
order: 1
|
|
299
299
|
});
|
|
@@ -302,11 +302,11 @@ class ToggleSidebarVisibilityAction extends Action2 {
|
|
|
302
302
|
constructor() {
|
|
303
303
|
super({
|
|
304
304
|
id: ToggleSidebarVisibilityAction.ID,
|
|
305
|
-
title: ( localize2(
|
|
305
|
+
title: ( localize2(6815, 'Toggle Primary Side Bar Visibility')),
|
|
306
306
|
toggled: {
|
|
307
307
|
condition: SideBarVisibleContext,
|
|
308
|
-
title: ( localize(
|
|
309
|
-
mnemonicTitle: ( localize(
|
|
308
|
+
title: ( localize(6816, "Primary Side Bar")),
|
|
309
|
+
mnemonicTitle: ( localize(6817, "&&Primary Side Bar")),
|
|
310
310
|
},
|
|
311
311
|
category: Categories.View,
|
|
312
312
|
f1: true,
|
|
@@ -341,7 +341,7 @@ MenuRegistry.appendMenuItems([
|
|
|
341
341
|
group: '3_workbench_layout_move',
|
|
342
342
|
command: {
|
|
343
343
|
id: ToggleSidebarVisibilityAction.ID,
|
|
344
|
-
title: ( localize(
|
|
344
|
+
title: ( localize(6818, "Hide Primary Side Bar")),
|
|
345
345
|
},
|
|
346
346
|
when: ( (ContextKeyExpr.and(SideBarVisibleContext, (ContextKeyExpr.equals(
|
|
347
347
|
'viewContainerLocation',
|
|
@@ -355,7 +355,7 @@ MenuRegistry.appendMenuItems([
|
|
|
355
355
|
group: '3_workbench_layout_move',
|
|
356
356
|
command: {
|
|
357
357
|
id: ToggleSidebarVisibilityAction.ID,
|
|
358
|
-
title: ( localize(
|
|
358
|
+
title: ( localize(6818, "Hide Primary Side Bar")),
|
|
359
359
|
},
|
|
360
360
|
when: ( (ContextKeyExpr.and(SideBarVisibleContext, (ContextKeyExpr.equals(
|
|
361
361
|
'viewLocation',
|
|
@@ -369,7 +369,7 @@ MenuRegistry.appendMenuItems([
|
|
|
369
369
|
group: '0_workbench_toggles',
|
|
370
370
|
command: {
|
|
371
371
|
id: ToggleSidebarVisibilityAction.ID,
|
|
372
|
-
title: ( localize(
|
|
372
|
+
title: ( localize(6819, "Toggle Primary Side Bar")),
|
|
373
373
|
icon: panelLeftOffIcon,
|
|
374
374
|
toggled: { condition: SideBarVisibleContext, icon: panelLeftIcon }
|
|
375
375
|
},
|
|
@@ -385,7 +385,7 @@ MenuRegistry.appendMenuItems([
|
|
|
385
385
|
group: '0_workbench_toggles',
|
|
386
386
|
command: {
|
|
387
387
|
id: ToggleSidebarVisibilityAction.ID,
|
|
388
|
-
title: ( localize(
|
|
388
|
+
title: ( localize(6819, "Toggle Primary Side Bar")),
|
|
389
389
|
icon: panelRightOffIcon,
|
|
390
390
|
toggled: { condition: SideBarVisibleContext, icon: panelRightIcon }
|
|
391
391
|
},
|
|
@@ -404,8 +404,8 @@ class ToggleStatusbarVisibilityAction extends Action2 {
|
|
|
404
404
|
super({
|
|
405
405
|
id: ToggleStatusbarVisibilityAction.ID,
|
|
406
406
|
title: {
|
|
407
|
-
...( localize2(
|
|
408
|
-
mnemonicTitle: ( localize(
|
|
407
|
+
...( localize2(6820, "Toggle Status Bar Visibility")),
|
|
408
|
+
mnemonicTitle: ( localize(6821, "S&&tatus Bar")),
|
|
409
409
|
},
|
|
410
410
|
category: Categories.View,
|
|
411
411
|
f1: true,
|
|
@@ -451,8 +451,8 @@ class HideEditorTabsAction extends AbstractSetShowTabsAction {
|
|
|
451
451
|
`config.${"workbench.editor.showTabs" }`,
|
|
452
452
|
"none"
|
|
453
453
|
))).negate()), (InEditorZenModeContext.negate()))));
|
|
454
|
-
const title = ( localize2(
|
|
455
|
-
super("workbench.editor.showTabs" , "none" , title, HideEditorTabsAction.ID, precondition, ( localize2(
|
|
454
|
+
const title = ( localize2(6822, 'Hide Editor Tabs'));
|
|
455
|
+
super("workbench.editor.showTabs" , "none" , title, HideEditorTabsAction.ID, precondition, ( localize2(6823, "Hide Tab Bar")));
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
458
|
class ZenHideEditorTabsAction extends AbstractSetShowTabsAction {
|
|
@@ -462,8 +462,8 @@ class ZenHideEditorTabsAction extends AbstractSetShowTabsAction {
|
|
|
462
462
|
`config.${"zenMode.showTabs" }`,
|
|
463
463
|
"none"
|
|
464
464
|
))).negate()), InEditorZenModeContext)));
|
|
465
|
-
const title = ( localize2(
|
|
466
|
-
super("zenMode.showTabs" , "none" , title, ZenHideEditorTabsAction.ID, precondition, ( localize2(
|
|
465
|
+
const title = ( localize2(6824, 'Hide Editor Tabs in Zen Mode'));
|
|
466
|
+
super("zenMode.showTabs" , "none" , title, ZenHideEditorTabsAction.ID, precondition, ( localize2(6825, "Hide Tab Bar in Zen Mode")));
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
469
|
class ShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
@@ -473,8 +473,8 @@ class ShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
|
473
473
|
`config.${"workbench.editor.showTabs" }`,
|
|
474
474
|
"multiple"
|
|
475
475
|
))).negate()), (InEditorZenModeContext.negate()))));
|
|
476
|
-
const title = ( localize2(
|
|
477
|
-
super("workbench.editor.showTabs" , "multiple" , title, ShowMultipleEditorTabsAction.ID, precondition, ( localize2(
|
|
476
|
+
const title = ( localize2(6826, 'Show Multiple Editor Tabs'));
|
|
477
|
+
super("workbench.editor.showTabs" , "multiple" , title, ShowMultipleEditorTabsAction.ID, precondition, ( localize2(6827, "Show Tab Bar with multiple tabs")));
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
class ZenShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
@@ -484,8 +484,8 @@ class ZenShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
|
484
484
|
`config.${"zenMode.showTabs" }`,
|
|
485
485
|
"multiple"
|
|
486
486
|
))).negate()), InEditorZenModeContext)));
|
|
487
|
-
const title = ( localize2(
|
|
488
|
-
super("zenMode.showTabs" , "multiple" , title, ZenShowMultipleEditorTabsAction.ID, precondition, ( localize2(
|
|
487
|
+
const title = ( localize2(6828, 'Show Multiple Editor Tabs in Zen Mode'));
|
|
488
|
+
super("zenMode.showTabs" , "multiple" , title, ZenShowMultipleEditorTabsAction.ID, precondition, ( localize2(6829, "Show Tab Bar in Zen Mode")));
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
491
|
class ShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
@@ -495,8 +495,8 @@ class ShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
|
495
495
|
`config.${"workbench.editor.showTabs" }`,
|
|
496
496
|
"single"
|
|
497
497
|
))).negate()), (InEditorZenModeContext.negate()))));
|
|
498
|
-
const title = ( localize2(
|
|
499
|
-
super("workbench.editor.showTabs" , "single" , title, ShowSingleEditorTabAction.ID, precondition, ( localize2(
|
|
498
|
+
const title = ( localize2(6830, 'Show Single Editor Tab'));
|
|
499
|
+
super("workbench.editor.showTabs" , "single" , title, ShowSingleEditorTabAction.ID, precondition, ( localize2(6831, "Show Tab Bar with one Tab")));
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
502
|
class ZenShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
@@ -506,8 +506,8 @@ class ZenShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
|
506
506
|
`config.${"zenMode.showTabs" }`,
|
|
507
507
|
"single"
|
|
508
508
|
))).negate()), InEditorZenModeContext)));
|
|
509
|
-
const title = ( localize2(
|
|
510
|
-
super("zenMode.showTabs" , "single" , title, ZenShowSingleEditorTabAction.ID, precondition, ( localize2(
|
|
509
|
+
const title = ( localize2(6832, 'Show Single Editor Tab in Zen Mode'));
|
|
510
|
+
super("zenMode.showTabs" , "single" , title, ZenShowSingleEditorTabAction.ID, precondition, ( localize2(6833, "Show Tab Bar in Zen Mode with one Tab")));
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
registerAction2(HideEditorTabsAction);
|
|
@@ -518,14 +518,14 @@ registerAction2(ShowSingleEditorTabAction);
|
|
|
518
518
|
registerAction2(ZenShowSingleEditorTabAction);
|
|
519
519
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
520
520
|
submenu: MenuId.EditorTabsBarShowTabsSubmenu,
|
|
521
|
-
title: ( localize(
|
|
521
|
+
title: ( localize(6834, "Tab Bar")),
|
|
522
522
|
group: '3_workbench_layout_move',
|
|
523
523
|
order: 10,
|
|
524
524
|
when: ( (InEditorZenModeContext.negate()))
|
|
525
525
|
});
|
|
526
526
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
527
527
|
submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu,
|
|
528
|
-
title: ( localize(
|
|
528
|
+
title: ( localize(6834, "Tab Bar")),
|
|
529
529
|
group: '3_workbench_layout_move',
|
|
530
530
|
order: 10,
|
|
531
531
|
when: InEditorZenModeContext
|
|
@@ -535,13 +535,13 @@ class EditorActionsTitleBarAction extends Action2 {
|
|
|
535
535
|
constructor() {
|
|
536
536
|
super({
|
|
537
537
|
id: EditorActionsTitleBarAction.ID,
|
|
538
|
-
title: ( localize2(
|
|
538
|
+
title: ( localize2(6835, "Move Editor Actions to Title Bar")),
|
|
539
539
|
category: Categories.View,
|
|
540
540
|
precondition: ( (( (ContextKeyExpr.equals(
|
|
541
541
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
542
542
|
"titleBar"
|
|
543
543
|
))).negate())),
|
|
544
|
-
metadata: { description: ( localize2(
|
|
544
|
+
metadata: { description: ( localize2(6836, "Move Editor Actions from the tab bar to the title bar")) },
|
|
545
545
|
f1: true
|
|
546
546
|
});
|
|
547
547
|
}
|
|
@@ -556,7 +556,7 @@ class EditorActionsDefaultAction extends Action2 {
|
|
|
556
556
|
constructor() {
|
|
557
557
|
super({
|
|
558
558
|
id: EditorActionsDefaultAction.ID,
|
|
559
|
-
title: ( localize2(
|
|
559
|
+
title: ( localize2(6837, "Move Editor Actions to Tab Bar")),
|
|
560
560
|
category: Categories.View,
|
|
561
561
|
precondition: ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
562
562
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
@@ -565,7 +565,7 @@ class EditorActionsDefaultAction extends Action2 {
|
|
|
565
565
|
`config.${"workbench.editor.showTabs" }`,
|
|
566
566
|
"none"
|
|
567
567
|
))).negate())))),
|
|
568
|
-
metadata: { description: ( localize2(
|
|
568
|
+
metadata: { description: ( localize2(6838, "Move Editor Actions from the title bar to the tab bar")) },
|
|
569
569
|
f1: true
|
|
570
570
|
});
|
|
571
571
|
}
|
|
@@ -580,13 +580,13 @@ class HideEditorActionsAction extends Action2 {
|
|
|
580
580
|
constructor() {
|
|
581
581
|
super({
|
|
582
582
|
id: HideEditorActionsAction.ID,
|
|
583
|
-
title: ( localize2(
|
|
583
|
+
title: ( localize2(6839, "Hide Editor Actions")),
|
|
584
584
|
category: Categories.View,
|
|
585
585
|
precondition: ( (( (ContextKeyExpr.equals(
|
|
586
586
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
587
587
|
"hidden"
|
|
588
588
|
))).negate())),
|
|
589
|
-
metadata: { description: ( localize2(
|
|
589
|
+
metadata: { description: ( localize2(6840, "Hide Editor Actions in the tab and title bar")) },
|
|
590
590
|
f1: true
|
|
591
591
|
});
|
|
592
592
|
}
|
|
@@ -601,13 +601,13 @@ class ShowEditorActionsAction extends Action2 {
|
|
|
601
601
|
constructor() {
|
|
602
602
|
super({
|
|
603
603
|
id: ShowEditorActionsAction.ID,
|
|
604
|
-
title: ( localize2(
|
|
604
|
+
title: ( localize2(6841, "Show Editor Actions")),
|
|
605
605
|
category: Categories.View,
|
|
606
606
|
precondition: ( (ContextKeyExpr.equals(
|
|
607
607
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
608
608
|
"hidden"
|
|
609
609
|
))),
|
|
610
|
-
metadata: { description: ( localize2(
|
|
610
|
+
metadata: { description: ( localize2(6842, "Make Editor Actions visible.")) },
|
|
611
611
|
f1: true
|
|
612
612
|
});
|
|
613
613
|
}
|
|
@@ -619,7 +619,7 @@ class ShowEditorActionsAction extends Action2 {
|
|
|
619
619
|
registerAction2(ShowEditorActionsAction);
|
|
620
620
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
621
621
|
submenu: MenuId.EditorActionsPositionSubmenu,
|
|
622
|
-
title: ( localize(
|
|
622
|
+
title: ( localize(6843, "Editor Actions Position")),
|
|
623
623
|
group: '3_workbench_layout_move',
|
|
624
624
|
order: 11
|
|
625
625
|
});
|
|
@@ -628,7 +628,7 @@ class ConfigureEditorTabsAction extends Action2 {
|
|
|
628
628
|
constructor() {
|
|
629
629
|
super({
|
|
630
630
|
id: ConfigureEditorTabsAction.ID,
|
|
631
|
-
title: ( localize2(
|
|
631
|
+
title: ( localize2(6844, "Configure Tabs")),
|
|
632
632
|
category: Categories.View,
|
|
633
633
|
});
|
|
634
634
|
}
|
|
@@ -643,7 +643,7 @@ class ConfigureEditorAction extends Action2 {
|
|
|
643
643
|
constructor() {
|
|
644
644
|
super({
|
|
645
645
|
id: ConfigureEditorAction.ID,
|
|
646
|
-
title: ( localize2(
|
|
646
|
+
title: ( localize2(6845, "Configure Editors")),
|
|
647
647
|
category: Categories.View,
|
|
648
648
|
});
|
|
649
649
|
}
|
|
@@ -657,14 +657,14 @@ registerAction2(class extends Action2 {
|
|
|
657
657
|
constructor() {
|
|
658
658
|
super({
|
|
659
659
|
id: 'workbench.action.toggleSeparatePinnedEditorTabs',
|
|
660
|
-
title: ( localize2(
|
|
660
|
+
title: ( localize2(6846, "Separate Pinned Editor Tabs")),
|
|
661
661
|
category: Categories.View,
|
|
662
662
|
precondition: ( (ContextKeyExpr.equals(
|
|
663
663
|
`config.${"workbench.editor.showTabs" }`,
|
|
664
664
|
"multiple"
|
|
665
665
|
))),
|
|
666
666
|
metadata: { description: ( localize2(
|
|
667
|
-
|
|
667
|
+
6847,
|
|
668
668
|
"Toggle whether pinned editor tabs are shown on a separate row above unpinned tabs."
|
|
669
669
|
)) },
|
|
670
670
|
f1: true
|
|
@@ -682,8 +682,8 @@ registerAction2(class extends Action2 {
|
|
|
682
682
|
super({
|
|
683
683
|
id: 'workbench.action.toggleZenMode',
|
|
684
684
|
title: {
|
|
685
|
-
...( localize2(
|
|
686
|
-
mnemonicTitle: ( localize(
|
|
685
|
+
...( localize2(6848, "Toggle Zen Mode")),
|
|
686
|
+
mnemonicTitle: ( localize(6849, "Zen Mode")),
|
|
687
687
|
},
|
|
688
688
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated())),
|
|
689
689
|
category: Categories.View,
|
|
@@ -723,8 +723,8 @@ if (isWindows || isLinux || isWeb) {
|
|
|
723
723
|
super({
|
|
724
724
|
id: 'workbench.action.toggleMenuBar',
|
|
725
725
|
title: {
|
|
726
|
-
...( localize2(
|
|
727
|
-
mnemonicTitle: ( localize(
|
|
726
|
+
...( localize2(6850, "Toggle Menu Bar")),
|
|
727
|
+
mnemonicTitle: ( localize(6851, "Menu &&Bar")),
|
|
728
728
|
},
|
|
729
729
|
category: Categories.View,
|
|
730
730
|
f1: true,
|
|
@@ -749,7 +749,7 @@ if (isWindows || isLinux || isWeb) {
|
|
|
749
749
|
MenuRegistry.appendMenuItem(menuId, {
|
|
750
750
|
command: {
|
|
751
751
|
id: 'workbench.action.toggleMenuBar',
|
|
752
|
-
title: ( localize(
|
|
752
|
+
title: ( localize(6852, "Menu Bar")),
|
|
753
753
|
toggled: ( (ContextKeyExpr.and(
|
|
754
754
|
(IsMacNativeContext.toNegated()),
|
|
755
755
|
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'hidden')),
|
|
@@ -771,7 +771,7 @@ registerAction2(class extends Action2 {
|
|
|
771
771
|
constructor() {
|
|
772
772
|
super({
|
|
773
773
|
id: 'workbench.action.resetViewLocations',
|
|
774
|
-
title: ( localize2(
|
|
774
|
+
title: ( localize2(6853, "Reset View Locations")),
|
|
775
775
|
category: Categories.View,
|
|
776
776
|
f1: true
|
|
777
777
|
});
|
|
@@ -784,7 +784,7 @@ registerAction2(class extends Action2 {
|
|
|
784
784
|
constructor() {
|
|
785
785
|
super({
|
|
786
786
|
id: 'workbench.action.moveView',
|
|
787
|
-
title: ( localize2(
|
|
787
|
+
title: ( localize2(6854, "Move View")),
|
|
788
788
|
category: Categories.View,
|
|
789
789
|
f1: true
|
|
790
790
|
});
|
|
@@ -822,7 +822,7 @@ registerAction2(class extends Action2 {
|
|
|
822
822
|
if (!hasAddedView) {
|
|
823
823
|
results.push({
|
|
824
824
|
type: 'separator',
|
|
825
|
-
label: ( localize(
|
|
825
|
+
label: ( localize(6855, "Side Bar / {0}", containerModel.title))
|
|
826
826
|
});
|
|
827
827
|
hasAddedView = true;
|
|
828
828
|
}
|
|
@@ -843,7 +843,7 @@ registerAction2(class extends Action2 {
|
|
|
843
843
|
if (!hasAddedView) {
|
|
844
844
|
results.push({
|
|
845
845
|
type: 'separator',
|
|
846
|
-
label: ( localize(
|
|
846
|
+
label: ( localize(6856, "Panel / {0}", containerModel.title))
|
|
847
847
|
});
|
|
848
848
|
hasAddedView = true;
|
|
849
849
|
}
|
|
@@ -864,7 +864,7 @@ registerAction2(class extends Action2 {
|
|
|
864
864
|
if (!hasAddedView) {
|
|
865
865
|
results.push({
|
|
866
866
|
type: 'separator',
|
|
867
|
-
label: ( localize(
|
|
867
|
+
label: ( localize(6857, "Secondary Side Bar / {0}", containerModel.title))
|
|
868
868
|
});
|
|
869
869
|
hasAddedView = true;
|
|
870
870
|
}
|
|
@@ -880,7 +880,7 @@ registerAction2(class extends Action2 {
|
|
|
880
880
|
async getView(quickInputService, viewDescriptorService, paneCompositePartService, viewId) {
|
|
881
881
|
const disposables = ( (new DisposableStore()));
|
|
882
882
|
const quickPick = disposables.add(quickInputService.createQuickPick({ useSeparators: true }));
|
|
883
|
-
quickPick.placeholder = ( localize(
|
|
883
|
+
quickPick.placeholder = ( localize(6858, "Select a View to Move"));
|
|
884
884
|
quickPick.items = this.getViewItems(viewDescriptorService, paneCompositePartService);
|
|
885
885
|
quickPick.selectedItems = quickPick.items.filter(item => item.id === viewId);
|
|
886
886
|
return (
|
|
@@ -908,7 +908,7 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
908
908
|
constructor() {
|
|
909
909
|
super({
|
|
910
910
|
id: 'workbench.action.moveFocusedView',
|
|
911
|
-
title: ( localize2(
|
|
911
|
+
title: ( localize2(6859, "Move Focused View")),
|
|
912
912
|
category: Categories.View,
|
|
913
913
|
precondition: ( (FocusedViewContext.notEqualsTo(''))),
|
|
914
914
|
f1: true
|
|
@@ -923,18 +923,18 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
923
923
|
const paneCompositePartService = accessor.get(IPaneCompositePartService);
|
|
924
924
|
const focusedViewId = viewId || FocusedViewContext.getValue(contextKeyService);
|
|
925
925
|
if (focusedViewId === undefined || focusedViewId.trim() === '') {
|
|
926
|
-
dialogService.error(( localize(
|
|
926
|
+
dialogService.error(( localize(6860, "There is no view currently focused.")));
|
|
927
927
|
return;
|
|
928
928
|
}
|
|
929
929
|
const viewDescriptor = viewDescriptorService.getViewDescriptorById(focusedViewId);
|
|
930
930
|
if (!viewDescriptor || !viewDescriptor.canMoveView) {
|
|
931
|
-
dialogService.error(( localize(
|
|
931
|
+
dialogService.error(( localize(6861, "The currently focused view is not movable.")));
|
|
932
932
|
return;
|
|
933
933
|
}
|
|
934
934
|
const disposables = ( (new DisposableStore()));
|
|
935
935
|
const quickPick = disposables.add(quickInputService.createQuickPick({ useSeparators: true }));
|
|
936
|
-
quickPick.placeholder = ( localize(
|
|
937
|
-
quickPick.title = ( localize(
|
|
936
|
+
quickPick.placeholder = ( localize(6862, "Select a Destination for the View"));
|
|
937
|
+
quickPick.title = ( localize(6863, "View: Move {0}", viewDescriptor.name.value));
|
|
938
938
|
const items = [];
|
|
939
939
|
const currentContainer = viewDescriptorService.getViewContainerByViewId(focusedViewId);
|
|
940
940
|
const currentLocation = viewDescriptorService.getViewLocationById(focusedViewId);
|
|
@@ -942,24 +942,24 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
942
942
|
if (!((isViewSolo && currentLocation === 1) )) {
|
|
943
943
|
items.push({
|
|
944
944
|
id: '_.panel.newcontainer',
|
|
945
|
-
label: ( localize(
|
|
945
|
+
label: ( localize(6864, "New Panel Entry")),
|
|
946
946
|
});
|
|
947
947
|
}
|
|
948
948
|
if (!((isViewSolo && currentLocation === 0) )) {
|
|
949
949
|
items.push({
|
|
950
950
|
id: '_.sidebar.newcontainer',
|
|
951
|
-
label: ( localize(
|
|
951
|
+
label: ( localize(6865, "New Side Bar Entry"))
|
|
952
952
|
});
|
|
953
953
|
}
|
|
954
954
|
if (!((isViewSolo && currentLocation === 2) )) {
|
|
955
955
|
items.push({
|
|
956
956
|
id: '_.auxiliarybar.newcontainer',
|
|
957
|
-
label: ( localize(
|
|
957
|
+
label: ( localize(6866, "New Secondary Side Bar Entry"))
|
|
958
958
|
});
|
|
959
959
|
}
|
|
960
960
|
items.push({
|
|
961
961
|
type: 'separator',
|
|
962
|
-
label: ( localize(
|
|
962
|
+
label: ( localize(6867, "Side Bar"))
|
|
963
963
|
});
|
|
964
964
|
const pinnedViewlets = paneCompositePartService.getVisiblePaneCompositeIds(0 );
|
|
965
965
|
items.push(...( (pinnedViewlets
|
|
@@ -977,7 +977,7 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
977
977
|
}))));
|
|
978
978
|
items.push({
|
|
979
979
|
type: 'separator',
|
|
980
|
-
label: ( localize(
|
|
980
|
+
label: ( localize(6868, "Panel"))
|
|
981
981
|
});
|
|
982
982
|
const pinnedPanels = paneCompositePartService.getPinnedPaneCompositeIds(1 );
|
|
983
983
|
items.push(...( (pinnedPanels
|
|
@@ -995,7 +995,7 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
995
995
|
}))));
|
|
996
996
|
items.push({
|
|
997
997
|
type: 'separator',
|
|
998
|
-
label: ( localize(
|
|
998
|
+
label: ( localize(6869, "Secondary Side Bar"))
|
|
999
999
|
});
|
|
1000
1000
|
const pinnedAuxPanels = paneCompositePartService.getPinnedPaneCompositeIds(2 );
|
|
1001
1001
|
items.push(...( (pinnedAuxPanels
|
|
@@ -1041,7 +1041,7 @@ registerAction2(class extends Action2 {
|
|
|
1041
1041
|
constructor() {
|
|
1042
1042
|
super({
|
|
1043
1043
|
id: 'workbench.action.resetFocusedViewLocation',
|
|
1044
|
-
title: ( localize2(
|
|
1044
|
+
title: ( localize2(6870, "Reset Focused View Location")),
|
|
1045
1045
|
category: Categories.View,
|
|
1046
1046
|
f1: true,
|
|
1047
1047
|
precondition: ( (FocusedViewContext.notEqualsTo('')))
|
|
@@ -1058,7 +1058,7 @@ registerAction2(class extends Action2 {
|
|
|
1058
1058
|
viewDescriptor = viewDescriptorService.getViewDescriptorById(focusedViewId);
|
|
1059
1059
|
}
|
|
1060
1060
|
if (!viewDescriptor) {
|
|
1061
|
-
dialogService.error(( localize(
|
|
1061
|
+
dialogService.error(( localize(6871, "There is no view currently focused.")));
|
|
1062
1062
|
return;
|
|
1063
1063
|
}
|
|
1064
1064
|
const defaultContainer = viewDescriptorService.getDefaultContainerById(viewDescriptor.id);
|
|
@@ -1103,7 +1103,7 @@ class IncreaseViewSizeAction extends BaseResizeViewAction {
|
|
|
1103
1103
|
constructor() {
|
|
1104
1104
|
super({
|
|
1105
1105
|
id: 'workbench.action.increaseViewSize',
|
|
1106
|
-
title: ( localize2(
|
|
1106
|
+
title: ( localize2(6872, 'Increase Current View Size')),
|
|
1107
1107
|
f1: true,
|
|
1108
1108
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1109
1109
|
});
|
|
@@ -1116,7 +1116,7 @@ class IncreaseViewWidthAction extends BaseResizeViewAction {
|
|
|
1116
1116
|
constructor() {
|
|
1117
1117
|
super({
|
|
1118
1118
|
id: 'workbench.action.increaseViewWidth',
|
|
1119
|
-
title: ( localize2(
|
|
1119
|
+
title: ( localize2(6873, 'Increase Editor Width')),
|
|
1120
1120
|
f1: true,
|
|
1121
1121
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1122
1122
|
});
|
|
@@ -1129,7 +1129,7 @@ class IncreaseViewHeightAction extends BaseResizeViewAction {
|
|
|
1129
1129
|
constructor() {
|
|
1130
1130
|
super({
|
|
1131
1131
|
id: 'workbench.action.increaseViewHeight',
|
|
1132
|
-
title: ( localize2(
|
|
1132
|
+
title: ( localize2(6874, 'Increase Editor Height')),
|
|
1133
1133
|
f1: true,
|
|
1134
1134
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1135
1135
|
});
|
|
@@ -1142,7 +1142,7 @@ class DecreaseViewSizeAction extends BaseResizeViewAction {
|
|
|
1142
1142
|
constructor() {
|
|
1143
1143
|
super({
|
|
1144
1144
|
id: 'workbench.action.decreaseViewSize',
|
|
1145
|
-
title: ( localize2(
|
|
1145
|
+
title: ( localize2(6875, 'Decrease Current View Size')),
|
|
1146
1146
|
f1: true,
|
|
1147
1147
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1148
1148
|
});
|
|
@@ -1155,7 +1155,7 @@ class DecreaseViewWidthAction extends BaseResizeViewAction {
|
|
|
1155
1155
|
constructor() {
|
|
1156
1156
|
super({
|
|
1157
1157
|
id: 'workbench.action.decreaseViewWidth',
|
|
1158
|
-
title: ( localize2(
|
|
1158
|
+
title: ( localize2(6876, 'Decrease Editor Width')),
|
|
1159
1159
|
f1: true,
|
|
1160
1160
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1161
1161
|
});
|
|
@@ -1168,7 +1168,7 @@ class DecreaseViewHeightAction extends BaseResizeViewAction {
|
|
|
1168
1168
|
constructor() {
|
|
1169
1169
|
super({
|
|
1170
1170
|
id: 'workbench.action.decreaseViewHeight',
|
|
1171
|
-
title: ( localize2(
|
|
1171
|
+
title: ( localize2(6877, 'Decrease Editor Height')),
|
|
1172
1172
|
f1: true,
|
|
1173
1173
|
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1174
1174
|
});
|
|
@@ -1194,8 +1194,8 @@ const CreateToggleLayoutItem = (id, active, label, visualIcon) => {
|
|
|
1194
1194
|
visualIcon,
|
|
1195
1195
|
activeIcon: Codicon.eye,
|
|
1196
1196
|
inactiveIcon: Codicon.eyeClosed,
|
|
1197
|
-
activeAriaLabel: ( localize(
|
|
1198
|
-
inactiveAriaLabel: ( localize(
|
|
1197
|
+
activeAriaLabel: ( localize(6878, "Select to Hide")),
|
|
1198
|
+
inactiveAriaLabel: ( localize(6879, "Select to Show")),
|
|
1199
1199
|
useButtons: true,
|
|
1200
1200
|
};
|
|
1201
1201
|
};
|
|
@@ -1206,7 +1206,7 @@ const CreateOptionLayoutItem = (id, active, label, visualIcon) => {
|
|
|
1206
1206
|
label,
|
|
1207
1207
|
visualIcon,
|
|
1208
1208
|
activeIcon: Codicon.check,
|
|
1209
|
-
activeAriaLabel: ( localize(
|
|
1209
|
+
activeAriaLabel: ( localize(6880, "Active")),
|
|
1210
1210
|
useButtons: false
|
|
1211
1211
|
};
|
|
1212
1212
|
};
|
|
@@ -1218,29 +1218,29 @@ const MenuBarToggledContext = ( (ContextKeyExpr.and(
|
|
|
1218
1218
|
)));
|
|
1219
1219
|
const ToggleVisibilityActions = [];
|
|
1220
1220
|
if (!isMacintosh || !isNative) {
|
|
1221
|
-
ToggleVisibilityActions.push(CreateToggleLayoutItem('workbench.action.toggleMenuBar', MenuBarToggledContext, ( localize(
|
|
1221
|
+
ToggleVisibilityActions.push(CreateToggleLayoutItem('workbench.action.toggleMenuBar', MenuBarToggledContext, ( localize(6881, "Menu Bar")), menubarIcon));
|
|
1222
1222
|
}
|
|
1223
1223
|
ToggleVisibilityActions.push(...[
|
|
1224
|
-
CreateToggleLayoutItem(ToggleActivityBarVisibilityActionId, ( (ContextKeyExpr.notEquals('config.workbench.activityBar.location', 'hidden'))), ( localize(
|
|
1225
|
-
CreateToggleLayoutItem(ToggleSidebarVisibilityAction.ID, SideBarVisibleContext, ( localize(
|
|
1226
|
-
CreateToggleLayoutItem(ToggleAuxiliaryBarAction.ID, AuxiliaryBarVisibleContext, ( localize(
|
|
1227
|
-
CreateToggleLayoutItem(TogglePanelAction.ID, PanelVisibleContext, ( localize(
|
|
1228
|
-
CreateToggleLayoutItem(ToggleStatusbarVisibilityAction.ID, ( (ContextKeyExpr.equals('config.workbench.statusBar.visible', true))), ( localize(
|
|
1224
|
+
CreateToggleLayoutItem(ToggleActivityBarVisibilityActionId, ( (ContextKeyExpr.notEquals('config.workbench.activityBar.location', 'hidden'))), ( localize(6882, "Activity Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: activityBarLeftIcon, iconB: activityBarRightIcon }),
|
|
1225
|
+
CreateToggleLayoutItem(ToggleSidebarVisibilityAction.ID, SideBarVisibleContext, ( localize(6883, "Primary Side Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: panelLeftIcon, iconB: panelRightIcon }),
|
|
1226
|
+
CreateToggleLayoutItem(ToggleAuxiliaryBarAction.ID, AuxiliaryBarVisibleContext, ( localize(6869, "Secondary Side Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: panelRightIcon, iconB: panelLeftIcon }),
|
|
1227
|
+
CreateToggleLayoutItem(TogglePanelAction.ID, PanelVisibleContext, ( localize(6868, "Panel")), panelIcon),
|
|
1228
|
+
CreateToggleLayoutItem(ToggleStatusbarVisibilityAction.ID, ( (ContextKeyExpr.equals('config.workbench.statusBar.visible', true))), ( localize(6884, "Status Bar")), statusBarIcon),
|
|
1229
1229
|
]);
|
|
1230
1230
|
const MoveSideBarActions = [
|
|
1231
|
-
CreateOptionLayoutItem(MoveSidebarLeftAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), ( localize(
|
|
1232
|
-
CreateOptionLayoutItem(MoveSidebarRightAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'right'))), ( localize(
|
|
1231
|
+
CreateOptionLayoutItem(MoveSidebarLeftAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), ( localize(6885, "Left")), panelLeftIcon),
|
|
1232
|
+
CreateOptionLayoutItem(MoveSidebarRightAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'right'))), ( localize(6886, "Right")), panelRightIcon),
|
|
1233
1233
|
];
|
|
1234
1234
|
const AlignPanelActions = [
|
|
1235
|
-
CreateOptionLayoutItem('workbench.action.alignPanelLeft', ( (PanelAlignmentContext.isEqualTo('left'))), ( localize(
|
|
1236
|
-
CreateOptionLayoutItem('workbench.action.alignPanelRight', ( (PanelAlignmentContext.isEqualTo('right'))), ( localize(
|
|
1237
|
-
CreateOptionLayoutItem('workbench.action.alignPanelCenter', ( (PanelAlignmentContext.isEqualTo('center'))), ( localize(
|
|
1238
|
-
CreateOptionLayoutItem('workbench.action.alignPanelJustify', ( (PanelAlignmentContext.isEqualTo('justify'))), ( localize(
|
|
1235
|
+
CreateOptionLayoutItem('workbench.action.alignPanelLeft', ( (PanelAlignmentContext.isEqualTo('left'))), ( localize(6887, "Left")), panelAlignmentLeftIcon),
|
|
1236
|
+
CreateOptionLayoutItem('workbench.action.alignPanelRight', ( (PanelAlignmentContext.isEqualTo('right'))), ( localize(6888, "Right")), panelAlignmentRightIcon),
|
|
1237
|
+
CreateOptionLayoutItem('workbench.action.alignPanelCenter', ( (PanelAlignmentContext.isEqualTo('center'))), ( localize(6889, "Center")), panelAlignmentCenterIcon),
|
|
1238
|
+
CreateOptionLayoutItem('workbench.action.alignPanelJustify', ( (PanelAlignmentContext.isEqualTo('justify'))), ( localize(6890, "Justify")), panelAlignmentJustifyIcon),
|
|
1239
1239
|
];
|
|
1240
1240
|
const MiscLayoutOptions = [
|
|
1241
|
-
CreateOptionLayoutItem('workbench.action.toggleFullScreen', IsMainWindowFullscreenContext, ( localize(
|
|
1242
|
-
CreateOptionLayoutItem('workbench.action.toggleZenMode', InEditorZenModeContext, ( localize(
|
|
1243
|
-
CreateOptionLayoutItem('workbench.action.toggleCenteredLayout', IsMainEditorCenteredLayoutContext, ( localize(
|
|
1241
|
+
CreateOptionLayoutItem('workbench.action.toggleFullScreen', IsMainWindowFullscreenContext, ( localize(6891, "Full Screen")), fullscreenIcon),
|
|
1242
|
+
CreateOptionLayoutItem('workbench.action.toggleZenMode', InEditorZenModeContext, ( localize(6892, "Zen Mode")), zenModeIcon),
|
|
1243
|
+
CreateOptionLayoutItem('workbench.action.toggleCenteredLayout', IsMainEditorCenteredLayoutContext, ( localize(6893, "Centered Layout")), centerLayoutIcon),
|
|
1244
1244
|
];
|
|
1245
1245
|
const LayoutContextKeySet = ( (new Set()));
|
|
1246
1246
|
for (const { active } of [...ToggleVisibilityActions, ...MoveSideBarActions, ...AlignPanelActions, ...MiscLayoutOptions]) {
|
|
@@ -1252,7 +1252,7 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1252
1252
|
constructor() {
|
|
1253
1253
|
super({
|
|
1254
1254
|
id: 'workbench.action.customizeLayout',
|
|
1255
|
-
title: ( localize2(
|
|
1255
|
+
title: ( localize2(6894, "Customize Layout...")),
|
|
1256
1256
|
f1: true,
|
|
1257
1257
|
icon: configureLayoutIcon,
|
|
1258
1258
|
menu: [
|
|
@@ -1302,22 +1302,22 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1302
1302
|
return [
|
|
1303
1303
|
{
|
|
1304
1304
|
type: 'separator',
|
|
1305
|
-
label: ( localize(
|
|
1305
|
+
label: ( localize(6895, "Visibility"))
|
|
1306
1306
|
},
|
|
1307
1307
|
...( (ToggleVisibilityActions.map(toQuickPickItem))),
|
|
1308
1308
|
{
|
|
1309
1309
|
type: 'separator',
|
|
1310
|
-
label: ( localize(
|
|
1310
|
+
label: ( localize(6896, "Primary Side Bar Position"))
|
|
1311
1311
|
},
|
|
1312
1312
|
...( (MoveSideBarActions.map(toQuickPickItem))),
|
|
1313
1313
|
{
|
|
1314
1314
|
type: 'separator',
|
|
1315
|
-
label: ( localize(
|
|
1315
|
+
label: ( localize(6897, "Panel Alignment"))
|
|
1316
1316
|
},
|
|
1317
1317
|
...( (AlignPanelActions.map(toQuickPickItem))),
|
|
1318
1318
|
{
|
|
1319
1319
|
type: 'separator',
|
|
1320
|
-
label: ( localize(
|
|
1320
|
+
label: ( localize(6898, "Modes")),
|
|
1321
1321
|
},
|
|
1322
1322
|
...( (MiscLayoutOptions.map(toQuickPickItem))),
|
|
1323
1323
|
];
|
|
@@ -1338,16 +1338,16 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1338
1338
|
quickPick.items = this.getItems(contextKeyService, keybindingService);
|
|
1339
1339
|
quickPick.ignoreFocusOut = true;
|
|
1340
1340
|
quickPick.hideInput = true;
|
|
1341
|
-
quickPick.title = ( localize(
|
|
1341
|
+
quickPick.title = ( localize(6899, "Customize Layout"));
|
|
1342
1342
|
const closeButton = {
|
|
1343
1343
|
alwaysVisible: true,
|
|
1344
1344
|
iconClass: ThemeIcon.asClassName(Codicon.close),
|
|
1345
|
-
tooltip: ( localize(
|
|
1345
|
+
tooltip: ( localize(6900, "Close"))
|
|
1346
1346
|
};
|
|
1347
1347
|
const resetButton = {
|
|
1348
1348
|
alwaysVisible: true,
|
|
1349
1349
|
iconClass: ThemeIcon.asClassName(Codicon.discard),
|
|
1350
|
-
tooltip: ( localize(
|
|
1350
|
+
tooltip: ( localize(6901, "Restore Defaults"))
|
|
1351
1351
|
};
|
|
1352
1352
|
quickPick.buttons = [
|
|
1353
1353
|
resetButton,
|