@codingame/monaco-vscode-api 4.5.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.js +1 -1
- package/extensions.d.ts +2 -3
- package/extensions.js +10 -2
- package/lifecycle.js +6 -0
- package/localExtensionHost.d.ts +4 -1
- package/missing-services.js +41 -25
- package/package.json +8 -8
- package/service-override/tools/editor.js +31 -8
- package/service-override/tools/views.d.ts +1 -1
- package/service-override/tools/views.js +2 -3
- package/service-override/views.d.ts +0 -1
- package/services.d.ts +3 -3
- package/services.js +4 -3
- 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.js +2 -2
- package/vscode/src/vs/base/browser/markdownRenderer.js +9 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +6 -11
- package/vscode/src/vs/base/browser/ui/button/button.js +18 -21
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +1 -1
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +168 -165
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +2 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +7 -10
- 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/highlightedlabel/highlightedLabel.js +2 -2
- package/vscode/src/vs/{platform/hover/browser → base/browser/ui/hover}/hover.d.ts +64 -4
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +13 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +39 -25
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +15 -2
- package/vscode/src/vs/base/browser/ui/iconLabel/simpleIconLabel.js +2 -2
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.css.js +4 -0
- package/vscode/src/vs/base/browser/ui/icons/iconSelectBox.js +239 -0
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +21 -41
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +5 -4
- package/vscode/src/vs/base/browser/ui/list/listView.js +11 -9
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +33 -0
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +11 -8
- package/vscode/src/vs/base/browser/ui/list/rowCache.js +2 -2
- package/vscode/src/vs/base/browser/ui/menu/menu.js +1 -0
- package/vscode/src/vs/base/browser/ui/menu/menubar.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +24 -23
- package/vscode/src/vs/base/browser/ui/progressbar/progressAccessibilitySignal.js +13 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +7 -1
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +1 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +14 -17
- 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 +3 -3
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +8 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +11 -10
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +188 -156
- 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/media/tree.css.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +7 -5
- 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 +10 -8
- package/vscode/src/vs/base/common/assert.js +2 -2
- package/vscode/src/vs/base/common/async.js +11 -6
- package/vscode/src/vs/base/common/buffer.js +2 -2
- package/vscode/src/vs/base/common/cache.js +29 -10
- package/vscode/src/vs/base/common/cancellation.js +6 -1
- package/vscode/src/vs/base/common/codicons.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
- 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/controlFlow.js +48 -0
- 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/equals.js +44 -0
- 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.d.ts +11 -1
- package/vscode/src/vs/base/common/event.js +28 -3
- 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 +6 -6
- package/vscode/src/vs/base/common/map.js +64 -15
- package/vscode/src/vs/base/common/network.js +2 -0
- package/vscode/src/vs/base/common/objects.js +4 -1
- package/vscode/src/vs/base/common/observableInternal/autorun.js +1 -10
- package/vscode/src/vs/base/common/observableInternal/base.js +22 -10
- package/vscode/src/vs/base/common/observableInternal/derived.js +8 -8
- package/vscode/src/vs/base/common/observableInternal/promise.js +19 -1
- package/vscode/src/vs/base/common/observableInternal/utils.js +30 -52
- 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/product.d.ts +1 -0
- package/vscode/src/vs/base/common/stream.js +1 -1
- package/vscode/src/vs/base/common/strings.js +3 -3
- package/vscode/src/vs/base/common/ternarySearchTree.js +3 -3
- package/vscode/src/vs/base/common/types.d.ts +5 -1
- 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 +4 -3
- 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/observableUtilities.js +58 -0
- 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/hoverService.js +121 -2
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +18 -22
- package/vscode/src/vs/editor/browser/services/hoverService/updatableHoverWidget.js +80 -0
- package/vscode/src/vs/editor/browser/services/openerService.js +1 -1
- package/vscode/src/vs/editor/browser/stableEditorScroll.js +37 -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 +139 -131
- package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css.js +1 -1
- 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/diffEditorDecorations.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +16 -13
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorSash.js +1 -0
- 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/diffEditorOptions.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +3 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +3 -10
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +9 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +6 -6
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +28 -51
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +42 -33
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +14 -20
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +8 -19
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +1 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +4 -15
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/diffEditorItemTemplate.js +3 -2
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorViewModel.js +17 -8
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidget.js +1 -0
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +28 -20
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/style.css.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 +112 -255
- package/vscode/src/vs/editor/common/core/lineRange.d.ts +12 -0
- package/vscode/src/vs/editor/common/core/lineRange.js +32 -2
- package/vscode/src/vs/editor/common/core/offsetRange.js +3 -3
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +21 -0
- package/vscode/src/vs/editor/common/core/textEdit.js +14 -2
- package/vscode/src/vs/editor/common/core/textLength.d.ts +29 -0
- package/vscode/src/vs/editor/common/core/textLength.js +6 -0
- package/vscode/src/vs/editor/common/cursor/cursorCollection.js +3 -3
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +11 -1
- package/vscode/src/vs/editor/common/diff/legacyLinesDiffComputer.js +1 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +11 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +34 -3
- 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.d.ts +50 -10
- package/vscode/src/vs/editor/common/languages.js +79 -72
- 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/languageFeatureDebounce.js +1 -1
- package/vscode/src/vs/editor/common/services/languageFeatures.d.ts +2 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +1 -1
- package/vscode/src/vs/editor/common/services/modelService.js +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +11 -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/common/viewModel/viewModelImpl.js +3 -0
- 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 +51 -42
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +25 -54
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +5 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +16 -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/colorContributions.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +24 -31
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +25 -25
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerWidget.js +1 -1
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +11 -34
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +39 -72
- 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 +38 -69
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +4 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +22 -29
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +7 -0
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +8 -7
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +92 -124
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +63 -147
- 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/contentHoverComputer.js +74 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverController.js +332 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverStatusBar.js +34 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverTypes.js +39 -0
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverWidget.js +355 -0
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +11 -14
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css.js +1 -1
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +13 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +354 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +42 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverController.js +320 -0
- package/vscode/src/vs/editor/contrib/hover/browser/marginHoverComputer.js +48 -0
- package/vscode/src/vs/editor/contrib/hover/browser/{marginHover.js → marginHoverWidget.js} +14 -48
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +273 -55
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +19 -37
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +11 -18
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +62 -85
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +87 -102
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +31 -63
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/ghostTextWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +45 -43
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +12 -18
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +52 -34
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +41 -68
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +26 -24
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsSource.js +39 -70
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/singleTextEdit.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/suggestWidgetInlineCompletionProvider.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +4 -1
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/ghostTextWidget.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/hoverParticipant.js +1 -0
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditController.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineEdit/browser/inlineEditHintsWidget.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineProgress/browser/inlineProgressWidget.css.js +1 -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 +71 -81
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.css.js +1 -1
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +195 -78
- package/vscode/src/vs/editor/contrib/sectionHeaders/browser/sectionHeaders.js +5 -0
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +73 -86
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +26 -41
- 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 +26 -55
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +0 -2
- 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 +13 -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 +26 -19
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +40 -18
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +2 -2
- package/vscode/src/vs/nls.js +1 -4
- package/vscode/src/vs/platform/accessibility/common/accessibility.d.ts +1 -9
- package/vscode/src/vs/platform/accessibility/common/accessibility.js +2 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +15 -9
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +172 -338
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.service.d.ts +12 -5
- package/vscode/src/vs/platform/accessibilitySignal/browser/progressAccessibilitySignalScheduler.js +25 -0
- 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 +22 -49
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +27 -29
- package/vscode/src/vs/platform/actions/browser/dropdownWithPrimaryActionViewItem.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +40 -51
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +4 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.js +74 -56
- package/vscode/src/vs/platform/actions/common/actions.contribution.js +5 -0
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -1
- package/vscode/src/vs/platform/actions/common/actions.js +18 -6
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +21 -0
- package/vscode/src/vs/platform/actions/common/menuService.js +76 -56
- package/vscode/src/vs/platform/commands/common/commands.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configuration.js +4 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +44 -33
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +38 -61
- package/vscode/src/vs/platform/configuration/common/configurations.js +12 -10
- 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/contextview/browser/contextView.d.ts +4 -1
- package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -3
- package/vscode/src/vs/platform/contextview/browser/contextViewService.js +10 -8
- 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.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +9 -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 +916 -0
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +36 -43
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +5 -0
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +23 -16
- package/vscode/src/vs/platform/files/common/files.d.ts +14 -1
- package/vscode/src/vs/platform/files/common/files.js +41 -58
- 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/hover/browser/hover.service.d.ts +2 -31
- package/vscode/src/vs/platform/instantiation/common/instantiation.d.ts +9 -0
- package/vscode/src/vs/platform/instantiation/common/instantiation.js +1 -1
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +49 -15
- 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 +23 -20
- package/vscode/src/vs/platform/markers/common/markerService.js +8 -4
- package/vscode/src/vs/platform/markers/common/markers.js +15 -14
- package/vscode/src/vs/platform/opener/browser/link.js +6 -4
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +36 -49
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +183 -193
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +122 -105
- 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/request/common/request.js +31 -40
- package/vscode/src/vs/platform/telemetry/common/gdprTypings.d.ts +0 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/capabilities.d.ts +5 -0
- package/vscode/src/vs/platform/terminal/common/capabilities/commandDetection/promptInputModel.d.ts +30 -0
- package/vscode/src/vs/platform/terminal/common/terminal.js +3 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +6 -0
- package/vscode/src/vs/platform/theme/browser/iconsStyleSheet.js +13 -11
- 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 +52 -55
- 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 +31 -31
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -6
- 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/extHostBulkEdits.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +71 -54
- package/vscode/src/vs/workbench/api/common/extHostChatVariables.js +4 -4
- 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 +19 -7
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.js +17 -15
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +43 -27
- 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/extHostDocumentSaveParticipant.js +2 -1
- 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 +13 -9
- 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/extHostFileSystemEventService.js +19 -1
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +356 -214
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +88 -44
- 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 +3 -2
- 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/extHostTerminalShellIntegration.js +52 -36
- package/vscode/src/vs/workbench/api/common/extHostTestItem.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +19 -35
- 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 +23 -11
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +31 -36
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +142 -146
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +103 -45
- 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/extHostWindow.js +3 -5
- 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 +287 -621
- package/vscode/src/vs/workbench/browser/actions/media/actions.css.js +1 -1
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +31 -30
- package/vscode/src/vs/workbench/browser/actions/widgetNavigationCommands.js +30 -6
- 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/editor.js +62 -55
- package/vscode/src/vs/workbench/browser/labels.js +44 -52
- package/vscode/src/vs/workbench/browser/part.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +23 -56
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +72 -115
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +3 -1
- 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 +29 -40
- 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 +76 -93
- 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/media/editorquickaccess.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +57 -79
- 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 +144 -142
- 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 +38 -54
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +4 -3
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +58 -196
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.d.ts +2 -1
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +3 -1
- 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 +9 -8
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +328 -198
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +13 -16
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.d.ts +14 -3
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +118 -101
- 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 +394 -596
- 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 +408 -409
- package/vscode/src/vs/workbench/common/views.d.ts +2 -0
- package/vscode/src/vs/workbench/common/views.js +36 -35
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +280 -495
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleView.js +876 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +90 -53
- package/vscode/src/vs/workbench/contrib/accessibility/browser/{accessibilityContributions.js → accessibleViewContributions.js} +163 -27
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +3 -3
- 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 +73 -201
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +84 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +32 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +8 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +21 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAgentHover.js +101 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +23 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +8 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +69 -74
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +270 -171
- package/vscode/src/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer.js +42 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +15 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +398 -59
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +55 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatAgentHover.css.js +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/annotations.js +4 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +101 -11
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +7 -30
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +35 -65
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +105 -84
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +1 -14
- package/vscode/src/vs/workbench/contrib/chat/common/chatParticipantContribTypes.js +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatViewModel.js +7 -9
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.service.js +3 -0
- 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 +23 -39
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +24 -34
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +24 -68
- 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 +102 -104
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +41 -43
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +21 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +20 -22
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +33 -64
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +121 -137
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +16 -19
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +56 -82
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +145 -79
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -51
- package/vscode/src/vs/workbench/contrib/comments/browser/media/review.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +30 -44
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +23 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/timestamp.js +2 -3
- 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 +55 -30
- 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 +263 -435
- 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/debugCommands.js +967 -0
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +62 -273
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +101 -0
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +12 -17
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +231 -291
- 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/loadedScriptsPicker.js +82 -0
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +25 -22
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +620 -1088
- 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 +201 -379
- package/vscode/src/vs/workbench/contrib/files/browser/{fileCommands.save.js → 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 → files.contribution._configuration.js} +105 -156
- package/vscode/src/vs/workbench/contrib/files/browser/{files.editorPane.contribution.js → files.contribution._editorPane.js} +24 -31
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +22 -23
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +14 -25
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +63 -78
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +122 -155
- package/vscode/src/vs/workbench/contrib/files/browser/views/media/openeditors.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +60 -83
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +36 -26
- 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 +99 -231
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatContentWidget.js +10 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +147 -164
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSession.js +9 -31
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +352 -111
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +100 -128
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +111 -103
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +24 -19
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChat.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/media/inlineChatContentWidget.css.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +4 -32
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +85 -168
- package/vscode/src/vs/workbench/contrib/interactive/browser/interactiveEditorInput.js +5 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +15 -18
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +75 -145
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeMarkers/mergeMarkersController.js +1 -0
- 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 +7 -7
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +2 -48
- 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 +82 -74
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +7 -11
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +112 -0
- 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 +67 -122
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +21 -37
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +36 -43
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +9 -7
- 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 +53 -67
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +12 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +96 -153
- 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 +7 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +94 -53
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +164 -216
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -135
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookOptions.js +17 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellActionView.js +6 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellComments.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +20 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +63 -82
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellStatusPart.js +5 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellToolbars.js +2 -0
- 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 +13 -21
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +20 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellAnchor.js +2 -3
- 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 +111 -101
- 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 +35 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +17 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/cellEditorOptions.js +6 -4
- 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/notebookOutlineProviderFactory.service.js +3 -0
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorStickyScroll.js +17 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookEditorToolbar.js +2 -1
- 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/model/notebookCellTextModel.js +52 -16
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +3 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookContextKeys.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +21 -23
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +30 -17
- 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 +57 -94
- 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 -158
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +19 -82
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +254 -447
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +9 -16
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +146 -181
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +2 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +51 -62
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +2 -3
- 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 +36 -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 +7 -14
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +24 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +19 -26
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/xtermTerminal.d.ts +8 -9
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm-private.d.ts +2 -20
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +10 -29
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +44 -80
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +106 -138
- package/vscode/src/vs/workbench/contrib/testing/common/testCoverage.js +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/testId.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +15 -5
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +51 -34
- 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/accessibility/common/accessibleViewInformationService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/services/accessibility/common/accessibleViewInformationService.service.js +3 -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/customEditorLabelService.js +30 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +15 -4
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +20 -1
- 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.js +3 -6
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.service.d.ts +0 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +40 -57
- package/vscode/src/vs/workbench/services/extensions/common/abstractExtensionService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostManagers.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionRunningLocation.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.d.ts +8 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +8 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensions.service.d.ts +4 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsApiProposals.js +3 -3
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +176 -223
- 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 +75 -134
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +6 -4
- 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 +80 -66
- 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.js +30 -42
- 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/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/themes/common/workbenchThemeService.js +1 -0
- package/vscode/src/vs/workbench/services/userDataProfile/browser/iconSelectBox.js +97 -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/fileWorkingCopy.d.ts +7 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +50 -89
- package/vscode-dts/vscode.proposed.chatParticipant.d.ts +23 -45
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +65 -91
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +9 -0
- package/vscode-dts/vscode.proposed.chatTab.d.ts +1 -5
- package/vscode-dts/vscode.proposed.contribAccessibilityHelpContent.d.ts +15 -0
- package/vscode-dts/vscode.proposed.debugFocus.d.ts +4 -4
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +2 -2
- package/vscode-dts/vscode.proposed.documentPaste.d.ts +144 -43
- package/vscode-dts/vscode.proposed.editorHoverVerbosityLevel.d.ts +76 -0
- package/vscode-dts/vscode.proposed.interactive.d.ts +1 -17
- package/vscode-dts/vscode.proposed.languageModels.d.ts +56 -11
- package/vscode-dts/vscode.proposed.newSymbolNamesProvider.d.ts +12 -1
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +4 -4
- package/vscode-dts/vscode.proposed.speech.d.ts +2 -1
- package/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts +144 -38
- package/vscode-dts/vscode.proposed.testPreserveFocus.d.ts +28 -0
- package/tools/l10n.js +0 -177
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.d.ts +0 -21
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.js +0 -215
- package/vscode/src/vs/editor/browser/services/hoverService/hoverService.d.ts +0 -32
- package/vscode/src/vs/editor/contrib/hover/browser/contentHover.js +0 -838
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +0 -685
- package/vscode/src/vs/platform/accessibility/common/accessibility.service.d.ts +0 -19
- package/vscode/src/vs/workbench/api/common/extHostChat.js +0 -54
- package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +0 -70
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +0 -308
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalDebuggerContribution.js +0 -49
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignalLineFeatureContribution.js +0 -178
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +0 -164
- package/vscode/src/vs/workbench/contrib/chat/common/chatContributionService.service.js +0 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +0 -223
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/OutlineEntry.js +0 -95
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +0 -113
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineProvider.js +0 -224
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalConfigHelper.d.ts +0 -48
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEvents.js +0 -47
- package/vscode-dts/vscode.proposed.dropMetadata.d.ts +0 -65
- package/vscode-dts/vscode.proposed.handleIssueUri.d.ts +0 -57
- package/vscode-dts/vscode.proposed.windowActivity.d.ts +0 -17
- /package/vscode/src/vs/workbench/browser/parts/editor/{editor.autosave.contribution.js → editor.contribution._autosave.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/files/browser/{files.fileEditorFactory.contribution.js → files.contribution._fileEditorFactory.js} +0 -0
|
@@ -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',
|
|
@@ -584,12 +427,13 @@ class ToggleStatusbarVisibilityAction extends Action2 {
|
|
|
584
427
|
}
|
|
585
428
|
registerAction2(ToggleStatusbarVisibilityAction);
|
|
586
429
|
class AbstractSetShowTabsAction extends Action2 {
|
|
587
|
-
constructor(settingName, value, title, id, precondition) {
|
|
430
|
+
constructor(settingName, value, title, id, precondition, description) {
|
|
588
431
|
super({
|
|
589
432
|
id,
|
|
590
433
|
title,
|
|
591
434
|
category: Categories.View,
|
|
592
435
|
precondition,
|
|
436
|
+
metadata: description ? { description } : undefined,
|
|
593
437
|
f1: true
|
|
594
438
|
});
|
|
595
439
|
this.settingName = settingName;
|
|
@@ -603,91 +447,67 @@ class AbstractSetShowTabsAction extends Action2 {
|
|
|
603
447
|
class HideEditorTabsAction extends AbstractSetShowTabsAction {
|
|
604
448
|
static { this.ID = 'workbench.action.hideEditorTabs'; }
|
|
605
449
|
constructor() {
|
|
606
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
450
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
607
451
|
`config.${"workbench.editor.showTabs" }`,
|
|
608
452
|
"none"
|
|
609
|
-
)).negate()),
|
|
610
|
-
const title = ( localize2WithPath(
|
|
611
|
-
|
|
612
|
-
'hideEditorTabs',
|
|
613
|
-
'Hide Editor Tabs'
|
|
614
|
-
));
|
|
615
|
-
super("workbench.editor.showTabs" , "none" , title, HideEditorTabsAction.ID, precondition);
|
|
453
|
+
))).negate()), (InEditorZenModeContext.negate()))));
|
|
454
|
+
const title = ( localize2WithPath(_moduleId, 41, 'Hide Editor Tabs'));
|
|
455
|
+
super("workbench.editor.showTabs" , "none" , title, HideEditorTabsAction.ID, precondition, ( localize2WithPath(_moduleId, 42, "Hide Tab Bar")));
|
|
616
456
|
}
|
|
617
457
|
}
|
|
618
458
|
class ZenHideEditorTabsAction extends AbstractSetShowTabsAction {
|
|
619
459
|
static { this.ID = 'workbench.action.zenHideEditorTabs'; }
|
|
620
460
|
constructor() {
|
|
621
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
461
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
622
462
|
`config.${"zenMode.showTabs" }`,
|
|
623
463
|
"none"
|
|
624
|
-
)).negate()), InEditorZenModeContext));
|
|
625
|
-
const title = ( localize2WithPath(
|
|
626
|
-
|
|
627
|
-
'hideEditorTabsZenMode',
|
|
628
|
-
'Hide Editor Tabs in Zen Mode'
|
|
629
|
-
));
|
|
630
|
-
super("zenMode.showTabs" , "none" , title, ZenHideEditorTabsAction.ID, precondition);
|
|
464
|
+
))).negate()), InEditorZenModeContext)));
|
|
465
|
+
const title = ( localize2WithPath(_moduleId, 43, 'Hide Editor Tabs in Zen Mode'));
|
|
466
|
+
super("zenMode.showTabs" , "none" , title, ZenHideEditorTabsAction.ID, precondition, ( localize2WithPath(_moduleId, 44, "Hide Tab Bar in Zen Mode")));
|
|
631
467
|
}
|
|
632
468
|
}
|
|
633
469
|
class ShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
634
470
|
static { this.ID = 'workbench.action.showMultipleEditorTabs'; }
|
|
635
471
|
constructor() {
|
|
636
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
472
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
637
473
|
`config.${"workbench.editor.showTabs" }`,
|
|
638
474
|
"multiple"
|
|
639
|
-
)).negate()),
|
|
640
|
-
const title = ( localize2WithPath(
|
|
641
|
-
|
|
642
|
-
'showMultipleEditorTabs',
|
|
643
|
-
'Show Multiple Editor Tabs'
|
|
644
|
-
));
|
|
645
|
-
super("workbench.editor.showTabs" , "multiple" , title, ShowMultipleEditorTabsAction.ID, precondition);
|
|
475
|
+
))).negate()), (InEditorZenModeContext.negate()))));
|
|
476
|
+
const title = ( localize2WithPath(_moduleId, 45, 'Show Multiple Editor Tabs'));
|
|
477
|
+
super("workbench.editor.showTabs" , "multiple" , title, ShowMultipleEditorTabsAction.ID, precondition, ( localize2WithPath(_moduleId, 46, "Show Tab Bar with multiple tabs")));
|
|
646
478
|
}
|
|
647
479
|
}
|
|
648
480
|
class ZenShowMultipleEditorTabsAction extends AbstractSetShowTabsAction {
|
|
649
481
|
static { this.ID = 'workbench.action.zenShowMultipleEditorTabs'; }
|
|
650
482
|
constructor() {
|
|
651
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
483
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
652
484
|
`config.${"zenMode.showTabs" }`,
|
|
653
485
|
"multiple"
|
|
654
|
-
)).negate()), InEditorZenModeContext));
|
|
655
|
-
const title = ( localize2WithPath(
|
|
656
|
-
|
|
657
|
-
'showMultipleEditorTabsZenMode',
|
|
658
|
-
'Show Multiple Editor Tabs in Zen Mode'
|
|
659
|
-
));
|
|
660
|
-
super("zenMode.showTabs" , "multiple" , title, ZenShowMultipleEditorTabsAction.ID, precondition);
|
|
486
|
+
))).negate()), InEditorZenModeContext)));
|
|
487
|
+
const title = ( localize2WithPath(_moduleId, 47, 'Show Multiple Editor Tabs in Zen Mode'));
|
|
488
|
+
super("zenMode.showTabs" , "multiple" , title, ZenShowMultipleEditorTabsAction.ID, precondition, ( localize2WithPath(_moduleId, 48, "Show Tab Bar in Zen Mode")));
|
|
661
489
|
}
|
|
662
490
|
}
|
|
663
491
|
class ShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
664
492
|
static { this.ID = 'workbench.action.showEditorTab'; }
|
|
665
493
|
constructor() {
|
|
666
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
494
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
667
495
|
`config.${"workbench.editor.showTabs" }`,
|
|
668
496
|
"single"
|
|
669
|
-
)).negate()),
|
|
670
|
-
const title = ( localize2WithPath(
|
|
671
|
-
|
|
672
|
-
'showSingleEditorTab',
|
|
673
|
-
'Show Single Editor Tab'
|
|
674
|
-
));
|
|
675
|
-
super("workbench.editor.showTabs" , "single" , title, ShowSingleEditorTabAction.ID, precondition);
|
|
497
|
+
))).negate()), (InEditorZenModeContext.negate()))));
|
|
498
|
+
const title = ( localize2WithPath(_moduleId, 49, 'Show Single Editor Tab'));
|
|
499
|
+
super("workbench.editor.showTabs" , "single" , title, ShowSingleEditorTabAction.ID, precondition, ( localize2WithPath(_moduleId, 50, "Show Tab Bar with one Tab")));
|
|
676
500
|
}
|
|
677
501
|
}
|
|
678
502
|
class ZenShowSingleEditorTabAction extends AbstractSetShowTabsAction {
|
|
679
503
|
static { this.ID = 'workbench.action.zenShowEditorTab'; }
|
|
680
504
|
constructor() {
|
|
681
|
-
const precondition = ( ContextKeyExpr.and(( (
|
|
505
|
+
const precondition = ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
682
506
|
`config.${"zenMode.showTabs" }`,
|
|
683
507
|
"single"
|
|
684
|
-
)).negate()), InEditorZenModeContext));
|
|
685
|
-
const title = ( localize2WithPath(
|
|
686
|
-
|
|
687
|
-
'showSingleEditorTabZenMode',
|
|
688
|
-
'Show Single Editor Tab in Zen Mode'
|
|
689
|
-
));
|
|
690
|
-
super("zenMode.showTabs" , "single" , title, ZenShowSingleEditorTabAction.ID, precondition);
|
|
508
|
+
))).negate()), InEditorZenModeContext)));
|
|
509
|
+
const title = ( localize2WithPath(_moduleId, 51, 'Show Single Editor Tab in Zen Mode'));
|
|
510
|
+
super("zenMode.showTabs" , "single" , title, ZenShowSingleEditorTabAction.ID, precondition, ( localize2WithPath(_moduleId, 52, "Show Tab Bar in Zen Mode with one Tab")));
|
|
691
511
|
}
|
|
692
512
|
}
|
|
693
513
|
registerAction2(HideEditorTabsAction);
|
|
@@ -698,14 +518,14 @@ registerAction2(ShowSingleEditorTabAction);
|
|
|
698
518
|
registerAction2(ZenShowSingleEditorTabAction);
|
|
699
519
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
700
520
|
submenu: MenuId.EditorTabsBarShowTabsSubmenu,
|
|
701
|
-
title: ( localizeWithPath(
|
|
521
|
+
title: ( localizeWithPath(_moduleId, 53, "Tab Bar")),
|
|
702
522
|
group: '3_workbench_layout_move',
|
|
703
523
|
order: 10,
|
|
704
|
-
when: ( InEditorZenModeContext.negate())
|
|
524
|
+
when: ( (InEditorZenModeContext.negate()))
|
|
705
525
|
});
|
|
706
526
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
707
527
|
submenu: MenuId.EditorTabsBarShowTabsZenModeSubmenu,
|
|
708
|
-
title: ( localizeWithPath(
|
|
528
|
+
title: ( localizeWithPath(_moduleId, 53, "Tab Bar")),
|
|
709
529
|
group: '3_workbench_layout_move',
|
|
710
530
|
order: 10,
|
|
711
531
|
when: InEditorZenModeContext
|
|
@@ -715,16 +535,13 @@ class EditorActionsTitleBarAction extends Action2 {
|
|
|
715
535
|
constructor() {
|
|
716
536
|
super({
|
|
717
537
|
id: EditorActionsTitleBarAction.ID,
|
|
718
|
-
title: ( localize2WithPath(
|
|
719
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
720
|
-
'moveEditorActionsToTitleBar',
|
|
721
|
-
"Move Editor Actions to Title Bar"
|
|
722
|
-
)),
|
|
538
|
+
title: ( localize2WithPath(_moduleId, 54, "Move Editor Actions to Title Bar")),
|
|
723
539
|
category: Categories.View,
|
|
724
|
-
precondition: ( ( ContextKeyExpr.equals(
|
|
540
|
+
precondition: ( (( (ContextKeyExpr.equals(
|
|
725
541
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
726
542
|
"titleBar"
|
|
727
|
-
)).negate()),
|
|
543
|
+
))).negate())),
|
|
544
|
+
metadata: { description: ( localize2WithPath(_moduleId, 55, "Move Editor Actions from the tab bar to the title bar")) },
|
|
728
545
|
f1: true
|
|
729
546
|
});
|
|
730
547
|
}
|
|
@@ -739,19 +556,16 @@ class EditorActionsDefaultAction extends Action2 {
|
|
|
739
556
|
constructor() {
|
|
740
557
|
super({
|
|
741
558
|
id: EditorActionsDefaultAction.ID,
|
|
742
|
-
title: ( localize2WithPath(
|
|
743
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
744
|
-
'moveEditorActionsToTabBar',
|
|
745
|
-
"Move Editor Actions to Tab Bar"
|
|
746
|
-
)),
|
|
559
|
+
title: ( localize2WithPath(_moduleId, 56, "Move Editor Actions to Tab Bar")),
|
|
747
560
|
category: Categories.View,
|
|
748
|
-
precondition: ( ContextKeyExpr.and(( (
|
|
561
|
+
precondition: ( (ContextKeyExpr.and( (( (ContextKeyExpr.equals(
|
|
749
562
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
750
563
|
"default"
|
|
751
|
-
)).negate()),
|
|
564
|
+
))).negate()), (( (ContextKeyExpr.equals(
|
|
752
565
|
`config.${"workbench.editor.showTabs" }`,
|
|
753
566
|
"none"
|
|
754
|
-
)).negate()))),
|
|
567
|
+
))).negate())))),
|
|
568
|
+
metadata: { description: ( localize2WithPath(_moduleId, 57, "Move Editor Actions from the title bar to the tab bar")) },
|
|
755
569
|
f1: true
|
|
756
570
|
});
|
|
757
571
|
}
|
|
@@ -766,16 +580,13 @@ class HideEditorActionsAction extends Action2 {
|
|
|
766
580
|
constructor() {
|
|
767
581
|
super({
|
|
768
582
|
id: HideEditorActionsAction.ID,
|
|
769
|
-
title: ( localize2WithPath(
|
|
770
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
771
|
-
'hideEditorActons',
|
|
772
|
-
"Hide Editor Actions"
|
|
773
|
-
)),
|
|
583
|
+
title: ( localize2WithPath(_moduleId, 58, "Hide Editor Actions")),
|
|
774
584
|
category: Categories.View,
|
|
775
|
-
precondition: ( ( ContextKeyExpr.equals(
|
|
585
|
+
precondition: ( (( (ContextKeyExpr.equals(
|
|
776
586
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
777
587
|
"hidden"
|
|
778
|
-
)).negate()),
|
|
588
|
+
))).negate())),
|
|
589
|
+
metadata: { description: ( localize2WithPath(_moduleId, 59, "Hide Editor Actions in the tab and title bar")) },
|
|
779
590
|
f1: true
|
|
780
591
|
});
|
|
781
592
|
}
|
|
@@ -790,16 +601,13 @@ class ShowEditorActionsAction extends Action2 {
|
|
|
790
601
|
constructor() {
|
|
791
602
|
super({
|
|
792
603
|
id: ShowEditorActionsAction.ID,
|
|
793
|
-
title: ( localize2WithPath(
|
|
794
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
795
|
-
'showEditorActons',
|
|
796
|
-
"Show Editor Actions"
|
|
797
|
-
)),
|
|
604
|
+
title: ( localize2WithPath(_moduleId, 60, "Show Editor Actions")),
|
|
798
605
|
category: Categories.View,
|
|
799
|
-
precondition: ( ContextKeyExpr.equals(
|
|
606
|
+
precondition: ( (ContextKeyExpr.equals(
|
|
800
607
|
`config.${"workbench.editor.editorActionsLocation" }`,
|
|
801
608
|
"hidden"
|
|
802
|
-
)),
|
|
609
|
+
))),
|
|
610
|
+
metadata: { description: ( localize2WithPath(_moduleId, 61, "Make Editor Actions visible.")) },
|
|
803
611
|
f1: true
|
|
804
612
|
});
|
|
805
613
|
}
|
|
@@ -811,11 +619,7 @@ class ShowEditorActionsAction extends Action2 {
|
|
|
811
619
|
registerAction2(ShowEditorActionsAction);
|
|
812
620
|
MenuRegistry.appendMenuItem(MenuId.MenubarAppearanceMenu, {
|
|
813
621
|
submenu: MenuId.EditorActionsPositionSubmenu,
|
|
814
|
-
title: ( localizeWithPath(
|
|
815
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
816
|
-
'editorActionsPosition',
|
|
817
|
-
"Editor Actions Position"
|
|
818
|
-
)),
|
|
622
|
+
title: ( localizeWithPath(_moduleId, 62, "Editor Actions Position")),
|
|
819
623
|
group: '3_workbench_layout_move',
|
|
820
624
|
order: 11
|
|
821
625
|
});
|
|
@@ -823,16 +627,17 @@ registerAction2(class extends Action2 {
|
|
|
823
627
|
constructor() {
|
|
824
628
|
super({
|
|
825
629
|
id: 'workbench.action.toggleSeparatePinnedEditorTabs',
|
|
826
|
-
title: ( localize2WithPath(
|
|
827
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
828
|
-
'toggleSeparatePinnedEditorTabs',
|
|
829
|
-
"Separate Pinned Editor Tabs"
|
|
830
|
-
)),
|
|
630
|
+
title: ( localize2WithPath(_moduleId, 63, "Separate Pinned Editor Tabs")),
|
|
831
631
|
category: Categories.View,
|
|
832
|
-
precondition: ( ContextKeyExpr.equals(
|
|
632
|
+
precondition: ( (ContextKeyExpr.equals(
|
|
833
633
|
`config.${"workbench.editor.showTabs" }`,
|
|
834
634
|
"multiple"
|
|
835
|
-
)),
|
|
635
|
+
))),
|
|
636
|
+
metadata: { description: ( localize2WithPath(
|
|
637
|
+
_moduleId,
|
|
638
|
+
64,
|
|
639
|
+
"Toggle whether pinned editor tabs are shown on a separate row above unpinned tabs."
|
|
640
|
+
)) },
|
|
836
641
|
f1: true
|
|
837
642
|
});
|
|
838
643
|
}
|
|
@@ -848,18 +653,10 @@ registerAction2(class extends Action2 {
|
|
|
848
653
|
super({
|
|
849
654
|
id: 'workbench.action.toggleZenMode',
|
|
850
655
|
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
|
-
)),
|
|
656
|
+
...( localize2WithPath(_moduleId, 65, "Toggle Zen Mode")),
|
|
657
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 66, "Zen Mode")),
|
|
861
658
|
},
|
|
862
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated()),
|
|
659
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated())),
|
|
863
660
|
category: Categories.View,
|
|
864
661
|
f1: true,
|
|
865
662
|
keybinding: {
|
|
@@ -897,20 +694,17 @@ if (isWindows || isLinux || isWeb) {
|
|
|
897
694
|
super({
|
|
898
695
|
id: 'workbench.action.toggleMenuBar',
|
|
899
696
|
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
|
-
)),
|
|
697
|
+
...( localize2WithPath(_moduleId, 67, "Toggle Menu Bar")),
|
|
698
|
+
mnemonicTitle: ( localizeWithPath(_moduleId, 68, "Menu &&Bar")),
|
|
910
699
|
},
|
|
911
700
|
category: Categories.View,
|
|
912
701
|
f1: true,
|
|
913
|
-
toggled: ( ContextKeyExpr.and(
|
|
702
|
+
toggled: ( (ContextKeyExpr.and(
|
|
703
|
+
(IsMacNativeContext.toNegated()),
|
|
704
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'hidden')),
|
|
705
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'toggle')),
|
|
706
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'compact'))
|
|
707
|
+
))),
|
|
914
708
|
menu: [{
|
|
915
709
|
id: MenuId.MenubarAppearanceMenu,
|
|
916
710
|
group: '2_workbench_layout',
|
|
@@ -926,14 +720,19 @@ if (isWindows || isLinux || isWeb) {
|
|
|
926
720
|
MenuRegistry.appendMenuItem(menuId, {
|
|
927
721
|
command: {
|
|
928
722
|
id: 'workbench.action.toggleMenuBar',
|
|
929
|
-
title: ( localizeWithPath(
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
723
|
+
title: ( localizeWithPath(_moduleId, 69, "Menu Bar")),
|
|
724
|
+
toggled: ( (ContextKeyExpr.and(
|
|
725
|
+
(IsMacNativeContext.toNegated()),
|
|
726
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'hidden')),
|
|
727
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'toggle')),
|
|
728
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'compact'))
|
|
729
|
+
)))
|
|
935
730
|
},
|
|
936
|
-
when: ( ContextKeyExpr.and(
|
|
731
|
+
when: ( (ContextKeyExpr.and(
|
|
732
|
+
(IsAuxiliaryWindowFocusedContext.toNegated()),
|
|
733
|
+
(ContextKeyExpr.notEquals(TitleBarStyleContext.key, "native" )),
|
|
734
|
+
(IsMainWindowFullscreenContext.negate())
|
|
735
|
+
))),
|
|
937
736
|
group: '2_config',
|
|
938
737
|
order: 0
|
|
939
738
|
});
|
|
@@ -943,11 +742,7 @@ registerAction2(class extends Action2 {
|
|
|
943
742
|
constructor() {
|
|
944
743
|
super({
|
|
945
744
|
id: 'workbench.action.resetViewLocations',
|
|
946
|
-
title: ( localize2WithPath(
|
|
947
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
948
|
-
'resetViewLocations',
|
|
949
|
-
"Reset View Locations"
|
|
950
|
-
)),
|
|
745
|
+
title: ( localize2WithPath(_moduleId, 70, "Reset View Locations")),
|
|
951
746
|
category: Categories.View,
|
|
952
747
|
f1: true
|
|
953
748
|
});
|
|
@@ -960,7 +755,7 @@ registerAction2(class extends Action2 {
|
|
|
960
755
|
constructor() {
|
|
961
756
|
super({
|
|
962
757
|
id: 'workbench.action.moveView',
|
|
963
|
-
title: ( localize2WithPath(
|
|
758
|
+
title: ( localize2WithPath(_moduleId, 71, "Move View")),
|
|
964
759
|
category: Categories.View,
|
|
965
760
|
f1: true
|
|
966
761
|
});
|
|
@@ -981,7 +776,7 @@ registerAction2(class extends Action2 {
|
|
|
981
776
|
if (!viewId) {
|
|
982
777
|
return;
|
|
983
778
|
}
|
|
984
|
-
const moveFocusedViewAction = ( new MoveFocusedViewAction());
|
|
779
|
+
const moveFocusedViewAction = ( (new MoveFocusedViewAction()));
|
|
985
780
|
instantiationService.invokeFunction(accessor => moveFocusedViewAction.run(accessor, viewId));
|
|
986
781
|
}
|
|
987
782
|
catch { }
|
|
@@ -998,12 +793,7 @@ registerAction2(class extends Action2 {
|
|
|
998
793
|
if (!hasAddedView) {
|
|
999
794
|
results.push({
|
|
1000
795
|
type: 'separator',
|
|
1001
|
-
label: ( localizeWithPath(
|
|
1002
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1003
|
-
'sidebarContainer',
|
|
1004
|
-
"Side Bar / {0}",
|
|
1005
|
-
containerModel.title
|
|
1006
|
-
))
|
|
796
|
+
label: ( localizeWithPath(_moduleId, 72, "Side Bar / {0}", containerModel.title))
|
|
1007
797
|
});
|
|
1008
798
|
hasAddedView = true;
|
|
1009
799
|
}
|
|
@@ -1024,12 +814,7 @@ registerAction2(class extends Action2 {
|
|
|
1024
814
|
if (!hasAddedView) {
|
|
1025
815
|
results.push({
|
|
1026
816
|
type: 'separator',
|
|
1027
|
-
label: ( localizeWithPath(
|
|
1028
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1029
|
-
'panelContainer',
|
|
1030
|
-
"Panel / {0}",
|
|
1031
|
-
containerModel.title
|
|
1032
|
-
))
|
|
817
|
+
label: ( localizeWithPath(_moduleId, 73, "Panel / {0}", containerModel.title))
|
|
1033
818
|
});
|
|
1034
819
|
hasAddedView = true;
|
|
1035
820
|
}
|
|
@@ -1050,12 +835,7 @@ registerAction2(class extends Action2 {
|
|
|
1050
835
|
if (!hasAddedView) {
|
|
1051
836
|
results.push({
|
|
1052
837
|
type: 'separator',
|
|
1053
|
-
label: ( localizeWithPath(
|
|
1054
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1055
|
-
'secondarySideBarContainer',
|
|
1056
|
-
"Secondary Side Bar / {0}",
|
|
1057
|
-
containerModel.title
|
|
1058
|
-
))
|
|
838
|
+
label: ( localizeWithPath(_moduleId, 74, "Secondary Side Bar / {0}", containerModel.title))
|
|
1059
839
|
});
|
|
1060
840
|
hasAddedView = true;
|
|
1061
841
|
}
|
|
@@ -1070,40 +850,34 @@ registerAction2(class extends Action2 {
|
|
|
1070
850
|
}
|
|
1071
851
|
async getView(quickInputService, viewDescriptorService, paneCompositePartService, viewId) {
|
|
1072
852
|
const quickPick = quickInputService.createQuickPick();
|
|
1073
|
-
quickPick.placeholder = ( localizeWithPath(
|
|
1074
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1075
|
-
'moveFocusedView.selectView',
|
|
1076
|
-
"Select a View to Move"
|
|
1077
|
-
));
|
|
853
|
+
quickPick.placeholder = ( localizeWithPath(_moduleId, 75, "Select a View to Move"));
|
|
1078
854
|
quickPick.items = this.getViewItems(viewDescriptorService, paneCompositePartService);
|
|
1079
855
|
quickPick.selectedItems = quickPick.items.filter(item => item.id === viewId);
|
|
1080
|
-
return (
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
856
|
+
return (
|
|
857
|
+
(new Promise((resolve, reject) => {
|
|
858
|
+
quickPick.onDidAccept(() => {
|
|
859
|
+
const viewId = quickPick.selectedItems[0];
|
|
860
|
+
if (viewId.id) {
|
|
861
|
+
resolve(viewId.id);
|
|
862
|
+
}
|
|
863
|
+
else {
|
|
864
|
+
reject();
|
|
865
|
+
}
|
|
866
|
+
quickPick.hide();
|
|
867
|
+
});
|
|
868
|
+
quickPick.onDidHide(() => reject());
|
|
869
|
+
quickPick.show();
|
|
870
|
+
}))
|
|
871
|
+
);
|
|
1094
872
|
}
|
|
1095
873
|
});
|
|
1096
874
|
class MoveFocusedViewAction extends Action2 {
|
|
1097
875
|
constructor() {
|
|
1098
876
|
super({
|
|
1099
877
|
id: 'workbench.action.moveFocusedView',
|
|
1100
|
-
title: ( localize2WithPath(
|
|
1101
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1102
|
-
'moveFocusedView',
|
|
1103
|
-
"Move Focused View"
|
|
1104
|
-
)),
|
|
878
|
+
title: ( localize2WithPath(_moduleId, 76, "Move Focused View")),
|
|
1105
879
|
category: Categories.View,
|
|
1106
|
-
precondition: ( FocusedViewContext.notEqualsTo('')),
|
|
880
|
+
precondition: ( (FocusedViewContext.notEqualsTo(''))),
|
|
1107
881
|
f1: true
|
|
1108
882
|
});
|
|
1109
883
|
}
|
|
@@ -1116,34 +890,17 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
1116
890
|
const paneCompositePartService = accessor.get(IPaneCompositePartService);
|
|
1117
891
|
const focusedViewId = viewId || FocusedViewContext.getValue(contextKeyService);
|
|
1118
892
|
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
|
-
)));
|
|
893
|
+
dialogService.error(( localizeWithPath(_moduleId, 77, "There is no view currently focused.")));
|
|
1124
894
|
return;
|
|
1125
895
|
}
|
|
1126
896
|
const viewDescriptor = viewDescriptorService.getViewDescriptorById(focusedViewId);
|
|
1127
897
|
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
|
-
)));
|
|
898
|
+
dialogService.error(( localizeWithPath(_moduleId, 78, "The currently focused view is not movable.")));
|
|
1133
899
|
return;
|
|
1134
900
|
}
|
|
1135
901
|
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
|
-
));
|
|
902
|
+
quickPick.placeholder = ( localizeWithPath(_moduleId, 79, "Select a Destination for the View"));
|
|
903
|
+
quickPick.title = ( localizeWithPath(_moduleId, 80, "View: Move {0}", viewDescriptor.name.value));
|
|
1147
904
|
const items = [];
|
|
1148
905
|
const currentContainer = viewDescriptorService.getViewContainerByViewId(focusedViewId);
|
|
1149
906
|
const currentLocation = viewDescriptorService.getViewLocationById(focusedViewId);
|
|
@@ -1151,39 +908,27 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
1151
908
|
if (!((isViewSolo && currentLocation === 1) )) {
|
|
1152
909
|
items.push({
|
|
1153
910
|
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
|
-
)),
|
|
911
|
+
label: ( localizeWithPath(_moduleId, 81, "New Panel Entry")),
|
|
1159
912
|
});
|
|
1160
913
|
}
|
|
1161
914
|
if (!((isViewSolo && currentLocation === 0) )) {
|
|
1162
915
|
items.push({
|
|
1163
916
|
id: '_.sidebar.newcontainer',
|
|
1164
|
-
label: ( localizeWithPath(
|
|
1165
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1166
|
-
'moveFocusedView.newContainerInSidebar',
|
|
1167
|
-
"New Side Bar Entry"
|
|
1168
|
-
))
|
|
917
|
+
label: ( localizeWithPath(_moduleId, 82, "New Side Bar Entry"))
|
|
1169
918
|
});
|
|
1170
919
|
}
|
|
1171
920
|
if (!((isViewSolo && currentLocation === 2) )) {
|
|
1172
921
|
items.push({
|
|
1173
922
|
id: '_.auxiliarybar.newcontainer',
|
|
1174
|
-
label: ( localizeWithPath(
|
|
1175
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1176
|
-
'moveFocusedView.newContainerInSidePanel',
|
|
1177
|
-
"New Secondary Side Bar Entry"
|
|
1178
|
-
))
|
|
923
|
+
label: ( localizeWithPath(_moduleId, 83, "New Secondary Side Bar Entry"))
|
|
1179
924
|
});
|
|
1180
925
|
}
|
|
1181
926
|
items.push({
|
|
1182
927
|
type: 'separator',
|
|
1183
|
-
label: ( localizeWithPath(
|
|
928
|
+
label: ( localizeWithPath(_moduleId, 84, "Side Bar"))
|
|
1184
929
|
});
|
|
1185
930
|
const pinnedViewlets = paneCompositePartService.getVisiblePaneCompositeIds(0 );
|
|
1186
|
-
items.push(...( pinnedViewlets
|
|
931
|
+
items.push(...( (pinnedViewlets
|
|
1187
932
|
.filter(viewletId => {
|
|
1188
933
|
if (viewletId === viewDescriptorService.getViewContainerByViewId(focusedViewId).id) {
|
|
1189
934
|
return false;
|
|
@@ -1195,13 +940,13 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
1195
940
|
id: viewletId,
|
|
1196
941
|
label: viewDescriptorService.getViewContainerModel(viewDescriptorService.getViewContainerById(viewletId)).title
|
|
1197
942
|
};
|
|
1198
|
-
})));
|
|
943
|
+
}))));
|
|
1199
944
|
items.push({
|
|
1200
945
|
type: 'separator',
|
|
1201
|
-
label: ( localizeWithPath(
|
|
946
|
+
label: ( localizeWithPath(_moduleId, 85, "Panel"))
|
|
1202
947
|
});
|
|
1203
948
|
const pinnedPanels = paneCompositePartService.getPinnedPaneCompositeIds(1 );
|
|
1204
|
-
items.push(...( pinnedPanels
|
|
949
|
+
items.push(...( (pinnedPanels
|
|
1205
950
|
.filter(panel => {
|
|
1206
951
|
if (panel === viewDescriptorService.getViewContainerByViewId(focusedViewId).id) {
|
|
1207
952
|
return false;
|
|
@@ -1213,17 +958,13 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
1213
958
|
id: panel,
|
|
1214
959
|
label: viewDescriptorService.getViewContainerModel(viewDescriptorService.getViewContainerById(panel)).title
|
|
1215
960
|
};
|
|
1216
|
-
})));
|
|
961
|
+
}))));
|
|
1217
962
|
items.push({
|
|
1218
963
|
type: 'separator',
|
|
1219
|
-
label: ( localizeWithPath(
|
|
1220
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1221
|
-
'secondarySideBar',
|
|
1222
|
-
"Secondary Side Bar"
|
|
1223
|
-
))
|
|
964
|
+
label: ( localizeWithPath(_moduleId, 86, "Secondary Side Bar"))
|
|
1224
965
|
});
|
|
1225
966
|
const pinnedAuxPanels = paneCompositePartService.getPinnedPaneCompositeIds(2 );
|
|
1226
|
-
items.push(...( pinnedAuxPanels
|
|
967
|
+
items.push(...( (pinnedAuxPanels
|
|
1227
968
|
.filter(panel => {
|
|
1228
969
|
if (panel === viewDescriptorService.getViewContainerByViewId(focusedViewId).id) {
|
|
1229
970
|
return false;
|
|
@@ -1235,7 +976,7 @@ class MoveFocusedViewAction extends Action2 {
|
|
|
1235
976
|
id: panel,
|
|
1236
977
|
label: viewDescriptorService.getViewContainerModel(viewDescriptorService.getViewContainerById(panel)).title
|
|
1237
978
|
};
|
|
1238
|
-
})));
|
|
979
|
+
}))));
|
|
1239
980
|
quickPick.items = items;
|
|
1240
981
|
quickPick.onDidAccept(() => {
|
|
1241
982
|
const destination = quickPick.selectedItems[0];
|
|
@@ -1265,14 +1006,10 @@ registerAction2(class extends Action2 {
|
|
|
1265
1006
|
constructor() {
|
|
1266
1007
|
super({
|
|
1267
1008
|
id: 'workbench.action.resetFocusedViewLocation',
|
|
1268
|
-
title: ( localize2WithPath(
|
|
1269
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1270
|
-
'resetFocusedViewLocation',
|
|
1271
|
-
"Reset Focused View Location"
|
|
1272
|
-
)),
|
|
1009
|
+
title: ( localize2WithPath(_moduleId, 87, "Reset Focused View Location")),
|
|
1273
1010
|
category: Categories.View,
|
|
1274
1011
|
f1: true,
|
|
1275
|
-
precondition: ( FocusedViewContext.notEqualsTo(''))
|
|
1012
|
+
precondition: ( (FocusedViewContext.notEqualsTo('')))
|
|
1276
1013
|
});
|
|
1277
1014
|
}
|
|
1278
1015
|
run(accessor) {
|
|
@@ -1286,11 +1023,7 @@ registerAction2(class extends Action2 {
|
|
|
1286
1023
|
viewDescriptor = viewDescriptorService.getViewDescriptorById(focusedViewId);
|
|
1287
1024
|
}
|
|
1288
1025
|
if (!viewDescriptor) {
|
|
1289
|
-
dialogService.error(( localizeWithPath(
|
|
1290
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1291
|
-
'resetFocusedView.error.noFocusedView',
|
|
1292
|
-
"There is no view currently focused."
|
|
1293
|
-
)));
|
|
1026
|
+
dialogService.error(( localizeWithPath(_moduleId, 88, "There is no view currently focused.")));
|
|
1294
1027
|
return;
|
|
1295
1028
|
}
|
|
1296
1029
|
const defaultContainer = viewDescriptorService.getDefaultContainerById(viewDescriptor.id);
|
|
@@ -1335,13 +1068,9 @@ class IncreaseViewSizeAction extends BaseResizeViewAction {
|
|
|
1335
1068
|
constructor() {
|
|
1336
1069
|
super({
|
|
1337
1070
|
id: 'workbench.action.increaseViewSize',
|
|
1338
|
-
title: ( localize2WithPath(
|
|
1339
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1340
|
-
'increaseViewSize',
|
|
1341
|
-
'Increase Current View Size'
|
|
1342
|
-
)),
|
|
1071
|
+
title: ( localize2WithPath(_moduleId, 89, 'Increase Current View Size')),
|
|
1343
1072
|
f1: true,
|
|
1344
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1073
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1345
1074
|
});
|
|
1346
1075
|
}
|
|
1347
1076
|
run(accessor) {
|
|
@@ -1352,13 +1081,9 @@ class IncreaseViewWidthAction extends BaseResizeViewAction {
|
|
|
1352
1081
|
constructor() {
|
|
1353
1082
|
super({
|
|
1354
1083
|
id: 'workbench.action.increaseViewWidth',
|
|
1355
|
-
title: ( localize2WithPath(
|
|
1356
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1357
|
-
'increaseEditorWidth',
|
|
1358
|
-
'Increase Editor Width'
|
|
1359
|
-
)),
|
|
1084
|
+
title: ( localize2WithPath(_moduleId, 90, 'Increase Editor Width')),
|
|
1360
1085
|
f1: true,
|
|
1361
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1086
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1362
1087
|
});
|
|
1363
1088
|
}
|
|
1364
1089
|
run(accessor) {
|
|
@@ -1369,13 +1094,9 @@ class IncreaseViewHeightAction extends BaseResizeViewAction {
|
|
|
1369
1094
|
constructor() {
|
|
1370
1095
|
super({
|
|
1371
1096
|
id: 'workbench.action.increaseViewHeight',
|
|
1372
|
-
title: ( localize2WithPath(
|
|
1373
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1374
|
-
'increaseEditorHeight',
|
|
1375
|
-
'Increase Editor Height'
|
|
1376
|
-
)),
|
|
1097
|
+
title: ( localize2WithPath(_moduleId, 91, 'Increase Editor Height')),
|
|
1377
1098
|
f1: true,
|
|
1378
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1099
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1379
1100
|
});
|
|
1380
1101
|
}
|
|
1381
1102
|
run(accessor) {
|
|
@@ -1386,13 +1107,9 @@ class DecreaseViewSizeAction extends BaseResizeViewAction {
|
|
|
1386
1107
|
constructor() {
|
|
1387
1108
|
super({
|
|
1388
1109
|
id: 'workbench.action.decreaseViewSize',
|
|
1389
|
-
title: ( localize2WithPath(
|
|
1390
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1391
|
-
'decreaseViewSize',
|
|
1392
|
-
'Decrease Current View Size'
|
|
1393
|
-
)),
|
|
1110
|
+
title: ( localize2WithPath(_moduleId, 92, 'Decrease Current View Size')),
|
|
1394
1111
|
f1: true,
|
|
1395
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1112
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1396
1113
|
});
|
|
1397
1114
|
}
|
|
1398
1115
|
run(accessor) {
|
|
@@ -1403,13 +1120,9 @@ class DecreaseViewWidthAction extends BaseResizeViewAction {
|
|
|
1403
1120
|
constructor() {
|
|
1404
1121
|
super({
|
|
1405
1122
|
id: 'workbench.action.decreaseViewWidth',
|
|
1406
|
-
title: ( localize2WithPath(
|
|
1407
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1408
|
-
'decreaseEditorWidth',
|
|
1409
|
-
'Decrease Editor Width'
|
|
1410
|
-
)),
|
|
1123
|
+
title: ( localize2WithPath(_moduleId, 93, 'Decrease Editor Width')),
|
|
1411
1124
|
f1: true,
|
|
1412
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1125
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1413
1126
|
});
|
|
1414
1127
|
}
|
|
1415
1128
|
run(accessor) {
|
|
@@ -1420,13 +1133,9 @@ class DecreaseViewHeightAction extends BaseResizeViewAction {
|
|
|
1420
1133
|
constructor() {
|
|
1421
1134
|
super({
|
|
1422
1135
|
id: 'workbench.action.decreaseViewHeight',
|
|
1423
|
-
title: ( localize2WithPath(
|
|
1424
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1425
|
-
'decreaseEditorHeight',
|
|
1426
|
-
'Decrease Editor Height'
|
|
1427
|
-
)),
|
|
1136
|
+
title: ( localize2WithPath(_moduleId, 94, 'Decrease Editor Height')),
|
|
1428
1137
|
f1: true,
|
|
1429
|
-
precondition: ( IsAuxiliaryWindowFocusedContext.toNegated())
|
|
1138
|
+
precondition: ( (IsAuxiliaryWindowFocusedContext.toNegated()))
|
|
1430
1139
|
});
|
|
1431
1140
|
}
|
|
1432
1141
|
run(accessor) {
|
|
@@ -1450,16 +1159,8 @@ const CreateToggleLayoutItem = (id, active, label, visualIcon) => {
|
|
|
1450
1159
|
visualIcon,
|
|
1451
1160
|
activeIcon: Codicon.eye,
|
|
1452
1161
|
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
|
-
)),
|
|
1162
|
+
activeAriaLabel: ( localizeWithPath(_moduleId, 95, "Select to Hide")),
|
|
1163
|
+
inactiveAriaLabel: ( localizeWithPath(_moduleId, 96, "Select to Show")),
|
|
1463
1164
|
useButtons: true,
|
|
1464
1165
|
};
|
|
1465
1166
|
};
|
|
@@ -1470,56 +1171,45 @@ const CreateOptionLayoutItem = (id, active, label, visualIcon) => {
|
|
|
1470
1171
|
label,
|
|
1471
1172
|
visualIcon,
|
|
1472
1173
|
activeIcon: Codicon.check,
|
|
1473
|
-
activeAriaLabel: ( localizeWithPath(
|
|
1174
|
+
activeAriaLabel: ( localizeWithPath(_moduleId, 97, "Active")),
|
|
1474
1175
|
useButtons: false
|
|
1475
1176
|
};
|
|
1476
1177
|
};
|
|
1477
|
-
const MenuBarToggledContext = ( ContextKeyExpr.and(
|
|
1178
|
+
const MenuBarToggledContext = ( (ContextKeyExpr.and(
|
|
1179
|
+
(IsMacNativeContext.toNegated()),
|
|
1180
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'hidden')),
|
|
1181
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'toggle')),
|
|
1182
|
+
(ContextKeyExpr.notEquals('config.window.menuBarVisibility', 'compact'))
|
|
1183
|
+
)));
|
|
1478
1184
|
const ToggleVisibilityActions = [];
|
|
1479
1185
|
if (!isMacintosh || !isNative) {
|
|
1480
|
-
ToggleVisibilityActions.push(CreateToggleLayoutItem('workbench.action.toggleMenuBar', MenuBarToggledContext, ( localizeWithPath(
|
|
1186
|
+
ToggleVisibilityActions.push(CreateToggleLayoutItem('workbench.action.toggleMenuBar', MenuBarToggledContext, ( localizeWithPath(_moduleId, 98, "Menu Bar")), menubarIcon));
|
|
1481
1187
|
}
|
|
1482
1188
|
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),
|
|
1189
|
+
CreateToggleLayoutItem(ToggleActivityBarVisibilityActionId, ( (ContextKeyExpr.notEquals('config.workbench.activityBar.location', 'hidden'))), ( localizeWithPath(_moduleId, 99, "Activity Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: activityBarLeftIcon, iconB: activityBarRightIcon }),
|
|
1190
|
+
CreateToggleLayoutItem(ToggleSidebarVisibilityAction.ID, SideBarVisibleContext, ( localizeWithPath(_moduleId, 100, "Primary Side Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: panelLeftIcon, iconB: panelRightIcon }),
|
|
1191
|
+
CreateToggleLayoutItem(ToggleAuxiliaryBarAction.ID, AuxiliaryBarVisibleContext, ( localizeWithPath(_moduleId, 86, "Secondary Side Bar")), { whenA: ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), iconA: panelRightIcon, iconB: panelLeftIcon }),
|
|
1192
|
+
CreateToggleLayoutItem(TogglePanelAction.ID, PanelVisibleContext, ( localizeWithPath(_moduleId, 85, "Panel")), panelIcon),
|
|
1193
|
+
CreateToggleLayoutItem(ToggleStatusbarVisibilityAction.ID, ( (ContextKeyExpr.equals('config.workbench.statusBar.visible', true))), ( localizeWithPath(_moduleId, 101, "Status Bar")), statusBarIcon),
|
|
1500
1194
|
]);
|
|
1501
1195
|
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(
|
|
1196
|
+
CreateOptionLayoutItem(MoveSidebarLeftAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'left'))), ( localizeWithPath(_moduleId, 102, "Left")), panelLeftIcon),
|
|
1197
|
+
CreateOptionLayoutItem(MoveSidebarRightAction.ID, ( (ContextKeyExpr.equals('config.workbench.sideBar.location', 'right'))), ( localizeWithPath(_moduleId, 103, "Right")), panelRightIcon),
|
|
1504
1198
|
];
|
|
1505
1199
|
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(
|
|
1200
|
+
CreateOptionLayoutItem('workbench.action.alignPanelLeft', ( (PanelAlignmentContext.isEqualTo('left'))), ( localizeWithPath(_moduleId, 104, "Left")), panelAlignmentLeftIcon),
|
|
1201
|
+
CreateOptionLayoutItem('workbench.action.alignPanelRight', ( (PanelAlignmentContext.isEqualTo('right'))), ( localizeWithPath(_moduleId, 105, "Right")), panelAlignmentRightIcon),
|
|
1202
|
+
CreateOptionLayoutItem('workbench.action.alignPanelCenter', ( (PanelAlignmentContext.isEqualTo('center'))), ( localizeWithPath(_moduleId, 106, "Center")), panelAlignmentCenterIcon),
|
|
1203
|
+
CreateOptionLayoutItem('workbench.action.alignPanelJustify', ( (PanelAlignmentContext.isEqualTo('justify'))), ( localizeWithPath(_moduleId, 107, "Justify")), panelAlignmentJustifyIcon),
|
|
1510
1204
|
];
|
|
1511
1205
|
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),
|
|
1206
|
+
CreateOptionLayoutItem('workbench.action.toggleFullScreen', IsMainWindowFullscreenContext, ( localizeWithPath(_moduleId, 108, "Full Screen")), fullscreenIcon),
|
|
1207
|
+
CreateOptionLayoutItem('workbench.action.toggleZenMode', InEditorZenModeContext, ( localizeWithPath(_moduleId, 109, "Zen Mode")), zenModeIcon),
|
|
1208
|
+
CreateOptionLayoutItem('workbench.action.toggleCenteredLayout', IsMainEditorCenteredLayoutContext, ( localizeWithPath(_moduleId, 110, "Centered Layout")), centerLayoutIcon),
|
|
1519
1209
|
];
|
|
1520
|
-
const LayoutContextKeySet = ( new Set());
|
|
1210
|
+
const LayoutContextKeySet = ( (new Set()));
|
|
1521
1211
|
for (const { active } of [...ToggleVisibilityActions, ...MoveSideBarActions, ...AlignPanelActions, ...MiscLayoutOptions]) {
|
|
1522
|
-
for (const key of ( active.keys())) {
|
|
1212
|
+
for (const key of ( (active.keys()))) {
|
|
1523
1213
|
LayoutContextKeySet.add(key);
|
|
1524
1214
|
}
|
|
1525
1215
|
}
|
|
@@ -1527,11 +1217,7 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1527
1217
|
constructor() {
|
|
1528
1218
|
super({
|
|
1529
1219
|
id: 'workbench.action.customizeLayout',
|
|
1530
|
-
title: ( localize2WithPath(
|
|
1531
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1532
|
-
'customizeLayout',
|
|
1533
|
-
"Customize Layout..."
|
|
1534
|
-
)),
|
|
1220
|
+
title: ( localize2WithPath(_moduleId, 111, "Customize Layout...")),
|
|
1535
1221
|
f1: true,
|
|
1536
1222
|
icon: configureLayoutIcon,
|
|
1537
1223
|
menu: [
|
|
@@ -1541,7 +1227,7 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1541
1227
|
},
|
|
1542
1228
|
{
|
|
1543
1229
|
id: MenuId.LayoutControlMenu,
|
|
1544
|
-
when: ( ContextKeyExpr.equals('config.workbench.layoutControl.type', 'both')),
|
|
1230
|
+
when: ( (ContextKeyExpr.equals('config.workbench.layoutControl.type', 'both'))),
|
|
1545
1231
|
group: 'z_end'
|
|
1546
1232
|
}
|
|
1547
1233
|
]
|
|
@@ -1581,36 +1267,24 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1581
1267
|
return [
|
|
1582
1268
|
{
|
|
1583
1269
|
type: 'separator',
|
|
1584
|
-
label: ( localizeWithPath(
|
|
1585
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1586
|
-
'toggleVisibility',
|
|
1587
|
-
"Visibility"
|
|
1588
|
-
))
|
|
1270
|
+
label: ( localizeWithPath(_moduleId, 112, "Visibility"))
|
|
1589
1271
|
},
|
|
1590
|
-
...( ToggleVisibilityActions.map(toQuickPickItem)),
|
|
1272
|
+
...( (ToggleVisibilityActions.map(toQuickPickItem))),
|
|
1591
1273
|
{
|
|
1592
1274
|
type: 'separator',
|
|
1593
|
-
label: ( localizeWithPath(
|
|
1594
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1595
|
-
'sideBarPosition',
|
|
1596
|
-
"Primary Side Bar Position"
|
|
1597
|
-
))
|
|
1275
|
+
label: ( localizeWithPath(_moduleId, 113, "Primary Side Bar Position"))
|
|
1598
1276
|
},
|
|
1599
|
-
...( MoveSideBarActions.map(toQuickPickItem)),
|
|
1277
|
+
...( (MoveSideBarActions.map(toQuickPickItem))),
|
|
1600
1278
|
{
|
|
1601
1279
|
type: 'separator',
|
|
1602
|
-
label: ( localizeWithPath(
|
|
1603
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1604
|
-
'panelAlignment',
|
|
1605
|
-
"Panel Alignment"
|
|
1606
|
-
))
|
|
1280
|
+
label: ( localizeWithPath(_moduleId, 114, "Panel Alignment"))
|
|
1607
1281
|
},
|
|
1608
|
-
...( AlignPanelActions.map(toQuickPickItem)),
|
|
1282
|
+
...( (AlignPanelActions.map(toQuickPickItem))),
|
|
1609
1283
|
{
|
|
1610
1284
|
type: 'separator',
|
|
1611
|
-
label: ( localizeWithPath(
|
|
1285
|
+
label: ( localizeWithPath(_moduleId, 115, "Modes")),
|
|
1612
1286
|
},
|
|
1613
|
-
...( MiscLayoutOptions.map(toQuickPickItem)),
|
|
1287
|
+
...( (MiscLayoutOptions.map(toQuickPickItem))),
|
|
1614
1288
|
];
|
|
1615
1289
|
}
|
|
1616
1290
|
run(accessor) {
|
|
@@ -1628,30 +1302,22 @@ registerAction2(class CustomizeLayoutAction extends Action2 {
|
|
|
1628
1302
|
quickPick.items = this.getItems(contextKeyService, keybindingService);
|
|
1629
1303
|
quickPick.ignoreFocusOut = true;
|
|
1630
1304
|
quickPick.hideInput = true;
|
|
1631
|
-
quickPick.title = ( localizeWithPath(
|
|
1632
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1633
|
-
'customizeLayoutQuickPickTitle',
|
|
1634
|
-
"Customize Layout"
|
|
1635
|
-
));
|
|
1305
|
+
quickPick.title = ( localizeWithPath(_moduleId, 116, "Customize Layout"));
|
|
1636
1306
|
const closeButton = {
|
|
1637
1307
|
alwaysVisible: true,
|
|
1638
1308
|
iconClass: ThemeIcon.asClassName(Codicon.close),
|
|
1639
|
-
tooltip: ( localizeWithPath(
|
|
1309
|
+
tooltip: ( localizeWithPath(_moduleId, 117, "Close"))
|
|
1640
1310
|
};
|
|
1641
1311
|
const resetButton = {
|
|
1642
1312
|
alwaysVisible: true,
|
|
1643
1313
|
iconClass: ThemeIcon.asClassName(Codicon.discard),
|
|
1644
|
-
tooltip: ( localizeWithPath(
|
|
1645
|
-
'vs/workbench/browser/actions/layoutActions',
|
|
1646
|
-
'restore defaults',
|
|
1647
|
-
"Restore Defaults"
|
|
1648
|
-
))
|
|
1314
|
+
tooltip: ( localizeWithPath(_moduleId, 118, "Restore Defaults"))
|
|
1649
1315
|
};
|
|
1650
1316
|
quickPick.buttons = [
|
|
1651
1317
|
resetButton,
|
|
1652
1318
|
closeButton
|
|
1653
1319
|
];
|
|
1654
|
-
const disposables = ( new DisposableStore());
|
|
1320
|
+
const disposables = ( (new DisposableStore()));
|
|
1655
1321
|
let selectedItem = undefined;
|
|
1656
1322
|
disposables.add(contextKeyService.onDidChangeContext(changeEvent => {
|
|
1657
1323
|
if (changeEvent.affectsSome(LayoutContextKeySet)) {
|