@codingame/monaco-vscode-api 4.5.0 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/editor.api.d.ts +8 -0
- package/extensions.js +10 -2
- package/localExtensionHost.d.ts +41 -0
- package/package.json +10 -8
- package/service-override/accessibility.d.ts +5 -0
- package/service-override/ai.d.ts +5 -0
- package/service-override/authentication.d.ts +5 -0
- package/service-override/base.d.ts +5 -0
- package/service-override/bulkEdit.d.ts +5 -0
- package/service-override/chat.d.ts +5 -0
- package/service-override/comments.d.ts +5 -0
- package/service-override/configuration.d.ts +31 -0
- package/service-override/debug.d.ts +5 -0
- package/service-override/dialogs.d.ts +12 -0
- package/service-override/editSessions.d.ts +5 -0
- package/service-override/editor.d.ts +10 -0
- package/service-override/emmet.d.ts +5 -0
- package/service-override/environment.d.ts +10 -0
- package/service-override/explorer.d.ts +5 -0
- package/service-override/extensionGallery.d.ts +12 -0
- package/service-override/extensions.d.ts +43 -0
- package/service-override/files.d.ts +164 -0
- package/service-override/host.d.ts +5 -0
- package/service-override/interactive.d.ts +5 -0
- package/service-override/issue.d.ts +5 -0
- package/service-override/keybindings.d.ts +21 -0
- package/service-override/languageDetectionWorker.d.ts +5 -0
- package/service-override/languages.d.ts +6 -0
- package/service-override/layout.d.ts +128 -0
- package/service-override/lifecycle.d.ts +5 -0
- package/service-override/localization.d.ts +14 -0
- package/service-override/log.d.ts +14 -0
- package/service-override/markers.d.ts +5 -0
- package/service-override/model.d.ts +5 -0
- package/service-override/monarch.d.ts +5 -0
- package/service-override/multiDiffEditor.d.ts +5 -0
- package/service-override/notebook.d.ts +5 -0
- package/service-override/notifications.d.ts +5 -0
- package/service-override/outline.d.ts +5 -0
- package/service-override/output.d.ts +10 -0
- package/service-override/performance.d.ts +5 -0
- package/service-override/preferences.d.ts +5 -0
- package/service-override/quickaccess.d.ts +11 -0
- package/service-override/relauncher.d.ts +5 -0
- package/service-override/remoteAgent.d.ts +12 -0
- package/service-override/scm.d.ts +5 -0
- package/service-override/search.d.ts +12 -0
- package/service-override/secretStorage.d.ts +5 -0
- package/service-override/share.d.ts +5 -0
- package/service-override/snippets.d.ts +9 -0
- package/service-override/speech.d.ts +5 -0
- package/service-override/storage.d.ts +66 -0
- package/service-override/survey.d.ts +5 -0
- package/service-override/task.d.ts +5 -0
- package/service-override/terminal.d.ts +71 -0
- package/service-override/testing.d.ts +5 -0
- package/service-override/textmate.d.ts +6 -0
- package/service-override/theme.d.ts +7 -0
- package/service-override/timeline.d.ts +5 -0
- package/service-override/update.d.ts +5 -0
- package/service-override/userDataSync.d.ts +5 -0
- package/service-override/viewBanner.d.ts +6 -0
- package/service-override/viewCommon.d.ts +6 -0
- package/service-override/viewStatusBar.d.ts +6 -0
- package/service-override/viewTitleBar.d.ts +5 -0
- package/service-override/views.d.ts +47 -0
- package/service-override/walkthrough.d.ts +5 -0
- package/service-override/welcome.d.ts +5 -0
- package/service-override/workbench.d.ts +18 -0
- package/service-override/workingCopy.d.ts +5 -0
- package/service-override/workspaceTrust.d.ts +5 -0
- package/services.js +1 -0
- package/vscode/src/vs/base/browser/defaultWorkerFactory.js +4 -2
- package/vscode/src/vs/base/browser/dom.js +3 -3
- package/vscode/src/vs/base/browser/iframe.js +3 -1
- package/vscode/src/vs/base/browser/indexedDB.d.ts +17 -0
- package/vscode/src/vs/base/browser/indexedDB.js +2 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +4 -9
- package/vscode/src/vs/base/browser/ui/button/button.js +16 -19
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +168 -165
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +5 -8
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +19 -18
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +4 -15
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +13 -16
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +10 -12
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.js +13 -14
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +19 -39
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +3 -2
- package/vscode/src/vs/base/browser/ui/list/listView.js +6 -6
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +7 -7
- package/vscode/src/vs/base/browser/ui/list/rowCache.js +2 -2
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +24 -23
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +1 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +12 -15
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +25 -25
- package/vscode/src/vs/base/browser/ui/splitview/splitview.js +10 -10
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +62 -0
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +11 -10
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +177 -152
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +7 -7
- package/vscode/src/vs/base/browser/ui/tree/compressedObjectTreeModel.js +2 -2
- package/vscode/src/vs/base/browser/ui/tree/dataTree.js +2 -2
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTreeModel.js +4 -4
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +2 -1
- package/vscode/src/vs/base/common/actions.js +6 -5
- package/vscode/src/vs/base/common/arrays.js +2 -2
- package/vscode/src/vs/base/common/arraysFind.js +3 -1
- package/vscode/src/vs/base/common/assert.js +2 -2
- package/vscode/src/vs/base/common/async.js +3 -3
- package/vscode/src/vs/base/common/buffer.js +2 -2
- package/vscode/src/vs/base/common/codiconsUtil.js +1 -1
- package/vscode/src/vs/base/common/color.js +2 -2
- package/vscode/src/vs/base/common/date.js +70 -284
- package/vscode/src/vs/base/common/decorators.js +2 -2
- package/vscode/src/vs/base/common/diff/diff.js +1 -1
- package/vscode/src/vs/base/common/errorMessage.js +12 -22
- package/vscode/src/vs/base/common/errors.js +2 -2
- package/vscode/src/vs/base/common/event.js +2 -2
- package/vscode/src/vs/base/common/extpath.js +1 -1
- package/vscode/src/vs/base/common/filters.js +1 -1
- package/vscode/src/vs/base/common/history.js +1 -1
- package/vscode/src/vs/base/common/jsonEdit.js +6 -4
- package/vscode/src/vs/base/common/jsonErrorMessages.js +10 -45
- package/vscode/src/vs/base/common/keyCodes.js +3 -1
- package/vscode/src/vs/base/common/keybindingLabels.js +29 -108
- package/vscode/src/vs/base/common/labels.js +2 -2
- package/vscode/src/vs/base/common/lifecycle.js +5 -5
- package/vscode/src/vs/base/common/map.js +11 -11
- package/vscode/src/vs/base/common/objects.js +1 -1
- package/vscode/src/vs/base/common/path.js +2 -2
- package/vscode/src/vs/base/common/platform.js +7 -26
- package/vscode/src/vs/base/common/stream.js +1 -1
- package/vscode/src/vs/base/common/strings.js +2 -2
- package/vscode/src/vs/base/common/ternarySearchTree.js +3 -3
- package/vscode/src/vs/base/common/types.js +7 -5
- package/vscode/src/vs/base/common/uri.js +11 -5
- package/vscode/src/vs/base/common/worker/simpleWorker.js +7 -7
- package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +1 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +1 -1
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +47 -42
- package/vscode/src/vs/editor/browser/coreCommands.js +104 -115
- package/vscode/src/vs/editor/browser/editorExtensions.js +24 -35
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +2 -2
- package/vscode/src/vs/editor/browser/services/bulkEditService.js +1 -1
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +18 -22
- package/vscode/src/vs/editor/browser/services/openerService.js +1 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +1 -1
- package/vscode/src/vs/editor/browser/view.js +6 -6
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLine.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRendererFactory.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorContributions.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +129 -128
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +25 -68
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +66 -99
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +10 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +15 -34
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +25 -41
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +27 -51
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +40 -31
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +13 -20
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +8 -19
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +4 -15
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +83 -154
- package/vscode/src/vs/editor/common/config/editorOptions.js +863 -1427
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +110 -253
- package/vscode/src/vs/editor/common/core/lineRange.js +4 -2
- package/vscode/src/vs/editor/common/core/offsetRange.js +3 -3
- package/vscode/src/vs/editor/common/core/textEdit.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +1 -1
- package/vscode/src/vs/editor/common/diff/legacyLinesDiffComputer.js +1 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +80 -239
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +5 -8
- package/vscode/src/vs/editor/common/languages/supports/tokenization.js +2 -2
- package/vscode/src/vs/editor/common/languages.js +68 -71
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.js +12 -12
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees.js +2 -2
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/nodeReader.js +1 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser.js +2 -2
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/tokenizer.js +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +47 -36
- package/vscode/src/vs/editor/common/model/guidesTextModelPart.js +3 -3
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +2 -2
- package/vscode/src/vs/editor/common/model/textModel.js +9 -9
- package/vscode/src/vs/editor/common/model/textModelPart.js +1 -1
- package/vscode/src/vs/editor/common/model/textModelTokens.js +2 -2
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +2 -2
- package/vscode/src/vs/editor/common/services/modelService.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +56 -115
- package/vscode/src/vs/editor/common/textModelGuides.js +1 -1
- package/vscode/src/vs/editor/common/tokens/contiguousMultilineTokens.js +2 -2
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +1 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +79 -67
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +12 -12
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +12 -31
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +25 -40
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +4 -11
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +3 -6
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +28 -76
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +36 -25
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +54 -143
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +8 -7
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +30 -37
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +25 -54
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +15 -28
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +1 -1
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +30 -37
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +24 -31
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +7 -24
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +11 -34
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +37 -70
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +15 -14
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +6 -13
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +33 -50
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +37 -68
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +4 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +20 -27
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +8 -7
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +83 -120
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +59 -143
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +51 -117
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +13 -32
- package/vscode/src/vs/editor/contrib/folding/browser/foldingRanges.js +2 -2
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +4 -15
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +28 -35
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +21 -52
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +38 -77
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +109 -246
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +21 -23
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +40 -30
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +23 -34
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +31 -42
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +33 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +24 -23
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +31 -95
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +41 -32
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +18 -37
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +11 -18
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +29 -76
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +80 -99
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +30 -63
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +45 -42
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +11 -18
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +28 -23
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +39 -60
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/singleTextEdit.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +3 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +2 -5
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +135 -234
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +26 -33
- package/vscode/src/vs/editor/contrib/links/browser/links.js +32 -64
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +13 -16
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +122 -195
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +17 -20
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +16 -32
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +43 -86
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +10 -24
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +46 -170
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +3 -10
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +54 -76
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +37 -45
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +73 -86
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +23 -38
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +1 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +13 -80
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +20 -56
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +55 -72
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +161 -147
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +43 -95
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +21 -28
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +16 -23
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +11 -10
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +67 -66
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +6 -13
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +3 -6
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +72 -136
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +11 -26
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +19 -22
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +66 -59
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +72 -51
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +3 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +7 -7
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +2 -2
- package/vscode/src/vs/nls.js +1 -4
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +88 -255
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +9 -16
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +21 -41
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +18 -45
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +19 -24
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +40 -51
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +73 -0
- package/vscode/src/vs/platform/actions/browser/toolbar.js +24 -23
- package/vscode/src/vs/platform/actions/common/actions.contribution.js +5 -0
- package/vscode/src/vs/platform/actions/common/actions.js +4 -2
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +21 -0
- package/vscode/src/vs/platform/actions/common/menuService.js +49 -51
- package/vscode/src/vs/platform/commands/common/commands.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +38 -61
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +68 -51
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +168 -130
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +14 -45
- package/vscode/src/vs/platform/contextkey/common/scanner.js +12 -26
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +18 -33
- package/vscode/src/vs/platform/dnd/browser/dnd.js +24 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +8 -15
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +2 -6
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +335 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +915 -0
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +36 -43
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.d.ts +43 -0
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +23 -16
- package/vscode/src/vs/platform/files/browser/indexedDBFileSystemProvider.d.ts +48 -0
- package/vscode/src/vs/platform/files/common/files.js +41 -58
- package/vscode/src/vs/platform/files/common/inMemoryFilesystemProvider.d.ts +59 -0
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +28 -21
- package/vscode/src/vs/platform/hover/browser/hover.js +2 -2
- package/vscode/src/vs/platform/instantiation/common/instantiation.js +1 -1
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +7 -7
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +21 -20
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +75 -6
- package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +4 -2
- package/vscode/src/vs/platform/list/browser/listService.js +159 -189
- package/vscode/src/vs/platform/log/common/log.js +20 -19
- package/vscode/src/vs/platform/markers/common/markerService.js +1 -1
- package/vscode/src/vs/platform/markers/common/markers.js +15 -14
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +34 -47
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +183 -193
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +107 -98
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +9 -8
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +5 -12
- package/vscode/src/vs/platform/remote/common/remoteExtensionsScanner.service.d.ts +13 -0
- package/vscode/src/vs/platform/request/common/request.js +31 -40
- package/vscode/src/vs/platform/terminal/common/terminal.js +3 -1
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +28 -59
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +9 -40
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +151 -350
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +51 -170
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +63 -90
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +8 -35
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +14 -53
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +13 -32
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +14 -37
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +6 -13
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +9 -24
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +64 -207
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +111 -114
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +51 -54
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +20 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +25 -32
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +7 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +173 -35
- package/vscode/src/vs/platform/workspace/common/workspace.js +8 -9
- package/vscode/src/vs/platform/workspaces/common/workspaces.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostAiRelatedInformation.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +55 -46
- package/vscode/src/vs/workbench/api/common/extHostCodeInsets.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +9 -5
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +10 -4
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.js +17 -15
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +40 -24
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +37 -34
- package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostDocumentsAndEditors.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +12 -8
- package/vscode/src/vs/workbench/api/common/extHostEmbeddingVector.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +22 -7
- package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +16 -16
- package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +9 -9
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +272 -200
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +49 -42
- package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +6 -13
- package/vscode/src/vs/workbench/api/common/extHostManagedSockets.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +20 -14
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +20 -18
- package/vscode/src/vs/workbench/api/common/extHostNotebookRenderers.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostOutput.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +8 -6
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +41 -38
- package/vscode/src/vs/workbench/api/common/extHostTask.js +15 -11
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +22 -21
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +109 -94
- package/vscode/src/vs/workbench/api/common/extHostTestItem.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +9 -7
- package/vscode/src/vs/workbench/api/common/extHostTestingPrivateApi.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +6 -6
- package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +17 -10
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +31 -36
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +11 -11
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +31 -27
- package/vscode/src/vs/workbench/api/common/extHostUriOpener.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostUrls.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWebview.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostWebviewView.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +51 -48
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +29 -44
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +3 -3
- package/vscode/src/vs/workbench/api/worker/extensionHostWorker.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +93 -157
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +270 -614
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +31 -30
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +49 -123
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +63 -119
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +11 -26
- package/vscode/src/vs/workbench/browser/dnd.d.ts +14 -0
- package/vscode/src/vs/workbench/browser/editor.js +62 -55
- package/vscode/src/vs/workbench/browser/labels.js +40 -51
- package/vscode/src/vs/workbench/browser/part.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +61 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +23 -56
- package/vscode/src/vs/workbench/browser/parts/banner/bannerPart.d.ts +46 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.d.ts +21 -0
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +72 -115
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +89 -0
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +12 -17
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +11 -18
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +51 -198
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +60 -101
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +51 -48
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +10 -33
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +176 -684
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +51 -104
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +61 -91
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +26 -77
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +19 -27
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +41 -60
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +86 -94
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +124 -353
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +21 -30
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +45 -48
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +34 -31
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -5
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +27 -24
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +21 -18
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +117 -135
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +42 -109
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +11 -10
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +25 -52
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +24 -59
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +22 -30
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +21 -61
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +23 -25
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +32 -50
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.d.ts +108 -0
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +138 -0
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +58 -196
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +35 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +48 -0
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +73 -124
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +19 -30
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +6 -5
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +152 -141
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +13 -16
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +62 -72
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +68 -85
- package/vscode/src/vs/workbench/browser/quickaccess.js +12 -12
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +381 -589
- package/vscode/src/vs/workbench/browser/workbench.d.ts +10 -0
- package/vscode/src/vs/workbench/common/configuration.js +33 -52
- package/vscode/src/vs/workbench/common/contextkeys.js +117 -348
- package/vscode/src/vs/workbench/common/contributions.js +9 -3
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +14 -15
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +18 -15
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +14 -11
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor.js +31 -36
- package/vscode/src/vs/workbench/common/theme.js +359 -406
- package/vscode/src/vs/workbench/common/views.js +36 -35
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +221 -488
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +4 -22
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +37 -52
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +56 -127
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +18 -41
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +55 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +27 -71
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +13 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +13 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +21 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +17 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +8 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +40 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +83 -138
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +31 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +20 -19
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +7 -30
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +29 -64
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +14 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +33 -40
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +24 -61
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +11 -34
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +22 -38
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +23 -34
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +23 -67
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +14 -17
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +25 -45
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +47 -55
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +4 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +13 -28
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +4 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +4 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +29 -41
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +14 -37
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +11 -14
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +82 -88
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +19 -22
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +17 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +15 -18
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +33 -64
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +108 -124
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +16 -19
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +43 -79
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +46 -61
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -51
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +30 -44
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +24 -51
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +22 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +18 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +84 -242
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +33 -74
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +220 -412
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +14 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +20 -67
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +62 -273
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +12 -17
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +227 -290
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +147 -141
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +13 -14
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +4 -11
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +25 -22
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +617 -1086
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +42 -69
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +10 -13
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +9 -15
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +32 -29
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +9 -12
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +26 -35
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +8 -11
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +38 -49
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +60 -107
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +71 -100
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +161 -373
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.save.js +10 -13
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +11 -22
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +151 -244
- package/vscode/src/vs/workbench/contrib/files/browser/files.configuration.contribution.js +105 -156
- package/vscode/src/vs/workbench/contrib/files/browser/files.editorPane.contribution.js +10 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +18 -21
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +14 -25
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +52 -72
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +122 -155
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +55 -78
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +22 -25
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +8 -16
- package/vscode/src/vs/workbench/contrib/files/common/files.js +61 -84
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -14
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +58 -106
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +9 -22
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +6 -9
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +15 -26
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +122 -171
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +53 -78
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +19 -30
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +7 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +46 -67
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +56 -65
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +7 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +3 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +78 -165
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +14 -18
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +74 -145
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +64 -53
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +19 -50
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +2 -5
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +58 -55
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +97 -157
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +40 -60
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +57 -120
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +19 -35
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +36 -43
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +2 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +11 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +50 -63
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +12 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +90 -152
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +8 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +18 -45
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +6 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +58 -49
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +155 -210
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -135
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +17 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +63 -82
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +16 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +8 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +11 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +8 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +12 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +20 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +89 -100
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +66 -73
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +10 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +48 -101
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +15 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +21 -23
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +32 -44
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +16 -51
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +52 -91
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +52 -231
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +34 -105
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +128 -156
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +19 -82
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +250 -445
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +9 -16
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +123 -180
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +2 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +21 -62
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/common/cellSearchModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +2 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +3 -10
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +18 -17
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +18 -24
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +71 -70
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +35 -146
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +18 -23
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +19 -23
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +134 -123
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +795 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +149 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +19 -26
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalStatusList.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/markNavigationAddon.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +168 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +238 -0
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +10 -29
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +42 -78
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +106 -138
- package/vscode/src/vs/workbench/contrib/testing/common/testId.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +36 -31
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +4 -11
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +20 -23
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +6 -9
- package/vscode/src/vs/workbench/services/activity/browser/activityService.d.ts +28 -0
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +18 -8
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +23 -62
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +3 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +99 -18
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +9 -8
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.d.ts +53 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +3 -6
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +106 -0
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +40 -57
- package/vscode/src/vs/workbench/services/extensions/browser/extensionService.d.ts +45 -0
- package/vscode/src/vs/workbench/services/extensions/browser/webWorkerExtensionHost.d.ts +11 -0
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +162 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +18 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +39 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProxy.d.ts +17 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionManifestPropertiesService.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocationTracker.d.ts +45 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +6 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsProposedApi.d.ts +17 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +176 -223
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.d.ts +6 -0
- package/vscode/src/vs/workbench/services/extensions/common/rpcProtocol.js +5 -3
- package/vscode/src/vs/workbench/services/extensions/worker/polyfillNestedWorker.js +1 -1
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +35 -38
- package/vscode/src/vs/workbench/services/language/common/languageService.js +55 -119
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +6 -13
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +33 -60
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +8 -15
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +79 -72
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +54 -141
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.d.ts +50 -0
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +30 -42
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.service.d.ts +40 -0
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +185 -0
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +92 -101
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +50 -45
- package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +41 -0
- package/vscode/src/vs/workbench/services/textMate/browser/textMateTokenizationFeature.service.d.ts +11 -0
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +15 -30
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +4 -1
- package/vscode/src/vs/workbench/services/textfile/common/textEditorService.js +3 -1
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +32 -35
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +48 -83
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +26 -45
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.d.ts +11 -0
- package/vscode/src/vs/workbench/services/userData/browser/userDataInit.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +14 -23
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +2 -5
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +22 -62
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +49 -78
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +48 -87
- package/tools/l10n.js +0 -177
|
@@ -27,95 +27,28 @@ import { DisposableStore } from '../../../base/common/lifecycle.js';
|
|
|
27
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
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
)));
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
)));
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
)));
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
'panelLeft',
|
|
48
|
-
"Represents a side bar in the left position"
|
|
49
|
-
)));
|
|
50
|
-
const panelLeftOffIcon = registerIcon('panel-left-off', Codicon.layoutSidebarLeftOff, ( localizeWithPath(
|
|
51
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
52
|
-
'panelLeftOff',
|
|
53
|
-
"Represents a side bar in the left position toggled off"
|
|
54
|
-
)));
|
|
55
|
-
const panelRightIcon = registerIcon('panel-right', Codicon.layoutSidebarRight, ( localizeWithPath(
|
|
56
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
57
|
-
'panelRight',
|
|
58
|
-
"Represents side bar in the right position"
|
|
59
|
-
)));
|
|
60
|
-
const panelRightOffIcon = registerIcon('panel-right-off', Codicon.layoutSidebarRightOff, ( localizeWithPath(
|
|
61
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
62
|
-
'panelRightOff',
|
|
63
|
-
"Represents side bar in the right position toggled off"
|
|
64
|
-
)));
|
|
65
|
-
const panelIcon = registerIcon('panel-bottom', Codicon.layoutPanel, ( localizeWithPath(
|
|
66
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
67
|
-
'panelBottom',
|
|
68
|
-
"Represents the bottom panel"
|
|
69
|
-
)));
|
|
70
|
-
const statusBarIcon = registerIcon('statusBar', Codicon.layoutStatusbar, ( localizeWithPath(
|
|
71
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
72
|
-
'statusBarIcon',
|
|
73
|
-
"Represents the status bar"
|
|
74
|
-
)));
|
|
75
|
-
const panelAlignmentLeftIcon = registerIcon('panel-align-left', Codicon.layoutPanelLeft, ( localizeWithPath(
|
|
76
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
77
|
-
'panelBottomLeft',
|
|
78
|
-
"Represents the bottom panel alignment set to the left"
|
|
79
|
-
)));
|
|
80
|
-
const panelAlignmentRightIcon = registerIcon('panel-align-right', Codicon.layoutPanelRight, ( localizeWithPath(
|
|
81
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
82
|
-
'panelBottomRight',
|
|
83
|
-
"Represents the bottom panel alignment set to the right"
|
|
84
|
-
)));
|
|
85
|
-
const panelAlignmentCenterIcon = registerIcon('panel-align-center', Codicon.layoutPanelCenter, ( localizeWithPath(
|
|
86
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
87
|
-
'panelBottomCenter',
|
|
88
|
-
"Represents the bottom panel alignment set to the center"
|
|
89
|
-
)));
|
|
90
|
-
const panelAlignmentJustifyIcon = registerIcon('panel-align-justify', Codicon.layoutPanelJustify, ( localizeWithPath(
|
|
91
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
92
|
-
'panelBottomJustify',
|
|
93
|
-
"Represents the bottom panel alignment set to justified"
|
|
94
|
-
)));
|
|
95
|
-
const fullscreenIcon = registerIcon('fullscreen', Codicon.screenFull, ( localizeWithPath(
|
|
96
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
97
|
-
'fullScreenIcon',
|
|
98
|
-
"Represents full screen"
|
|
99
|
-
)));
|
|
100
|
-
const centerLayoutIcon = registerIcon('centerLayoutIcon', Codicon.layoutCentered, ( localizeWithPath(
|
|
101
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
102
|
-
'centerLayoutIcon',
|
|
103
|
-
"Represents centered layout mode"
|
|
104
|
-
)));
|
|
105
|
-
const zenModeIcon = registerIcon('zenMode', Codicon.target, ( localizeWithPath(
|
|
106
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
107
|
-
'zenModeIcon',
|
|
108
|
-
"Represents zen mode"
|
|
109
|
-
)));
|
|
30
|
+
const _moduleId = "vs/workbench/browser/actions/layoutActions";
|
|
31
|
+
const menubarIcon = registerIcon('menuBar', Codicon.layoutMenubar, ( localizeWithPath(_moduleId, 0, "Represents the menu bar")));
|
|
32
|
+
const activityBarLeftIcon = registerIcon('activity-bar-left', Codicon.layoutActivitybarLeft, ( localizeWithPath(_moduleId, 1, "Represents the activity bar in the left position")));
|
|
33
|
+
const activityBarRightIcon = registerIcon('activity-bar-right', Codicon.layoutActivitybarRight, ( localizeWithPath(_moduleId, 2, "Represents the activity bar in the right position")));
|
|
34
|
+
const panelLeftIcon = registerIcon('panel-left', Codicon.layoutSidebarLeft, ( localizeWithPath(_moduleId, 3, "Represents a side bar in the left position")));
|
|
35
|
+
const panelLeftOffIcon = registerIcon('panel-left-off', Codicon.layoutSidebarLeftOff, ( localizeWithPath(_moduleId, 4, "Represents a side bar in the left position toggled off")));
|
|
36
|
+
const panelRightIcon = registerIcon('panel-right', Codicon.layoutSidebarRight, ( localizeWithPath(_moduleId, 5, "Represents side bar in the right position")));
|
|
37
|
+
const panelRightOffIcon = registerIcon('panel-right-off', Codicon.layoutSidebarRightOff, ( localizeWithPath(_moduleId, 6, "Represents side bar in the right position toggled off")));
|
|
38
|
+
const panelIcon = registerIcon('panel-bottom', Codicon.layoutPanel, ( localizeWithPath(_moduleId, 7, "Represents the bottom panel")));
|
|
39
|
+
const statusBarIcon = registerIcon('statusBar', Codicon.layoutStatusbar, ( localizeWithPath(_moduleId, 8, "Represents the status bar")));
|
|
40
|
+
const panelAlignmentLeftIcon = registerIcon('panel-align-left', Codicon.layoutPanelLeft, ( localizeWithPath(_moduleId, 9, "Represents the bottom panel alignment set to the left")));
|
|
41
|
+
const panelAlignmentRightIcon = registerIcon('panel-align-right', Codicon.layoutPanelRight, ( localizeWithPath(_moduleId, 10, "Represents the bottom panel alignment set to the right")));
|
|
42
|
+
const panelAlignmentCenterIcon = registerIcon('panel-align-center', Codicon.layoutPanelCenter, ( localizeWithPath(_moduleId, 11, "Represents the bottom panel alignment set to the center")));
|
|
43
|
+
const panelAlignmentJustifyIcon = registerIcon('panel-align-justify', Codicon.layoutPanelJustify, ( localizeWithPath(_moduleId, 12, "Represents the bottom panel alignment set to justified")));
|
|
44
|
+
const fullscreenIcon = registerIcon('fullscreen', Codicon.screenFull, ( localizeWithPath(_moduleId, 13, "Represents full screen")));
|
|
45
|
+
const centerLayoutIcon = registerIcon('centerLayoutIcon', Codicon.layoutCentered, ( localizeWithPath(_moduleId, 14, "Represents centered layout mode")));
|
|
46
|
+
const zenModeIcon = registerIcon('zenMode', Codicon.target, ( localizeWithPath(_moduleId, 15, "Represents zen mode")));
|
|
110
47
|
registerAction2(class extends Action2 {
|
|
111
48
|
constructor() {
|
|
112
49
|
super({
|
|
113
50
|
id: 'workbench.action.closeSidebar',
|
|
114
|
-
title: ( localize2WithPath(
|
|
115
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
116
|
-
'closeSidebar',
|
|
117
|
-
'Close Primary Side Bar'
|
|
118
|
-
)),
|
|
51
|
+
title: ( localize2WithPath(_moduleId, 16, 'Close Primary Side Bar')),
|
|
119
52
|
category: Categories.View,
|
|
120
53
|
f1: true
|
|
121
54
|
});
|
|
@@ -130,18 +63,10 @@ registerAction2(class extends Action2 {
|
|
|
130
63
|
super({
|
|
131
64
|
id: 'workbench.action.toggleCenteredLayout',
|
|
132
65
|
title: {
|
|
133
|
-
...( localize2WithPath(
|
|
134
|
-
|
|
135
|
-
'toggleCenteredLayout',
|
|
136
|
-
"Toggle Centered Layout"
|
|
137
|
-
)),
|
|
138
|
-
mnemonicTitle: ( localizeWithPath(
|
|
139
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
140
|
-
{ key: 'miToggleCenteredLayout', comment: ['&& denotes a mnemonic'] },
|
|
141
|
-
"&&Centered Layout"
|
|
142
|
-
)),
|
|
66
|
+
...( localize2WithPath(_moduleId, 17, "Toggle Centered Layout")),
|
|
67
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 18, "&&Centered Layout")),
|
|
143
68
|
},
|
|
144
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated()),
|
|
69
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated())),
|
|
145
70
|
category: Categories.View,
|
|
146
71
|
f1: true,
|
|
147
72
|
toggled: IsMainEditorCenteredLayoutContext,
|
|
@@ -179,51 +104,27 @@ class MoveSidebarPositionAction extends Action2 {
|
|
|
179
104
|
class MoveSidebarRightAction extends MoveSidebarPositionAction {
|
|
180
105
|
static { this.ID = 'workbench.action.moveSideBarRight'; }
|
|
181
106
|
constructor() {
|
|
182
|
-
super(MoveSidebarRightAction.ID, ( localize2WithPath(
|
|
183
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
184
|
-
'moveSidebarRight',
|
|
185
|
-
"Move Primary Side Bar Right"
|
|
186
|
-
)), 1 );
|
|
107
|
+
super(MoveSidebarRightAction.ID, ( localize2WithPath(_moduleId, 19, "Move Primary Side Bar Right")), 1 );
|
|
187
108
|
}
|
|
188
109
|
}
|
|
189
110
|
class MoveSidebarLeftAction extends MoveSidebarPositionAction {
|
|
190
111
|
static { this.ID = 'workbench.action.moveSideBarLeft'; }
|
|
191
112
|
constructor() {
|
|
192
|
-
super(MoveSidebarLeftAction.ID, ( localize2WithPath(
|
|
193
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
194
|
-
'moveSidebarLeft',
|
|
195
|
-
"Move Primary Side Bar Left"
|
|
196
|
-
)), 0 );
|
|
113
|
+
super(MoveSidebarLeftAction.ID, ( localize2WithPath(_moduleId, 20, "Move Primary Side Bar Left")), 0 );
|
|
197
114
|
}
|
|
198
115
|
}
|
|
199
116
|
registerAction2(MoveSidebarRightAction);
|
|
200
117
|
registerAction2(MoveSidebarLeftAction);
|
|
201
118
|
class ToggleSidebarPositionAction extends Action2 {
|
|
202
119
|
static { this.ID = 'workbench.action.toggleSidebarPosition'; }
|
|
203
|
-
static { this.LABEL = ( localizeWithPath(
|
|
204
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
205
|
-
'toggleSidebarPosition',
|
|
206
|
-
"Toggle Primary Side Bar Position"
|
|
207
|
-
)); }
|
|
120
|
+
static { this.LABEL = ( localizeWithPath(_moduleId, 21, "Toggle Primary Side Bar Position")); }
|
|
208
121
|
static getLabel(layoutService) {
|
|
209
|
-
return layoutService.getSideBarPosition() === 0 ? ( localizeWithPath(
|
|
210
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
211
|
-
'moveSidebarRight',
|
|
212
|
-
"Move Primary Side Bar Right"
|
|
213
|
-
)) : ( localizeWithPath(
|
|
214
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
215
|
-
'moveSidebarLeft',
|
|
216
|
-
"Move Primary Side Bar Left"
|
|
217
|
-
));
|
|
122
|
+
return layoutService.getSideBarPosition() === 0 ? ( localizeWithPath(_moduleId, 19, "Move Primary Side Bar Right")) : ( localizeWithPath(_moduleId, 20, "Move Primary Side Bar Left"));
|
|
218
123
|
}
|
|
219
124
|
constructor() {
|
|
220
125
|
super({
|
|
221
126
|
id: ToggleSidebarPositionAction.ID,
|
|
222
|
-
title: ( localize2WithPath(
|
|
223
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
224
|
-
'toggleSidebarPosition',
|
|
225
|
-
"Toggle Primary Side Bar Position"
|
|
226
|
-
)),
|
|
127
|
+
title: ( localize2WithPath(_moduleId, 21, "Toggle Primary Side Bar Position")),
|
|
227
128
|
category: Categories.View,
|
|
228
129
|
f1: true
|
|
229
130
|
});
|
|
@@ -237,21 +138,13 @@ class ToggleSidebarPositionAction extends Action2 {
|
|
|
237
138
|
}
|
|
238
139
|
}
|
|
239
140
|
registerAction2(ToggleSidebarPositionAction);
|
|
240
|
-
const configureLayoutIcon = registerIcon('configure-layout-icon', Codicon.layout, ( localizeWithPath(
|
|
241
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
242
|
-
'cofigureLayoutIcon',
|
|
243
|
-
'Icon represents workbench layout configuration.'
|
|
244
|
-
)));
|
|
141
|
+
const configureLayoutIcon = registerIcon('configure-layout-icon', Codicon.layout, ( localizeWithPath(_moduleId, 22, 'Icon represents workbench layout configuration.')));
|
|
245
142
|
MenuRegistry.appendMenuItem(MenuId.LayoutControlMenu, {
|
|
246
143
|
submenu: MenuId.LayoutControlMenuSubmenu,
|
|
247
|
-
title: ( localizeWithPath(
|
|
248
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
249
|
-
'configureLayout',
|
|
250
|
-
"Configure Layout"
|
|
251
|
-
)),
|
|
144
|
+
title: ( localizeWithPath(_moduleId, 23, "Configure Layout")),
|
|
252
145
|
icon: configureLayoutIcon,
|
|
253
146
|
group: '1_workbench_layout',
|
|
254
|
-
when: ( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'menu'))
|
|
147
|
+
when: ( (ContextKeyExpr.equals('config.workbench.layoutControl.type', 'menu')))
|
|
255
148
|
});
|
|
256
149
|
MenuRegistry.appendMenuItems([{
|
|
257
150
|
id: MenuId.ViewContainerTitleContext,
|
|
@@ -259,16 +152,15 @@ MenuRegistry.appendMenuItems([{
|
|
|
259
152
|
group: '3_workbench_layout_move',
|
|
260
153
|
command: {
|
|
261
154
|
id: ToggleSidebarPositionAction.ID,
|
|
262
|
-
title: ( localizeWithPath(
|
|
263
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
264
|
-
'move side bar right',
|
|
265
|
-
"Move Primary Side Bar Right"
|
|
266
|
-
))
|
|
155
|
+
title: ( localizeWithPath(_moduleId, 24, "Move Primary Side Bar Right"))
|
|
267
156
|
},
|
|
268
|
-
when: ( ContextKeyExpr.and(
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
157
|
+
when: ( (ContextKeyExpr.and(
|
|
158
|
+
(ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')),
|
|
159
|
+
(ContextKeyExpr.equals(
|
|
160
|
+
'viewContainerLocation',
|
|
161
|
+
ViewContainerLocationToString(0 )
|
|
162
|
+
))
|
|
163
|
+
))),
|
|
272
164
|
order: 1
|
|
273
165
|
}
|
|
274
166
|
}, {
|
|
@@ -277,16 +169,15 @@ MenuRegistry.appendMenuItems([{
|
|
|
277
169
|
group: '3_workbench_layout_move',
|
|
278
170
|
command: {
|
|
279
171
|
id: ToggleSidebarPositionAction.ID,
|
|
280
|
-
title: ( localizeWithPath(
|
|
281
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
282
|
-
'move sidebar right',
|
|
283
|
-
"Move Primary Side Bar Right"
|
|
284
|
-
))
|
|
172
|
+
title: ( localizeWithPath(_moduleId, 25, "Move Primary Side Bar Right"))
|
|
285
173
|
},
|
|
286
|
-
when: ( ContextKeyExpr.and(
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
174
|
+
when: ( (ContextKeyExpr.and(
|
|
175
|
+
(ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')),
|
|
176
|
+
(ContextKeyExpr.equals(
|
|
177
|
+
'viewLocation',
|
|
178
|
+
ViewContainerLocationToString(0 )
|
|
179
|
+
))
|
|
180
|
+
))),
|
|
290
181
|
order: 1
|
|
291
182
|
}
|
|
292
183
|
}, {
|
|
@@ -295,16 +186,15 @@ MenuRegistry.appendMenuItems([{
|
|
|
295
186
|
group: '3_workbench_layout_move',
|
|
296
187
|
command: {
|
|
297
188
|
id: ToggleSidebarPositionAction.ID,
|
|
298
|
-
title: ( localizeWithPath(
|
|
299
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
300
|
-
'move sidebar left',
|
|
301
|
-
"Move Primary Side Bar Left"
|
|
302
|
-
))
|
|
189
|
+
title: ( localizeWithPath(_moduleId, 26, "Move Primary Side Bar Left"))
|
|
303
190
|
},
|
|
304
|
-
when: ( ContextKeyExpr.and(
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
191
|
+
when: ( (ContextKeyExpr.and(
|
|
192
|
+
(ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')),
|
|
193
|
+
(ContextKeyExpr.equals(
|
|
194
|
+
'viewContainerLocation',
|
|
195
|
+
ViewContainerLocationToString(0 )
|
|
196
|
+
))
|
|
197
|
+
))),
|
|
308
198
|
order: 1
|
|
309
199
|
}
|
|
310
200
|
}, {
|
|
@@ -313,16 +203,15 @@ MenuRegistry.appendMenuItems([{
|
|
|
313
203
|
group: '3_workbench_layout_move',
|
|
314
204
|
command: {
|
|
315
205
|
id: ToggleSidebarPositionAction.ID,
|
|
316
|
-
title: ( localizeWithPath(
|
|
317
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
318
|
-
'move sidebar left',
|
|
319
|
-
"Move Primary Side Bar Left"
|
|
320
|
-
))
|
|
206
|
+
title: ( localizeWithPath(_moduleId, 26, "Move Primary Side Bar Left"))
|
|
321
207
|
},
|
|
322
|
-
when: ( ContextKeyExpr.and(
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
208
|
+
when: ( (ContextKeyExpr.and(
|
|
209
|
+
(ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')),
|
|
210
|
+
(ContextKeyExpr.equals(
|
|
211
|
+
'viewLocation',
|
|
212
|
+
ViewContainerLocationToString(0 )
|
|
213
|
+
))
|
|
214
|
+
))),
|
|
326
215
|
order: 1
|
|
327
216
|
}
|
|
328
217
|
}, {
|
|
@@ -331,16 +220,15 @@ MenuRegistry.appendMenuItems([{
|
|
|
331
220
|
group: '3_workbench_layout_move',
|
|
332
221
|
command: {
|
|
333
222
|
id: ToggleSidebarPositionAction.ID,
|
|
334
|
-
title: ( localizeWithPath(
|
|
335
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
336
|
-
'move second sidebar left',
|
|
337
|
-
"Move Secondary Side Bar Left"
|
|
338
|
-
))
|
|
223
|
+
title: ( localizeWithPath(_moduleId, 27, "Move Secondary Side Bar Left"))
|
|
339
224
|
},
|
|
340
|
-
when: ( ContextKeyExpr.and(
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
225
|
+
when: ( (ContextKeyExpr.and(
|
|
226
|
+
(ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')),
|
|
227
|
+
(ContextKeyExpr.equals(
|
|
228
|
+
'viewLocation',
|
|
229
|
+
ViewContainerLocationToString(2 )
|
|
230
|
+
))
|
|
231
|
+
))),
|
|
344
232
|
order: 1
|
|
345
233
|
}
|
|
346
234
|
}, {
|
|
@@ -349,16 +237,15 @@ MenuRegistry.appendMenuItems([{
|
|
|
349
237
|
group: '3_workbench_layout_move',
|
|
350
238
|
command: {
|
|
351
239
|
id: ToggleSidebarPositionAction.ID,
|
|
352
|
-
title: ( localizeWithPath(
|
|
353
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
354
|
-
'move second sidebar right',
|
|
355
|
-
"Move Secondary Side Bar Right"
|
|
356
|
-
))
|
|
240
|
+
title: ( localizeWithPath(_moduleId, 28, "Move Secondary Side Bar Right"))
|
|
357
241
|
},
|
|
358
|
-
when: ( ContextKeyExpr.and(
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
242
|
+
when: ( (ContextKeyExpr.and(
|
|
243
|
+
(ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')),
|
|
244
|
+
(ContextKeyExpr.equals(
|
|
245
|
+
'viewLocation',
|
|
246
|
+
ViewContainerLocationToString(2 )
|
|
247
|
+
))
|
|
248
|
+
))),
|
|
362
249
|
order: 1
|
|
363
250
|
}
|
|
364
251
|
}]);
|
|
@@ -366,26 +253,18 @@ MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
|
366
253
|
group: '3_workbench_layout_move',
|
|
367
254
|
command: {
|
|
368
255
|
id: ToggleSidebarPositionAction.ID,
|
|
369
|
-
title: ( localizeWithPath(
|
|
370
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
371
|
-
{ key: 'miMoveSidebarRight', comment: ['&& denotes a mnemonic'] },
|
|
372
|
-
"&&Move Primary Side Bar Right"
|
|
373
|
-
))
|
|
256
|
+
title: ( localizeWithPath(_moduleId, 29, "&&Move Primary Side Bar Right"))
|
|
374
257
|
},
|
|
375
|
-
when: ( ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right')),
|
|
258
|
+
when: ( (ContextKeyExpr.notEquals('config.workbench.sideBar.location', 'right'))),
|
|
376
259
|
order: 2
|
|
377
260
|
});
|
|
378
261
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
379
262
|
group: '3_workbench_layout_move',
|
|
380
263
|
command: {
|
|
381
264
|
id: ToggleSidebarPositionAction.ID,
|
|
382
|
-
title: ( localizeWithPath(
|
|
383
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
384
|
-
{ key: 'miMoveSidebarLeft', comment: ['&& denotes a mnemonic'] },
|
|
385
|
-
"&&Move Primary Side Bar Left"
|
|
386
|
-
))
|
|
265
|
+
title: ( localizeWithPath(_moduleId, 30, "&&Move Primary Side Bar Left"))
|
|
387
266
|
},
|
|
388
|
-
when: ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')),
|
|
267
|
+
when: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'right'))),
|
|
389
268
|
order: 2
|
|
390
269
|
});
|
|
391
270
|
registerAction2(class extends Action2 {
|
|
@@ -393,21 +272,19 @@ registerAction2(class extends Action2 {
|
|
|
393
272
|
super({
|
|
394
273
|
id: 'workbench.action.toggleEditorVisibility',
|
|
395
274
|
title: {
|
|
396
|
-
...( localize2WithPath(
|
|
397
|
-
|
|
398
|
-
'toggleEditor',
|
|
399
|
-
"Toggle Editor Area Visibility"
|
|
400
|
-
)),
|
|
401
|
-
mnemonicTitle: ( localizeWithPath(
|
|
402
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
403
|
-
{ key: 'miShowEditorArea', comment: ['&& denotes a mnemonic'] },
|
|
404
|
-
"Show &&Editor Area"
|
|
405
|
-
)),
|
|
275
|
+
...( localize2WithPath(_moduleId, 31, "Toggle Editor Area Visibility")),
|
|
276
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 32, "Show &&Editor Area")),
|
|
406
277
|
},
|
|
407
278
|
category: Categories.View,
|
|
408
279
|
f1: true,
|
|
409
280
|
toggled: MainEditorAreaVisibleContext,
|
|
410
|
-
precondition: ( ContextKeyExpr.and(
|
|
281
|
+
precondition: ( (ContextKeyExpr.and(
|
|
282
|
+
(IsAuxiliaryWindowFocusedContext.toNegated()),
|
|
283
|
+
(ContextKeyExpr.or(
|
|
284
|
+
(PanelAlignmentContext.isEqualTo('center')),
|
|
285
|
+
(PanelPositionContext.notEqualsTo('bottom'))
|
|
286
|
+
))
|
|
287
|
+
)))
|
|
411
288
|
});
|
|
412
289
|
}
|
|
413
290
|
run(accessor) {
|
|
@@ -416,11 +293,7 @@ registerAction2(class extends Action2 {
|
|
|
416
293
|
});
|
|
417
294
|
MenuRegistry.appendMenuItem(MenuId.MenubarViewMenu, {
|
|
418
295
|
group: '2_appearance',
|
|
419
|
-
title: ( localizeWithPath(
|
|
420
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
421
|
-
{ key: 'miAppearance', comment: ['&& denotes a mnemonic'] },
|
|
422
|
-
"&&Appearance"
|
|
423
|
-
)),
|
|
296
|
+
title: ( localizeWithPath(_moduleId, 33, "&&Appearance")),
|
|
424
297
|
submenu: MenuId.MenubarAppearanceMenu,
|
|
425
298
|
order: 1
|
|
426
299
|
});
|
|
@@ -429,23 +302,11 @@ class ToggleSidebarVisibilityAction extends Action2 {
|
|
|
429
302
|
constructor() {
|
|
430
303
|
super({
|
|
431
304
|
id: ToggleSidebarVisibilityAction.ID,
|
|
432
|
-
title: ( localize2WithPath(
|
|
433
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
434
|
-
'toggleSidebar',
|
|
435
|
-
'Toggle Primary Side Bar Visibility'
|
|
436
|
-
)),
|
|
305
|
+
title: ( localize2WithPath(_moduleId, 34, 'Toggle Primary Side Bar Visibility')),
|
|
437
306
|
toggled: {
|
|
438
307
|
condition: SideBarVisibleContext,
|
|
439
|
-
title: ( localizeWithPath(
|
|
440
|
-
|
|
441
|
-
'primary sidebar',
|
|
442
|
-
"Primary Side Bar"
|
|
443
|
-
)),
|
|
444
|
-
mnemonicTitle: ( localizeWithPath(
|
|
445
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
446
|
-
{ key: 'primary sidebar mnemonic', comment: ['&& denotes a mnemonic'] },
|
|
447
|
-
"&&Primary Side Bar"
|
|
448
|
-
)),
|
|
308
|
+
title: ( localizeWithPath(_moduleId, 35, "Primary Side Bar")),
|
|
309
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 36, "&&Primary Side Bar")),
|
|
449
310
|
},
|
|
450
311
|
category: Categories.View,
|
|
451
312
|
f1: true,
|
|
@@ -480,16 +341,12 @@ MenuRegistry.appendMenuItems([
|
|
|
480
341
|
group: '3_workbench_layout_move',
|
|
481
342
|
command: {
|
|
482
343
|
id: ToggleSidebarVisibilityAction.ID,
|
|
483
|
-
title: ( localizeWithPath(
|
|
484
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
485
|
-
'compositePart.hideSideBarLabel',
|
|
486
|
-
"Hide Primary Side Bar"
|
|
487
|
-
)),
|
|
344
|
+
title: ( localizeWithPath(_moduleId, 37, "Hide Primary Side Bar")),
|
|
488
345
|
},
|
|
489
|
-
when: ( ContextKeyExpr.and(SideBarVisibleContext,
|
|
346
|
+
when: ( (ContextKeyExpr.and(SideBarVisibleContext, (ContextKeyExpr.equals(
|
|
490
347
|
'viewContainerLocation',
|
|
491
348
|
ViewContainerLocationToString(0 )
|
|
492
|
-
)))),
|
|
349
|
+
))))),
|
|
493
350
|
order: 2
|
|
494
351
|
}
|
|
495
352
|
}, {
|
|
@@ -498,16 +355,12 @@ MenuRegistry.appendMenuItems([
|
|
|
498
355
|
group: '3_workbench_layout_move',
|
|
499
356
|
command: {
|
|
500
357
|
id: ToggleSidebarVisibilityAction.ID,
|
|
501
|
-
title: ( localizeWithPath(
|
|
502
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
503
|
-
'compositePart.hideSideBarLabel',
|
|
504
|
-
"Hide Primary Side Bar"
|
|
505
|
-
)),
|
|
358
|
+
title: ( localizeWithPath(_moduleId, 37, "Hide Primary Side Bar")),
|
|
506
359
|
},
|
|
507
|
-
when: ( ContextKeyExpr.and(SideBarVisibleContext,
|
|
360
|
+
when: ( (ContextKeyExpr.and(SideBarVisibleContext, (ContextKeyExpr.equals(
|
|
508
361
|
'viewLocation',
|
|
509
362
|
ViewContainerLocationToString(0 )
|
|
510
|
-
)))),
|
|
363
|
+
))))),
|
|
511
364
|
order: 2
|
|
512
365
|
}
|
|
513
366
|
}, {
|
|
@@ -516,15 +369,14 @@ MenuRegistry.appendMenuItems([
|
|
|
516
369
|
group: '0_workbench_toggles',
|
|
517
370
|
command: {
|
|
518
371
|
id: ToggleSidebarVisibilityAction.ID,
|
|
519
|
-
title: ( localizeWithPath(
|
|
520
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
521
|
-
'toggleSideBar',
|
|
522
|
-
"Toggle Primary Side Bar"
|
|
523
|
-
)),
|
|
372
|
+
title: ( localizeWithPath(_moduleId, 38, "Toggle Primary Side Bar")),
|
|
524
373
|
icon: panelLeftOffIcon,
|
|
525
374
|
toggled: { condition: SideBarVisibleContext, icon: panelLeftIcon }
|
|
526
375
|
},
|
|
527
|
-
when: ( ContextKeyExpr.and((
|
|
376
|
+
when: ( (ContextKeyExpr.and( (ContextKeyExpr.or(
|
|
377
|
+
(ContextKeyExpr.equals('config.workbench.layoutControl.type', 'toggles')),
|
|
378
|
+
(ContextKeyExpr.equals('config.workbench.layoutControl.type', 'both'))
|
|
379
|
+
)), (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))))),
|
|
528
380
|
order: 0
|
|
529
381
|
}
|
|
530
382
|
}, {
|
|
@@ -533,15 +385,14 @@ MenuRegistry.appendMenuItems([
|
|
|
533
385
|
group: '0_workbench_toggles',
|
|
534
386
|
command: {
|
|
535
387
|
id: ToggleSidebarVisibilityAction.ID,
|
|
536
|
-
title: ( localizeWithPath(
|
|
537
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
538
|
-
'toggleSideBar',
|
|
539
|
-
"Toggle Primary Side Bar"
|
|
540
|
-
)),
|
|
388
|
+
title: ( localizeWithPath(_moduleId, 38, "Toggle Primary Side Bar")),
|
|
541
389
|
icon: panelRightOffIcon,
|
|
542
390
|
toggled: { condition: SideBarVisibleContext, icon: panelRightIcon }
|
|
543
391
|
},
|
|
544
|
-
when: ( ContextKeyExpr.and((
|
|
392
|
+
when: ( (ContextKeyExpr.and( (ContextKeyExpr.or(
|
|
393
|
+
(ContextKeyExpr.equals('config.workbench.layoutControl.type', 'toggles')),
|
|
394
|
+
(ContextKeyExpr.equals('config.workbench.layoutControl.type', 'both'))
|
|
395
|
+
)), (ContextKeyExpr.equals('config.workbench.sideBar.location', 'right'))))),
|
|
545
396
|
order: 2
|
|
546
397
|
}
|
|
547
398
|
}
|
|
@@ -553,20 +404,12 @@ class ToggleStatusbarVisibilityAction extends Action2 {
|
|
|
553
404
|
super({
|
|
554
405
|
id: ToggleStatusbarVisibilityAction.ID,
|
|
555
406
|
title: {
|
|
556
|
-
...( localize2WithPath(
|
|
557
|
-
|
|
558
|
-
'toggleStatusbar',
|
|
559
|
-
"Toggle Status Bar Visibility"
|
|
560
|
-
)),
|
|
561
|
-
mnemonicTitle: ( localizeWithPath(
|
|
562
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
563
|
-
{ key: 'miStatusbar', comment: ['&& denotes a mnemonic'] },
|
|
564
|
-
"S&&tatus Bar"
|
|
565
|
-
)),
|
|
407
|
+
...( localize2WithPath(_moduleId, 39, "Toggle Status Bar Visibility")),
|
|
408
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 40, "S&&tatus Bar")),
|
|
566
409
|
},
|
|
567
410
|
category: Categories.View,
|
|
568
411
|
f1: true,
|
|
569
|
-
toggled: ( ContextKeyExpr.equals('config.workbench.statusBar.visible', true)),
|
|
412
|
+
toggled: ( (ContextKeyExpr.equals('config.workbench.statusBar.visible', true))),
|
|
570
413
|
menu: [{
|
|
571
414
|
id: MenuId.MenubarAppearanceMenu,
|
|
572
415
|
group: '2_workbench_layout',
|
|
@@ -603,90 +446,66 @@ class AbstractSetShowTabsAction extends Action2 {
|
|
|
603
446
|
class HideEditorTabsAction extends AbstractSetShowTabsAction {
|
|
604
447
|
static { this.ID = 'workbench.action.hideEditorTabs'; }
|
|
605
448
|
constructor() {
|
|
606
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
449
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
607
450
|
`config.${"workbench.editor.showTabs" }`,
|
|
608
451
|
"none"
|
|
609
|
-
)).negate()),
|
|
610
|
-
const title = ( localize2WithPath(
|
|
611
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
612
|
-
'hideEditorTabs',
|
|
613
|
-
'Hide Editor Tabs'
|
|
614
|
-
));
|
|
452
|
+
))).negate()), (InEditorZenModeContext.negate()))));
|
|
453
|
+
const title = ( localize2WithPath(_moduleId, 41, 'Hide Editor Tabs'));
|
|
615
454
|
super("workbench.editor.showTabs" , "none" , title, HideEditorTabsAction.ID, precondition);
|
|
616
455
|
}
|
|
617
456
|
}
|
|
618
457
|
class ZenHideEditorTabsAction extends AbstractSetShowTabsAction {
|
|
619
458
|
static { this.ID = 'workbench.action.zenHideEditorTabs'; }
|
|
620
459
|
constructor() {
|
|
621
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
460
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
622
461
|
`config.${"zenMode.showTabs" }`,
|
|
623
462
|
"none"
|
|
624
|
-
)).negate()), InEditorZenModeContext));
|
|
625
|
-
const title = ( localize2WithPath(
|
|
626
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
627
|
-
'hideEditorTabsZenMode',
|
|
628
|
-
'Hide Editor Tabs in Zen Mode'
|
|
629
|
-
));
|
|
463
|
+
))).negate()), InEditorZenModeContext)));
|
|
464
|
+
const title = ( localize2WithPath(_moduleId, 42, 'Hide Editor Tabs in Zen Mode'));
|
|
630
465
|
super("zenMode.showTabs" , "none" , title, ZenHideEditorTabsAction.ID, precondition);
|
|
631
466
|
}
|
|
632
467
|
}
|
|
633
468
|
class ShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
634
469
|
static { this.ID = 'workbench.action.showMultipleEditorTabs'; }
|
|
635
470
|
constructor() {
|
|
636
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
471
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
637
472
|
`config.${"workbench.editor.showTabs" }`,
|
|
638
473
|
"multiple"
|
|
639
|
-
)).negate()),
|
|
640
|
-
const title = ( localize2WithPath(
|
|
641
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
642
|
-
'showMultipleEditorTabs',
|
|
643
|
-
'Show Multiple Editor Tabs'
|
|
644
|
-
));
|
|
474
|
+
))).negate()), (InEditorZenModeContext.negate()))));
|
|
475
|
+
const title = ( localize2WithPath(_moduleId, 43, 'Show Multiple Editor Tabs'));
|
|
645
476
|
super("workbench.editor.showTabs" , "multiple" , title, ShowMultipleEditorTabsAction.ID, precondition);
|
|
646
477
|
}
|
|
647
478
|
}
|
|
648
479
|
class ZenShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
649
480
|
static { this.ID = 'workbench.action.zenShowMultipleEditorTabs'; }
|
|
650
481
|
constructor() {
|
|
651
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
482
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
652
483
|
`config.${"zenMode.showTabs" }`,
|
|
653
484
|
"multiple"
|
|
654
|
-
)).negate()), InEditorZenModeContext));
|
|
655
|
-
const title = ( localize2WithPath(
|
|
656
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
657
|
-
'showMultipleEditorTabsZenMode',
|
|
658
|
-
'Show Multiple Editor Tabs in Zen Mode'
|
|
659
|
-
));
|
|
485
|
+
))).negate()), InEditorZenModeContext)));
|
|
486
|
+
const title = ( localize2WithPath(_moduleId, 44, 'Show Multiple Editor Tabs in Zen Mode'));
|
|
660
487
|
super("zenMode.showTabs" , "multiple" , title, ZenShowMultipleEditorTabsAction.ID, precondition);
|
|
661
488
|
}
|
|
662
489
|
}
|
|
663
490
|
class ShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
664
491
|
static { this.ID = 'workbench.action.showEditorTab'; }
|
|
665
492
|
constructor() {
|
|
666
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
493
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
667
494
|
`config.${"workbench.editor.showTabs" }`,
|
|
668
495
|
"single"
|
|
669
|
-
)).negate()),
|
|
670
|
-
const title = ( localize2WithPath(
|
|
671
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
672
|
-
'showSingleEditorTab',
|
|
673
|
-
'Show Single Editor Tab'
|
|
674
|
-
));
|
|
496
|
+
))).negate()), (InEditorZenModeContext.negate()))));
|
|
497
|
+
const title = ( localize2WithPath(_moduleId, 45, 'Show Single Editor Tab'));
|
|
675
498
|
super("workbench.editor.showTabs" , "single" , title, ShowSingleEditorTabAction.ID, precondition);
|
|
676
499
|
}
|
|
677
500
|
}
|
|
678
501
|
class ZenShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
679
502
|
static { this.ID = 'workbench.action.zenShowEditorTab'; }
|
|
680
503
|
constructor() {
|
|
681
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
504
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
682
505
|
`config.${"zenMode.showTabs" }`,
|
|
683
506
|
"single"
|
|
684
|
-
)).negate()), InEditorZenModeContext));
|
|
685
|
-
const title = ( localize2WithPath(
|
|
686
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
687
|
-
'showSingleEditorTabZenMode',
|
|
688
|
-
'Show Single Editor Tab in Zen Mode'
|
|
689
|
-
));
|
|
507
|
+
))).negate()), InEditorZenModeContext)));
|
|
508
|
+
const title = ( localize2WithPath(_moduleId, 46, 'Show Single Editor Tab in Zen Mode'));
|
|
690
509
|
super("zenMode.showTabs" , "single" , title, ZenShowSingleEditorTabAction.ID, precondition);
|
|
691
510
|
}
|
|
692
511
|
}
|
|
@@ -698,14 +517,14 @@ registerAction2(ShowSingleEditorTabAction);
|
|
|
698
517
|
registerAction2(ZenShowSingleEditorTabAction);
|
|
699
518
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
700
519
|
submenu: MenuId.EditorTabsBarShowTabsSubmenu,
|
|
701
|
-
title: ( localizeWithPath(
|
|
520
|
+
title: ( localizeWithPath(_moduleId, 47, "Tab Bar")),
|
|
702
521
|
group: '3_workbench_layout_move',
|
|
703
522
|
order: 10,
|
|
704
|
-
when: ( InEditorZenModeContext.negate())
|
|
523
|
+
when: ( (InEditorZenModeContext.negate()))
|
|
705
524
|
});
|
|
706
525
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
707
526
|
submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu,
|
|
708
|
-
title: ( localizeWithPath(
|
|
527
|
+
title: ( localizeWithPath(_moduleId, 47, "Tab Bar")),
|
|
709
528
|
group: '3_workbench_layout_move',
|
|
710
529
|
order: 10,
|
|
711
530
|
when: InEditorZenModeContext
|
|
@@ -715,16 +534,12 @@ class EditorActionsTitleBarAction extends Action2 {
|
|
|
715
534
|
constructor() {
|
|
716
535
|
super({
|
|
717
536
|
id: EditorActionsTitleBarAction.ID,
|
|
718
|
-
title: ( localize2WithPath(
|
|
719
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
720
|
-
'moveEditorActionsToTitleBar',
|
|
721
|
-
"Move Editor Actions to Title Bar"
|
|
722
|
-
)),
|
|
537
|
+
title: ( localize2WithPath(_moduleId, 48, "Move Editor Actions to Title Bar")),
|
|
723
538
|
category: Categories.View,
|
|
724
|
-
precondition: ( ( ContextKeyExpr.equals(
|
|
539
|
+
precondition: ( (( (ContextKeyExpr.equals(
|
|
725
540
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
726
541
|
"titleBar"
|
|
727
|
-
)).negate()),
|
|
542
|
+
))).negate())),
|
|
728
543
|
f1: true
|
|
729
544
|
});
|
|
730
545
|
}
|
|
@@ -739,19 +554,15 @@ class EditorActionsDefaultAction extends Action2 {
|
|
|
739
554
|
constructor() {
|
|
740
555
|
super({
|
|
741
556
|
id: EditorActionsDefaultAction.ID,
|
|
742
|
-
title: ( localize2WithPath(
|
|
743
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
744
|
-
'moveEditorActionsToTabBar',
|
|
745
|
-
"Move Editor Actions to Tab Bar"
|
|
746
|
-
)),
|
|
557
|
+
title: ( localize2WithPath(_moduleId, 49, "Move Editor Actions to Tab Bar")),
|
|
747
558
|
category: Categories.View,
|
|
748
|
-
precondition: ( ContextKeyExpr.and(( (
|
|
559
|
+
precondition: ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
749
560
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
750
561
|
"default"
|
|
751
|
-
)).negate()),
|
|
562
|
+
))).negate()), (( (ContextKeyExpr.equals(
|
|
752
563
|
`config.${"workbench.editor.showTabs" }`,
|
|
753
564
|
"none"
|
|
754
|
-
)).negate()))),
|
|
565
|
+
))).negate())))),
|
|
755
566
|
f1: true
|
|
756
567
|
});
|
|
757
568
|
}
|
|
@@ -766,16 +577,12 @@ class HideEditorActionsAction extends Action2 {
|
|
|
766
577
|
constructor() {
|
|
767
578
|
super({
|
|
768
579
|
id: HideEditorActionsAction.ID,
|
|
769
|
-
title: ( localize2WithPath(
|
|
770
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
771
|
-
'hideEditorActons',
|
|
772
|
-
"Hide Editor Actions"
|
|
773
|
-
)),
|
|
580
|
+
title: ( localize2WithPath(_moduleId, 50, "Hide Editor Actions")),
|
|
774
581
|
category: Categories.View,
|
|
775
|
-
precondition: ( ( ContextKeyExpr.equals(
|
|
582
|
+
precondition: ( (( (ContextKeyExpr.equals(
|
|
776
583
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
777
584
|
"hidden"
|
|
778
|
-
)).negate()),
|
|
585
|
+
))).negate())),
|
|
779
586
|
f1: true
|
|
780
587
|
});
|
|
781
588
|
}
|
|
@@ -790,16 +597,12 @@ class ShowEditorActionsAction extends Action2 {
|
|
|
790
597
|
constructor() {
|
|
791
598
|
super({
|
|
792
599
|
id: ShowEditorActionsAction.ID,
|
|
793
|
-
title: ( localize2WithPath(
|
|
794
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
795
|
-
'showEditorActons',
|
|
796
|
-
"Show Editor Actions"
|
|
797
|
-
)),
|
|
600
|
+
title: ( localize2WithPath(_moduleId, 51, "Show Editor Actions")),
|
|
798
601
|
category: Categories.View,
|
|
799
|
-
precondition: ( ContextKeyExpr.equals(
|
|
602
|
+
precondition: ( (ContextKeyExpr.equals(
|
|
800
603
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
801
604
|
"hidden"
|
|
802
|
-
)),
|
|
605
|
+
))),
|
|
803
606
|
f1: true
|
|
804
607
|
});
|
|
805
608
|
}
|
|
@@ -811,11 +614,7 @@ class ShowEditorActionsAction extends Action2 {
|
|
|
811
614
|
registerAction2(ShowEditorActionsAction);
|
|
812
615
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
813
616
|
submenu: MenuId.EditorActionsPositionSubmenu,
|
|
814
|
-
title: ( localizeWithPath(
|
|
815
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
816
|
-
'editorActionsPosition',
|
|
817
|
-
"Editor Actions Position"
|
|
818
|
-
)),
|
|
617
|
+
title: ( localizeWithPath(_moduleId, 52, "Editor Actions Position")),
|
|
819
618
|
group: '3_workbench_layout_move',
|
|
820
619
|
order: 11
|
|
821
620
|
});
|
|
@@ -823,16 +622,12 @@ registerAction2(class extends Action2 {
|
|
|
823
622
|
constructor() {
|
|
824
623
|
super({
|
|
825
624
|
id: 'workbench.action.toggleSeparatePinnedEditorTabs',
|
|
826
|
-
title: ( localize2WithPath(
|
|
827
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
828
|
-
'toggleSeparatePinnedEditorTabs',
|
|
829
|
-
"Separate Pinned Editor Tabs"
|
|
830
|
-
)),
|
|
625
|
+
title: ( localize2WithPath(_moduleId, 53, "Separate Pinned Editor Tabs")),
|
|
831
626
|
category: Categories.View,
|
|
832
|
-
precondition: ( ContextKeyExpr.equals(
|
|
627
|
+
precondition: ( (ContextKeyExpr.equals(
|
|
833
628
|
`config.${"workbench.editor.showTabs" }`,
|
|
834
629
|
"multiple"
|
|
835
|
-
)),
|
|
630
|
+
))),
|
|
836
631
|
f1: true
|
|
837
632
|
});
|
|
838
633
|
}
|
|
@@ -848,18 +643,10 @@ registerAction2(class extends Action2 {
|
|
|
848
643
|
super({
|
|
849
644
|
id: 'workbench.action.toggleZenMode',
|
|
850
645
|
title: {
|
|
851
|
-
...( localize2WithPath(
|
|
852
|
-
|
|
853
|
-
'toggleZenMode',
|
|
854
|
-
"Toggle Zen Mode"
|
|
855
|
-
)),
|
|
856
|
-
mnemonicTitle: ( localizeWithPath(
|
|
857
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
858
|
-
{ key: 'miToggleZenMode', comment: ['&& denotes a mnemonic'] },
|
|
859
|
-
"Zen Mode"
|
|
860
|
-
)),
|
|
646
|
+
...( localize2WithPath(_moduleId, 54, "Toggle Zen Mode")),
|
|
647
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 55, "Zen Mode")),
|
|
861
648
|
},
|
|
862
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated()),
|
|
649
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated())),
|
|
863
650
|
category: Categories.View,
|
|
864
651
|
f1: true,
|
|
865
652
|
keybinding: {
|
|
@@ -897,20 +684,17 @@ if (isWindows || isLinux || isWeb) {
|
|
|
897
684
|
super({
|
|
898
685
|
id: 'workbench.action.toggleMenuBar',
|
|
899
686
|
title: {
|
|
900
|
-
...( localize2WithPath(
|
|
901
|
-
|
|
902
|
-
'toggleMenuBar',
|
|
903
|
-
"Toggle Menu Bar"
|
|
904
|
-
)),
|
|
905
|
-
mnemonicTitle: ( localizeWithPath(
|
|
906
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
907
|
-
{ key: 'miMenuBar', comment: ['&& denotes a mnemonic'] },
|
|
908
|
-
"Menu &&Bar"
|
|
909
|
-
)),
|
|
687
|
+
...( localize2WithPath(_moduleId, 56, "Toggle Menu Bar")),
|
|
688
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 57, "Menu &&Bar")),
|
|
910
689
|
},
|
|
911
690
|
category: Categories.View,
|
|
912
691
|
f1: true,
|
|
913
|
-
toggled: ( ContextKeyExpr.and(
|
|
692
|
+
toggled: ( (ContextKeyExpr.and(
|
|
693
|
+
(IsMacNativeContext.toNegated()),
|
|
694
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'hidden')),
|
|
695
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'toggle')),
|
|
696
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'compact'))
|
|
697
|
+
))),
|
|
914
698
|
menu: [{
|
|
915
699
|
id: MenuId.MenubarAppearanceMenu,
|
|
916
700
|
group: '2_workbench_layout',
|
|
@@ -926,14 +710,19 @@ if (isWindows || isLinux || isWeb) {
|
|
|
926
710
|
MenuRegistry.appendMenuItem(menuId, {
|
|
927
711
|
command: {
|
|
928
712
|
id: 'workbench.action.toggleMenuBar',
|
|
929
|
-
title: ( localizeWithPath(
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
713
|
+
title: ( localizeWithPath(_moduleId, 58, "Menu Bar")),
|
|
714
|
+
toggled: ( (ContextKeyExpr.and(
|
|
715
|
+
(IsMacNativeContext.toNegated()),
|
|
716
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'hidden')),
|
|
717
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'toggle')),
|
|
718
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'compact'))
|
|
719
|
+
)))
|
|
935
720
|
},
|
|
936
|
-
when: ( ContextKeyExpr.and(
|
|
721
|
+
when: ( (ContextKeyExpr.and(
|
|
722
|
+
(IsAuxiliaryWindowFocusedContext.toNegated()),
|
|
723
|
+
(ContextKeyExpr.notEquals(TitleBarStyleContext.key, "native" )),
|
|
724
|
+
(IsMainWindowFullscreenContext.negate())
|
|
725
|
+
))),
|
|
937
726
|
group: '2_config',
|
|
938
727
|
order: 0
|
|
939
728
|
});
|
|
@@ -943,11 +732,7 @@ registerAction2(class extends Action2 {
|
|
|
943
732
|
constructor() {
|
|
944
733
|
super({
|
|
945
734
|
id: 'workbench.action.resetViewLocations',
|
|
946
|
-
title: ( localize2WithPath(
|
|
947
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
948
|
-
'resetViewLocations',
|
|
949
|
-
"Reset View Locations"
|
|
950
|
-
)),
|
|
735
|
+
title: ( localize2WithPath(_moduleId, 59, "Reset View Locations")),
|
|
951
736
|
category: Categories.View,
|
|
952
737
|
f1: true
|
|
953
738
|
});
|
|
@@ -960,7 +745,7 @@ registerAction2(class extends Action2 {
|
|
|
960
745
|
constructor() {
|
|
961
746
|
super({
|
|
962
747
|
id: 'workbench.action.moveView',
|
|
963
|
-
title: ( localize2WithPath(
|
|
748
|
+
title: ( localize2WithPath(_moduleId, 60, "Move View")),
|
|
964
749
|
category: Categories.View,
|
|
965
750
|
f1: true
|
|
966
751
|
});
|
|
@@ -981,7 +766,7 @@ registerAction2(class extends Action2 {
|
|
|
981
766
|
if (!viewId) {
|
|
982
767
|
return;
|
|
983
768
|
}
|
|
984
|
-
const moveFocusedViewAction = ( new MoveFocusedViewAction());
|
|
769
|
+
const moveFocusedViewAction = ( (new MoveFocusedViewAction()));
|
|
985
770
|
instantiationService.invokeFunction(accessor => moveFocusedViewAction.run(accessor, viewId));
|
|
986
771
|
}
|
|
987
772
|
catch { }
|
|
@@ -998,12 +783,7 @@ registerAction2(class extends Action2 {
|
|
|
998
783
|
if (!hasAddedView) {
|
|
999
784
|
results.push({
|
|
1000
785
|
type: 'separator',
|
|
1001
|
-
label: ( localizeWithPath(
|
|
1002
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1003
|
-
'sidebarContainer',
|
|
1004
|
-
"Side Bar / {0}",
|
|
1005
|
-
containerModel.title
|
|
1006
|
-
))
|
|
786
|
+
label: ( localizeWithPath(_moduleId, 61, "Side Bar / {0}", containerModel.title))
|
|
1007
787
|
});
|
|
1008
788
|
hasAddedView = true;
|
|
1009
789
|
}
|
|
@@ -1024,12 +804,7 @@ registerAction2(class extends Action2 {
|
|
|
1024
804
|
if (!hasAddedView) {
|
|
1025
805
|
results.push({
|
|
1026
806
|
type: 'separator',
|
|
1027
|
-
label: ( localizeWithPath(
|
|
1028
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1029
|
-
'panelContainer',
|
|
1030
|
-
"Panel / {0}",
|
|
1031
|
-
containerModel.title
|
|
1032
|
-
))
|
|
807
|
+
label: ( localizeWithPath(_moduleId, 62, "Panel / {0}", containerModel.title))
|
|
1033
808
|
});
|
|
1034
809
|
hasAddedView = true;
|
|
1035
810
|
}
|
|
@@ -1050,12 +825,7 @@ registerAction2(class extends Action2 {
|
|
|
1050
825
|
if (!hasAddedView) {
|
|
1051
826
|
results.push({
|
|
1052
827
|
type: 'separator',
|
|
1053
|
-
label: ( localizeWithPath(
|
|
1054
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1055
|
-
'secondarySideBarContainer',
|
|
1056
|
-
"Secondary Side Bar / {0}",
|
|
1057
|
-
containerModel.title
|
|
1058
|
-
))
|
|
828
|
+
label: ( localizeWithPath(_moduleId, 63, "Secondary Side Bar / {0}", containerModel.title))
|
|
1059
829
|
});
|
|
1060
830
|
hasAddedView = true;
|
|
1061
831
|
}
|
|
@@ -1070,40 +840,34 @@ registerAction2(class extends Action2 {
|
|
|
1070
840
|
}
|
|
1071
841
|
async getView(quickInputService, viewDescriptorService, paneCompositePartService, viewId) {
|
|
1072
842
|
const quickPick = quickInputService.createQuickPick();
|
|
1073
|
-
quickPick.placeholder = ( localizeWithPath(
|
|
1074
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1075
|
-
'moveFocusedView.selectView',
|
|
1076
|
-
"Select a View to Move"
|
|
1077
|
-
));
|
|
843
|
+
quickPick.placeholder = ( localizeWithPath(_moduleId, 64, "Select a View to Move"));
|
|
1078
844
|
quickPick.items = this.getViewItems(viewDescriptorService, paneCompositePartService);
|
|
1079
845
|
quickPick.selectedItems = quickPick.items.filter(item => item.id === viewId);
|
|
1080
|
-
return (
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
846
|
+
return (
|
|
847
|
+
(new Promise((resolve, reject) => {
|
|
848
|
+
quickPick.onDidAccept(() => {
|
|
849
|
+
const viewId = quickPick.selectedItems[0];
|
|
850
|
+
if (viewId.id) {
|
|
851
|
+
resolve(viewId.id);
|
|
852
|
+
}
|
|
853
|
+
else {
|
|
854
|
+
reject();
|
|
855
|
+
}
|
|
856
|
+
quickPick.hide();
|
|
857
|
+
});
|
|
858
|
+
quickPick.onDidHide(() => reject());
|
|
859
|
+
quickPick.show();
|
|
860
|
+
}))
|
|
861
|
+
);
|
|
1094
862
|
}
|
|
1095
863
|
});
|
|
1096
864
|
class MoveFocusedViewAction extends Action2 {
|
|
1097
865
|
constructor() {
|
|
1098
866
|
super({
|
|
1099
867
|
id: 'workbench.action.moveFocusedView',
|
|
1100
|
-
title: ( localize2WithPath(
|
|
1101
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1102
|
-
'moveFocusedView',
|
|
1103
|
-
"Move Focused View"
|
|
1104
|
-
)),
|
|
868
|
+
title: ( localize2WithPath(_moduleId, 65, "Move Focused View")),
|
|
1105
869
|
category: Categories.View,
|
|
1106
|
-
precondition: ( FocusedViewContext.notEqualsTo('')),
|
|
870
|
+
precondition: ( (FocusedViewContext.notEqualsTo(''))),
|
|
1107
871
|
f1: true
|
|
1108
872
|
});
|
|
1109
873
|
}
|
|
@@ -1116,34 +880,17 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
1116
880
|
const paneCompositePartService = accessor.get(IPaneCompositePartService);
|
|
1117
881
|
const focusedViewId = viewId || FocusedViewContext.getValue(contextKeyService);
|
|
1118
882
|
if (focusedViewId === undefined || focusedViewId.trim() === '') {
|
|
1119
|
-
dialogService.error(( localizeWithPath(
|
|
1120
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1121
|
-
'moveFocusedView.error.noFocusedView',
|
|
1122
|
-
"There is no view currently focused."
|
|
1123
|
-
)));
|
|
883
|
+
dialogService.error(( localizeWithPath(_moduleId, 66, "There is no view currently focused.")));
|
|
1124
884
|
return;
|
|
1125
885
|
}
|
|
1126
886
|
const viewDescriptor = viewDescriptorService.getViewDescriptorById(focusedViewId);
|
|
1127
887
|
if (!viewDescriptor || !viewDescriptor.canMoveView) {
|
|
1128
|
-
dialogService.error(( localizeWithPath(
|
|
1129
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1130
|
-
'moveFocusedView.error.nonMovableView',
|
|
1131
|
-
"The currently focused view is not movable."
|
|
1132
|
-
)));
|
|
888
|
+
dialogService.error(( localizeWithPath(_moduleId, 67, "The currently focused view is not movable.")));
|
|
1133
889
|
return;
|
|
1134
890
|
}
|
|
1135
891
|
const quickPick = quickInputService.createQuickPick();
|
|
1136
|
-
quickPick.placeholder = ( localizeWithPath(
|
|
1137
|
-
|
|
1138
|
-
'moveFocusedView.selectDestination',
|
|
1139
|
-
"Select a Destination for the View"
|
|
1140
|
-
));
|
|
1141
|
-
quickPick.title = ( localizeWithPath(
|
|
1142
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1143
|
-
{ key: 'moveFocusedView.title', comment: ['{0} indicates the title of the view the user has selected to move.'] },
|
|
1144
|
-
"View: Move {0}",
|
|
1145
|
-
viewDescriptor.name.value
|
|
1146
|
-
));
|
|
892
|
+
quickPick.placeholder = ( localizeWithPath(_moduleId, 68, "Select a Destination for the View"));
|
|
893
|
+
quickPick.title = ( localizeWithPath(_moduleId, 69, "View: Move {0}", viewDescriptor.name.value));
|
|
1147
894
|
const items = [];
|
|
1148
895
|
const currentContainer = viewDescriptorService.getViewContainerByViewId(focusedViewId);
|
|
1149
896
|
const currentLocation = viewDescriptorService.getViewLocationById(focusedViewId);
|
|
@@ -1151,39 +898,27 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
1151
898
|
if (!((isViewSolo && currentLocation === 1) )) {
|
|
1152
899
|
items.push({
|
|
1153
900
|
id: '_.panel.newcontainer',
|
|
1154
|
-
label: ( localizeWithPath(
|
|
1155
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1156
|
-
{ key: 'moveFocusedView.newContainerInPanel', comment: ['Creates a new top-level tab in the panel.'] },
|
|
1157
|
-
"New Panel Entry"
|
|
1158
|
-
)),
|
|
901
|
+
label: ( localizeWithPath(_moduleId, 70, "New Panel Entry")),
|
|
1159
902
|
});
|
|
1160
903
|
}
|
|
1161
904
|
if (!((isViewSolo && currentLocation === 0) )) {
|
|
1162
905
|
items.push({
|
|
1163
906
|
id: '_.sidebar.newcontainer',
|
|
1164
|
-
label: ( localizeWithPath(
|
|
1165
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1166
|
-
'moveFocusedView.newContainerInSidebar',
|
|
1167
|
-
"New Side Bar Entry"
|
|
1168
|
-
))
|
|
907
|
+
label: ( localizeWithPath(_moduleId, 71, "New Side Bar Entry"))
|
|
1169
908
|
});
|
|
1170
909
|
}
|
|
1171
910
|
if (!((isViewSolo && currentLocation === 2) )) {
|
|
1172
911
|
items.push({
|
|
1173
912
|
id: '_.auxiliarybar.newcontainer',
|
|
1174
|
-
label: ( localizeWithPath(
|
|
1175
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1176
|
-
'moveFocusedView.newContainerInSidePanel',
|
|
1177
|
-
"New Secondary Side Bar Entry"
|
|
1178
|
-
))
|
|
913
|
+
label: ( localizeWithPath(_moduleId, 72, "New Secondary Side Bar Entry"))
|
|
1179
914
|
});
|
|
1180
915
|
}
|
|
1181
916
|
items.push({
|
|
1182
917
|
type: 'separator',
|
|
1183
|
-
label: ( localizeWithPath(
|
|
918
|
+
label: ( localizeWithPath(_moduleId, 73, "Side Bar"))
|
|
1184
919
|
});
|
|
1185
920
|
const pinnedViewlets = paneCompositePartService.getVisiblePaneCompositeIds(0 );
|
|
1186
|
-
items.push(...( pinnedViewlets
|
|
921
|
+
items.push(...( (pinnedViewlets
|
|
1187
922
|
.filter(viewletId => {
|
|
1188
923
|
if (viewletId === viewDescriptorService.getViewContainerByViewId(focusedViewId).id) {
|
|
1189
924
|
return false;
|
|
@@ -1195,13 +930,13 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
1195
930
|
id: viewletId,
|
|
1196
931
|
label: viewDescriptorService.getViewContainerModel(viewDescriptorService.getViewContainerById(viewletId)).title
|
|
1197
932
|
};
|
|
1198
|
-
})));
|
|
933
|
+
}))));
|
|
1199
934
|
items.push({
|
|
1200
935
|
type: 'separator',
|
|
1201
|
-
label: ( localizeWithPath(
|
|
936
|
+
label: ( localizeWithPath(_moduleId, 74, "Panel"))
|
|
1202
937
|
});
|
|
1203
938
|
const pinnedPanels = paneCompositePartService.getPinnedPaneCompositeIds(1 );
|
|
1204
|
-
items.push(...( pinnedPanels
|
|
939
|
+
items.push(...( (pinnedPanels
|
|
1205
940
|
.filter(panel => {
|
|
1206
941
|
if (panel === viewDescriptorService.getViewContainerByViewId(focusedViewId).id) {
|
|
1207
942
|
return false;
|
|
@@ -1213,17 +948,13 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
1213
948
|
id: panel,
|
|
1214
949
|
label: viewDescriptorService.getViewContainerModel(viewDescriptorService.getViewContainerById(panel)).title
|
|
1215
950
|
};
|
|
1216
|
-
})));
|
|
951
|
+
}))));
|
|
1217
952
|
items.push({
|
|
1218
953
|
type: 'separator',
|
|
1219
|
-
label: ( localizeWithPath(
|
|
1220
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1221
|
-
'secondarySideBar',
|
|
1222
|
-
"Secondary Side Bar"
|
|
1223
|
-
))
|
|
954
|
+
label: ( localizeWithPath(_moduleId, 75, "Secondary Side Bar"))
|
|
1224
955
|
});
|
|
1225
956
|
const pinnedAuxPanels = paneCompositePartService.getPinnedPaneCompositeIds(2 );
|
|
1226
|
-
items.push(...( pinnedAuxPanels
|
|
957
|
+
items.push(...( (pinnedAuxPanels
|
|
1227
958
|
.filter(panel => {
|
|
1228
959
|
if (panel === viewDescriptorService.getViewContainerByViewId(focusedViewId).id) {
|
|
1229
960
|
return false;
|
|
@@ -1235,7 +966,7 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
1235
966
|
id: panel,
|
|
1236
967
|
label: viewDescriptorService.getViewContainerModel(viewDescriptorService.getViewContainerById(panel)).title
|
|
1237
968
|
};
|
|
1238
|
-
})));
|
|
969
|
+
}))));
|
|
1239
970
|
quickPick.items = items;
|
|
1240
971
|
quickPick.onDidAccept(() => {
|
|
1241
972
|
const destination = quickPick.selectedItems[0];
|
|
@@ -1265,14 +996,10 @@ registerAction2(class extends Action2 {
|
|
|
1265
996
|
constructor() {
|
|
1266
997
|
super({
|
|
1267
998
|
id: 'workbench.action.resetFocusedViewLocation',
|
|
1268
|
-
title: ( localize2WithPath(
|
|
1269
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1270
|
-
'resetFocusedViewLocation',
|
|
1271
|
-
"Reset Focused View Location"
|
|
1272
|
-
)),
|
|
999
|
+
title: ( localize2WithPath(_moduleId, 76, "Reset Focused View Location")),
|
|
1273
1000
|
category: Categories.View,
|
|
1274
1001
|
f1: true,
|
|
1275
|
-
precondition: ( FocusedViewContext.notEqualsTo(''))
|
|
1002
|
+
precondition: ( (FocusedViewContext.notEqualsTo('')))
|
|
1276
1003
|
});
|
|
1277
1004
|
}
|
|
1278
1005
|
run(accessor) {
|
|
@@ -1286,11 +1013,7 @@ registerAction2(class extends Action2 {
|
|
|
1286
1013
|
viewDescriptor = viewDescriptorService.getViewDescriptorById(focusedViewId);
|
|
1287
1014
|
}
|
|
1288
1015
|
if (!viewDescriptor) {
|
|
1289
|
-
dialogService.error(( localizeWithPath(
|
|
1290
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1291
|
-
'resetFocusedView.error.noFocusedView',
|
|
1292
|
-
"There is no view currently focused."
|
|
1293
|
-
)));
|
|
1016
|
+
dialogService.error(( localizeWithPath(_moduleId, 77, "There is no view currently focused.")));
|
|
1294
1017
|
return;
|
|
1295
1018
|
}
|
|
1296
1019
|
const defaultContainer = viewDescriptorService.getDefaultContainerById(viewDescriptor.id);
|
|
@@ -1335,13 +1058,9 @@ class IncreaseViewSizeAction extends BaseResizeViewAction {
|
|
|
1335
1058
|
constructor() {
|
|
1336
1059
|
super({
|
|
1337
1060
|
id: 'workbench.action.increaseViewSize',
|
|
1338
|
-
title: ( localize2WithPath(
|
|
1339
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1340
|
-
'increaseViewSize',
|
|
1341
|
-
'Increase Current View Size'
|
|
1342
|
-
)),
|
|
1061
|
+
title: ( localize2WithPath(_moduleId, 78, 'Increase Current View Size')),
|
|
1343
1062
|
f1: true,
|
|
1344
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1063
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1345
1064
|
});
|
|
1346
1065
|
}
|
|
1347
1066
|
run(accessor) {
|
|
@@ -1352,13 +1071,9 @@ class IncreaseViewWidthAction extends BaseResizeViewAction {
|
|
|
1352
1071
|
constructor() {
|
|
1353
1072
|
super({
|
|
1354
1073
|
id: 'workbench.action.increaseViewWidth',
|
|
1355
|
-
title: ( localize2WithPath(
|
|
1356
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1357
|
-
'increaseEditorWidth',
|
|
1358
|
-
'Increase Editor Width'
|
|
1359
|
-
)),
|
|
1074
|
+
title: ( localize2WithPath(_moduleId, 79, 'Increase Editor Width')),
|
|
1360
1075
|
f1: true,
|
|
1361
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1076
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1362
1077
|
});
|
|
1363
1078
|
}
|
|
1364
1079
|
run(accessor) {
|
|
@@ -1369,13 +1084,9 @@ class IncreaseViewHeightAction extends BaseResizeViewAction {
|
|
|
1369
1084
|
constructor() {
|
|
1370
1085
|
super({
|
|
1371
1086
|
id: 'workbench.action.increaseViewHeight',
|
|
1372
|
-
title: ( localize2WithPath(
|
|
1373
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1374
|
-
'increaseEditorHeight',
|
|
1375
|
-
'Increase Editor Height'
|
|
1376
|
-
)),
|
|
1087
|
+
title: ( localize2WithPath(_moduleId, 80, 'Increase Editor Height')),
|
|
1377
1088
|
f1: true,
|
|
1378
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1089
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1379
1090
|
});
|
|
1380
1091
|
}
|
|
1381
1092
|
run(accessor) {
|
|
@@ -1386,13 +1097,9 @@ class DecreaseViewSizeAction extends BaseResizeViewAction {
|
|
|
1386
1097
|
constructor() {
|
|
1387
1098
|
super({
|
|
1388
1099
|
id: 'workbench.action.decreaseViewSize',
|
|
1389
|
-
title: ( localize2WithPath(
|
|
1390
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1391
|
-
'decreaseViewSize',
|
|
1392
|
-
'Decrease Current View Size'
|
|
1393
|
-
)),
|
|
1100
|
+
title: ( localize2WithPath(_moduleId, 81, 'Decrease Current View Size')),
|
|
1394
1101
|
f1: true,
|
|
1395
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1102
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1396
1103
|
});
|
|
1397
1104
|
}
|
|
1398
1105
|
run(accessor) {
|
|
@@ -1403,13 +1110,9 @@ class DecreaseViewWidthAction extends BaseResizeViewAction {
|
|
|
1403
1110
|
constructor() {
|
|
1404
1111
|
super({
|
|
1405
1112
|
id: 'workbench.action.decreaseViewWidth',
|
|
1406
|
-
title: ( localize2WithPath(
|
|
1407
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1408
|
-
'decreaseEditorWidth',
|
|
1409
|
-
'Decrease Editor Width'
|
|
1410
|
-
)),
|
|
1113
|
+
title: ( localize2WithPath(_moduleId, 82, 'Decrease Editor Width')),
|
|
1411
1114
|
f1: true,
|
|
1412
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1115
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1413
1116
|
});
|
|
1414
1117
|
}
|
|
1415
1118
|
run(accessor) {
|
|
@@ -1420,13 +1123,9 @@ class DecreaseViewHeightAction extends BaseResizeViewAction {
|
|
|
1420
1123
|
constructor() {
|
|
1421
1124
|
super({
|
|
1422
1125
|
id: 'workbench.action.decreaseViewHeight',
|
|
1423
|
-
title: ( localize2WithPath(
|
|
1424
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1425
|
-
'decreaseEditorHeight',
|
|
1426
|
-
'Decrease Editor Height'
|
|
1427
|
-
)),
|
|
1126
|
+
title: ( localize2WithPath(_moduleId, 83, 'Decrease Editor Height')),
|
|
1428
1127
|
f1: true,
|
|
1429
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1128
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1430
1129
|
});
|
|
1431
1130
|
}
|
|
1432
1131
|
run(accessor) {
|
|
@@ -1450,16 +1149,8 @@ const CreateToggleLayoutItem = (id, active, label, visualIcon) => {
|
|
|
1450
1149
|
visualIcon,
|
|
1451
1150
|
activeIcon: Codicon.eye,
|
|
1452
1151
|
inactiveIcon: Codicon.eyeClosed,
|
|
1453
|
-
activeAriaLabel: ( localizeWithPath(
|
|
1454
|
-
|
|
1455
|
-
'selectToHide',
|
|
1456
|
-
"Select to Hide"
|
|
1457
|
-
)),
|
|
1458
|
-
inactiveAriaLabel: ( localizeWithPath(
|
|
1459
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1460
|
-
'selectToShow',
|
|
1461
|
-
"Select to Show"
|
|
1462
|
-
)),
|
|
1152
|
+
activeAriaLabel: ( localizeWithPath(_moduleId, 84, "Select to Hide")),
|
|
1153
|
+
inactiveAriaLabel: ( localizeWithPath(_moduleId, 85, "Select to Show")),
|
|
1463
1154
|
useButtons: true,
|
|
1464
1155
|
};
|
|
1465
1156
|
};
|
|
@@ -1470,56 +1161,45 @@ const CreateOptionLayoutItem = (id, active, label, visualIcon) => {
|
|
|
1470
1161
|
label,
|
|
1471
1162
|
visualIcon,
|
|
1472
1163
|
activeIcon: Codicon.check,
|
|
1473
|
-
activeAriaLabel: ( localizeWithPath(
|
|
1164
|
+
activeAriaLabel: ( localizeWithPath(_moduleId, 86, "Active")),
|
|
1474
1165
|
useButtons: false
|
|
1475
1166
|
};
|
|
1476
1167
|
};
|
|
1477
|
-
const MenuBarToggledContext = ( ContextKeyExpr.and(
|
|
1168
|
+
const MenuBarToggledContext = ( (ContextKeyExpr.and(
|
|
1169
|
+
(IsMacNativeContext.toNegated()),
|
|
1170
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'hidden')),
|
|
1171
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'toggle')),
|
|
1172
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'compact'))
|
|
1173
|
+
)));
|
|
1478
1174
|
const ToggleVisibilityActions = [];
|
|
1479
1175
|
if (!isMacintosh || !isNative) {
|
|
1480
|
-
ToggleVisibilityActions.push(CreateToggleLayoutItem('workbench.action.toggleMenuBar', MenuBarToggledContext, ( localizeWithPath(
|
|
1176
|
+
ToggleVisibilityActions.push(CreateToggleLayoutItem('workbench.action.toggleMenuBar', MenuBarToggledContext, ( localizeWithPath(_moduleId, 87, "Menu Bar")), menubarIcon));
|
|
1481
1177
|
}
|
|
1482
1178
|
ToggleVisibilityActions.push(...[
|
|
1483
|
-
CreateToggleLayoutItem(ToggleActivityBarVisibilityActionId, ( ContextKeyExpr.notEquals('config.workbench.activityBar.location', 'hidden')), ( localizeWithPath(
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
CreateToggleLayoutItem(ToggleSidebarVisibilityAction.ID, SideBarVisibleContext, ( localizeWithPath(
|
|
1489
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1490
|
-
'sideBar',
|
|
1491
|
-
"Primary Side Bar"
|
|
1492
|
-
)), { whenA: ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'left')), iconA: panelLeftIcon, iconB: panelRightIcon }),
|
|
1493
|
-
CreateToggleLayoutItem(ToggleAuxiliaryBarAction.ID, AuxiliaryBarVisibleContext, ( localizeWithPath(
|
|
1494
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1495
|
-
'secondarySideBar',
|
|
1496
|
-
"Secondary Side Bar"
|
|
1497
|
-
)), { whenA: ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'left')), iconA: panelRightIcon, iconB: panelLeftIcon }),
|
|
1498
|
-
CreateToggleLayoutItem(TogglePanelAction.ID, PanelVisibleContext, ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'panel', "Panel")), panelIcon),
|
|
1499
|
-
CreateToggleLayoutItem(ToggleStatusbarVisibilityAction.ID, ( ContextKeyExpr.equals('config.workbench.statusBar.visible', true)), ( localizeWithPath('vs/workbench/browser/actions/layoutActions', 'statusBar', "Status Bar")), statusBarIcon),
|
|
1179
|
+
CreateToggleLayoutItem(ToggleActivityBarVisibilityActionId, ( (ContextKeyExpr.notEquals('config.workbench.activityBar.location', 'hidden'))), ( localizeWithPath(_moduleId, 88, "Activity Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: activityBarLeftIcon, iconB: activityBarRightIcon }),
|
|
1180
|
+
CreateToggleLayoutItem(ToggleSidebarVisibilityAction.ID, SideBarVisibleContext, ( localizeWithPath(_moduleId, 89, "Primary Side Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: panelLeftIcon, iconB: panelRightIcon }),
|
|
1181
|
+
CreateToggleLayoutItem(ToggleAuxiliaryBarAction.ID, AuxiliaryBarVisibleContext, ( localizeWithPath(_moduleId, 75, "Secondary Side Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: panelRightIcon, iconB: panelLeftIcon }),
|
|
1182
|
+
CreateToggleLayoutItem(TogglePanelAction.ID, PanelVisibleContext, ( localizeWithPath(_moduleId, 74, "Panel")), panelIcon),
|
|
1183
|
+
CreateToggleLayoutItem(ToggleStatusbarVisibilityAction.ID, ( (ContextKeyExpr.equals('config.workbench.statusBar.visible', true))), ( localizeWithPath(_moduleId, 90, "Status Bar")), statusBarIcon),
|
|
1500
1184
|
]);
|
|
1501
1185
|
const MoveSideBarActions = [
|
|
1502
|
-
CreateOptionLayoutItem(MoveSidebarLeftAction.ID, ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'left')), ( localizeWithPath(
|
|
1503
|
-
CreateOptionLayoutItem(MoveSidebarRightAction.ID, ( ContextKeyExpr.equals('config.workbench.sideBar.location', 'right')), ( localizeWithPath(
|
|
1186
|
+
CreateOptionLayoutItem(MoveSidebarLeftAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), ( localizeWithPath(_moduleId, 91, "Left")), panelLeftIcon),
|
|
1187
|
+
CreateOptionLayoutItem(MoveSidebarRightAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'right'))), ( localizeWithPath(_moduleId, 92, "Right")), panelRightIcon),
|
|
1504
1188
|
];
|
|
1505
1189
|
const AlignPanelActions = [
|
|
1506
|
-
CreateOptionLayoutItem('workbench.action.alignPanelLeft', ( PanelAlignmentContext.isEqualTo('left')), ( localizeWithPath(
|
|
1507
|
-
CreateOptionLayoutItem('workbench.action.alignPanelRight', ( PanelAlignmentContext.isEqualTo('right')), ( localizeWithPath(
|
|
1508
|
-
CreateOptionLayoutItem('workbench.action.alignPanelCenter', ( PanelAlignmentContext.isEqualTo('center')), ( localizeWithPath(
|
|
1509
|
-
CreateOptionLayoutItem('workbench.action.alignPanelJustify', ( PanelAlignmentContext.isEqualTo('justify')), ( localizeWithPath(
|
|
1190
|
+
CreateOptionLayoutItem('workbench.action.alignPanelLeft', ( (PanelAlignmentContext.isEqualTo('left'))), ( localizeWithPath(_moduleId, 93, "Left")), panelAlignmentLeftIcon),
|
|
1191
|
+
CreateOptionLayoutItem('workbench.action.alignPanelRight', ( (PanelAlignmentContext.isEqualTo('right'))), ( localizeWithPath(_moduleId, 94, "Right")), panelAlignmentRightIcon),
|
|
1192
|
+
CreateOptionLayoutItem('workbench.action.alignPanelCenter', ( (PanelAlignmentContext.isEqualTo('center'))), ( localizeWithPath(_moduleId, 95, "Center")), panelAlignmentCenterIcon),
|
|
1193
|
+
CreateOptionLayoutItem('workbench.action.alignPanelJustify', ( (PanelAlignmentContext.isEqualTo('justify'))), ( localizeWithPath(_moduleId, 96, "Justify")), panelAlignmentJustifyIcon),
|
|
1510
1194
|
];
|
|
1511
1195
|
const MiscLayoutOptions = [
|
|
1512
|
-
CreateOptionLayoutItem('workbench.action.toggleFullScreen', IsMainWindowFullscreenContext, ( localizeWithPath(
|
|
1513
|
-
CreateOptionLayoutItem('workbench.action.toggleZenMode', InEditorZenModeContext, ( localizeWithPath(
|
|
1514
|
-
CreateOptionLayoutItem('workbench.action.toggleCenteredLayout', IsMainEditorCenteredLayoutContext, ( localizeWithPath(
|
|
1515
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1516
|
-
'centeredLayout',
|
|
1517
|
-
"Centered Layout"
|
|
1518
|
-
)), centerLayoutIcon),
|
|
1196
|
+
CreateOptionLayoutItem('workbench.action.toggleFullScreen', IsMainWindowFullscreenContext, ( localizeWithPath(_moduleId, 97, "Full Screen")), fullscreenIcon),
|
|
1197
|
+
CreateOptionLayoutItem('workbench.action.toggleZenMode', InEditorZenModeContext, ( localizeWithPath(_moduleId, 98, "Zen Mode")), zenModeIcon),
|
|
1198
|
+
CreateOptionLayoutItem('workbench.action.toggleCenteredLayout', IsMainEditorCenteredLayoutContext, ( localizeWithPath(_moduleId, 99, "Centered Layout")), centerLayoutIcon),
|
|
1519
1199
|
];
|
|
1520
|
-
const LayoutContextKeySet = ( new Set());
|
|
1200
|
+
const LayoutContextKeySet = ( (new Set()));
|
|
1521
1201
|
for (const { active } of [...ToggleVisibilityActions, ...MoveSideBarActions, ...AlignPanelActions, ...MiscLayoutOptions]) {
|
|
1522
|
-
for (const key of ( active.keys())) {
|
|
1202
|
+
for (const key of ( (active.keys()))) {
|
|
1523
1203
|
LayoutContextKeySet.add(key);
|
|
1524
1204
|
}
|
|
1525
1205
|
}
|
|
@@ -1527,11 +1207,7 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1527
1207
|
constructor() {
|
|
1528
1208
|
super({
|
|
1529
1209
|
id: 'workbench.action.customizeLayout',
|
|
1530
|
-
title: ( localize2WithPath(
|
|
1531
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1532
|
-
'customizeLayout',
|
|
1533
|
-
"Customize Layout..."
|
|
1534
|
-
)),
|
|
1210
|
+
title: ( localize2WithPath(_moduleId, 100, "Customize Layout...")),
|
|
1535
1211
|
f1: true,
|
|
1536
1212
|
icon: configureLayoutIcon,
|
|
1537
1213
|
menu: [
|
|
@@ -1541,7 +1217,7 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1541
1217
|
},
|
|
1542
1218
|
{
|
|
1543
1219
|
id: MenuId.LayoutControlMenu,
|
|
1544
|
-
when: ( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'both')),
|
|
1220
|
+
when: ( (ContextKeyExpr.equals('config.workbench.layoutControl.type', 'both'))),
|
|
1545
1221
|
group: 'z_end'
|
|
1546
1222
|
}
|
|
1547
1223
|
]
|
|
@@ -1581,36 +1257,24 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1581
1257
|
return [
|
|
1582
1258
|
{
|
|
1583
1259
|
type: 'separator',
|
|
1584
|
-
label: ( localizeWithPath(
|
|
1585
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1586
|
-
'toggleVisibility',
|
|
1587
|
-
"Visibility"
|
|
1588
|
-
))
|
|
1260
|
+
label: ( localizeWithPath(_moduleId, 101, "Visibility"))
|
|
1589
1261
|
},
|
|
1590
|
-
...( ToggleVisibilityActions.map(toQuickPickItem)),
|
|
1262
|
+
...( (ToggleVisibilityActions.map(toQuickPickItem))),
|
|
1591
1263
|
{
|
|
1592
1264
|
type: 'separator',
|
|
1593
|
-
label: ( localizeWithPath(
|
|
1594
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1595
|
-
'sideBarPosition',
|
|
1596
|
-
"Primary Side Bar Position"
|
|
1597
|
-
))
|
|
1265
|
+
label: ( localizeWithPath(_moduleId, 102, "Primary Side Bar Position"))
|
|
1598
1266
|
},
|
|
1599
|
-
...( MoveSideBarActions.map(toQuickPickItem)),
|
|
1267
|
+
...( (MoveSideBarActions.map(toQuickPickItem))),
|
|
1600
1268
|
{
|
|
1601
1269
|
type: 'separator',
|
|
1602
|
-
label: ( localizeWithPath(
|
|
1603
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1604
|
-
'panelAlignment',
|
|
1605
|
-
"Panel Alignment"
|
|
1606
|
-
))
|
|
1270
|
+
label: ( localizeWithPath(_moduleId, 103, "Panel Alignment"))
|
|
1607
1271
|
},
|
|
1608
|
-
...( AlignPanelActions.map(toQuickPickItem)),
|
|
1272
|
+
...( (AlignPanelActions.map(toQuickPickItem))),
|
|
1609
1273
|
{
|
|
1610
1274
|
type: 'separator',
|
|
1611
|
-
label: ( localizeWithPath(
|
|
1275
|
+
label: ( localizeWithPath(_moduleId, 104, "Modes")),
|
|
1612
1276
|
},
|
|
1613
|
-
...( MiscLayoutOptions.map(toQuickPickItem)),
|
|
1277
|
+
...( (MiscLayoutOptions.map(toQuickPickItem))),
|
|
1614
1278
|
];
|
|
1615
1279
|
}
|
|
1616
1280
|
run(accessor) {
|
|
@@ -1628,30 +1292,22 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1628
1292
|
quickPick.items = this.getItems(contextKeyService, keybindingService);
|
|
1629
1293
|
quickPick.ignoreFocusOut = true;
|
|
1630
1294
|
quickPick.hideInput = true;
|
|
1631
|
-
quickPick.title = ( localizeWithPath(
|
|
1632
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1633
|
-
'customizeLayoutQuickPickTitle',
|
|
1634
|
-
"Customize Layout"
|
|
1635
|
-
));
|
|
1295
|
+
quickPick.title = ( localizeWithPath(_moduleId, 105, "Customize Layout"));
|
|
1636
1296
|
const closeButton = {
|
|
1637
1297
|
alwaysVisible: true,
|
|
1638
1298
|
iconClass: ThemeIcon.asClassName(Codicon.close),
|
|
1639
|
-
tooltip: ( localizeWithPath(
|
|
1299
|
+
tooltip: ( localizeWithPath(_moduleId, 106, "Close"))
|
|
1640
1300
|
};
|
|
1641
1301
|
const resetButton = {
|
|
1642
1302
|
alwaysVisible: true,
|
|
1643
1303
|
iconClass: ThemeIcon.asClassName(Codicon.discard),
|
|
1644
|
-
tooltip: ( localizeWithPath(
|
|
1645
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1646
|
-
'restore defaults',
|
|
1647
|
-
"Restore Defaults"
|
|
1648
|
-
))
|
|
1304
|
+
tooltip: ( localizeWithPath(_moduleId, 107, "Restore Defaults"))
|
|
1649
1305
|
};
|
|
1650
1306
|
quickPick.buttons = [
|
|
1651
1307
|
resetButton,
|
|
1652
1308
|
closeButton
|
|
1653
1309
|
];
|
|
1654
|
-
const disposables = ( new DisposableStore());
|
|
1310
|
+
const disposables = ( (new DisposableStore()));
|
|
1655
1311
|
let selectedItem = undefined;
|
|
1656
1312
|
disposables.add(contextKeyService.onDidChangeContext(changeEvent => {
|
|
1657
1313
|
if (changeEvent.affectsSome(LayoutContextKeySet)) {
|