@codingame/monaco-vscode-api 4.5.1 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/extensions.js +10 -2
- package/package.json +8 -8
- package/services.js +1 -0
- package/vscode/src/vs/base/browser/defaultWorkerFactory.js +4 -2
- package/vscode/src/vs/base/browser/dom.js +3 -3
- package/vscode/src/vs/base/browser/iframe.js +3 -1
- package/vscode/src/vs/base/browser/indexedDB.js +2 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +4 -9
- package/vscode/src/vs/base/browser/ui/button/button.js +16 -19
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +168 -165
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +5 -8
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +19 -18
- package/vscode/src/vs/base/browser/ui/findinput/findInputToggles.js +4 -15
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +13 -16
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +10 -12
- package/vscode/src/vs/base/browser/ui/hover/updatableHoverWidget.js +13 -14
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +19 -39
- package/vscode/src/vs/base/browser/ui/keybindingLabel/keybindingLabel.js +3 -2
- package/vscode/src/vs/base/browser/ui/list/listView.js +6 -6
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +7 -7
- package/vscode/src/vs/base/browser/ui/list/rowCache.js +2 -2
- package/vscode/src/vs/base/browser/ui/menu/menubar.js +24 -23
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +1 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +12 -15
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +25 -25
- package/vscode/src/vs/base/browser/ui/splitview/splitview.js +10 -10
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +11 -10
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +177 -152
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +7 -7
- package/vscode/src/vs/base/browser/ui/tree/compressedObjectTreeModel.js +2 -2
- package/vscode/src/vs/base/browser/ui/tree/dataTree.js +2 -2
- package/vscode/src/vs/base/browser/ui/tree/indexTreeModel.js +6 -6
- package/vscode/src/vs/base/browser/ui/tree/objectTree.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/objectTreeModel.js +4 -4
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +2 -1
- package/vscode/src/vs/base/common/actions.js +6 -5
- package/vscode/src/vs/base/common/arrays.js +2 -2
- package/vscode/src/vs/base/common/arraysFind.js +3 -1
- package/vscode/src/vs/base/common/assert.js +2 -2
- package/vscode/src/vs/base/common/async.js +3 -3
- package/vscode/src/vs/base/common/buffer.js +2 -2
- package/vscode/src/vs/base/common/codiconsUtil.js +1 -1
- package/vscode/src/vs/base/common/color.js +2 -2
- package/vscode/src/vs/base/common/date.js +70 -284
- package/vscode/src/vs/base/common/decorators.js +2 -2
- package/vscode/src/vs/base/common/diff/diff.js +1 -1
- package/vscode/src/vs/base/common/errorMessage.js +12 -22
- package/vscode/src/vs/base/common/errors.js +2 -2
- package/vscode/src/vs/base/common/event.js +2 -2
- package/vscode/src/vs/base/common/extpath.js +1 -1
- package/vscode/src/vs/base/common/filters.js +1 -1
- package/vscode/src/vs/base/common/history.js +1 -1
- package/vscode/src/vs/base/common/jsonEdit.js +6 -4
- package/vscode/src/vs/base/common/jsonErrorMessages.js +10 -45
- package/vscode/src/vs/base/common/keyCodes.js +3 -1
- package/vscode/src/vs/base/common/keybindingLabels.js +29 -108
- package/vscode/src/vs/base/common/labels.js +2 -2
- package/vscode/src/vs/base/common/lifecycle.js +5 -5
- package/vscode/src/vs/base/common/map.js +11 -11
- package/vscode/src/vs/base/common/objects.js +1 -1
- package/vscode/src/vs/base/common/path.js +2 -2
- package/vscode/src/vs/base/common/platform.js +7 -26
- package/vscode/src/vs/base/common/stream.js +1 -1
- package/vscode/src/vs/base/common/strings.js +2 -2
- package/vscode/src/vs/base/common/ternarySearchTree.js +3 -3
- package/vscode/src/vs/base/common/types.js +7 -5
- package/vscode/src/vs/base/common/uri.js +11 -5
- package/vscode/src/vs/base/common/worker/simpleWorker.js +7 -7
- package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +1 -1
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +1 -1
- package/vscode/src/vs/editor/browser/controller/textAreaHandler.js +47 -42
- package/vscode/src/vs/editor/browser/coreCommands.js +104 -115
- package/vscode/src/vs/editor/browser/editorExtensions.js +24 -35
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +2 -2
- package/vscode/src/vs/editor/browser/services/bulkEditService.js +1 -1
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +1 -1
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +18 -22
- package/vscode/src/vs/editor/browser/services/openerService.js +1 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +1 -1
- package/vscode/src/vs/editor/browser/view.js +6 -6
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLine.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/lines/viewLines.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimapCharRendererFactory.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewZones/viewZones.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorContributions.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +129 -128
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +25 -68
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +66 -99
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +10 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +15 -34
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +25 -41
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +27 -51
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +40 -31
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +13 -20
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +8 -19
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +4 -15
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +83 -154
- package/vscode/src/vs/editor/common/config/editorOptions.js +863 -1427
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +110 -253
- package/vscode/src/vs/editor/common/core/lineRange.js +4 -2
- package/vscode/src/vs/editor/common/core/offsetRange.js +3 -3
- package/vscode/src/vs/editor/common/core/textEdit.js +1 -1
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/algorithms/diffAlgorithm.js +1 -1
- package/vscode/src/vs/editor/common/diff/legacyLinesDiffComputer.js +1 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +80 -239
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +5 -8
- package/vscode/src/vs/editor/common/languages/supports/tokenization.js +2 -2
- package/vscode/src/vs/editor/common/languages.js +68 -71
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/ast.js +12 -12
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/concat23Trees.js +2 -2
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/nodeReader.js +1 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/parser.js +2 -2
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/tokenizer.js +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +47 -36
- package/vscode/src/vs/editor/common/model/guidesTextModelPart.js +3 -3
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +2 -2
- package/vscode/src/vs/editor/common/model/textModel.js +9 -9
- package/vscode/src/vs/editor/common/model/textModelPart.js +1 -1
- package/vscode/src/vs/editor/common/model/textModelTokens.js +2 -2
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/services/editorSimpleWorker.js +2 -2
- package/vscode/src/vs/editor/common/services/modelService.js +1 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +56 -115
- package/vscode/src/vs/editor/common/textModelGuides.js +1 -1
- package/vscode/src/vs/editor/common/tokens/contiguousMultilineTokens.js +2 -2
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +1 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +79 -67
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +12 -12
- package/vscode/src/vs/editor/contrib/anchorSelect/browser/anchorSelect.js +12 -31
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +25 -40
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +4 -11
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +3 -6
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +28 -76
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +36 -25
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +54 -143
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +8 -7
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +30 -37
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +25 -54
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +15 -28
- package/vscode/src/vs/editor/contrib/codelens/browser/codeLensCache.js +1 -1
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +30 -37
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerWidget.js +24 -31
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPickerActions.js +7 -24
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +11 -34
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +37 -70
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +15 -14
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +6 -13
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +33 -50
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +37 -68
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorContribution.js +4 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +20 -27
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +8 -7
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +83 -120
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +59 -143
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +51 -117
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +13 -32
- package/vscode/src/vs/editor/contrib/folding/browser/foldingRanges.js +2 -2
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +4 -15
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +28 -35
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +21 -52
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +38 -77
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +109 -246
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +21 -23
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +40 -30
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +23 -34
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +31 -42
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +33 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +24 -23
- package/vscode/src/vs/editor/contrib/hover/browser/hover.js +31 -95
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +41 -32
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +18 -37
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +11 -18
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +29 -76
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHints.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +80 -99
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/commands.js +30 -63
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hoverParticipant.js +45 -42
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionContextKeys.js +11 -18
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsController.js +28 -23
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsHintsWidget.js +39 -60
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsModel.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/singleTextEdit.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +3 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +2 -5
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +135 -234
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +26 -33
- package/vscode/src/vs/editor/contrib/links/browser/links.js +32 -64
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +13 -16
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +122 -195
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +17 -20
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +16 -32
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +43 -86
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +10 -24
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +46 -170
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +3 -10
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +54 -76
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +37 -45
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +73 -86
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +23 -38
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +1 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +13 -80
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +20 -56
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +55 -72
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +161 -147
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +43 -95
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +21 -28
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +16 -23
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +11 -10
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +67 -66
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +6 -13
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +3 -6
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +72 -136
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +11 -26
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +19 -22
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +66 -59
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +72 -51
- package/vscode/src/vs/editor/standalone/browser/quickInput/standaloneQuickInputService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +3 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +7 -7
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +2 -2
- package/vscode/src/vs/nls.js +1 -4
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +88 -255
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +9 -16
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +21 -41
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +18 -45
- package/vscode/src/vs/platform/actions/browser/buttonbar.js +19 -24
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +40 -51
- package/vscode/src/vs/platform/actions/browser/toolbar.js +24 -23
- package/vscode/src/vs/platform/actions/common/actions.contribution.js +5 -0
- package/vscode/src/vs/platform/actions/common/actions.js +4 -2
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +21 -0
- package/vscode/src/vs/platform/actions/common/menuService.js +49 -51
- package/vscode/src/vs/platform/commands/common/commands.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +38 -61
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +68 -51
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +168 -130
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +14 -45
- package/vscode/src/vs/platform/contextkey/common/scanner.js +12 -26
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +18 -33
- package/vscode/src/vs/platform/dnd/browser/dnd.js +24 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +8 -15
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +2 -6
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +335 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +915 -0
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +36 -43
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +23 -16
- 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/instantiation/common/instantiation.js +1 -1
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +7 -7
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +21 -20
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +75 -6
- package/vscode/src/vs/platform/layout/browser/zIndexRegistry.js +4 -2
- package/vscode/src/vs/platform/list/browser/listService.js +159 -189
- package/vscode/src/vs/platform/log/common/log.js +20 -19
- package/vscode/src/vs/platform/markers/common/markerService.js +1 -1
- package/vscode/src/vs/platform/markers/common/markers.js +15 -14
- package/vscode/src/vs/platform/product/common/product.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +34 -47
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +183 -193
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +107 -98
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +9 -8
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +5 -12
- package/vscode/src/vs/platform/request/common/request.js +31 -40
- package/vscode/src/vs/platform/terminal/common/terminal.js +3 -1
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +28 -59
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +9 -40
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +151 -350
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +51 -170
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +63 -90
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +8 -35
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +14 -53
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +13 -32
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +14 -37
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +6 -13
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +9 -24
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +64 -207
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +111 -114
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +51 -54
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +20 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +25 -32
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +7 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncStoreService.js +173 -35
- package/vscode/src/vs/platform/workspace/common/workspace.js +8 -9
- package/vscode/src/vs/platform/workspaces/common/workspaces.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostAiRelatedInformation.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +55 -46
- package/vscode/src/vs/workbench/api/common/extHostCodeInsets.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +9 -5
- package/vscode/src/vs/workbench/api/common/extHostConfiguration.js +10 -4
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.js +17 -15
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +40 -24
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +37 -34
- package/vscode/src/vs/workbench/api/common/extHostDocumentContentProviders.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +5 -5
- package/vscode/src/vs/workbench/api/common/extHostDocumentsAndEditors.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +12 -8
- package/vscode/src/vs/workbench/api/common/extHostEmbeddingVector.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostExtensionActivator.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +22 -7
- package/vscode/src/vs/workbench/api/common/extHostFileSystem.js +16 -16
- package/vscode/src/vs/workbench/api/common/extHostFileSystemConsumer.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostInlineChat.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostIssueReporter.js +9 -9
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +272 -200
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +49 -42
- package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +6 -13
- package/vscode/src/vs/workbench/api/common/extHostManagedSockets.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +20 -14
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +20 -18
- package/vscode/src/vs/workbench/api/common/extHostNotebookRenderers.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostOutput.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostProfileContentHandler.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +8 -6
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +41 -38
- package/vscode/src/vs/workbench/api/common/extHostTask.js +15 -11
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +22 -21
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +109 -94
- package/vscode/src/vs/workbench/api/common/extHostTestItem.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTesting.js +9 -7
- package/vscode/src/vs/workbench/api/common/extHostTestingPrivateApi.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +6 -6
- package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +17 -10
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +31 -36
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +11 -11
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +31 -27
- package/vscode/src/vs/workbench/api/common/extHostUriOpener.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostUrls.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWebview.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostWebviewView.js +4 -4
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +51 -48
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +29 -44
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +3 -3
- package/vscode/src/vs/workbench/api/worker/extensionHostWorker.js +2 -2
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +93 -157
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +270 -614
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +31 -30
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +49 -123
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +63 -119
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +11 -26
- package/vscode/src/vs/workbench/browser/editor.js +62 -55
- package/vscode/src/vs/workbench/browser/labels.js +40 -51
- package/vscode/src/vs/workbench/browser/part.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +23 -56
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +72 -115
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +12 -17
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +11 -18
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +51 -198
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +60 -101
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +51 -48
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +10 -33
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +176 -684
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +51 -104
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +61 -91
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +26 -77
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +19 -27
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +41 -60
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +86 -94
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +124 -353
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +21 -30
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +45 -48
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +34 -31
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +2 -5
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +27 -24
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +21 -18
- package/vscode/src/vs/workbench/browser/parts/editor/textResourceEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +117 -135
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +42 -109
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +11 -10
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +25 -52
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +24 -59
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +22 -30
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +21 -61
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +23 -25
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +32 -50
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +58 -196
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +73 -124
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +19 -30
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +6 -5
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +152 -141
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +13 -16
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +62 -72
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +68 -85
- package/vscode/src/vs/workbench/browser/quickaccess.js +12 -12
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +381 -589
- package/vscode/src/vs/workbench/common/configuration.js +33 -52
- package/vscode/src/vs/workbench/common/contextkeys.js +117 -348
- package/vscode/src/vs/workbench/common/contributions.js +9 -3
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +14 -15
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +18 -15
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +14 -11
- package/vscode/src/vs/workbench/common/editor/textResourceEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor.js +31 -36
- package/vscode/src/vs/workbench/common/theme.js +359 -406
- package/vscode/src/vs/workbench/common/views.js +36 -35
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +221 -488
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityContributions.js +4 -22
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +37 -52
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/accessibilitySignal.contribution.js +56 -127
- package/vscode/src/vs/workbench/contrib/accessibilitySignals/browser/commands.js +18 -41
- package/vscode/src/vs/workbench/contrib/bulkEdit/browser/bulkCellEdits.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +55 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +27 -71
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatExecuteActions.js +13 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +13 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityProvider.js +21 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditorInput.js +17 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatFollowups.js +8 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatInputPart.js +40 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatListRenderer.js +83 -138
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidget.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockPart.js +31 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables.js +20 -19
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatColors.js +7 -30
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +29 -64
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +14 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +33 -40
- package/vscode/src/vs/workbench/contrib/codeActions/common/codeActionsExtensionPoint.js +24 -61
- package/vscode/src/vs/workbench/contrib/codeActions/common/documentationExtensionPoint.js +11 -34
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +22 -38
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +23 -34
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +23 -67
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +14 -17
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +25 -45
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +47 -55
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +4 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +13 -28
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +4 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +4 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +29 -41
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +14 -37
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +11 -14
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +82 -88
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +19 -22
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +17 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +9 -20
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +15 -18
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +33 -64
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +108 -124
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +16 -19
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +43 -79
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +46 -61
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -51
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +30 -44
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +24 -51
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +22 -17
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +18 -21
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +84 -242
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +33 -74
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +220 -412
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +14 -13
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +20 -67
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +62 -273
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +12 -17
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +227 -290
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +147 -141
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +13 -14
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +4 -11
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +25 -22
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +617 -1086
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +42 -69
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +10 -13
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +9 -15
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +32 -29
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +9 -12
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +26 -35
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +8 -11
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +38 -49
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +60 -107
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +71 -100
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +161 -373
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.save.js +10 -13
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +11 -22
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +151 -244
- package/vscode/src/vs/workbench/contrib/files/browser/files.configuration.contribution.js +105 -156
- package/vscode/src/vs/workbench/contrib/files/browser/files.editorPane.contribution.js +10 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +18 -21
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +14 -25
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +52 -72
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +122 -155
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +55 -78
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +22 -25
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +8 -16
- package/vscode/src/vs/workbench/contrib/files/common/files.js +61 -84
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +11 -14
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +58 -106
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +9 -22
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +6 -9
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +15 -26
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +122 -171
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatController.js +53 -78
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatFileCreationWidget.js +19 -30
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +7 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatStrategies.js +46 -67
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatWidget.js +56 -65
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatZoneWidget.js +7 -10
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/utils.js +3 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/common/inlineChat.js +78 -165
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +14 -18
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +74 -145
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/diffComputer.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/lineRange.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mapping.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +64 -53
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/modifiedBaseRange.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/textModelDiffs.js +3 -3
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/utils.js +1 -1
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +19 -50
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +2 -5
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +58 -55
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellCommands/cellCommands.js +97 -157
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/cellStatusBar/executionStatusBarItemController.js +40 -60
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +57 -120
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindWidget.js +19 -35
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +36 -43
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +2 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +11 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatController.js +50 -63
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +12 -27
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/editActions.js +90 -152
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +8 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/notebookIndentationActions.js +18 -45
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +6 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +58 -49
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +155 -210
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +28 -135
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +17 -26
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +63 -82
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +16 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +8 -23
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +11 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +8 -16
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +12 -20
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +20 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellList.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/notebookCellListView.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +89 -100
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +66 -73
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/webviewPreloads.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/baseCellViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/codeCellViewModel.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/markupCellViewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookOutlineEntryFactory.js +10 -13
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +48 -101
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +15 -19
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +21 -23
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorModel.js +6 -6
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +32 -44
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +16 -51
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +52 -91
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +52 -231
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +34 -105
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +128 -156
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +19 -82
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +250 -445
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtyDiffSwitcher.js +9 -16
- package/vscode/src/vs/workbench/contrib/scm/browser/dirtydiffDecorator.js +123 -180
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +2 -5
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +21 -62
- package/vscode/src/vs/workbench/contrib/search/browser/searchModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/common/cellSearchModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/abstractSnippetsActions.js +2 -5
- package/vscode/src/vs/workbench/contrib/snippets/browser/commands/fileTemplateSnippets.js +3 -10
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +18 -17
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +18 -24
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +71 -70
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +35 -146
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +18 -23
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +19 -23
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +134 -123
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +19 -26
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +10 -29
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +42 -78
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +106 -138
- package/vscode/src/vs/workbench/contrib/testing/common/testId.js +1 -1
- package/vscode/src/vs/workbench/contrib/testing/common/testItemCollection.js +5 -5
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +36 -31
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +4 -11
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +20 -23
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +6 -9
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +18 -8
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +23 -62
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +3 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +99 -18
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +9 -8
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionFeatures.js +1 -1
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionManagement.js +3 -6
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +40 -57
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensions.js +6 -2
- 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 +55 -119
- package/vscode/src/vs/workbench/services/lifecycle/common/lifecycleService.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +6 -13
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +33 -60
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +8 -15
- package/vscode/src/vs/workbench/services/preferences/common/preferencesModels.js +79 -72
- package/vscode/src/vs/workbench/services/preferences/common/preferencesValidation.js +54 -141
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.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/userDataProfile/common/userDataProfile.js +14 -23
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +2 -5
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +22 -62
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +49 -78
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +48 -87
- package/tools/l10n.js +0 -177
|
@@ -21,16 +21,13 @@ import { isString, isNumber, isObject } from '../../../../base/common/types.js';
|
|
|
21
21
|
import { deepClone } from '../../../../base/common/objects.js';
|
|
22
22
|
import { RawContextKey } from '../../../../platform/contextkey/common/contextkey.js';
|
|
23
23
|
import { IContextKeyService } from '../../../../platform/contextkey/common/contextkey.service.js';
|
|
24
|
+
const _moduleId = "vs/workbench/services/remote/common/tunnelModel";
|
|
24
25
|
const MISMATCH_LOCAL_PORT_COOLDOWN = 10 * 1000;
|
|
25
26
|
const TUNNELS_TO_RESTORE = 'remote.tunnels.toRestore';
|
|
26
27
|
const TUNNELS_TO_RESTORE_EXPIRATION = 'remote.tunnels.toRestoreExpiration';
|
|
27
28
|
const RESTORE_EXPIRATION_TIME = 1000 * 60 * 60 * 24 * 14;
|
|
28
29
|
const ACTIVATION_EVENT = 'onTunnel';
|
|
29
|
-
const forwardedPortsViewEnabled = ( new RawContextKey('forwardedPortsViewEnabled', false, ( localizeWithPath(
|
|
30
|
-
'vs/workbench/services/remote/common/tunnelModel',
|
|
31
|
-
'tunnel.forwardedPortsViewEnabled',
|
|
32
|
-
"Whether the Ports view is enabled."
|
|
33
|
-
))));
|
|
30
|
+
const forwardedPortsViewEnabled = ( (new RawContextKey('forwardedPortsViewEnabled', false, ( localizeWithPath(_moduleId, 0, "Whether the Ports view is enabled.")))));
|
|
34
31
|
function parseAddress(address) {
|
|
35
32
|
const matches = address.match(/^([a-zA-Z0-9_-]+(?:\.[a-zA-Z0-9_-]+)*:)?([0-9]+)$/);
|
|
36
33
|
if (!matches) {
|
|
@@ -39,32 +36,24 @@ function parseAddress(address) {
|
|
|
39
36
|
return { host: matches[1]?.substring(0, matches[1].length - 1) || 'localhost', port: Number(matches[2]) };
|
|
40
37
|
}
|
|
41
38
|
var TunnelCloseReason;
|
|
42
|
-
( (function(TunnelCloseReason) {
|
|
39
|
+
( ((function(TunnelCloseReason) {
|
|
43
40
|
TunnelCloseReason["Other"] = "Other";
|
|
44
41
|
TunnelCloseReason["User"] = "User";
|
|
45
42
|
TunnelCloseReason["AutoForwardEnd"] = "AutoForwardEnd";
|
|
46
|
-
})(TunnelCloseReason || (TunnelCloseReason = {})));
|
|
43
|
+
})(TunnelCloseReason || (TunnelCloseReason = {}))));
|
|
47
44
|
var TunnelSource;
|
|
48
|
-
( (function(TunnelSource) {
|
|
45
|
+
( ((function(TunnelSource) {
|
|
49
46
|
TunnelSource[TunnelSource["User"] = 0] = "User";
|
|
50
47
|
TunnelSource[TunnelSource["Auto"] = 1] = "Auto";
|
|
51
48
|
TunnelSource[TunnelSource["Extension"] = 2] = "Extension";
|
|
52
|
-
})(TunnelSource || (TunnelSource = {})));
|
|
49
|
+
})(TunnelSource || (TunnelSource = {}))));
|
|
53
50
|
const UserTunnelSource = {
|
|
54
51
|
source: TunnelSource.User,
|
|
55
|
-
description: ( localizeWithPath(
|
|
56
|
-
'vs/workbench/services/remote/common/tunnelModel',
|
|
57
|
-
'tunnel.source.user',
|
|
58
|
-
"User Forwarded"
|
|
59
|
-
))
|
|
52
|
+
description: ( localizeWithPath(_moduleId, 1, "User Forwarded"))
|
|
60
53
|
};
|
|
61
54
|
const AutoTunnelSource = {
|
|
62
55
|
source: TunnelSource.Auto,
|
|
63
|
-
description: ( localizeWithPath(
|
|
64
|
-
'vs/workbench/services/remote/common/tunnelModel',
|
|
65
|
-
'tunnel.source.auto',
|
|
66
|
-
"Auto Forwarded"
|
|
67
|
-
))
|
|
56
|
+
description: ( localizeWithPath(_moduleId, 2, "Auto Forwarded"))
|
|
68
57
|
};
|
|
69
58
|
function mapHasAddress(map, host, port) {
|
|
70
59
|
const initialAddress = map.get(makeAddress(host, port));
|
|
@@ -74,7 +63,7 @@ function mapHasAddress(map, host, port) {
|
|
|
74
63
|
if (isLocalhost(host)) {
|
|
75
64
|
for (const testHost of LOCALHOST_ADDRESSES) {
|
|
76
65
|
const testAddress = makeAddress(testHost, port);
|
|
77
|
-
if (( map.has(testAddress))) {
|
|
66
|
+
if (( (map.has(testAddress)))) {
|
|
78
67
|
return map.get(testAddress);
|
|
79
68
|
}
|
|
80
69
|
}
|
|
@@ -82,7 +71,7 @@ function mapHasAddress(map, host, port) {
|
|
|
82
71
|
else if (isAllInterfaces(host)) {
|
|
83
72
|
for (const testHost of ALL_INTERFACES_ADDRESSES) {
|
|
84
73
|
const testAddress = makeAddress(testHost, port);
|
|
85
|
-
if (( map.has(testAddress))) {
|
|
74
|
+
if (( (map.has(testAddress)))) {
|
|
86
75
|
return map.get(testAddress);
|
|
87
76
|
}
|
|
88
77
|
}
|
|
@@ -104,14 +93,14 @@ function makeAddress(host, port) {
|
|
|
104
93
|
return host + ':' + port;
|
|
105
94
|
}
|
|
106
95
|
var OnPortForward;
|
|
107
|
-
( (function(OnPortForward) {
|
|
96
|
+
( ((function(OnPortForward) {
|
|
108
97
|
OnPortForward["Notify"] = "notify";
|
|
109
98
|
OnPortForward["OpenBrowser"] = "openBrowser";
|
|
110
99
|
OnPortForward["OpenBrowserOnce"] = "openBrowserOnce";
|
|
111
100
|
OnPortForward["OpenPreview"] = "openPreview";
|
|
112
101
|
OnPortForward["Silent"] = "silent";
|
|
113
102
|
OnPortForward["Ignore"] = "ignore";
|
|
114
|
-
})(OnPortForward || (OnPortForward = {})));
|
|
103
|
+
})(OnPortForward || (OnPortForward = {}))));
|
|
115
104
|
function isCandidatePort(candidate) {
|
|
116
105
|
return candidate && 'host' in candidate && typeof candidate.host === 'string'
|
|
117
106
|
&& 'port' in candidate && typeof candidate.port === 'number'
|
|
@@ -127,7 +116,7 @@ class PortsAttributes extends Disposable {
|
|
|
127
116
|
super();
|
|
128
117
|
this.configurationService = configurationService;
|
|
129
118
|
this.portsAttributes = [];
|
|
130
|
-
this._onDidChangeAttributes = ( new Emitter());
|
|
119
|
+
this._onDidChangeAttributes = ( (new Emitter()));
|
|
131
120
|
this.onDidChangeAttributes = this._onDidChangeAttributes.event;
|
|
132
121
|
this._register(configurationService.onDidChangeConfiguration(e => {
|
|
133
122
|
if (e.affectsConfiguration(PortsAttributes.SETTING) || e.affectsConfiguration(PortsAttributes.DEFAULTS)) {
|
|
@@ -328,38 +317,38 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
328
317
|
this.dialogService = dialogService;
|
|
329
318
|
this.extensionService = extensionService;
|
|
330
319
|
this.contextKeyService = contextKeyService;
|
|
331
|
-
this.inProgress = ( new Map());
|
|
332
|
-
this._onForwardPort = ( new Emitter());
|
|
320
|
+
this.inProgress = ( (new Map()));
|
|
321
|
+
this._onForwardPort = ( (new Emitter()));
|
|
333
322
|
this.onForwardPort = this._onForwardPort.event;
|
|
334
|
-
this._onClosePort = ( new Emitter());
|
|
323
|
+
this._onClosePort = ( (new Emitter()));
|
|
335
324
|
this.onClosePort = this._onClosePort.event;
|
|
336
|
-
this._onPortName = ( new Emitter());
|
|
325
|
+
this._onPortName = ( (new Emitter()));
|
|
337
326
|
this.onPortName = this._onPortName.event;
|
|
338
|
-
this._onCandidatesChanged = ( new Emitter());
|
|
327
|
+
this._onCandidatesChanged = ( (new Emitter()));
|
|
339
328
|
this.onCandidatesChanged = this._onCandidatesChanged.event;
|
|
340
|
-
this._onEnvironmentTunnelsSet = ( new Emitter());
|
|
329
|
+
this._onEnvironmentTunnelsSet = ( (new Emitter()));
|
|
341
330
|
this.onEnvironmentTunnelsSet = this._onEnvironmentTunnelsSet.event;
|
|
342
331
|
this._environmentTunnelsSet = false;
|
|
343
332
|
this.restoreListener = undefined;
|
|
344
333
|
this.restoreComplete = false;
|
|
345
|
-
this.onRestoreComplete = ( new Emitter());
|
|
346
|
-
this.unrestoredExtensionTunnels = ( new Map());
|
|
347
|
-
this.sessionCachedProperties = ( new Map());
|
|
334
|
+
this.onRestoreComplete = ( (new Emitter()));
|
|
335
|
+
this.unrestoredExtensionTunnels = ( (new Map()));
|
|
336
|
+
this.sessionCachedProperties = ( (new Map()));
|
|
348
337
|
this.portAttributesProviders = [];
|
|
349
|
-
this.mismatchCooldown = ( new Date());
|
|
350
|
-
this.configPortsAttributes = ( new PortsAttributes(configurationService));
|
|
338
|
+
this.mismatchCooldown = ( (new Date()));
|
|
339
|
+
this.configPortsAttributes = ( (new PortsAttributes(configurationService)));
|
|
351
340
|
this.tunnelRestoreValue = this.getTunnelRestoreValue();
|
|
352
341
|
this._register(this.configPortsAttributes.onDidChangeAttributes(this.updateAttributes, this));
|
|
353
|
-
this.forwarded = ( new Map());
|
|
354
|
-
this.remoteTunnels = ( new Map());
|
|
342
|
+
this.forwarded = ( (new Map()));
|
|
343
|
+
this.remoteTunnels = ( (new Map()));
|
|
355
344
|
this.tunnelService.tunnels.then(async (tunnels) => {
|
|
356
|
-
const attributes = await this.getAttributes(( tunnels.map(tunnel => {
|
|
345
|
+
const attributes = await this.getAttributes(( (tunnels.map(tunnel => {
|
|
357
346
|
return { port: tunnel.tunnelRemotePort, host: tunnel.tunnelRemoteHost };
|
|
358
|
-
})));
|
|
347
|
+
}))));
|
|
359
348
|
for (const tunnel of tunnels) {
|
|
360
349
|
if (tunnel.localAddress) {
|
|
361
350
|
const key = makeAddress(tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort);
|
|
362
|
-
const matchingCandidate = mapHasAddressLocalhostOrAllInterfaces(this._candidates ?? ( new Map()), tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort);
|
|
351
|
+
const matchingCandidate = mapHasAddressLocalhostOrAllInterfaces(this._candidates ?? ( (new Map())), tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort);
|
|
363
352
|
this.forwarded.set(key, {
|
|
364
353
|
remotePort: tunnel.tunnelRemotePort,
|
|
365
354
|
remoteHost: tunnel.tunnelRemoteHost,
|
|
@@ -377,14 +366,14 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
377
366
|
}
|
|
378
367
|
}
|
|
379
368
|
});
|
|
380
|
-
this.detected = ( new Map());
|
|
369
|
+
this.detected = ( (new Map()));
|
|
381
370
|
this._register(this.tunnelService.onTunnelOpened(async (tunnel) => {
|
|
382
371
|
const key = makeAddress(tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort);
|
|
383
372
|
if (!mapHasAddressLocalhostOrAllInterfaces(this.forwarded, tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort)
|
|
384
373
|
&& !mapHasAddressLocalhostOrAllInterfaces(this.detected, tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort)
|
|
385
374
|
&& !mapHasAddressLocalhostOrAllInterfaces(this.inProgress, tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort)
|
|
386
375
|
&& tunnel.localAddress) {
|
|
387
|
-
const matchingCandidate = mapHasAddressLocalhostOrAllInterfaces(this._candidates ?? ( new Map()), tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort);
|
|
376
|
+
const matchingCandidate = mapHasAddressLocalhostOrAllInterfaces(this._candidates ?? ( (new Map())), tunnel.tunnelRemoteHost, tunnel.tunnelRemotePort);
|
|
388
377
|
const attributes = (await this.getAttributes([{ port: tunnel.tunnelRemotePort, host: tunnel.tunnelRemoteHost }]))?.get(tunnel.tunnelRemotePort);
|
|
389
378
|
this.forwarded.set(key, {
|
|
390
379
|
remoteHost: tunnel.tunnelRemoteHost,
|
|
@@ -429,7 +418,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
429
418
|
}
|
|
430
419
|
async onTunnelClosed(address, reason) {
|
|
431
420
|
const key = makeAddress(address.host, address.port);
|
|
432
|
-
if (( this.forwarded.has(key))) {
|
|
421
|
+
if (( (this.forwarded.has(key)))) {
|
|
433
422
|
this.forwarded.delete(key);
|
|
434
423
|
await this.storeForwarded();
|
|
435
424
|
this._onClosePort.fire(address);
|
|
@@ -437,10 +426,14 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
437
426
|
}
|
|
438
427
|
makeLocalUri(localAddress, attributes) {
|
|
439
428
|
if (localAddress.startsWith('http')) {
|
|
440
|
-
return (
|
|
429
|
+
return (
|
|
430
|
+
(URI.parse(localAddress))
|
|
431
|
+
);
|
|
441
432
|
}
|
|
442
433
|
const protocol = attributes?.protocol ?? 'http';
|
|
443
|
-
return (
|
|
434
|
+
return (
|
|
435
|
+
(URI.parse(`${protocol}://${localAddress}`))
|
|
436
|
+
);
|
|
444
437
|
}
|
|
445
438
|
async addStorageKeyPostfix(prefix) {
|
|
446
439
|
const workspace = this.workspaceContextService.getWorkspace();
|
|
@@ -476,7 +469,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
476
469
|
const tunnelRestoreValue = await this.tunnelRestoreValue;
|
|
477
470
|
if (tunnelRestoreValue && (tunnelRestoreValue !== this.knownPortsRestoreValue)) {
|
|
478
471
|
const tunnels = JSON.parse(tunnelRestoreValue) ?? [];
|
|
479
|
-
this.logService.trace(`ForwardedPorts: (TunnelModel) restoring ports ${( tunnels.map(tunnel => tunnel.remotePort)).join(', ')}`);
|
|
472
|
+
this.logService.trace(`ForwardedPorts: (TunnelModel) restoring ports ${( (tunnels.map(tunnel => tunnel.remotePort))).join(', ')}`);
|
|
480
473
|
for (const tunnel of tunnels) {
|
|
481
474
|
const alreadyForwarded = mapHasAddressLocalhostOrAllInterfaces(this.detected, tunnel.remoteHost, tunnel.remotePort);
|
|
482
475
|
if ((tunnel.source.source !== TunnelSource.Extension && !alreadyForwarded) || (tunnel.source.source === TunnelSource.Extension && alreadyForwarded)) {
|
|
@@ -498,7 +491,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
498
491
|
this.onRestoreComplete.fire();
|
|
499
492
|
if (!this.restoreListener) {
|
|
500
493
|
const key = await this.getTunnelRestoreStorageKey();
|
|
501
|
-
this.restoreListener = this._register(( new DisposableStore()));
|
|
494
|
+
this.restoreListener = this._register(( (new DisposableStore())));
|
|
502
495
|
this.restoreListener.add(this.storageService.onDidChangeValue(0 , undefined, this.restoreListener)(async (e) => {
|
|
503
496
|
if (e.key === key) {
|
|
504
497
|
this.tunnelRestoreValue = Promise.resolve(this.storageService.get(key, 0 ));
|
|
@@ -508,7 +501,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
508
501
|
}
|
|
509
502
|
}
|
|
510
503
|
cleanupExpiredTunnelsForRestore() {
|
|
511
|
-
const keys = ( this.storageService.keys(0, 0 )).filter(key => key.startsWith(TUNNELS_TO_RESTORE_EXPIRATION));
|
|
504
|
+
const keys = ( (this.storageService.keys(0, 0 ))).filter(key => key.startsWith(TUNNELS_TO_RESTORE_EXPIRATION));
|
|
512
505
|
for (const key of keys) {
|
|
513
506
|
const expiration = this.storageService.getNumber(key, 0 );
|
|
514
507
|
if (expiration && expiration < Date.now()) {
|
|
@@ -521,8 +514,8 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
521
514
|
}
|
|
522
515
|
async storeForwarded() {
|
|
523
516
|
if (this.configurationService.getValue('remote.restoreForwardedPorts')) {
|
|
524
|
-
const forwarded = Array.from(( this.forwarded.values()));
|
|
525
|
-
const restorableTunnels = ( forwarded.map(tunnel => {
|
|
517
|
+
const forwarded = Array.from(( (this.forwarded.values())));
|
|
518
|
+
const restorableTunnels = ( (forwarded.map(tunnel => {
|
|
526
519
|
return {
|
|
527
520
|
remoteHost: tunnel.remoteHost,
|
|
528
521
|
remotePort: tunnel.remotePort,
|
|
@@ -533,7 +526,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
533
526
|
protocol: tunnel.protocol,
|
|
534
527
|
source: tunnel.source,
|
|
535
528
|
};
|
|
536
|
-
}));
|
|
529
|
+
})));
|
|
537
530
|
let valueToStore;
|
|
538
531
|
if (forwarded.length > 0) {
|
|
539
532
|
valueToStore = JSON.stringify(restorableTunnels);
|
|
@@ -558,14 +551,14 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
558
551
|
if (tunnel.tunnelLocalPort === expectedLocal) {
|
|
559
552
|
return;
|
|
560
553
|
}
|
|
561
|
-
const newCooldown = ( new Date());
|
|
554
|
+
const newCooldown = ( (new Date()));
|
|
562
555
|
if ((this.mismatchCooldown.getTime() + MISMATCH_LOCAL_PORT_COOLDOWN) > newCooldown.getTime()) {
|
|
563
556
|
return;
|
|
564
557
|
}
|
|
565
558
|
this.mismatchCooldown = newCooldown;
|
|
566
559
|
const mismatchString = ( localizeWithPath(
|
|
567
|
-
|
|
568
|
-
|
|
560
|
+
_moduleId,
|
|
561
|
+
3,
|
|
569
562
|
"Local port {0} could not be used for forwarding to remote port {1}.\n\nThis usually happens when there is already another process using local port {0}.\n\nPort number {2} has been used instead.",
|
|
570
563
|
expectedLocal,
|
|
571
564
|
tunnel.tunnelRemotePort,
|
|
@@ -601,7 +594,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
601
594
|
noTunnelValue = tunnel;
|
|
602
595
|
}
|
|
603
596
|
else if (tunnel && tunnel.localAddress) {
|
|
604
|
-
const matchingCandidate = mapHasAddressLocalhostOrAllInterfaces(this._candidates ?? ( new Map()), tunnelProperties.remote.host, tunnelProperties.remote.port);
|
|
597
|
+
const matchingCandidate = mapHasAddressLocalhostOrAllInterfaces(this._candidates ?? ( (new Map())), tunnelProperties.remote.host, tunnelProperties.remote.port);
|
|
605
598
|
const protocol = (tunnel.protocol ?
|
|
606
599
|
((tunnel.protocol === TunnelProtocol.Https) ? TunnelProtocol.Https : TunnelProtocol.Http)
|
|
607
600
|
: (attributes?.protocol ?? TunnelProtocol.Http));
|
|
@@ -636,7 +629,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
636
629
|
return noTunnelValue;
|
|
637
630
|
}
|
|
638
631
|
mergeCachedAndUnrestoredProperties(key, tunnelProperties) {
|
|
639
|
-
const map = ( this.unrestoredExtensionTunnels.has(key)) ? this.unrestoredExtensionTunnels : (( this.sessionCachedProperties.has(key)) ? this.sessionCachedProperties : undefined);
|
|
632
|
+
const map = ( (this.unrestoredExtensionTunnels.has(key))) ? this.unrestoredExtensionTunnels : (( (this.sessionCachedProperties.has(key))) ? this.sessionCachedProperties : undefined);
|
|
640
633
|
if (map) {
|
|
641
634
|
const updateProps = map.get(key);
|
|
642
635
|
map.delete(key);
|
|
@@ -651,11 +644,11 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
651
644
|
async mergeAttributesIntoExistingTunnel(existingTunnel, tunnelProperties, attributes) {
|
|
652
645
|
const newName = attributes?.label ?? tunnelProperties.name;
|
|
653
646
|
let MergedAttributeAction;
|
|
654
|
-
( (function(MergedAttributeAction) {
|
|
647
|
+
( ((function(MergedAttributeAction) {
|
|
655
648
|
MergedAttributeAction[MergedAttributeAction["None"] = 0] = "None";
|
|
656
649
|
MergedAttributeAction[MergedAttributeAction["Fire"] = 1] = "Fire";
|
|
657
650
|
MergedAttributeAction[MergedAttributeAction["Reopen"] = 2] = "Reopen";
|
|
658
|
-
})(MergedAttributeAction || (MergedAttributeAction = {})));
|
|
651
|
+
})(MergedAttributeAction || (MergedAttributeAction = {}))));
|
|
659
652
|
let mergedAction = MergedAttributeAction.None;
|
|
660
653
|
if (newName !== existingTunnel.name) {
|
|
661
654
|
existingTunnel.name = newName;
|
|
@@ -689,7 +682,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
689
682
|
this._onPortName.fire({ host, port });
|
|
690
683
|
return;
|
|
691
684
|
}
|
|
692
|
-
else if (( this.detected.has(key))) {
|
|
685
|
+
else if (( (this.detected.has(key)))) {
|
|
693
686
|
this.detected.get(key).name = name;
|
|
694
687
|
this._onPortName.fire({ host, port });
|
|
695
688
|
}
|
|
@@ -717,7 +710,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
717
710
|
addEnvironmentTunnels(tunnels) {
|
|
718
711
|
if (tunnels) {
|
|
719
712
|
for (const tunnel of tunnels) {
|
|
720
|
-
const matchingCandidate = mapHasAddressLocalhostOrAllInterfaces(this._candidates ?? ( new Map()), tunnel.remoteAddress.host, tunnel.remoteAddress.port);
|
|
713
|
+
const matchingCandidate = mapHasAddressLocalhostOrAllInterfaces(this._candidates ?? ( (new Map())), tunnel.remoteAddress.host, tunnel.remoteAddress.port);
|
|
721
714
|
const localAddress = typeof tunnel.localAddress === 'string' ? tunnel.localAddress : makeAddress(tunnel.localAddress.host, tunnel.localAddress.port);
|
|
722
715
|
this.detected.set(makeAddress(tunnel.remoteAddress.host, tunnel.remoteAddress.port), {
|
|
723
716
|
remoteHost: tunnel.remoteAddress.host,
|
|
@@ -732,11 +725,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
732
725
|
privacy: TunnelPrivacyId.ConstantPrivate,
|
|
733
726
|
source: {
|
|
734
727
|
source: TunnelSource.Extension,
|
|
735
|
-
description: ( localizeWithPath(
|
|
736
|
-
'vs/workbench/services/remote/common/tunnelModel',
|
|
737
|
-
'tunnel.staticallyForwarded',
|
|
738
|
-
"Statically Forwarded"
|
|
739
|
-
))
|
|
728
|
+
description: ( localizeWithPath(_moduleId, 4, "Statically Forwarded"))
|
|
740
729
|
}
|
|
741
730
|
});
|
|
742
731
|
this.tunnelService.setEnvironmentTunnel(tunnel.remoteAddress.host, tunnel.remoteAddress.port, localAddress, TunnelPrivacyId.ConstantPrivate, TunnelProtocol.Http);
|
|
@@ -755,12 +744,12 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
755
744
|
processedCandidates = await this._candidateFilter(candidates);
|
|
756
745
|
}
|
|
757
746
|
const removedCandidates = this.updateInResponseToCandidates(processedCandidates);
|
|
758
|
-
this.logService.trace(`ForwardedPorts: (TunnelModel) removed candidates ${( Array.from(( removedCandidates.values())).map(candidate => candidate.port)).join(', ')}`);
|
|
747
|
+
this.logService.trace(`ForwardedPorts: (TunnelModel) removed candidates ${( (Array.from(( (removedCandidates.values()))).map(candidate => candidate.port))).join(', ')}`);
|
|
759
748
|
this._onCandidatesChanged.fire(removedCandidates);
|
|
760
749
|
}
|
|
761
750
|
updateInResponseToCandidates(candidates) {
|
|
762
|
-
const removedCandidates = this._candidates ?? ( new Map());
|
|
763
|
-
const candidatesMap = ( new Map());
|
|
751
|
+
const removedCandidates = this._candidates ?? ( (new Map()));
|
|
752
|
+
const candidatesMap = ( (new Map()));
|
|
764
753
|
this._candidates = candidatesMap;
|
|
765
754
|
candidates.forEach(value => {
|
|
766
755
|
const addressKey = makeAddress(value.host, value.port);
|
|
@@ -770,7 +759,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
770
759
|
detail: value.detail,
|
|
771
760
|
pid: value.pid
|
|
772
761
|
});
|
|
773
|
-
if (( removedCandidates.has(addressKey))) {
|
|
762
|
+
if (( (removedCandidates.has(addressKey)))) {
|
|
774
763
|
removedCandidates.delete(addressKey);
|
|
775
764
|
}
|
|
776
765
|
const forwardedValue = mapHasAddressLocalhostOrAllInterfaces(this.forwarded, value.host, value.port);
|
|
@@ -801,16 +790,16 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
801
790
|
return removedCandidates;
|
|
802
791
|
}
|
|
803
792
|
get candidates() {
|
|
804
|
-
return this._candidates ? Array.from(( this._candidates.values())) : [];
|
|
793
|
+
return this._candidates ? Array.from(( (this._candidates.values()))) : [];
|
|
805
794
|
}
|
|
806
795
|
get candidatesOrUndefined() {
|
|
807
796
|
return this._candidates ? this.candidates : undefined;
|
|
808
797
|
}
|
|
809
798
|
async updateAttributes() {
|
|
810
|
-
const tunnels = Array.from(( this.forwarded.values()));
|
|
811
|
-
const allAttributes = await this.getAttributes(( tunnels.map(tunnel => {
|
|
799
|
+
const tunnels = Array.from(( (this.forwarded.values())));
|
|
800
|
+
const allAttributes = await this.getAttributes(( (tunnels.map(tunnel => {
|
|
812
801
|
return { port: tunnel.remotePort, host: tunnel.remoteHost };
|
|
813
|
-
})), false);
|
|
802
|
+
}))), false);
|
|
814
803
|
if (!allAttributes) {
|
|
815
804
|
return;
|
|
816
805
|
}
|
|
@@ -833,20 +822,20 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
833
822
|
}
|
|
834
823
|
}
|
|
835
824
|
async getAttributes(forwardedPorts, checkProviders = true) {
|
|
836
|
-
const matchingCandidates = ( new Map());
|
|
837
|
-
const pidToPortsMapping = ( new Map());
|
|
825
|
+
const matchingCandidates = ( (new Map()));
|
|
826
|
+
const pidToPortsMapping = ( (new Map()));
|
|
838
827
|
forwardedPorts.forEach(forwardedPort => {
|
|
839
|
-
const matchingCandidate = mapHasAddressLocalhostOrAllInterfaces(this._candidates ?? ( new Map()), LOCALHOST_ADDRESSES[0], forwardedPort.port) ?? forwardedPort;
|
|
828
|
+
const matchingCandidate = mapHasAddressLocalhostOrAllInterfaces(this._candidates ?? ( (new Map())), LOCALHOST_ADDRESSES[0], forwardedPort.port) ?? forwardedPort;
|
|
840
829
|
if (matchingCandidate) {
|
|
841
830
|
matchingCandidates.set(forwardedPort.port, matchingCandidate);
|
|
842
831
|
const pid = isCandidatePort(matchingCandidate) ? matchingCandidate.pid : undefined;
|
|
843
|
-
if (!( pidToPortsMapping.has(pid))) {
|
|
832
|
+
if (!( (pidToPortsMapping.has(pid)))) {
|
|
844
833
|
pidToPortsMapping.set(pid, []);
|
|
845
834
|
}
|
|
846
835
|
pidToPortsMapping.get(pid)?.push(forwardedPort.port);
|
|
847
836
|
}
|
|
848
837
|
});
|
|
849
|
-
const configAttributes = ( new Map());
|
|
838
|
+
const configAttributes = ( (new Map()));
|
|
850
839
|
forwardedPorts.forEach(forwardedPort => {
|
|
851
840
|
const attributes = this.configPortsAttributes.getAttributes(forwardedPort.port, forwardedPort.host, matchingCandidates.get(forwardedPort.port)?.detail);
|
|
852
841
|
if (attributes) {
|
|
@@ -856,14 +845,16 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
856
845
|
if ((this.portAttributesProviders.length === 0) || !checkProviders) {
|
|
857
846
|
return (configAttributes.size > 0) ? configAttributes : undefined;
|
|
858
847
|
}
|
|
859
|
-
const allProviderResults = await Promise.all(flatten(( this.portAttributesProviders.map(provider => {
|
|
860
|
-
return (
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
848
|
+
const allProviderResults = await Promise.all(flatten(( (this.portAttributesProviders.map(provider => {
|
|
849
|
+
return (
|
|
850
|
+
(Array.from(pidToPortsMapping.entries()).map(entry => {
|
|
851
|
+
const portGroup = entry[1];
|
|
852
|
+
const matchingCandidate = matchingCandidates.get(portGroup[0]);
|
|
853
|
+
return provider.providePortAttributes(portGroup, matchingCandidate?.pid, matchingCandidate?.detail, CancellationToken.None);
|
|
854
|
+
}))
|
|
855
|
+
);
|
|
856
|
+
})))));
|
|
857
|
+
const providedAttributes = ( (new Map()));
|
|
867
858
|
allProviderResults.forEach(attributes => attributes.forEach(attribute => {
|
|
868
859
|
if (attribute) {
|
|
869
860
|
providedAttributes.set(attribute.port, attribute);
|
|
@@ -872,7 +863,7 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
872
863
|
if (!configAttributes && !providedAttributes) {
|
|
873
864
|
return undefined;
|
|
874
865
|
}
|
|
875
|
-
const mergedAttributes = ( new Map());
|
|
866
|
+
const mergedAttributes = ( (new Map()));
|
|
876
867
|
forwardedPorts.forEach(forwardedPorts => {
|
|
877
868
|
const config = configAttributes.get(forwardedPorts.port);
|
|
878
869
|
const provider = providedAttributes.get(forwardedPorts.port);
|
|
@@ -890,19 +881,19 @@ let TunnelModel = class TunnelModel extends Disposable {
|
|
|
890
881
|
this.portAttributesProviders.push(provider);
|
|
891
882
|
}
|
|
892
883
|
};
|
|
893
|
-
TunnelModel.__decorator = ( __decorate([
|
|
884
|
+
TunnelModel.__decorator = ( (__decorate([
|
|
894
885
|
debounce(1000)
|
|
895
|
-
], TunnelModel.prototype, "storeForwarded", null));
|
|
896
|
-
TunnelModel = ( __decorate([
|
|
897
|
-
( __param(0, ITunnelService)),
|
|
898
|
-
( __param(1, IStorageService)),
|
|
899
|
-
( __param(2, IConfigurationService)),
|
|
900
|
-
( __param(3, IWorkbenchEnvironmentService)),
|
|
901
|
-
( __param(4, IRemoteAuthorityResolverService)),
|
|
902
|
-
( __param(5, IWorkspaceContextService)),
|
|
903
|
-
( __param(6, ILogService)),
|
|
904
|
-
( __param(7, IDialogService)),
|
|
905
|
-
( __param(8, IExtensionService)),
|
|
906
|
-
( __param(9, IContextKeyService))
|
|
907
|
-
], TunnelModel));
|
|
886
|
+
], TunnelModel.prototype, "storeForwarded", null)));
|
|
887
|
+
TunnelModel = ( (__decorate([
|
|
888
|
+
( (__param(0, ITunnelService))),
|
|
889
|
+
( (__param(1, IStorageService))),
|
|
890
|
+
( (__param(2, IConfigurationService))),
|
|
891
|
+
( (__param(3, IWorkbenchEnvironmentService))),
|
|
892
|
+
( (__param(4, IRemoteAuthorityResolverService))),
|
|
893
|
+
( (__param(5, IWorkspaceContextService))),
|
|
894
|
+
( (__param(6, ILogService))),
|
|
895
|
+
( (__param(7, IDialogService))),
|
|
896
|
+
( (__param(8, IExtensionService))),
|
|
897
|
+
( (__param(9, IContextKeyService)))
|
|
898
|
+
], TunnelModel)));
|
|
908
899
|
export { ACTIVATION_EVENT, AutoTunnelSource, OnPortForward, PortsAttributes, TunnelCloseReason, TunnelModel, TunnelSource, UserTunnelSource, forwardedPortsViewEnabled, isCandidatePort, makeAddress, mapHasAddress, mapHasAddressLocalhostOrAllInterfaces, parseAddress };
|