@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
|
@@ -62,9 +62,11 @@ import { Codicon } from '../../../../base/common/codicons.js';
|
|
|
62
62
|
import { defaultButtonStyles, defaultInputBoxStyles } from '../../../../platform/theme/browser/defaultStyles.js';
|
|
63
63
|
import { makeAddress, forwardedPortsViewEnabled, parseAddress, TunnelCloseReason, mapHasAddressLocalhostOrAllInterfaces, TunnelSource } from '../../../services/remote/common/tunnelModel.js';
|
|
64
64
|
import { getDefaultHoverDelegate } from '../../../../base/browser/ui/hover/hoverDelegateFactory.js';
|
|
65
|
+
import { IHoverService } from '../../../../platform/hover/browser/hover.service.js';
|
|
65
66
|
import Severity$1 from '../../../../base/common/severity.js';
|
|
66
67
|
var TunnelPanel_1;
|
|
67
|
-
const
|
|
68
|
+
const _moduleId = "vs/workbench/contrib/remote/browser/tunnelView";
|
|
69
|
+
const openPreviewEnabledContext = ( (new RawContextKey('openPreviewEnabled', false)));
|
|
68
70
|
class TunnelTreeVirtualDelegate {
|
|
69
71
|
constructor(remoteExplorerService) {
|
|
70
72
|
this.remoteExplorerService = remoteExplorerService;
|
|
@@ -78,13 +80,9 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
78
80
|
constructor(remoteExplorerService, tunnelService) {
|
|
79
81
|
this.remoteExplorerService = remoteExplorerService;
|
|
80
82
|
this.tunnelService = tunnelService;
|
|
81
|
-
this._candidates = ( new Map());
|
|
83
|
+
this._candidates = ( (new Map()));
|
|
82
84
|
this.input = {
|
|
83
|
-
label: ( localizeWithPath(
|
|
84
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
85
|
-
'remote.tunnelsView.addPort',
|
|
86
|
-
"Add Port"
|
|
87
|
-
)),
|
|
85
|
+
label: ( localizeWithPath(_moduleId, 0, "Add Port")),
|
|
88
86
|
icon: undefined,
|
|
89
87
|
tunnelType: TunnelType.Add,
|
|
90
88
|
hasRunningProcess: false,
|
|
@@ -102,11 +100,7 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
102
100
|
privacy: {
|
|
103
101
|
id: TunnelPrivacyId.Private,
|
|
104
102
|
themeIcon: privatePortIcon.id,
|
|
105
|
-
label: ( localizeWithPath(
|
|
106
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
107
|
-
'tunnelPrivacy.private',
|
|
108
|
-
"Private"
|
|
109
|
-
))
|
|
103
|
+
label: ( localizeWithPath(_moduleId, 1, "Private"))
|
|
110
104
|
},
|
|
111
105
|
strip: () => undefined
|
|
112
106
|
};
|
|
@@ -115,7 +109,7 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
115
109
|
}
|
|
116
110
|
get all() {
|
|
117
111
|
const result = [];
|
|
118
|
-
this._candidates = ( new Map());
|
|
112
|
+
this._candidates = ( (new Map()));
|
|
119
113
|
this.model.candidates.forEach(candidate => {
|
|
120
114
|
this._candidates.set(makeAddress(candidate.host, candidate.port), candidate);
|
|
121
115
|
});
|
|
@@ -130,16 +124,16 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
130
124
|
}
|
|
131
125
|
addProcessInfoFromCandidate(tunnelItem) {
|
|
132
126
|
const key = makeAddress(tunnelItem.remoteHost, tunnelItem.remotePort);
|
|
133
|
-
if (( this._candidates.has(key))) {
|
|
127
|
+
if (( (this._candidates.has(key)))) {
|
|
134
128
|
tunnelItem.processDescription = this._candidates.get(key).detail;
|
|
135
129
|
}
|
|
136
130
|
}
|
|
137
131
|
get forwarded() {
|
|
138
|
-
const forwarded = ( Array.from(( this.model.forwarded.values())).map(tunnel => {
|
|
132
|
+
const forwarded = ( (Array.from(( (this.model.forwarded.values()))).map(tunnel => {
|
|
139
133
|
const tunnelItem = TunnelItem.createFromTunnel(this.remoteExplorerService, this.tunnelService, tunnel);
|
|
140
134
|
this.addProcessInfoFromCandidate(tunnelItem);
|
|
141
135
|
return tunnelItem;
|
|
142
|
-
})).sort((a, b) => {
|
|
136
|
+
}))).sort((a, b) => {
|
|
143
137
|
if (a.remotePort === b.remotePort) {
|
|
144
138
|
return a.remoteHost < b.remoteHost ? -1 : 1;
|
|
145
139
|
}
|
|
@@ -150,11 +144,13 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
150
144
|
return forwarded;
|
|
151
145
|
}
|
|
152
146
|
get detected() {
|
|
153
|
-
return (
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
147
|
+
return (
|
|
148
|
+
(Array.from(( (this.model.detected.values()))).map(tunnel => {
|
|
149
|
+
const tunnelItem = TunnelItem.createFromTunnel(this.remoteExplorerService, this.tunnelService, tunnel, TunnelType.Detected, false);
|
|
150
|
+
this.addProcessInfoFromCandidate(tunnelItem);
|
|
151
|
+
return tunnelItem;
|
|
152
|
+
}))
|
|
153
|
+
);
|
|
158
154
|
}
|
|
159
155
|
isEmpty() {
|
|
160
156
|
return (this.detected.length === 0) &&
|
|
@@ -162,10 +158,10 @@ let TunnelViewModel = class TunnelViewModel {
|
|
|
162
158
|
(this.forwarded[0].tunnelType === TunnelType.Add) && !this.remoteExplorerService.getEditableData(undefined)));
|
|
163
159
|
}
|
|
164
160
|
};
|
|
165
|
-
TunnelViewModel = ( __decorate([
|
|
166
|
-
( __param(0, IRemoteExplorerService)),
|
|
167
|
-
( __param(1, ITunnelService))
|
|
168
|
-
], TunnelViewModel));
|
|
161
|
+
TunnelViewModel = ( (__decorate([
|
|
162
|
+
( (__param(0, IRemoteExplorerService))),
|
|
163
|
+
( (__param(1, ITunnelService)))
|
|
164
|
+
], TunnelViewModel)));
|
|
169
165
|
function emptyCell(item) {
|
|
170
166
|
return { label: '', tunnel: item, editId: TunnelEditId.None, tooltip: '' };
|
|
171
167
|
}
|
|
@@ -194,16 +190,8 @@ class IconColumn {
|
|
|
194
190
|
}
|
|
195
191
|
class PortColumn {
|
|
196
192
|
constructor() {
|
|
197
|
-
this.label = ( localizeWithPath(
|
|
198
|
-
|
|
199
|
-
'tunnel.portColumn.label',
|
|
200
|
-
"Port"
|
|
201
|
-
));
|
|
202
|
-
this.tooltip = ( localizeWithPath(
|
|
203
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
204
|
-
'tunnel.portColumn.tooltip',
|
|
205
|
-
"The label and remote port number of the forwarded port."
|
|
206
|
-
));
|
|
193
|
+
this.label = ( localizeWithPath(_moduleId, 2, "Port"));
|
|
194
|
+
this.tooltip = ( localizeWithPath(_moduleId, 3, "The label and remote port number of the forwarded port."));
|
|
207
195
|
this.weight = 1;
|
|
208
196
|
this.templateId = 'actionbar';
|
|
209
197
|
}
|
|
@@ -225,16 +213,8 @@ class PortColumn {
|
|
|
225
213
|
}
|
|
226
214
|
class LocalAddressColumn {
|
|
227
215
|
constructor() {
|
|
228
|
-
this.label = ( localizeWithPath(
|
|
229
|
-
|
|
230
|
-
'tunnel.addressColumn.label',
|
|
231
|
-
"Forwarded Address"
|
|
232
|
-
));
|
|
233
|
-
this.tooltip = ( localizeWithPath(
|
|
234
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
235
|
-
'tunnel.addressColumn.tooltip',
|
|
236
|
-
"The address that the forwarded port is available at."
|
|
237
|
-
));
|
|
216
|
+
this.label = ( localizeWithPath(_moduleId, 4, "Forwarded Address"));
|
|
217
|
+
this.tooltip = ( localizeWithPath(_moduleId, 5, "The address that the forwarded port is available at."));
|
|
238
218
|
this.weight = 1;
|
|
239
219
|
this.templateId = 'actionbar';
|
|
240
220
|
}
|
|
@@ -262,37 +242,21 @@ class LocalAddressColumn {
|
|
|
262
242
|
let clickLabel = '';
|
|
263
243
|
if (editorConf.multiCursorModifier === 'ctrlCmd') {
|
|
264
244
|
if (isMacintosh) {
|
|
265
|
-
clickLabel = ( localizeWithPath(
|
|
266
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
267
|
-
'portsLink.followLinkAlt.mac',
|
|
268
|
-
"option + click"
|
|
269
|
-
));
|
|
245
|
+
clickLabel = ( localizeWithPath(_moduleId, 6, "option + click"));
|
|
270
246
|
}
|
|
271
247
|
else {
|
|
272
|
-
clickLabel = ( localizeWithPath(
|
|
273
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
274
|
-
'portsLink.followLinkAlt',
|
|
275
|
-
"alt + click"
|
|
276
|
-
));
|
|
248
|
+
clickLabel = ( localizeWithPath(_moduleId, 7, "alt + click"));
|
|
277
249
|
}
|
|
278
250
|
}
|
|
279
251
|
else {
|
|
280
252
|
if (isMacintosh) {
|
|
281
|
-
clickLabel = ( localizeWithPath(
|
|
282
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
283
|
-
'portsLink.followLinkCmd',
|
|
284
|
-
"cmd + click"
|
|
285
|
-
));
|
|
253
|
+
clickLabel = ( localizeWithPath(_moduleId, 8, "cmd + click"));
|
|
286
254
|
}
|
|
287
255
|
else {
|
|
288
|
-
clickLabel = ( localizeWithPath(
|
|
289
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
290
|
-
'portsLink.followLinkCtrl',
|
|
291
|
-
"ctrl + click"
|
|
292
|
-
));
|
|
256
|
+
clickLabel = ( localizeWithPath(_moduleId, 9, "ctrl + click"));
|
|
293
257
|
}
|
|
294
258
|
}
|
|
295
|
-
const markdown = ( new MarkdownString('', true));
|
|
259
|
+
const markdown = ( (new MarkdownString('', true)));
|
|
296
260
|
const uri = localAddress.startsWith('http') ? localAddress : `http://${localAddress}`;
|
|
297
261
|
return markdown.appendLink(uri, 'Follow link').appendMarkdown(` (${clickLabel})`);
|
|
298
262
|
};
|
|
@@ -300,16 +264,8 @@ class LocalAddressColumn {
|
|
|
300
264
|
}
|
|
301
265
|
class RunningProcessColumn {
|
|
302
266
|
constructor() {
|
|
303
|
-
this.label = ( localizeWithPath(
|
|
304
|
-
|
|
305
|
-
'tunnel.processColumn.label',
|
|
306
|
-
"Running Process"
|
|
307
|
-
));
|
|
308
|
-
this.tooltip = ( localizeWithPath(
|
|
309
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
310
|
-
'tunnel.processColumn.tooltip',
|
|
311
|
-
"The command line of the process that is using the port."
|
|
312
|
-
));
|
|
267
|
+
this.label = ( localizeWithPath(_moduleId, 10, "Running Process"));
|
|
268
|
+
this.tooltip = ( localizeWithPath(_moduleId, 11, "The command line of the process that is using the port."));
|
|
313
269
|
this.weight = 2;
|
|
314
270
|
this.templateId = 'actionbar';
|
|
315
271
|
}
|
|
@@ -323,14 +279,10 @@ class RunningProcessColumn {
|
|
|
323
279
|
}
|
|
324
280
|
class OriginColumn {
|
|
325
281
|
constructor() {
|
|
326
|
-
this.label = ( localizeWithPath(
|
|
327
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
328
|
-
'tunnel.originColumn.label',
|
|
329
|
-
"Origin"
|
|
330
|
-
));
|
|
282
|
+
this.label = ( localizeWithPath(_moduleId, 12, "Origin"));
|
|
331
283
|
this.tooltip = ( localizeWithPath(
|
|
332
|
-
|
|
333
|
-
|
|
284
|
+
_moduleId,
|
|
285
|
+
13,
|
|
334
286
|
"The source that a forwarded port originates from. Can be an extension, user forwarded, statically forwarded, or automatically forwarded."
|
|
335
287
|
));
|
|
336
288
|
this.weight = 1;
|
|
@@ -347,16 +299,8 @@ class OriginColumn {
|
|
|
347
299
|
}
|
|
348
300
|
class PrivacyColumn {
|
|
349
301
|
constructor() {
|
|
350
|
-
this.label = ( localizeWithPath(
|
|
351
|
-
|
|
352
|
-
'tunnel.privacyColumn.label',
|
|
353
|
-
"Visibility"
|
|
354
|
-
));
|
|
355
|
-
this.tooltip = ( localizeWithPath(
|
|
356
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
357
|
-
'tunnel.privacyColumn.tooltip',
|
|
358
|
-
"The availability of the forwarded port."
|
|
359
|
-
));
|
|
302
|
+
this.label = ( localizeWithPath(_moduleId, 14, "Visibility"));
|
|
303
|
+
this.tooltip = ( localizeWithPath(_moduleId, 15, "The availability of the forwarded port."));
|
|
360
304
|
this.weight = 1;
|
|
361
305
|
this.templateId = 'actionbar';
|
|
362
306
|
}
|
|
@@ -391,15 +335,15 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
391
335
|
renderTemplate(container) {
|
|
392
336
|
const cell = append(container, $('.ports-view-actionbar-cell'));
|
|
393
337
|
const icon = append(cell, $('.ports-view-actionbar-cell-icon'));
|
|
394
|
-
const label = ( new IconLabel(cell, {
|
|
338
|
+
const label = ( (new IconLabel(cell, {
|
|
395
339
|
supportHighlights: true,
|
|
396
340
|
hoverDelegate: this._hoverDelegate
|
|
397
|
-
}));
|
|
341
|
+
})));
|
|
398
342
|
const actionsContainer = append(cell, $('.actions'));
|
|
399
|
-
const actionBar = ( new ActionBar(actionsContainer, {
|
|
343
|
+
const actionBar = ( (new ActionBar(actionsContainer, {
|
|
400
344
|
actionViewItemProvider: createActionViewItem.bind(undefined, this.instantiationService),
|
|
401
345
|
hoverDelegate: this._hoverDelegate
|
|
402
|
-
}));
|
|
346
|
+
})));
|
|
403
347
|
return { label, icon, actionBar, container: cell, elementDisposable: Disposable.None };
|
|
404
348
|
}
|
|
405
349
|
renderElement(element, index, templateData) {
|
|
@@ -435,7 +379,7 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
435
379
|
renderButton(element, templateData) {
|
|
436
380
|
templateData.container.style.paddingLeft = '7px';
|
|
437
381
|
templateData.container.style.height = '28px';
|
|
438
|
-
templateData.button = this._register(( new Button(templateData.container, defaultButtonStyles)));
|
|
382
|
+
templateData.button = this._register(( (new Button(templateData.container, defaultButtonStyles))));
|
|
439
383
|
templateData.button.label = element.label;
|
|
440
384
|
templateData.button.element.title = element.tooltip;
|
|
441
385
|
this._register(templateData.button.onDidClick(() => {
|
|
@@ -484,7 +428,7 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
484
428
|
[TunnelProtocolContextKey.key, element.tunnel.protocol]
|
|
485
429
|
];
|
|
486
430
|
const contextKeyService = this.contextKeyService.createOverlay(context);
|
|
487
|
-
const disposableStore = ( new DisposableStore());
|
|
431
|
+
const disposableStore = ( (new DisposableStore()));
|
|
488
432
|
templateData.elementDisposable = disposableStore;
|
|
489
433
|
if (element.menuId) {
|
|
490
434
|
const menu = disposableStore.add(this.menuService.createMenu(element.menuId, contextKeyService));
|
|
@@ -516,12 +460,8 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
516
460
|
}
|
|
517
461
|
container.style.paddingLeft = '5px';
|
|
518
462
|
const value = editableData.startingValue || '';
|
|
519
|
-
const inputBox = ( new InputBox(container, this.contextViewService, {
|
|
520
|
-
ariaLabel: ( localizeWithPath(
|
|
521
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
522
|
-
'remote.tunnelsView.input',
|
|
523
|
-
"Press Enter to confirm or Escape to cancel."
|
|
524
|
-
)),
|
|
463
|
+
const inputBox = ( (new InputBox(container, this.contextViewService, {
|
|
464
|
+
ariaLabel: ( localizeWithPath(_moduleId, 16, "Press Enter to confirm or Escape to cancel.")),
|
|
525
465
|
validationOptions: {
|
|
526
466
|
validation: (value) => {
|
|
527
467
|
const message = editableData.validationMessage(value);
|
|
@@ -537,7 +477,7 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
537
477
|
},
|
|
538
478
|
placeholder: editableData.placeholder || '',
|
|
539
479
|
inputBoxStyles: defaultInputBoxStyles
|
|
540
|
-
}));
|
|
480
|
+
})));
|
|
541
481
|
inputBox.value = value;
|
|
542
482
|
inputBox.focus();
|
|
543
483
|
inputBox.select({ start: 0, end: editableData.startingValue ? editableData.startingValue.length : 0 });
|
|
@@ -589,53 +529,57 @@ let ActionBarRenderer = class ActionBarRenderer extends Disposable {
|
|
|
589
529
|
templateData.button?.dispose();
|
|
590
530
|
}
|
|
591
531
|
};
|
|
592
|
-
ActionBarRenderer = ( __decorate([
|
|
593
|
-
( __param(0, IInstantiationService)),
|
|
594
|
-
( __param(1, IContextKeyService)),
|
|
595
|
-
( __param(2, IMenuService)),
|
|
596
|
-
( __param(3, IContextViewService)),
|
|
597
|
-
( __param(4, IRemoteExplorerService)),
|
|
598
|
-
( __param(5, ICommandService)),
|
|
599
|
-
( __param(6, IConfigurationService))
|
|
600
|
-
], ActionBarRenderer));
|
|
532
|
+
ActionBarRenderer = ( (__decorate([
|
|
533
|
+
( (__param(0, IInstantiationService))),
|
|
534
|
+
( (__param(1, IContextKeyService))),
|
|
535
|
+
( (__param(2, IMenuService))),
|
|
536
|
+
( (__param(3, IContextViewService))),
|
|
537
|
+
( (__param(4, IRemoteExplorerService))),
|
|
538
|
+
( (__param(5, ICommandService))),
|
|
539
|
+
( (__param(6, IConfigurationService)))
|
|
540
|
+
], ActionBarRenderer)));
|
|
601
541
|
class TunnelItem {
|
|
602
542
|
static createFromTunnel(remoteExplorerService, tunnelService, tunnel, type = TunnelType.Forwarded, closeable) {
|
|
603
|
-
return (
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
543
|
+
return (
|
|
544
|
+
(new TunnelItem(
|
|
545
|
+
type,
|
|
546
|
+
tunnel.remoteHost,
|
|
547
|
+
tunnel.remotePort,
|
|
548
|
+
tunnel.source,
|
|
549
|
+
!!tunnel.hasRunningProcess,
|
|
550
|
+
tunnel.protocol,
|
|
551
|
+
tunnel.localUri,
|
|
552
|
+
tunnel.localAddress,
|
|
553
|
+
tunnel.localPort,
|
|
554
|
+
closeable === undefined ? tunnel.closeable : closeable,
|
|
555
|
+
tunnel.name,
|
|
556
|
+
tunnel.runningProcess,
|
|
557
|
+
tunnel.pid,
|
|
558
|
+
tunnel.privacy,
|
|
559
|
+
remoteExplorerService,
|
|
560
|
+
tunnelService
|
|
561
|
+
))
|
|
562
|
+
);
|
|
621
563
|
}
|
|
622
564
|
strip() {
|
|
623
|
-
return (
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
565
|
+
return (
|
|
566
|
+
(new TunnelItem(
|
|
567
|
+
this.tunnelType,
|
|
568
|
+
this.remoteHost,
|
|
569
|
+
this.remotePort,
|
|
570
|
+
this.source,
|
|
571
|
+
this.hasRunningProcess,
|
|
572
|
+
this.protocol,
|
|
573
|
+
this.localUri,
|
|
574
|
+
this.localAddress,
|
|
575
|
+
this.localPort,
|
|
576
|
+
this.closeable,
|
|
577
|
+
this.name,
|
|
578
|
+
this.runningProcess,
|
|
579
|
+
this.pid,
|
|
580
|
+
this._privacy
|
|
581
|
+
))
|
|
582
|
+
);
|
|
639
583
|
}
|
|
640
584
|
constructor(tunnelType, remoteHost, remotePort, source, hasRunningProcess, protocol, localUri, localAddress, localPort, closeable, name, runningProcess, pid, _privacy, remoteExplorerService, tunnelService) {
|
|
641
585
|
this.tunnelType = tunnelType;
|
|
@@ -686,11 +630,7 @@ class TunnelItem {
|
|
|
686
630
|
}
|
|
687
631
|
}
|
|
688
632
|
else if (this.hasRunningProcess) {
|
|
689
|
-
description = ( localizeWithPath(
|
|
690
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
691
|
-
'tunnelView.runningProcess.inacessable',
|
|
692
|
-
"Process information unavailable"
|
|
693
|
-
));
|
|
633
|
+
description = ( localizeWithPath(_moduleId, 17, "Process information unavailable"));
|
|
694
634
|
}
|
|
695
635
|
return description;
|
|
696
636
|
}
|
|
@@ -698,8 +638,8 @@ class TunnelItem {
|
|
|
698
638
|
let information;
|
|
699
639
|
if (this.localAddress) {
|
|
700
640
|
information = ( localizeWithPath(
|
|
701
|
-
|
|
702
|
-
|
|
641
|
+
_moduleId,
|
|
642
|
+
18,
|
|
703
643
|
"Remote port {0}:{1} forwarded to local address {2}. ",
|
|
704
644
|
this.remoteHost,
|
|
705
645
|
this.remotePort,
|
|
@@ -708,8 +648,8 @@ class TunnelItem {
|
|
|
708
648
|
}
|
|
709
649
|
else {
|
|
710
650
|
information = ( localizeWithPath(
|
|
711
|
-
|
|
712
|
-
|
|
651
|
+
_moduleId,
|
|
652
|
+
19,
|
|
713
653
|
"Remote port {0}:{1} not forwarded. ",
|
|
714
654
|
this.remoteHost,
|
|
715
655
|
this.remotePort
|
|
@@ -720,16 +660,8 @@ class TunnelItem {
|
|
|
720
660
|
get iconTooltip() {
|
|
721
661
|
const isAdd = this.tunnelType === TunnelType.Add;
|
|
722
662
|
if (!isAdd) {
|
|
723
|
-
return `${this.processDescription ? ( localizeWithPath(
|
|
724
|
-
|
|
725
|
-
'tunnel.iconColumn.running',
|
|
726
|
-
"Port has running process."
|
|
727
|
-
)) :
|
|
728
|
-
( localizeWithPath(
|
|
729
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
730
|
-
'tunnel.iconColumn.notRunning',
|
|
731
|
-
"No running process."
|
|
732
|
-
))}`;
|
|
663
|
+
return `${this.processDescription ? ( localizeWithPath(_moduleId, 20, "Port has running process.")) :
|
|
664
|
+
( localizeWithPath(_moduleId, 21, "No running process."))}`;
|
|
733
665
|
}
|
|
734
666
|
else {
|
|
735
667
|
return this.label;
|
|
@@ -738,12 +670,7 @@ class TunnelItem {
|
|
|
738
670
|
get portTooltip() {
|
|
739
671
|
const isAdd = this.tunnelType === TunnelType.Add;
|
|
740
672
|
if (!isAdd) {
|
|
741
|
-
return `${this.name ? ( localizeWithPath(
|
|
742
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
743
|
-
'remote.tunnel.tooltipName',
|
|
744
|
-
"Port labeled {0}. ",
|
|
745
|
-
this.name
|
|
746
|
-
)) : ''}`;
|
|
673
|
+
return `${this.name ? ( localizeWithPath(_moduleId, 22, "Port labeled {0}. ", this.name)) : ''}`;
|
|
747
674
|
}
|
|
748
675
|
else {
|
|
749
676
|
return '';
|
|
@@ -761,48 +688,36 @@ class TunnelItem {
|
|
|
761
688
|
{
|
|
762
689
|
id: '',
|
|
763
690
|
themeIcon: Codicon.question.id,
|
|
764
|
-
label: ( localizeWithPath(
|
|
765
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
766
|
-
'tunnelPrivacy.unknown',
|
|
767
|
-
"Unknown"
|
|
768
|
-
))
|
|
691
|
+
label: ( localizeWithPath(_moduleId, 23, "Unknown"))
|
|
769
692
|
};
|
|
770
693
|
}
|
|
771
694
|
else {
|
|
772
695
|
return {
|
|
773
696
|
id: TunnelPrivacyId.Private,
|
|
774
697
|
themeIcon: privatePortIcon.id,
|
|
775
|
-
label: ( localizeWithPath(
|
|
776
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
777
|
-
'tunnelPrivacy.private',
|
|
778
|
-
"Private"
|
|
779
|
-
))
|
|
698
|
+
label: ( localizeWithPath(_moduleId, 1, "Private"))
|
|
780
699
|
};
|
|
781
700
|
}
|
|
782
701
|
}
|
|
783
702
|
}
|
|
784
|
-
const TunnelTypeContextKey = ( new RawContextKey('tunnelType', TunnelType.Add, true));
|
|
785
|
-
const TunnelCloseableContextKey = ( new RawContextKey('tunnelCloseable', false, true));
|
|
786
|
-
const TunnelPrivacyContextKey = ( new RawContextKey('tunnelPrivacy', undefined, true));
|
|
787
|
-
const TunnelPrivacyEnabledContextKey = ( new RawContextKey('tunnelPrivacyEnabled', false, true));
|
|
788
|
-
const TunnelProtocolContextKey = ( new RawContextKey('tunnelProtocol', TunnelProtocol.Http, true));
|
|
789
|
-
const TunnelViewFocusContextKey = ( new RawContextKey('tunnelViewFocus', false, ( localizeWithPath(
|
|
790
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
791
|
-
'tunnel.focusContext',
|
|
792
|
-
"Whether the Ports view has focus."
|
|
793
|
-
))));
|
|
703
|
+
const TunnelTypeContextKey = ( (new RawContextKey('tunnelType', TunnelType.Add, true)));
|
|
704
|
+
const TunnelCloseableContextKey = ( (new RawContextKey('tunnelCloseable', false, true)));
|
|
705
|
+
const TunnelPrivacyContextKey = ( (new RawContextKey('tunnelPrivacy', undefined, true)));
|
|
706
|
+
const TunnelPrivacyEnabledContextKey = ( (new RawContextKey('tunnelPrivacyEnabled', false, true)));
|
|
707
|
+
const TunnelProtocolContextKey = ( (new RawContextKey('tunnelProtocol', TunnelProtocol.Http, true)));
|
|
708
|
+
const TunnelViewFocusContextKey = ( (new RawContextKey('tunnelViewFocus', false, ( localizeWithPath(_moduleId, 24, "Whether the Ports view has focus.")))));
|
|
794
709
|
const TunnelViewSelectionKeyName = 'tunnelViewSelection';
|
|
795
|
-
const TunnelViewSelectionContextKey = ( new RawContextKey(TunnelViewSelectionKeyName, undefined, true));
|
|
710
|
+
const TunnelViewSelectionContextKey = ( (new RawContextKey(TunnelViewSelectionKeyName, undefined, true)));
|
|
796
711
|
const TunnelViewMultiSelectionKeyName = 'tunnelViewMultiSelection';
|
|
797
|
-
const TunnelViewMultiSelectionContextKey = ( new RawContextKey(TunnelViewMultiSelectionKeyName, undefined, true));
|
|
798
|
-
const PortChangableContextKey = ( new RawContextKey('portChangable', false, true));
|
|
799
|
-
const ProtocolChangeableContextKey = ( new RawContextKey('protocolChangable', true, true));
|
|
712
|
+
const TunnelViewMultiSelectionContextKey = ( (new RawContextKey(TunnelViewMultiSelectionKeyName, undefined, true)));
|
|
713
|
+
const PortChangableContextKey = ( (new RawContextKey('portChangable', false, true)));
|
|
714
|
+
const ProtocolChangeableContextKey = ( (new RawContextKey('protocolChangable', true, true)));
|
|
800
715
|
let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
801
716
|
static { TunnelPanel_1 = this; }
|
|
802
717
|
static { this.ID = TUNNEL_VIEW_ID; }
|
|
803
|
-
static { this.TITLE = ( localize2WithPath(
|
|
804
|
-
constructor(viewModel, options, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, menuService, themeService, remoteExplorerService, telemetryService, tunnelService, contextViewService) {
|
|
805
|
-
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService);
|
|
718
|
+
static { this.TITLE = ( localize2WithPath(_moduleId, 25, "Ports")); }
|
|
719
|
+
constructor(viewModel, options, keybindingService, contextMenuService, contextKeyService, configurationService, instantiationService, viewDescriptorService, openerService, quickInputService, commandService, menuService, themeService, remoteExplorerService, telemetryService, hoverService, tunnelService, contextViewService) {
|
|
720
|
+
super(options, keybindingService, contextMenuService, configurationService, contextKeyService, viewDescriptorService, instantiationService, openerService, themeService, telemetryService, hoverService);
|
|
806
721
|
this.viewModel = viewModel;
|
|
807
722
|
this.quickInputService = quickInputService;
|
|
808
723
|
this.commandService = commandService;
|
|
@@ -810,7 +725,7 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
810
725
|
this.remoteExplorerService = remoteExplorerService;
|
|
811
726
|
this.tunnelService = tunnelService;
|
|
812
727
|
this.contextViewService = contextViewService;
|
|
813
|
-
this.tableDisposables = this._register(( new DisposableStore()));
|
|
728
|
+
this.tableDisposables = this._register(( (new DisposableStore())));
|
|
814
729
|
this.isEditing = false;
|
|
815
730
|
this.titleActions = [];
|
|
816
731
|
this.lastFocus = [];
|
|
@@ -868,7 +783,7 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
868
783
|
command: {
|
|
869
784
|
id: optionId,
|
|
870
785
|
title: privacyOption.label,
|
|
871
|
-
toggled: ( TunnelPrivacyContextKey.isEqualTo(privacyOption.id))
|
|
786
|
+
toggled: ( (TunnelPrivacyContextKey.isEqualTo(privacyOption.id)))
|
|
872
787
|
}
|
|
873
788
|
}));
|
|
874
789
|
}
|
|
@@ -885,7 +800,7 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
885
800
|
const widgetContainer = append(this.panelContainer, $('.customview-tree'));
|
|
886
801
|
widgetContainer.classList.add('ports-view');
|
|
887
802
|
widgetContainer.classList.add('file-icon-themable-tree', 'show-file-icons');
|
|
888
|
-
const actionBarRenderer = ( new ActionBarRenderer(
|
|
803
|
+
const actionBarRenderer = ( (new ActionBarRenderer(
|
|
889
804
|
this.instantiationService,
|
|
890
805
|
this.contextKeyService,
|
|
891
806
|
this.menuService,
|
|
@@ -893,13 +808,13 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
893
808
|
this.remoteExplorerService,
|
|
894
809
|
this.commandService,
|
|
895
810
|
this.configurationService
|
|
896
|
-
));
|
|
897
|
-
const columns = [( new IconColumn()), ( new PortColumn()), ( new LocalAddressColumn()), ( new RunningProcessColumn())];
|
|
811
|
+
)));
|
|
812
|
+
const columns = [( (new IconColumn())), ( (new PortColumn())), ( (new LocalAddressColumn())), ( (new RunningProcessColumn()))];
|
|
898
813
|
if (this.tunnelService.canChangePrivacy) {
|
|
899
|
-
columns.push(( new PrivacyColumn()));
|
|
814
|
+
columns.push(( (new PrivacyColumn())));
|
|
900
815
|
}
|
|
901
|
-
columns.push(( new OriginColumn()));
|
|
902
|
-
this.table = this.instantiationService.createInstance(WorkbenchTable, 'RemoteTunnels', widgetContainer, ( new TunnelTreeVirtualDelegate(this.remoteExplorerService)), columns, [actionBarRenderer], {
|
|
816
|
+
columns.push(( (new OriginColumn())));
|
|
817
|
+
this.table = this.instantiationService.createInstance(WorkbenchTable, 'RemoteTunnels', widgetContainer, ( (new TunnelTreeVirtualDelegate(this.remoteExplorerService))), columns, [actionBarRenderer], {
|
|
903
818
|
keyboardNavigationLabelProvider: {
|
|
904
819
|
getKeyboardNavigationLabel: (item) => {
|
|
905
820
|
return item.label;
|
|
@@ -915,15 +830,11 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
915
830
|
return item.label;
|
|
916
831
|
}
|
|
917
832
|
},
|
|
918
|
-
getWidgetAriaLabel: () => ( localizeWithPath(
|
|
919
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
920
|
-
'tunnelView',
|
|
921
|
-
"Tunnel View"
|
|
922
|
-
))
|
|
833
|
+
getWidgetAriaLabel: () => ( localizeWithPath(_moduleId, 26, "Tunnel View"))
|
|
923
834
|
},
|
|
924
835
|
openOnSingleClick: true
|
|
925
836
|
});
|
|
926
|
-
const actionRunner = ( new ActionRunner());
|
|
837
|
+
const actionRunner = ( (new ActionRunner()));
|
|
927
838
|
actionBarRenderer.actionRunner = actionRunner;
|
|
928
839
|
this.tableDisposables.add(this.table);
|
|
929
840
|
this.tableDisposables.add(this.table.onContextMenu(e => this.onContextMenu(e, actionRunner)));
|
|
@@ -1035,7 +946,7 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
1035
946
|
onSelectionChanged(event) {
|
|
1036
947
|
const elements = event.elements;
|
|
1037
948
|
if (elements.length > 1) {
|
|
1038
|
-
this.tunnelViewMultiSelectionContext.set(( elements.map(element => makeAddress(element.remoteHost, element.remotePort))));
|
|
949
|
+
this.tunnelViewMultiSelectionContext.set(( (elements.map(element => makeAddress(element.remoteHost, element.remotePort)))));
|
|
1039
950
|
}
|
|
1040
951
|
else {
|
|
1041
952
|
this.tunnelViewMultiSelectionContext.set(undefined);
|
|
@@ -1071,7 +982,9 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
1071
982
|
getActionViewItem: (action) => {
|
|
1072
983
|
const keybinding = this.keybindingService.lookupKeybinding(action.id);
|
|
1073
984
|
if (keybinding) {
|
|
1074
|
-
return (
|
|
985
|
+
return (
|
|
986
|
+
(new ActionViewItem(action, action, { label: true, keybinding: keybinding.getLabel() }))
|
|
987
|
+
);
|
|
1075
988
|
}
|
|
1076
989
|
return undefined;
|
|
1077
990
|
},
|
|
@@ -1096,23 +1009,24 @@ let TunnelPanel = class TunnelPanel extends ViewPane {
|
|
|
1096
1009
|
this.table.layout(height, width);
|
|
1097
1010
|
}
|
|
1098
1011
|
};
|
|
1099
|
-
TunnelPanel = TunnelPanel_1 = ( __decorate([
|
|
1100
|
-
( __param(2, IKeybindingService)),
|
|
1101
|
-
( __param(3, IContextMenuService)),
|
|
1102
|
-
( __param(4, IContextKeyService)),
|
|
1103
|
-
( __param(5, IConfigurationService)),
|
|
1104
|
-
( __param(6, IInstantiationService)),
|
|
1105
|
-
( __param(7, IViewDescriptorService)),
|
|
1106
|
-
( __param(8, IOpenerService)),
|
|
1107
|
-
( __param(9, IQuickInputService)),
|
|
1108
|
-
( __param(10, ICommandService)),
|
|
1109
|
-
( __param(11, IMenuService)),
|
|
1110
|
-
( __param(12, IThemeService)),
|
|
1111
|
-
( __param(13, IRemoteExplorerService)),
|
|
1112
|
-
( __param(14, ITelemetryService)),
|
|
1113
|
-
( __param(15,
|
|
1114
|
-
( __param(16,
|
|
1115
|
-
|
|
1012
|
+
TunnelPanel = TunnelPanel_1 = ( (__decorate([
|
|
1013
|
+
( (__param(2, IKeybindingService))),
|
|
1014
|
+
( (__param(3, IContextMenuService))),
|
|
1015
|
+
( (__param(4, IContextKeyService))),
|
|
1016
|
+
( (__param(5, IConfigurationService))),
|
|
1017
|
+
( (__param(6, IInstantiationService))),
|
|
1018
|
+
( (__param(7, IViewDescriptorService))),
|
|
1019
|
+
( (__param(8, IOpenerService))),
|
|
1020
|
+
( (__param(9, IQuickInputService))),
|
|
1021
|
+
( (__param(10, ICommandService))),
|
|
1022
|
+
( (__param(11, IMenuService))),
|
|
1023
|
+
( (__param(12, IThemeService))),
|
|
1024
|
+
( (__param(13, IRemoteExplorerService))),
|
|
1025
|
+
( (__param(14, ITelemetryService))),
|
|
1026
|
+
( (__param(15, IHoverService))),
|
|
1027
|
+
( (__param(16, ITunnelService))),
|
|
1028
|
+
( (__param(17, IContextViewService)))
|
|
1029
|
+
], TunnelPanel)));
|
|
1116
1030
|
class TunnelPanelDescriptor {
|
|
1117
1031
|
constructor(viewModel, environmentService) {
|
|
1118
1032
|
this.id = TunnelPanel.ID;
|
|
@@ -1123,7 +1037,7 @@ class TunnelPanelDescriptor {
|
|
|
1123
1037
|
this.order = -500;
|
|
1124
1038
|
this.canMoveView = true;
|
|
1125
1039
|
this.containerIcon = portsViewIcon;
|
|
1126
|
-
this.ctorDescriptor = ( new SyncDescriptor(TunnelPanel, [viewModel]));
|
|
1040
|
+
this.ctorDescriptor = ( (new SyncDescriptor(TunnelPanel, [viewModel])));
|
|
1127
1041
|
this.remoteAuthority = environmentService.remoteAuthority ? environmentService.remoteAuthority.split('+')[0] : undefined;
|
|
1128
1042
|
}
|
|
1129
1043
|
}
|
|
@@ -1131,13 +1045,9 @@ function isITunnelItem(item) {
|
|
|
1131
1045
|
return item && item.tunnelType && item.remoteHost && item.source;
|
|
1132
1046
|
}
|
|
1133
1047
|
var LabelTunnelAction;
|
|
1134
|
-
( (function(LabelTunnelAction) {
|
|
1048
|
+
( ((function(LabelTunnelAction) {
|
|
1135
1049
|
LabelTunnelAction.ID = 'remote.tunnel.label';
|
|
1136
|
-
LabelTunnelAction.LABEL = ( localizeWithPath(
|
|
1137
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1138
|
-
'remote.tunnel.label',
|
|
1139
|
-
"Set Port Label"
|
|
1140
|
-
));
|
|
1050
|
+
LabelTunnelAction.LABEL = ( localizeWithPath(_moduleId, 27, "Set Port Label"));
|
|
1141
1051
|
LabelTunnelAction.COMMAND_ID_KEYWORD = 'label';
|
|
1142
1052
|
function handler() {
|
|
1143
1053
|
return async (accessor, arg) => {
|
|
@@ -1156,74 +1066,43 @@ var LabelTunnelAction;
|
|
|
1156
1066
|
}
|
|
1157
1067
|
if (tunnelContext) {
|
|
1158
1068
|
const tunnelItem = tunnelContext;
|
|
1159
|
-
return (
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
});
|
|
1179
|
-
}));
|
|
1069
|
+
return (
|
|
1070
|
+
(new Promise(resolve => {
|
|
1071
|
+
const startingValue = tunnelItem.name ? tunnelItem.name : `${tunnelItem.remotePort}`;
|
|
1072
|
+
remoteExplorerService.setEditable(tunnelItem, TunnelEditId.Label, {
|
|
1073
|
+
onFinish: async (value, success) => {
|
|
1074
|
+
value = value.trim();
|
|
1075
|
+
remoteExplorerService.setEditable(tunnelItem, TunnelEditId.Label, null);
|
|
1076
|
+
const changed = success && (value !== startingValue);
|
|
1077
|
+
if (changed) {
|
|
1078
|
+
await remoteExplorerService.tunnelModel.name(tunnelItem.remoteHost, tunnelItem.remotePort, value);
|
|
1079
|
+
}
|
|
1080
|
+
resolve(changed ? { port: tunnelItem.remotePort, label: value } : undefined);
|
|
1081
|
+
},
|
|
1082
|
+
validationMessage: () => null,
|
|
1083
|
+
placeholder: ( localizeWithPath(_moduleId, 28, "Port label")),
|
|
1084
|
+
startingValue
|
|
1085
|
+
});
|
|
1086
|
+
}))
|
|
1087
|
+
);
|
|
1180
1088
|
}
|
|
1181
1089
|
return undefined;
|
|
1182
1090
|
};
|
|
1183
1091
|
}
|
|
1184
1092
|
LabelTunnelAction.handler = handler;
|
|
1185
|
-
})(LabelTunnelAction || (LabelTunnelAction = {})));
|
|
1186
|
-
const invalidPortString = ( localizeWithPath(
|
|
1187
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1188
|
-
'remote.tunnelsView.portNumberValid',
|
|
1189
|
-
"Forwarded port should be a number or a host:port."
|
|
1190
|
-
));
|
|
1093
|
+
})(LabelTunnelAction || (LabelTunnelAction = {}))));
|
|
1094
|
+
const invalidPortString = ( localizeWithPath(_moduleId, 29, "Forwarded port should be a number or a host:port."));
|
|
1191
1095
|
const maxPortNumber = 65536;
|
|
1192
|
-
const invalidPortNumberString = ( localizeWithPath(
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
"Port number must be \u2265 0 and < {0}.",
|
|
1196
|
-
maxPortNumber
|
|
1197
|
-
));
|
|
1198
|
-
const requiresSudoString = ( localizeWithPath(
|
|
1199
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1200
|
-
'remote.tunnelView.inlineElevationMessage',
|
|
1201
|
-
"May Require Sudo"
|
|
1202
|
-
));
|
|
1203
|
-
const alreadyForwarded = ( localizeWithPath(
|
|
1204
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1205
|
-
'remote.tunnelView.alreadyForwarded',
|
|
1206
|
-
"Port is already forwarded"
|
|
1207
|
-
));
|
|
1096
|
+
const invalidPortNumberString = ( localizeWithPath(_moduleId, 30, "Port number must be \u2265 0 and < {0}.", maxPortNumber));
|
|
1097
|
+
const requiresSudoString = ( localizeWithPath(_moduleId, 31, "May Require Sudo"));
|
|
1098
|
+
const alreadyForwarded = ( localizeWithPath(_moduleId, 32, "Port is already forwarded"));
|
|
1208
1099
|
var ForwardPortAction;
|
|
1209
|
-
( (function(ForwardPortAction) {
|
|
1100
|
+
( ((function(ForwardPortAction) {
|
|
1210
1101
|
ForwardPortAction.INLINE_ID = 'remote.tunnel.forwardInline';
|
|
1211
1102
|
ForwardPortAction.COMMANDPALETTE_ID = 'remote.tunnel.forwardCommandPalette';
|
|
1212
|
-
ForwardPortAction.LABEL = ( localize2WithPath(
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
"Forward a Port"
|
|
1216
|
-
));
|
|
1217
|
-
ForwardPortAction.TREEITEM_LABEL = ( localizeWithPath(
|
|
1218
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1219
|
-
'remote.tunnel.forwardItem',
|
|
1220
|
-
"Forward Port"
|
|
1221
|
-
));
|
|
1222
|
-
const forwardPrompt = ( localizeWithPath(
|
|
1223
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1224
|
-
'remote.tunnel.forwardPrompt',
|
|
1225
|
-
"Port number or address (eg. 3000 or 10.10.10.10:2000)."
|
|
1226
|
-
));
|
|
1103
|
+
ForwardPortAction.LABEL = ( localize2WithPath(_moduleId, 33, "Forward a Port"));
|
|
1104
|
+
ForwardPortAction.TREEITEM_LABEL = ( localizeWithPath(_moduleId, 34, "Forward Port"));
|
|
1105
|
+
const forwardPrompt = ( localizeWithPath(_moduleId, 35, "Port number or address (eg. 3000 or 10.10.10.10:2000)."));
|
|
1227
1106
|
function validateInput(remoteExplorerService, tunnelService, value, canElevate) {
|
|
1228
1107
|
const parsed = parseAddress(value);
|
|
1229
1108
|
if (!parsed) {
|
|
@@ -1243,22 +1122,15 @@ var ForwardPortAction;
|
|
|
1243
1122
|
function error(notificationService, tunnelOrError, host, port) {
|
|
1244
1123
|
if (!tunnelOrError) {
|
|
1245
1124
|
notificationService.warn(( localizeWithPath(
|
|
1246
|
-
|
|
1247
|
-
|
|
1125
|
+
_moduleId,
|
|
1126
|
+
36,
|
|
1248
1127
|
"Unable to forward {0}:{1}. The host may not be available or that remote port may already be forwarded",
|
|
1249
1128
|
host,
|
|
1250
1129
|
port
|
|
1251
1130
|
)));
|
|
1252
1131
|
}
|
|
1253
1132
|
else if (typeof tunnelOrError === 'string') {
|
|
1254
|
-
notificationService.warn(( localizeWithPath(
|
|
1255
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1256
|
-
'remote.tunnel.forwardErrorProvided',
|
|
1257
|
-
"Unable to forward {0}:{1}. {2}",
|
|
1258
|
-
host,
|
|
1259
|
-
port,
|
|
1260
|
-
tunnelOrError
|
|
1261
|
-
)));
|
|
1133
|
+
notificationService.warn(( localizeWithPath(_moduleId, 37, "Unable to forward {0}:{1}. {2}", host, port, tunnelOrError)));
|
|
1262
1134
|
}
|
|
1263
1135
|
}
|
|
1264
1136
|
function inlineHandler() {
|
|
@@ -1305,21 +1177,21 @@ var ForwardPortAction;
|
|
|
1305
1177
|
};
|
|
1306
1178
|
}
|
|
1307
1179
|
ForwardPortAction.commandPaletteHandler = commandPaletteHandler;
|
|
1308
|
-
})(ForwardPortAction || (ForwardPortAction = {})));
|
|
1180
|
+
})(ForwardPortAction || (ForwardPortAction = {}))));
|
|
1309
1181
|
function makeTunnelPicks(tunnels, remoteExplorerService, tunnelService) {
|
|
1310
|
-
const picks = ( tunnels.map(forwarded => {
|
|
1182
|
+
const picks = ( (tunnels.map(forwarded => {
|
|
1311
1183
|
const item = TunnelItem.createFromTunnel(remoteExplorerService, tunnelService, forwarded);
|
|
1312
1184
|
return {
|
|
1313
1185
|
label: item.label,
|
|
1314
1186
|
description: item.processDescription,
|
|
1315
1187
|
tunnel: item
|
|
1316
1188
|
};
|
|
1317
|
-
}));
|
|
1189
|
+
})));
|
|
1318
1190
|
if (picks.length === 0) {
|
|
1319
1191
|
picks.push({
|
|
1320
1192
|
label: ( localizeWithPath(
|
|
1321
|
-
|
|
1322
|
-
|
|
1193
|
+
_moduleId,
|
|
1194
|
+
38,
|
|
1323
1195
|
"No ports currently forwarded. Try running the {0} command",
|
|
1324
1196
|
ForwardPortAction.LABEL.value
|
|
1325
1197
|
))
|
|
@@ -1328,14 +1200,10 @@ function makeTunnelPicks(tunnels, remoteExplorerService, tunnelService) {
|
|
|
1328
1200
|
return picks;
|
|
1329
1201
|
}
|
|
1330
1202
|
var ClosePortAction;
|
|
1331
|
-
( (function(ClosePortAction) {
|
|
1203
|
+
( ((function(ClosePortAction) {
|
|
1332
1204
|
ClosePortAction.INLINE_ID = 'remote.tunnel.closeInline';
|
|
1333
1205
|
ClosePortAction.COMMANDPALETTE_ID = 'remote.tunnel.closeCommandPalette';
|
|
1334
|
-
ClosePortAction.LABEL = ( localize2WithPath(
|
|
1335
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1336
|
-
'remote.tunnel.close',
|
|
1337
|
-
"Stop Forwarding Port"
|
|
1338
|
-
));
|
|
1206
|
+
ClosePortAction.LABEL = ( localize2WithPath(_moduleId, 39, "Stop Forwarding Port"));
|
|
1339
1207
|
function inlineHandler() {
|
|
1340
1208
|
return async (accessor, arg) => {
|
|
1341
1209
|
const contextKeyService = accessor.get(IContextKeyService);
|
|
@@ -1363,9 +1231,9 @@ var ClosePortAction;
|
|
|
1363
1231
|
if (!ports || ports.length === 0) {
|
|
1364
1232
|
return;
|
|
1365
1233
|
}
|
|
1366
|
-
return Promise.all(( ports.map(
|
|
1234
|
+
return Promise.all(( (ports.map(
|
|
1367
1235
|
port => remoteExplorerService.close({ host: port.remoteHost, port: port.remotePort }, TunnelCloseReason.User)
|
|
1368
|
-
)));
|
|
1236
|
+
))));
|
|
1369
1237
|
};
|
|
1370
1238
|
}
|
|
1371
1239
|
ClosePortAction.inlineHandler = inlineHandler;
|
|
@@ -1375,12 +1243,8 @@ var ClosePortAction;
|
|
|
1375
1243
|
const remoteExplorerService = accessor.get(IRemoteExplorerService);
|
|
1376
1244
|
const tunnelService = accessor.get(ITunnelService);
|
|
1377
1245
|
const commandService = accessor.get(ICommandService);
|
|
1378
|
-
const picks = makeTunnelPicks(Array.from(( remoteExplorerService.tunnelModel.forwarded.values())).filter(tunnel => tunnel.closeable), remoteExplorerService, tunnelService);
|
|
1379
|
-
const result = await quickInputService.pick(picks, { placeHolder: ( localizeWithPath(
|
|
1380
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1381
|
-
'remote.tunnel.closePlaceholder',
|
|
1382
|
-
"Choose a port to stop forwarding"
|
|
1383
|
-
)) });
|
|
1246
|
+
const picks = makeTunnelPicks(Array.from(( (remoteExplorerService.tunnelModel.forwarded.values()))).filter(tunnel => tunnel.closeable), remoteExplorerService, tunnelService);
|
|
1247
|
+
const result = await quickInputService.pick(picks, { placeHolder: ( localizeWithPath(_moduleId, 40, "Choose a port to stop forwarding")) });
|
|
1384
1248
|
if (result && result.tunnel) {
|
|
1385
1249
|
await remoteExplorerService.close({ host: result.tunnel.remoteHost, port: result.tunnel.remotePort }, TunnelCloseReason.User);
|
|
1386
1250
|
}
|
|
@@ -1390,15 +1254,11 @@ var ClosePortAction;
|
|
|
1390
1254
|
};
|
|
1391
1255
|
}
|
|
1392
1256
|
ClosePortAction.commandPaletteHandler = commandPaletteHandler;
|
|
1393
|
-
})(ClosePortAction || (ClosePortAction = {})));
|
|
1257
|
+
})(ClosePortAction || (ClosePortAction = {}))));
|
|
1394
1258
|
var OpenPortInBrowserAction;
|
|
1395
|
-
( (function(OpenPortInBrowserAction) {
|
|
1259
|
+
( ((function(OpenPortInBrowserAction) {
|
|
1396
1260
|
OpenPortInBrowserAction.ID = 'remote.tunnel.open';
|
|
1397
|
-
OpenPortInBrowserAction.LABEL = ( localizeWithPath(
|
|
1398
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1399
|
-
'remote.tunnel.open',
|
|
1400
|
-
"Open in Browser"
|
|
1401
|
-
));
|
|
1261
|
+
OpenPortInBrowserAction.LABEL = ( localizeWithPath(_moduleId, 41, "Open in Browser"));
|
|
1402
1262
|
function handler() {
|
|
1403
1263
|
return async (accessor, arg) => {
|
|
1404
1264
|
let key;
|
|
@@ -1424,15 +1284,11 @@ var OpenPortInBrowserAction;
|
|
|
1424
1284
|
return Promise.resolve();
|
|
1425
1285
|
}
|
|
1426
1286
|
OpenPortInBrowserAction.run = run;
|
|
1427
|
-
})(OpenPortInBrowserAction || (OpenPortInBrowserAction = {})));
|
|
1287
|
+
})(OpenPortInBrowserAction || (OpenPortInBrowserAction = {}))));
|
|
1428
1288
|
var OpenPortInPreviewAction;
|
|
1429
|
-
( (function(OpenPortInPreviewAction) {
|
|
1289
|
+
( ((function(OpenPortInPreviewAction) {
|
|
1430
1290
|
OpenPortInPreviewAction.ID = 'remote.tunnel.openPreview';
|
|
1431
|
-
OpenPortInPreviewAction.LABEL = ( localizeWithPath(
|
|
1432
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1433
|
-
'remote.tunnel.openPreview',
|
|
1434
|
-
"Preview in Editor"
|
|
1435
|
-
));
|
|
1291
|
+
OpenPortInPreviewAction.LABEL = ( localizeWithPath(_moduleId, 42, "Preview in Editor"));
|
|
1436
1292
|
function handler() {
|
|
1437
1293
|
return async (accessor, arg) => {
|
|
1438
1294
|
let key;
|
|
@@ -1455,7 +1311,7 @@ var OpenPortInPreviewAction;
|
|
|
1455
1311
|
const tunnel = model.forwarded.get(key) || model.detected.get(key);
|
|
1456
1312
|
if (tunnel) {
|
|
1457
1313
|
const remoteHost = tunnel.remoteHost.includes(':') ? `[${tunnel.remoteHost}]` : tunnel.remoteHost;
|
|
1458
|
-
const sourceUri = ( URI.parse(`http://${remoteHost}:${tunnel.remotePort}`));
|
|
1314
|
+
const sourceUri = ( (URI.parse(`http://${remoteHost}:${tunnel.remotePort}`)));
|
|
1459
1315
|
const opener = await externalOpenerService.getOpener(tunnel.localUri, { sourceUri }, CancellationToken.None);
|
|
1460
1316
|
if (opener) {
|
|
1461
1317
|
return opener.openExternalUri(tunnel.localUri, { sourceUri }, CancellationToken.None);
|
|
@@ -1465,15 +1321,11 @@ var OpenPortInPreviewAction;
|
|
|
1465
1321
|
return Promise.resolve();
|
|
1466
1322
|
}
|
|
1467
1323
|
OpenPortInPreviewAction.run = run;
|
|
1468
|
-
})(OpenPortInPreviewAction || (OpenPortInPreviewAction = {})));
|
|
1324
|
+
})(OpenPortInPreviewAction || (OpenPortInPreviewAction = {}))));
|
|
1469
1325
|
var OpenPortInBrowserCommandPaletteAction;
|
|
1470
|
-
( (function(OpenPortInBrowserCommandPaletteAction) {
|
|
1326
|
+
( ((function(OpenPortInBrowserCommandPaletteAction) {
|
|
1471
1327
|
OpenPortInBrowserCommandPaletteAction.ID = 'remote.tunnel.openCommandPalette';
|
|
1472
|
-
OpenPortInBrowserCommandPaletteAction.LABEL = ( localizeWithPath(
|
|
1473
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1474
|
-
'remote.tunnel.openCommandPalette',
|
|
1475
|
-
"Open Port in Browser"
|
|
1476
|
-
));
|
|
1328
|
+
OpenPortInBrowserCommandPaletteAction.LABEL = ( localizeWithPath(_moduleId, 43, "Open Port in Browser"));
|
|
1477
1329
|
function handler() {
|
|
1478
1330
|
return async (accessor, arg) => {
|
|
1479
1331
|
const remoteExplorerService = accessor.get(IRemoteExplorerService);
|
|
@@ -1482,37 +1334,29 @@ var OpenPortInBrowserCommandPaletteAction;
|
|
|
1482
1334
|
const quickPickService = accessor.get(IQuickInputService);
|
|
1483
1335
|
const openerService = accessor.get(IOpenerService);
|
|
1484
1336
|
const commandService = accessor.get(ICommandService);
|
|
1485
|
-
const options = ( [...model.forwarded, ...model.detected].map(value => {
|
|
1337
|
+
const options = ( ([...model.forwarded, ...model.detected].map(value => {
|
|
1486
1338
|
const tunnelItem = TunnelItem.createFromTunnel(remoteExplorerService, tunnelService, value[1]);
|
|
1487
1339
|
return {
|
|
1488
1340
|
label: tunnelItem.label,
|
|
1489
1341
|
description: tunnelItem.processDescription,
|
|
1490
1342
|
tunnel: tunnelItem
|
|
1491
1343
|
};
|
|
1492
|
-
}));
|
|
1344
|
+
})));
|
|
1493
1345
|
if (options.length === 0) {
|
|
1494
1346
|
options.push({
|
|
1495
1347
|
label: ( localizeWithPath(
|
|
1496
|
-
|
|
1497
|
-
|
|
1348
|
+
_moduleId,
|
|
1349
|
+
44,
|
|
1498
1350
|
"No ports currently forwarded. Open the Ports view to get started."
|
|
1499
1351
|
))
|
|
1500
1352
|
});
|
|
1501
1353
|
}
|
|
1502
1354
|
else {
|
|
1503
1355
|
options.push({
|
|
1504
|
-
label: ( localizeWithPath(
|
|
1505
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1506
|
-
'remote.tunnel.openCommandPaletteView',
|
|
1507
|
-
"Open the Ports view..."
|
|
1508
|
-
))
|
|
1356
|
+
label: ( localizeWithPath(_moduleId, 45, "Open the Ports view..."))
|
|
1509
1357
|
});
|
|
1510
1358
|
}
|
|
1511
|
-
const picked = await quickPickService.pick(options, { placeHolder: ( localizeWithPath(
|
|
1512
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1513
|
-
'remote.tunnel.openCommandPalettePick',
|
|
1514
|
-
"Choose the port to open"
|
|
1515
|
-
)) });
|
|
1359
|
+
const picked = await quickPickService.pick(options, { placeHolder: ( localizeWithPath(_moduleId, 46, "Choose the port to open")) });
|
|
1516
1360
|
if (picked && picked.tunnel) {
|
|
1517
1361
|
return OpenPortInBrowserAction.run(model, openerService, makeAddress(picked.tunnel.remoteHost, picked.tunnel.remotePort));
|
|
1518
1362
|
}
|
|
@@ -1524,25 +1368,17 @@ var OpenPortInBrowserCommandPaletteAction;
|
|
|
1524
1368
|
OpenPortInBrowserCommandPaletteAction.handler = handler;
|
|
1525
1369
|
})(
|
|
1526
1370
|
OpenPortInBrowserCommandPaletteAction || (OpenPortInBrowserCommandPaletteAction = {})
|
|
1527
|
-
));
|
|
1371
|
+
)));
|
|
1528
1372
|
var CopyAddressAction;
|
|
1529
|
-
( (function(CopyAddressAction) {
|
|
1373
|
+
( ((function(CopyAddressAction) {
|
|
1530
1374
|
CopyAddressAction.INLINE_ID = 'remote.tunnel.copyAddressInline';
|
|
1531
1375
|
CopyAddressAction.COMMANDPALETTE_ID = 'remote.tunnel.copyAddressCommandPalette';
|
|
1532
|
-
CopyAddressAction.INLINE_LABEL = ( localizeWithPath(
|
|
1533
|
-
|
|
1534
|
-
'remote.tunnel.copyAddressInline',
|
|
1535
|
-
"Copy Local Address"
|
|
1536
|
-
));
|
|
1537
|
-
CopyAddressAction.COMMANDPALETTE_LABEL = ( localizeWithPath(
|
|
1538
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1539
|
-
'remote.tunnel.copyAddressCommandPalette',
|
|
1540
|
-
"Copy Forwarded Port Address"
|
|
1541
|
-
));
|
|
1376
|
+
CopyAddressAction.INLINE_LABEL = ( localizeWithPath(_moduleId, 47, "Copy Local Address"));
|
|
1377
|
+
CopyAddressAction.COMMANDPALETTE_LABEL = ( localizeWithPath(_moduleId, 48, "Copy Forwarded Port Address"));
|
|
1542
1378
|
async function copyAddress(remoteExplorerService, clipboardService, tunnelItem) {
|
|
1543
1379
|
const address = remoteExplorerService.tunnelModel.address(tunnelItem.remoteHost, tunnelItem.remotePort);
|
|
1544
1380
|
if (address) {
|
|
1545
|
-
await clipboardService.writeText(( address.toString()));
|
|
1381
|
+
await clipboardService.writeText(( (address.toString())));
|
|
1546
1382
|
}
|
|
1547
1383
|
}
|
|
1548
1384
|
function inlineHandler() {
|
|
@@ -1569,12 +1405,8 @@ var CopyAddressAction;
|
|
|
1569
1405
|
const tunnelService = accessor.get(ITunnelService);
|
|
1570
1406
|
const commandService = accessor.get(ICommandService);
|
|
1571
1407
|
const clipboardService = accessor.get(IClipboardService);
|
|
1572
|
-
const tunnels = Array.from(( remoteExplorerService.tunnelModel.forwarded.values())).concat(Array.from(( remoteExplorerService.tunnelModel.detected.values())));
|
|
1573
|
-
const result = await quickInputService.pick(makeTunnelPicks(tunnels, remoteExplorerService, tunnelService), { placeHolder: ( localizeWithPath(
|
|
1574
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1575
|
-
'remote.tunnel.copyAddressPlaceholdter',
|
|
1576
|
-
"Choose a forwarded port"
|
|
1577
|
-
)) });
|
|
1408
|
+
const tunnels = Array.from(( (remoteExplorerService.tunnelModel.forwarded.values()))).concat(Array.from(( (remoteExplorerService.tunnelModel.detected.values()))));
|
|
1409
|
+
const result = await quickInputService.pick(makeTunnelPicks(tunnels, remoteExplorerService, tunnelService), { placeHolder: ( localizeWithPath(_moduleId, 49, "Choose a forwarded port")) });
|
|
1578
1410
|
if (result && result.tunnel) {
|
|
1579
1411
|
await copyAddress(remoteExplorerService, clipboardService, result.tunnel);
|
|
1580
1412
|
}
|
|
@@ -1584,22 +1416,14 @@ var CopyAddressAction;
|
|
|
1584
1416
|
};
|
|
1585
1417
|
}
|
|
1586
1418
|
CopyAddressAction.commandPaletteHandler = commandPaletteHandler;
|
|
1587
|
-
})(CopyAddressAction || (CopyAddressAction = {})));
|
|
1419
|
+
})(CopyAddressAction || (CopyAddressAction = {}))));
|
|
1588
1420
|
var ChangeLocalPortAction;
|
|
1589
|
-
( (function(ChangeLocalPortAction) {
|
|
1421
|
+
( ((function(ChangeLocalPortAction) {
|
|
1590
1422
|
ChangeLocalPortAction.ID = 'remote.tunnel.changeLocalPort';
|
|
1591
|
-
ChangeLocalPortAction.LABEL = ( localizeWithPath(
|
|
1592
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1593
|
-
'remote.tunnel.changeLocalPort',
|
|
1594
|
-
"Change Local Address Port"
|
|
1595
|
-
));
|
|
1423
|
+
ChangeLocalPortAction.LABEL = ( localizeWithPath(_moduleId, 50, "Change Local Address Port"));
|
|
1596
1424
|
function validateInput(tunnelService, value, canElevate) {
|
|
1597
1425
|
if (!value.match(/^[0-9]+$/)) {
|
|
1598
|
-
return { content: ( localizeWithPath(
|
|
1599
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1600
|
-
'remote.tunnelsView.portShouldBeNumber',
|
|
1601
|
-
"Local port should be a number."
|
|
1602
|
-
)), severity: Severity$1.Error };
|
|
1426
|
+
return { content: ( localizeWithPath(_moduleId, 51, "Local port should be a number.")), severity: Severity$1.Error };
|
|
1603
1427
|
}
|
|
1604
1428
|
else if (Number(value) >= maxPortNumber) {
|
|
1605
1429
|
return { content: invalidPortNumberString, severity: Severity$1.Error };
|
|
@@ -1643,8 +1467,8 @@ var ChangeLocalPortAction;
|
|
|
1643
1467
|
});
|
|
1644
1468
|
if (newForward && (typeof newForward !== 'string') && newForward.tunnelLocalPort !== numberValue) {
|
|
1645
1469
|
notificationService.warn(( localizeWithPath(
|
|
1646
|
-
|
|
1647
|
-
|
|
1470
|
+
_moduleId,
|
|
1471
|
+
52,
|
|
1648
1472
|
"The local port {0} is not available. Port number {1} has been used instead",
|
|
1649
1473
|
value,
|
|
1650
1474
|
newForward.tunnelLocalPort ?? newForward.localAddress
|
|
@@ -1653,19 +1477,15 @@ var ChangeLocalPortAction;
|
|
|
1653
1477
|
}
|
|
1654
1478
|
},
|
|
1655
1479
|
validationMessage: (value) => validateInput(tunnelService, value, tunnelService.canElevate),
|
|
1656
|
-
placeholder: ( localizeWithPath(
|
|
1657
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1658
|
-
'remote.tunnelsView.changePort',
|
|
1659
|
-
"New local port"
|
|
1660
|
-
))
|
|
1480
|
+
placeholder: ( localizeWithPath(_moduleId, 53, "New local port"))
|
|
1661
1481
|
});
|
|
1662
1482
|
}
|
|
1663
1483
|
};
|
|
1664
1484
|
}
|
|
1665
1485
|
ChangeLocalPortAction.handler = handler;
|
|
1666
|
-
})(ChangeLocalPortAction || (ChangeLocalPortAction = {})));
|
|
1486
|
+
})(ChangeLocalPortAction || (ChangeLocalPortAction = {}))));
|
|
1667
1487
|
var ChangeTunnelPrivacyAction;
|
|
1668
|
-
( (function(ChangeTunnelPrivacyAction) {
|
|
1488
|
+
( ((function(ChangeTunnelPrivacyAction) {
|
|
1669
1489
|
function handler(privacyId) {
|
|
1670
1490
|
return async (accessor, arg) => {
|
|
1671
1491
|
if (isITunnelItem(arg)) {
|
|
@@ -1684,21 +1504,13 @@ var ChangeTunnelPrivacyAction;
|
|
|
1684
1504
|
};
|
|
1685
1505
|
}
|
|
1686
1506
|
ChangeTunnelPrivacyAction.handler = handler;
|
|
1687
|
-
})(ChangeTunnelPrivacyAction || (ChangeTunnelPrivacyAction = {})));
|
|
1507
|
+
})(ChangeTunnelPrivacyAction || (ChangeTunnelPrivacyAction = {}))));
|
|
1688
1508
|
var SetTunnelProtocolAction;
|
|
1689
|
-
( (function(SetTunnelProtocolAction) {
|
|
1509
|
+
( ((function(SetTunnelProtocolAction) {
|
|
1690
1510
|
SetTunnelProtocolAction.ID_HTTP = 'remote.tunnel.setProtocolHttp';
|
|
1691
1511
|
SetTunnelProtocolAction.ID_HTTPS = 'remote.tunnel.setProtocolHttps';
|
|
1692
|
-
SetTunnelProtocolAction.LABEL_HTTP = ( localizeWithPath(
|
|
1693
|
-
|
|
1694
|
-
'remote.tunnel.protocolHttp',
|
|
1695
|
-
"HTTP"
|
|
1696
|
-
));
|
|
1697
|
-
SetTunnelProtocolAction.LABEL_HTTPS = ( localizeWithPath(
|
|
1698
|
-
'vs/workbench/contrib/remote/browser/tunnelView',
|
|
1699
|
-
'remote.tunnel.protocolHttps',
|
|
1700
|
-
"HTTPS"
|
|
1701
|
-
));
|
|
1512
|
+
SetTunnelProtocolAction.LABEL_HTTP = ( localizeWithPath(_moduleId, 54, "HTTP"));
|
|
1513
|
+
SetTunnelProtocolAction.LABEL_HTTPS = ( localizeWithPath(_moduleId, 55, "HTTPS"));
|
|
1702
1514
|
async function handler(arg, protocol, remoteExplorerService) {
|
|
1703
1515
|
if (isITunnelItem(arg)) {
|
|
1704
1516
|
const attributes = {
|
|
@@ -1719,15 +1531,18 @@ var SetTunnelProtocolAction;
|
|
|
1719
1531
|
};
|
|
1720
1532
|
}
|
|
1721
1533
|
SetTunnelProtocolAction.handlerHttps = handlerHttps;
|
|
1722
|
-
})(SetTunnelProtocolAction || (SetTunnelProtocolAction = {})));
|
|
1534
|
+
})(SetTunnelProtocolAction || (SetTunnelProtocolAction = {}))));
|
|
1723
1535
|
const tunnelViewCommandsWeightBonus = 10;
|
|
1724
|
-
const isForwardedExpr = ( TunnelTypeContextKey.isEqualTo(TunnelType.Forwarded));
|
|
1725
|
-
const isForwardedOrDetectedExpr = ( ContextKeyExpr.or(
|
|
1726
|
-
|
|
1536
|
+
const isForwardedExpr = ( (TunnelTypeContextKey.isEqualTo(TunnelType.Forwarded)));
|
|
1537
|
+
const isForwardedOrDetectedExpr = ( (ContextKeyExpr.or(
|
|
1538
|
+
isForwardedExpr,
|
|
1539
|
+
(TunnelTypeContextKey.isEqualTo(TunnelType.Detected))
|
|
1540
|
+
)));
|
|
1541
|
+
const isNotMultiSelectionExpr = ( (TunnelViewMultiSelectionContextKey.isEqualTo(undefined)));
|
|
1727
1542
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
1728
1543
|
id: LabelTunnelAction.ID,
|
|
1729
1544
|
weight: 200 + tunnelViewCommandsWeightBonus,
|
|
1730
|
-
when: ( ContextKeyExpr.and(TunnelViewFocusContextKey, isForwardedExpr, isNotMultiSelectionExpr)),
|
|
1545
|
+
when: ( (ContextKeyExpr.and(TunnelViewFocusContextKey, isForwardedExpr, isNotMultiSelectionExpr))),
|
|
1731
1546
|
primary: 60 ,
|
|
1732
1547
|
mac: {
|
|
1733
1548
|
primary: 3
|
|
@@ -1739,7 +1554,7 @@ CommandsRegistry.registerCommand(ForwardPortAction.COMMANDPALETTE_ID, ForwardPor
|
|
|
1739
1554
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
1740
1555
|
id: ClosePortAction.INLINE_ID,
|
|
1741
1556
|
weight: 200 + tunnelViewCommandsWeightBonus,
|
|
1742
|
-
when: ( ContextKeyExpr.and(TunnelCloseableContextKey, TunnelViewFocusContextKey)),
|
|
1557
|
+
when: ( (ContextKeyExpr.and(TunnelCloseableContextKey, TunnelViewFocusContextKey))),
|
|
1743
1558
|
primary: 20 ,
|
|
1744
1559
|
mac: {
|
|
1745
1560
|
primary: 2048 | 1 ,
|
|
@@ -1754,11 +1569,11 @@ CommandsRegistry.registerCommand(OpenPortInBrowserCommandPaletteAction.ID, OpenP
|
|
|
1754
1569
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
1755
1570
|
id: CopyAddressAction.INLINE_ID,
|
|
1756
1571
|
weight: 200 + tunnelViewCommandsWeightBonus,
|
|
1757
|
-
when: ( ContextKeyExpr.and(
|
|
1572
|
+
when: ( (ContextKeyExpr.and(
|
|
1758
1573
|
TunnelViewFocusContextKey,
|
|
1759
1574
|
isForwardedOrDetectedExpr,
|
|
1760
1575
|
isNotMultiSelectionExpr
|
|
1761
|
-
)),
|
|
1576
|
+
))),
|
|
1762
1577
|
primary: 2048 | 33 ,
|
|
1763
1578
|
handler: CopyAddressAction.inlineHandler()
|
|
1764
1579
|
});
|
|
@@ -1801,7 +1616,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
|
1801
1616
|
id: OpenPortInBrowserAction.ID,
|
|
1802
1617
|
title: OpenPortInBrowserAction.LABEL,
|
|
1803
1618
|
},
|
|
1804
|
-
when: ( ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr))
|
|
1619
|
+
when: ( (ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr)))
|
|
1805
1620
|
}));
|
|
1806
1621
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1807
1622
|
group: '._open',
|
|
@@ -1810,7 +1625,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
|
1810
1625
|
id: OpenPortInPreviewAction.ID,
|
|
1811
1626
|
title: OpenPortInPreviewAction.LABEL,
|
|
1812
1627
|
},
|
|
1813
|
-
when: ( ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr))
|
|
1628
|
+
when: ( (ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr)))
|
|
1814
1629
|
}));
|
|
1815
1630
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1816
1631
|
group: '0_manage',
|
|
@@ -1820,7 +1635,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
|
1820
1635
|
title: LabelTunnelAction.LABEL,
|
|
1821
1636
|
icon: labelPortIcon
|
|
1822
1637
|
},
|
|
1823
|
-
when: ( ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr))
|
|
1638
|
+
when: ( (ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr)))
|
|
1824
1639
|
}));
|
|
1825
1640
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1826
1641
|
group: '2_localaddress',
|
|
@@ -1829,7 +1644,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
|
1829
1644
|
id: CopyAddressAction.INLINE_ID,
|
|
1830
1645
|
title: CopyAddressAction.INLINE_LABEL,
|
|
1831
1646
|
},
|
|
1832
|
-
when: ( ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr))
|
|
1647
|
+
when: ( (ContextKeyExpr.and(isForwardedOrDetectedExpr, isNotMultiSelectionExpr)))
|
|
1833
1648
|
}));
|
|
1834
1649
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1835
1650
|
group: '2_localaddress',
|
|
@@ -1838,29 +1653,21 @@ MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
|
1838
1653
|
id: ChangeLocalPortAction.ID,
|
|
1839
1654
|
title: ChangeLocalPortAction.LABEL,
|
|
1840
1655
|
},
|
|
1841
|
-
when: ( ContextKeyExpr.and(isForwardedExpr, PortChangableContextKey, isNotMultiSelectionExpr))
|
|
1656
|
+
when: ( (ContextKeyExpr.and(isForwardedExpr, PortChangableContextKey, isNotMultiSelectionExpr)))
|
|
1842
1657
|
}));
|
|
1843
1658
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1844
1659
|
group: '2_localaddress',
|
|
1845
1660
|
order: 2,
|
|
1846
1661
|
submenu: MenuId.TunnelPrivacy,
|
|
1847
|
-
title: ( localizeWithPath(
|
|
1848
|
-
|
|
1849
|
-
'tunnelContext.privacyMenu',
|
|
1850
|
-
"Port Visibility"
|
|
1851
|
-
)),
|
|
1852
|
-
when: ( ContextKeyExpr.and(isForwardedExpr, TunnelPrivacyEnabledContextKey))
|
|
1662
|
+
title: ( localizeWithPath(_moduleId, 56, "Port Visibility")),
|
|
1663
|
+
when: ( (ContextKeyExpr.and(isForwardedExpr, TunnelPrivacyEnabledContextKey)))
|
|
1853
1664
|
}));
|
|
1854
1665
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1855
1666
|
group: '2_localaddress',
|
|
1856
1667
|
order: 3,
|
|
1857
1668
|
submenu: MenuId.TunnelProtocol,
|
|
1858
|
-
title: ( localizeWithPath(
|
|
1859
|
-
|
|
1860
|
-
'tunnelContext.protocolMenu',
|
|
1861
|
-
"Change Port Protocol"
|
|
1862
|
-
)),
|
|
1863
|
-
when: ( ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr, ProtocolChangeableContextKey))
|
|
1669
|
+
title: ( localizeWithPath(_moduleId, 57, "Change Port Protocol")),
|
|
1670
|
+
when: ( (ContextKeyExpr.and(isForwardedExpr, isNotMultiSelectionExpr, ProtocolChangeableContextKey)))
|
|
1864
1671
|
}));
|
|
1865
1672
|
MenuRegistry.appendMenuItem(MenuId.TunnelContext, ({
|
|
1866
1673
|
group: '3_forward',
|
|
@@ -1884,7 +1691,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelProtocol, ({
|
|
|
1884
1691
|
command: {
|
|
1885
1692
|
id: SetTunnelProtocolAction.ID_HTTP,
|
|
1886
1693
|
title: SetTunnelProtocolAction.LABEL_HTTP,
|
|
1887
|
-
toggled: ( TunnelProtocolContextKey.isEqualTo(TunnelProtocol.Http))
|
|
1694
|
+
toggled: ( (TunnelProtocolContextKey.isEqualTo(TunnelProtocol.Http)))
|
|
1888
1695
|
}
|
|
1889
1696
|
}));
|
|
1890
1697
|
MenuRegistry.appendMenuItem(MenuId.TunnelProtocol, ({
|
|
@@ -1892,7 +1699,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelProtocol, ({
|
|
|
1892
1699
|
command: {
|
|
1893
1700
|
id: SetTunnelProtocolAction.ID_HTTPS,
|
|
1894
1701
|
title: SetTunnelProtocolAction.LABEL_HTTPS,
|
|
1895
|
-
toggled: ( TunnelProtocolContextKey.isEqualTo(TunnelProtocol.Https))
|
|
1702
|
+
toggled: ( (TunnelProtocolContextKey.isEqualTo(TunnelProtocol.Https)))
|
|
1896
1703
|
}
|
|
1897
1704
|
}));
|
|
1898
1705
|
MenuRegistry.appendMenuItem(MenuId.TunnelPortInline, ({
|
|
@@ -1903,7 +1710,7 @@ MenuRegistry.appendMenuItem(MenuId.TunnelPortInline, ({
|
|
|
1903
1710
|
title: ForwardPortAction.TREEITEM_LABEL,
|
|
1904
1711
|
icon: forwardPortIcon
|
|
1905
1712
|
},
|
|
1906
|
-
when: ( TunnelTypeContextKey.isEqualTo(TunnelType.Candidate))
|
|
1713
|
+
when: ( (TunnelTypeContextKey.isEqualTo(TunnelType.Candidate)))
|
|
1907
1714
|
}));
|
|
1908
1715
|
MenuRegistry.appendMenuItem(MenuId.TunnelPortInline, ({
|
|
1909
1716
|
group: '0_manage',
|
|
@@ -1958,8 +1765,8 @@ registerColor('ports.iconRunningProcessForeground', {
|
|
|
1958
1765
|
hcDark: STATUS_BAR_REMOTE_ITEM_BACKGROUND,
|
|
1959
1766
|
hcLight: STATUS_BAR_REMOTE_ITEM_BACKGROUND
|
|
1960
1767
|
}, ( localizeWithPath(
|
|
1961
|
-
|
|
1962
|
-
|
|
1768
|
+
_moduleId,
|
|
1769
|
+
58,
|
|
1963
1770
|
"The color of the icon for a port that has an associated running process."
|
|
1964
1771
|
)));
|
|
1965
1772
|
export { ForwardPortAction, OpenPortInBrowserAction, OpenPortInPreviewAction, TunnelPanel, TunnelPanelDescriptor, TunnelViewModel, openPreviewEnabledContext };
|