@codingame/monaco-vscode-api 16.1.1 → 17.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +105 -0
- package/monaco.d.ts +2 -2
- package/package.json +10 -9
- package/services.d.ts +4 -4
- package/services.js +3 -3
- package/vscode/product.json.js +3 -0
- package/vscode/src/vs/base/browser/dom.d.ts +1 -0
- package/vscode/src/vs/base/browser/dom.js +6 -1
- package/vscode/src/vs/base/browser/mouseEvent.d.ts +2 -0
- package/vscode/src/vs/base/browser/mouseEvent.js +1 -0
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.d.ts +2 -3
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
- package/vscode/src/vs/base/browser/ui/hover/hover.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverDelegate2.js +6 -1
- package/vscode/src/vs/base/browser/ui/list/listPaging.d.ts +2 -1
- package/vscode/src/vs/base/browser/ui/severityIcon/media/severityIcon.css +1 -3
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +5 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +17 -4
- package/vscode/src/vs/base/common/arrays.d.ts +1 -0
- package/vscode/src/vs/base/common/arrays.js +5 -2
- package/vscode/src/vs/base/common/async.js +9 -2
- package/vscode/src/vs/base/common/codicons.d.ts +5 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +5 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +5 -0
- package/vscode/src/vs/base/common/color.d.ts +1 -0
- package/vscode/src/vs/base/common/color.js +10 -0
- package/vscode/src/vs/base/common/comparers.d.ts +2 -2
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.d.ts +3 -0
- package/vscode/src/vs/base/common/glob.js +10 -1
- package/vscode/src/vs/base/common/marshallingIds.d.ts +2 -1
- package/vscode/src/vs/base/common/marshallingIds.js +1 -0
- package/vscode/src/vs/base/common/observableInternal/autorun.d.ts +6 -8
- package/vscode/src/vs/base/common/observableInternal/autorun.js +15 -11
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +0 -10
- package/vscode/src/vs/base/common/observableInternal/changeTracker.d.ts +23 -0
- package/vscode/src/vs/base/common/observableInternal/changeTracker.js +30 -0
- package/vscode/src/vs/base/common/observableInternal/derived.d.ts +18 -13
- package/vscode/src/vs/base/common/observableInternal/derived.js +47 -18
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +6 -5
- package/vscode/src/vs/base/common/observableInternal/index.js +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/logging.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/promise.d.ts +28 -0
- package/vscode/src/vs/base/common/observableInternal/promise.js +65 -0
- package/vscode/src/vs/base/common/observableInternal/reducer.d.ts +16 -0
- package/vscode/src/vs/base/common/observableInternal/reducer.js +36 -0
- package/vscode/src/vs/base/common/observableInternal/utils.d.ts +2 -0
- package/vscode/src/vs/base/common/observableInternal/utils.js +19 -11
- package/vscode/src/vs/base/common/product.d.ts +5 -0
- package/vscode/src/vs/base/common/sseParser.d.ts +26 -0
- package/vscode/src/vs/base/common/sseParser.js +134 -0
- package/vscode/src/vs/base/common/stopwatch.js +2 -2
- package/vscode/src/vs/base/common/strings.d.ts +1 -0
- package/vscode/src/vs/base/common/strings.js +8 -19
- package/vscode/src/vs/base/common/ternarySearchTree.d.ts +1 -0
- package/vscode/src/vs/base/common/ternarySearchTree.js +55 -13
- package/vscode/src/vs/editor/browser/config/editorConfiguration.d.ts +1 -0
- package/vscode/src/vs/editor/browser/config/editorConfiguration.js +3 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.css +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +6 -3
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +86 -54
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.d.ts +0 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +12 -8
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.d.ts +0 -1
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +9 -6
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +3 -3
- package/vscode/src/vs/editor/browser/controller/mouseTarget.js +2 -2
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +1 -1
- package/vscode/src/vs/editor/browser/gpu/objectCollectionBuffer.d.ts +1 -1
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +2 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css +8 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +6 -1
- package/vscode/src/vs/editor/browser/view/renderingContext.d.ts +1 -0
- package/vscode/src/vs/editor/browser/view/renderingContext.js +3 -0
- package/vscode/src/vs/editor/browser/view/viewLayer.d.ts +3 -1
- package/vscode/src/vs/editor/browser/view/viewLayer.js +13 -6
- package/vscode/src/vs/editor/browser/view/viewOverlays.js +4 -1
- package/vscode/src/vs/editor/browser/viewParts/contentWidgets/contentWidgets.js +4 -5
- package/vscode/src/vs/editor/browser/viewParts/glyphMargin/glyphMargin.js +4 -2
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.d.ts +0 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursor.js +6 -6
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +3 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLines.js +2 -2
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +1 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +5 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +15 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +7 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorOptions.d.ts +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +10 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils.js +19 -15
- package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +5 -0
- package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +20 -0
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +24 -23
- package/vscode/src/vs/editor/common/config/editorOptions.js +1 -2
- package/vscode/src/vs/editor/common/core/columnRange.d.ts +11 -0
- package/vscode/src/vs/editor/common/core/columnRange.js +32 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetEdit.js +10 -0
- package/vscode/src/vs/editor/common/core/offsetRange.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/offsetRange.js +3 -0
- package/vscode/src/vs/editor/common/core/positionToOffset.d.ts +15 -3
- package/vscode/src/vs/editor/common/core/positionToOffset.js +45 -11
- package/vscode/src/vs/editor/common/core/rangeSingleLine.d.ts +9 -0
- package/vscode/src/vs/editor/common/core/rangeSingleLine.js +27 -0
- package/vscode/src/vs/editor/common/core/textEdit.d.ts +1 -0
- package/vscode/src/vs/editor/common/core/textEdit.js +41 -0
- package/vscode/src/vs/editor/common/editorCommon.d.ts +1 -0
- package/vscode/src/vs/editor/common/languages/modesRegistry.d.ts +2 -2
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +4 -2
- package/vscode/src/vs/editor/common/languages.d.ts +22 -1
- package/vscode/src/vs/editor/common/languages.js +7 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +5 -1
- package/vscode/src/vs/editor/common/model/textModel.js +80 -18
- package/vscode/src/vs/editor/common/model/tokenizationTextModelPart.js +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +2 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +5 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +7 -1
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +11 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +14 -1
- package/vscode/src/vs/editor/common/tokens/common.d.ts +7 -0
- package/vscode/src/vs/editor/common/tokens/common.js +18 -0
- package/vscode/src/vs/editor/common/tokens/contiguousTokensEditing.d.ts +1 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +1 -0
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +3 -0
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.d.ts +2 -0
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +20 -0
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.d.ts +2 -1
- package/vscode/src/vs/editor/common/tokens/sparseTokensStore.js +9 -4
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +1 -0
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +4 -0
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.d.ts +25 -0
- package/vscode/src/vs/editor/common/tokens/tokenWithTextArray.js +73 -0
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.d.ts +35 -0
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.js +339 -0
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.d.ts +8 -6
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +42 -49
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.d.ts +6 -3
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.js +16 -5
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +1 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +44 -7
- package/vscode/src/vs/editor/common/viewModel.d.ts +5 -0
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.d.ts +11 -3
- package/vscode/src/vs/editor/common/viewModelEventDispatcher.js +14 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +20 -14
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +3 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +4 -3
- package/vscode/src/vs/editor/contrib/find/browser/findController.d.ts +1 -3
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +5 -11
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +1 -7
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +2 -15
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +24 -23
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -14
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +39 -39
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/goToDefinitionAtPosition.js +1 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesController.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesTree.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/peek/referencesWidget.js +3 -3
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/referencesModel.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/symbolNavigation.js +5 -5
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +14 -12
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +21 -21
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.d.ts +0 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +29 -41
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +11 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletionsAccessibleView.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +10 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +31 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +16 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +156 -202
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +21 -49
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +135 -431
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEdit.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +98 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +487 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +34 -32
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +141 -132
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +26 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.d.ts +2 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +21 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +19 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +17 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.d.ts +5 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +139 -188
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +8 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +9 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +6 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.d.ts +23 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsNewUsers.js +157 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +37 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.d.ts +6 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +28 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +21 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +215 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +1 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +22 -21
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +30 -30
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +17 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +23 -49
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +8 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +2 -2
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +24 -14
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +19 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +5 -10
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +1 -1
- package/vscode/src/vs/editor/contrib/zoneWidget/browser/zoneWidget.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +2 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +2 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.d.ts +3 -0
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +23 -14
- package/vscode/src/vs/platform/actionWidget/browser/actionList.d.ts +2 -0
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +17 -3
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +6 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +2 -1
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.service.d.ts +2 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.js +2 -2
- package/vscode/src/vs/platform/actions/common/actions.d.ts +3 -1
- package/vscode/src/vs/platform/actions/common/actions.js +2 -0
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.d.ts +1 -0
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +3 -0
- package/vscode/src/vs/platform/clipboard/common/clipboardService.service.d.ts +1 -0
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +15 -13
- package/vscode/src/vs/platform/configuration/common/configurations.js +1 -1
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dialogs/common/dialogs.service.d.ts +1 -1
- package/vscode/src/vs/platform/dnd/browser/dnd.d.ts +5 -0
- package/vscode/src/vs/platform/dnd/browser/dnd.js +6 -2
- package/vscode/src/vs/platform/editor/common/editor.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +8 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +94 -4
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.d.ts +3 -2
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +10 -7
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsProfileScannerService.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +10 -11
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +7 -6
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +9 -8
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.js +6 -6
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/jsonschemas/common/jsonContributionRegistry.js +5 -4
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/vscode/src/vs/platform/label/common/label.service.d.ts +1 -1
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.service.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.d.ts +1 -1
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.js +6 -6
- package/vscode/src/vs/platform/markers/common/markerService.d.ts +2 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +5 -5
- package/vscode/src/vs/platform/markers/common/markers.d.ts +7 -0
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/markers/common/markers.service.d.ts +2 -7
- package/vscode/src/vs/platform/native/common/native.d.ts +168 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +6 -2
- package/vscode/src/vs/platform/notification/common/notification.js +3 -2
- package/vscode/src/vs/platform/notification/common/notification.service.d.ts +2 -3
- package/vscode/src/vs/platform/product/common/product.js +7 -90
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +4 -19
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +6 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +33 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.d.ts +2 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +6 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +25 -18
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.d.ts +5 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +58 -43
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +1 -1
- package/vscode/src/vs/platform/registry/common/platform.js +9 -1
- package/vscode/src/vs/platform/request/common/request.d.ts +1 -1
- package/vscode/src/vs/platform/request/common/request.js +18 -18
- package/vscode/src/vs/platform/request/common/request.service.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +14 -1
- package/vscode/src/vs/platform/terminal/common/terminal.js +14 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -2
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +4 -2
- package/vscode/src/vs/platform/theme/common/colorUtils.d.ts +7 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +12 -4
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +17 -17
- package/vscode/src/vs/platform/theme/common/colors/chartsColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +94 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.d.ts +2 -0
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +49 -47
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +7 -7
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +15 -15
- package/vscode/src/vs/platform/theme/common/colors/quickpickColors.js +9 -9
- package/vscode/src/vs/platform/theme/common/colors/searchColors.js +3 -3
- package/vscode/src/vs/platform/theme/common/iconRegistry.js +10 -8
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +0 -8
- package/vscode/src/vs/platform/theme/common/themeService.js +4 -3
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +2 -2
- package/vscode/src/vs/platform/window/common/window.d.ts +4 -0
- package/vscode/src/vs/platform/window/common/window.js +2 -1
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/platform/workspaces/common/workspaces.service.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +27 -20
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +54 -19
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostAiSettingsSearch.d.ts +14 -0
- package/vscode/src/vs/workbench/api/common/extHostAiSettingsSearch.js +38 -0
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +30 -17
- package/vscode/src/vs/workbench/api/common/extHostCodeMapper.js +2 -0
- package/vscode/src/vs/workbench/api/common/extHostCommands.d.ts +0 -1
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +15 -4
- package/vscode/src/vs/workbench/api/common/extHostLabelService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +4 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +31 -6
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +60 -14
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +15 -9
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +4 -3
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +279 -82
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostQuickDiff.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostQuickDiff.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostRequireInterceptor.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +21 -0
- package/vscode/src/vs/workbench/api/common/extHostSearch.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +27 -9
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +201 -29
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +67 -27
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +79 -28
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +7 -4
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +34 -9
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.d.ts +1 -0
- package/vscode/src/vs/workbench/api/worker/extHostExtensionService.js +3 -0
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +31 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +10 -16
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +3 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -71
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +13 -9
- package/vscode/src/vs/workbench/common/editor.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +160 -160
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +164 -147
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +15 -14
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +245 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +435 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +6 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +51 -49
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +19 -26
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +16 -23
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +585 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +1179 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +116 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +211 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +19 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatTransferService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatWidgetHistoryService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +12 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +33 -5
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +14 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +18 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/index.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +14 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.d.ts +28 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/types.service.d.ts +10 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +8 -25
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +11 -97
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderControlCharacter.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleRenderWhitespace.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleWordWrap.js +5 -5
- package/vscode/src/vs/workbench/contrib/comments/browser/commentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +64 -64
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +171 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +85 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +127 -0
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/files.service.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/folding/browser/folding.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsMultiple.js +20 -20
- package/vscode/src/vs/workbench/contrib/format/browser/formatActionsNone.js +4 -4
- package/vscode/src/vs/workbench/contrib/format/browser/formatModified.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlayHints/browser/inlayHintsAccessibilty.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.service.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/list/browser/listResizeColumnAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/list/browser/tableColumnResizeQuickPick.js +5 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpRegistryTypes.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +19 -8
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +12 -10
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +16 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookExecutionStateService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.service.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.d.ts +11 -3
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiffService.js +77 -16
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewWorkbenchService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +1 -1
- package/vscode/src/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.d.ts +17 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.js +10 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service.d.ts +13 -0
- package/vscode/src/vs/workbench/services/aiSettingsSearch/common/aiSettingsSearch.service.js +6 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.d.ts +2 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverExpression.js +61 -12
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.d.ts +3 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +25 -29
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +4 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/extensionRecommendations.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionDescriptionRegistry.js +3 -2
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +84 -84
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +4 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +2 -4
- package/vscode/src/vs/workbench/services/localization/common/locale.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.d.ts +1 -0
- package/vscode/src/vs/workbench/services/notebook/common/notebookDocumentService.js +2 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/output/common/output.js +6 -4
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/search/common/search.d.ts +2 -1
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.d.ts +5 -0
- package/vscode/src/vs/workbench/services/search/common/searchExtTypes.js +6 -1
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.d.ts +2 -2
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +31 -23
- package/vscode/src/vs/workbench/services/textfile/common/encoding.d.ts +64 -0
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +560 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +165 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.js +74 -0
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.service.d.ts +12 -2
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +12 -12
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +204 -9
- package/vscode-dts/vscode.proposed.aiSettingsSearch.d.ts +30 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +18 -16
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +84 -5
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +18 -16
- package/vscode-dts/vscode.proposed.chatStatusItem.d.ts +1 -1
- package/vscode-dts/vscode.proposed.commentThreadApplicability.d.ts +1 -1
- package/vscode-dts/vscode.proposed.contribDebugCreateConfiguration.d.ts +1 -1
- package/vscode-dts/vscode.proposed.d.ts +2 -2
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +2 -2
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +46 -8
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +106 -16
- package/vscode-dts/vscode.proposed.mappedEditsProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.mcpConfigurationProvider.d.ts +115 -21
- package/vscode-dts/vscode.proposed.quickDiffProvider.d.ts +7 -3
- package/vscode-dts/vscode.proposed.textSearchProvider2.d.ts +23 -1
- package/vscode-dts/vscode.proposed.toolProgress.d.ts +25 -0
- package/vscode-dts/vscode.proposed.tunnelFactory.d.ts +1 -1
- package/workbench.d.ts +1 -1
- package/vscode-dts/vscode.proposed.languageModelToolsForAgent.d.ts +0 -8
- package/vscode-dts/vscode.proposed.textDocumentEncoding.d.ts +0 -170
|
@@ -6,18 +6,19 @@ import { ExtHostMcpShape, MainThreadMcpShape } from "./extHost.protocol.js";
|
|
|
6
6
|
import { IExtHostRpcService } from "./extHostRpcService.js";
|
|
7
7
|
export declare const IExtHostMpcService: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IExtHostMpcService>;
|
|
8
8
|
export interface IExtHostMpcService extends ExtHostMcpShape {
|
|
9
|
-
registerMcpConfigurationProvider(extension: IExtensionDescription, id: string, provider: vscode.
|
|
9
|
+
registerMcpConfigurationProvider(extension: IExtensionDescription, id: string, provider: vscode.McpServerDefinitionProvider): IDisposable;
|
|
10
10
|
}
|
|
11
11
|
export declare class ExtHostMcpService extends Disposable implements IExtHostMpcService {
|
|
12
12
|
protected _proxy: MainThreadMcpShape;
|
|
13
13
|
private readonly _initialProviderPromises;
|
|
14
14
|
private readonly _sseEventSources;
|
|
15
|
-
private readonly
|
|
15
|
+
private readonly _unresolvedMcpServers;
|
|
16
16
|
constructor(extHostRpc: IExtHostRpcService);
|
|
17
17
|
$startMcp(id: number, launch: McpServerLaunch.Serialized): void;
|
|
18
18
|
protected _startMcp(id: number, launch: McpServerLaunch): void;
|
|
19
19
|
$stopMcp(id: number): void;
|
|
20
20
|
$sendMessage(id: number, message: string): void;
|
|
21
21
|
$waitForInitialCollectionProviders(): Promise<void>;
|
|
22
|
-
|
|
22
|
+
$resolveMcpLaunch(collectionId: string, label: string): Promise<McpServerLaunch.Serialized | undefined>;
|
|
23
|
+
registerMcpConfigurationProvider(extension: IExtensionDescription, id: string, provider: vscode.McpServerDefinitionProvider): IDisposable;
|
|
23
24
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { Sequencer, DeferredPromise } from '../../../base/common/async.js';
|
|
4
|
-
import { CancellationToken } from '../../../base/common/cancellation.js';
|
|
5
|
-
import { Lazy } from '../../../base/common/lazy.js';
|
|
3
|
+
import { Sequencer, DeferredPromise, timeout, raceCancellationError } from '../../../base/common/async.js';
|
|
4
|
+
import { CancellationToken, CancellationTokenSource } from '../../../base/common/cancellation.js';
|
|
6
5
|
import { Disposable, DisposableMap, DisposableStore, toDisposable } from '../../../base/common/lifecycle.js';
|
|
6
|
+
import { SSEParser } from '../../../base/common/sseParser.js';
|
|
7
7
|
import { ExtensionIdentifier } from '../../../platform/extensions/common/extensions.js';
|
|
8
8
|
import { createDecorator } from '../../../platform/instantiation/common/instantiation.js';
|
|
9
|
+
import { LogLevel } from '../../../platform/log/common/log.js';
|
|
9
10
|
import { StorageScope } from '../../../platform/storage/common/storage.js';
|
|
10
11
|
import { McpServerLaunch, McpServerTransportType, McpConnectionState, extensionPrefixedIdentifier } from '../../contrib/mcp/common/mcpTypes.js';
|
|
11
12
|
import { MainContext } from './extHost.protocol.js';
|
|
12
13
|
import { IExtHostRpcService } from './extHostRpcService.js';
|
|
13
|
-
import {
|
|
14
|
+
import { McpServerDefinition } from './extHostTypeConverters.js';
|
|
14
15
|
|
|
15
16
|
const IExtHostMpcService = ( createDecorator('IExtHostMpcService'));
|
|
16
17
|
let ExtHostMcpService = class ExtHostMcpService extends Disposable {
|
|
@@ -18,18 +19,15 @@ let ExtHostMcpService = class ExtHostMcpService extends Disposable {
|
|
|
18
19
|
super();
|
|
19
20
|
this._initialProviderPromises = ( new Set());
|
|
20
21
|
this._sseEventSources = this._register(( new DisposableMap()));
|
|
21
|
-
this.
|
|
22
|
-
const es = await import('@c4312/eventsource-umd').then(module => module.default ?? module);
|
|
23
|
-
return es.EventSource;
|
|
24
|
-
}));
|
|
22
|
+
this._unresolvedMcpServers = ( new Map());
|
|
25
23
|
this._proxy = ( extHostRpc.getProxy(MainContext.MainThreadMcp));
|
|
26
24
|
}
|
|
27
25
|
$startMcp(id, launch) {
|
|
28
26
|
this._startMcp(id, McpServerLaunch.fromSerialized(launch));
|
|
29
27
|
}
|
|
30
28
|
_startMcp(id, launch) {
|
|
31
|
-
if (launch.type === McpServerTransportType.
|
|
32
|
-
this._sseEventSources.set(id, ( new
|
|
29
|
+
if (launch.type === McpServerTransportType.HTTP) {
|
|
30
|
+
this._sseEventSources.set(id, ( new McpHTTPHandle(id, launch, this._proxy)));
|
|
33
31
|
return;
|
|
34
32
|
}
|
|
35
33
|
throw ( new Error('not implemented'));
|
|
@@ -46,6 +44,21 @@ let ExtHostMcpService = class ExtHostMcpService extends Disposable {
|
|
|
46
44
|
async $waitForInitialCollectionProviders() {
|
|
47
45
|
await Promise.all(this._initialProviderPromises);
|
|
48
46
|
}
|
|
47
|
+
async $resolveMcpLaunch(collectionId, label) {
|
|
48
|
+
const rec = this._unresolvedMcpServers.get(collectionId);
|
|
49
|
+
if (!rec) {
|
|
50
|
+
return;
|
|
51
|
+
}
|
|
52
|
+
const server = rec.servers.find(s => s.label === label);
|
|
53
|
+
if (!server) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
if (!rec.provider.resolveMcpServerDefinition) {
|
|
57
|
+
return McpServerDefinition.from(server);
|
|
58
|
+
}
|
|
59
|
+
const resolved = await rec.provider.resolveMcpServerDefinition(server, CancellationToken.None);
|
|
60
|
+
return resolved ? McpServerDefinition.from(resolved) : undefined;
|
|
61
|
+
}
|
|
49
62
|
registerMcpConfigurationProvider(extension, id, provider) {
|
|
50
63
|
const store = ( new DisposableStore());
|
|
51
64
|
const metadata = extension.contributes?.modelContextServerCollections?.find(m => m.id === id);
|
|
@@ -58,39 +71,39 @@ let ExtHostMcpService = class ExtHostMcpService extends Disposable {
|
|
|
58
71
|
id: extensionPrefixedIdentifier(extension.identifier, id),
|
|
59
72
|
isTrustedByDefault: true,
|
|
60
73
|
label: metadata?.label ?? extension.displayName ?? extension.name,
|
|
61
|
-
scope: StorageScope.WORKSPACE
|
|
74
|
+
scope: StorageScope.WORKSPACE,
|
|
75
|
+
canResolveLaunch: typeof provider.resolveMcpServerDefinition === 'function',
|
|
76
|
+
extensionId: extension.identifier.value,
|
|
62
77
|
};
|
|
63
78
|
const update = async () => {
|
|
64
79
|
const list = await provider.provideMcpServerDefinitions(CancellationToken.None);
|
|
65
|
-
|
|
66
|
-
return !!candidate.uri;
|
|
67
|
-
}
|
|
80
|
+
this._unresolvedMcpServers.set(mcp.id, { servers: list ?? [], provider });
|
|
68
81
|
const servers = [];
|
|
69
82
|
for (const item of list ?? []) {
|
|
83
|
+
let id = ExtensionIdentifier.toKey(extension.identifier) + '/' + item.label;
|
|
84
|
+
if (( servers.some(s => s.id === id))) {
|
|
85
|
+
let i = 2;
|
|
86
|
+
while (( servers.some(s => s.id === id + i))) {
|
|
87
|
+
i++;
|
|
88
|
+
}
|
|
89
|
+
id = id + i;
|
|
90
|
+
}
|
|
70
91
|
servers.push({
|
|
71
|
-
id
|
|
92
|
+
id,
|
|
72
93
|
label: item.label,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
type: McpServerTransportType.SSE,
|
|
76
|
-
uri: item.uri,
|
|
77
|
-
headers: item.headers,
|
|
78
|
-
}
|
|
79
|
-
: {
|
|
80
|
-
type: McpServerTransportType.Stdio,
|
|
81
|
-
cwd: item.cwd,
|
|
82
|
-
args: item.args,
|
|
83
|
-
command: item.command,
|
|
84
|
-
env: item.env,
|
|
85
|
-
envFile: undefined,
|
|
86
|
-
}
|
|
94
|
+
cacheNonce: item.version,
|
|
95
|
+
launch: McpServerDefinition.from(item)
|
|
87
96
|
});
|
|
88
97
|
}
|
|
89
98
|
this._proxy.$upsertMcpCollection(mcp, servers);
|
|
90
99
|
};
|
|
91
100
|
store.add(toDisposable(() => {
|
|
101
|
+
this._unresolvedMcpServers.delete(mcp.id);
|
|
92
102
|
this._proxy.$deleteMcpCollection(mcp.id);
|
|
93
103
|
}));
|
|
104
|
+
if (provider.onDidChangeServerDefinitions) {
|
|
105
|
+
store.add(provider.onDidChangeServerDefinitions(update));
|
|
106
|
+
}
|
|
94
107
|
if (provider.onDidChange) {
|
|
95
108
|
store.add(provider.onDidChange(update));
|
|
96
109
|
}
|
|
@@ -107,76 +120,251 @@ let ExtHostMcpService = class ExtHostMcpService extends Disposable {
|
|
|
107
120
|
ExtHostMcpService = ( __decorate([
|
|
108
121
|
( __param(0, IExtHostRpcService))
|
|
109
122
|
], ExtHostMcpService));
|
|
110
|
-
|
|
111
|
-
|
|
123
|
+
var HttpMode;
|
|
124
|
+
(function (HttpMode) {
|
|
125
|
+
HttpMode[HttpMode["Unknown"] = 0] = "Unknown";
|
|
126
|
+
HttpMode[HttpMode["Http"] = 1] = "Http";
|
|
127
|
+
HttpMode[HttpMode["SSE"] = 2] = "SSE";
|
|
128
|
+
})(HttpMode || (HttpMode = {}));
|
|
129
|
+
class McpHTTPHandle extends Disposable {
|
|
130
|
+
constructor(_id, _launch, _proxy) {
|
|
112
131
|
super();
|
|
113
132
|
this._id = _id;
|
|
133
|
+
this._launch = _launch;
|
|
114
134
|
this._proxy = _proxy;
|
|
115
135
|
this._requestSequencer = ( new Sequencer());
|
|
116
136
|
this._postEndpoint = ( new DeferredPromise());
|
|
117
|
-
|
|
137
|
+
this._mode = { value: HttpMode.Unknown };
|
|
138
|
+
this._cts = ( new CancellationTokenSource());
|
|
139
|
+
this._abortCtrl = ( new AbortController());
|
|
140
|
+
this._register(toDisposable(() => {
|
|
141
|
+
this._abortCtrl.abort();
|
|
142
|
+
this._cts.dispose(true);
|
|
143
|
+
}));
|
|
144
|
+
this._proxy.$onDidChangeState(this._id, { state: McpConnectionState.Kind.Running });
|
|
118
145
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
fetch: (input, init) => fetch(input, {
|
|
125
|
-
...init,
|
|
126
|
-
headers: {
|
|
127
|
-
...Object.fromEntries(launch.headers),
|
|
128
|
-
...init?.headers,
|
|
129
|
-
},
|
|
130
|
-
}).then(async (res) => {
|
|
131
|
-
if (res.status >= 300) {
|
|
132
|
-
this._proxy.$onDidChangeState(this._id, { state: McpConnectionState.Kind.Error, message: `${res.status} status connecting to ${launch.uri}: ${await this._getErrText(res)}` });
|
|
133
|
-
eventSource.close();
|
|
146
|
+
async send(message) {
|
|
147
|
+
try {
|
|
148
|
+
await this._requestSequencer.queue(() => {
|
|
149
|
+
if (this._mode.value === HttpMode.SSE) {
|
|
150
|
+
return this._sendLegacySSE(this._mode.endpoint, message);
|
|
134
151
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
152
|
+
else {
|
|
153
|
+
return this._sendStreamableHttp(message, this._mode.value === HttpMode.Http ? this._mode.sessionId : undefined);
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
catch (err) {
|
|
158
|
+
const msg = `Error sending message to ${this._launch.uri}: ${String(err)}`;
|
|
159
|
+
this._proxy.$onDidChangeState(this._id, { state: McpConnectionState.Kind.Error, message: msg });
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
async _sendStreamableHttp(message, sessionId) {
|
|
163
|
+
const asBytes = ( new TextEncoder()).encode(message);
|
|
164
|
+
const headers = {
|
|
165
|
+
...Object.fromEntries(this._launch.headers),
|
|
166
|
+
'Content-Type': 'application/json',
|
|
167
|
+
'Content-Length': String(asBytes.length),
|
|
168
|
+
Accept: 'text/event-stream, application/json',
|
|
169
|
+
};
|
|
170
|
+
if (sessionId) {
|
|
171
|
+
headers['Mcp-Session-Id'] = sessionId;
|
|
172
|
+
}
|
|
173
|
+
const res = await fetch(( this._launch.uri.toString(true)), {
|
|
174
|
+
method: 'POST',
|
|
175
|
+
signal: this._abortCtrl.signal,
|
|
176
|
+
headers,
|
|
177
|
+
body: asBytes,
|
|
151
178
|
});
|
|
152
|
-
|
|
153
|
-
|
|
179
|
+
const wasUnknown = this._mode.value === HttpMode.Unknown;
|
|
180
|
+
const nextSessionId = res.headers.get('Mcp-Session-Id');
|
|
181
|
+
if (nextSessionId) {
|
|
182
|
+
this._mode = { value: HttpMode.Http, sessionId: nextSessionId };
|
|
183
|
+
}
|
|
184
|
+
if (this._mode.value === HttpMode.Unknown && res.status >= 400 && res.status < 500) {
|
|
185
|
+
this._log(LogLevel.Info, `${res.status} status sending message to ${this._launch.uri}, will attempt to fall back to legacy SSE`);
|
|
186
|
+
const endpoint = await this._attachSSE();
|
|
187
|
+
if (endpoint) {
|
|
188
|
+
this._mode = { value: HttpMode.SSE, endpoint };
|
|
189
|
+
await this._sendLegacySSE(endpoint, message);
|
|
190
|
+
}
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
if (res.status >= 300) {
|
|
194
|
+
const retryWithSessionId = this._mode.value === HttpMode.Http && !!this._mode.sessionId;
|
|
154
195
|
this._proxy.$onDidChangeState(this._id, {
|
|
155
196
|
state: McpConnectionState.Kind.Error,
|
|
156
|
-
message:
|
|
197
|
+
message: `${res.status} status sending message to ${this._launch.uri}: ${await this._getErrText(res)}` + retryWithSessionId ? `; will retry with new session ID` : '',
|
|
198
|
+
shouldRetry: retryWithSessionId,
|
|
157
199
|
});
|
|
158
|
-
|
|
159
|
-
}
|
|
200
|
+
return;
|
|
201
|
+
}
|
|
202
|
+
if (this._mode.value === HttpMode.Unknown) {
|
|
203
|
+
this._mode = { value: HttpMode.Http, sessionId: undefined };
|
|
204
|
+
}
|
|
205
|
+
if (wasUnknown) {
|
|
206
|
+
this._attachStreamableBackchannel();
|
|
207
|
+
}
|
|
208
|
+
this._handleSuccessfulStreamableHttp(res);
|
|
160
209
|
}
|
|
161
|
-
async
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
210
|
+
async _handleSuccessfulStreamableHttp(res) {
|
|
211
|
+
if (res.status === 202) {
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
switch (res.headers.get('Content-Type')?.toLowerCase()) {
|
|
215
|
+
case 'text/event-stream': {
|
|
216
|
+
const parser = ( new SSEParser(event => {
|
|
217
|
+
if (event.type === 'message') {
|
|
218
|
+
this._proxy.$onDidReceiveMessage(this._id, event.data);
|
|
219
|
+
}
|
|
220
|
+
}));
|
|
221
|
+
try {
|
|
222
|
+
await this._doSSE(parser, res);
|
|
223
|
+
}
|
|
224
|
+
catch (err) {
|
|
225
|
+
this._log(LogLevel.Warning, `Error reading SSE stream: ${String(err)}`);
|
|
226
|
+
}
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
case 'application/json':
|
|
230
|
+
this._proxy.$onDidReceiveMessage(this._id, await res.text());
|
|
231
|
+
break;
|
|
232
|
+
default: {
|
|
233
|
+
const responseBody = await res.text();
|
|
234
|
+
if (isJSON(responseBody)) {
|
|
235
|
+
this._proxy.$onDidReceiveMessage(this._id, responseBody);
|
|
236
|
+
}
|
|
237
|
+
else {
|
|
238
|
+
this._log(LogLevel.Warning, `Unexpected ${res.status} response for request: ${responseBody}`);
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
async _attachStreamableBackchannel() {
|
|
244
|
+
let lastEventId;
|
|
245
|
+
for (let retry = 0; !this._store.isDisposed; retry++) {
|
|
246
|
+
await timeout(Math.min(retry * 1000, 30_000), this._cts.token);
|
|
247
|
+
let res;
|
|
248
|
+
try {
|
|
249
|
+
const headers = {
|
|
250
|
+
...Object.fromEntries(this._launch.headers),
|
|
251
|
+
'Accept': 'text/event-stream',
|
|
252
|
+
};
|
|
253
|
+
if (this._mode.value === HttpMode.Http && this._mode.sessionId !== undefined) {
|
|
254
|
+
headers['Mcp-Session-Id'] = this._mode.sessionId;
|
|
255
|
+
}
|
|
256
|
+
if (lastEventId) {
|
|
257
|
+
headers['Last-Event-ID'] = lastEventId;
|
|
258
|
+
}
|
|
259
|
+
res = await fetch(( this._launch.uri.toString(true)), {
|
|
260
|
+
method: 'GET',
|
|
261
|
+
signal: this._abortCtrl.signal,
|
|
262
|
+
headers,
|
|
173
263
|
});
|
|
264
|
+
}
|
|
265
|
+
catch (e) {
|
|
266
|
+
this._log(LogLevel.Info, `Error connecting to ${this._launch.uri} for async notifications, will retry`);
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
if (res.status >= 400) {
|
|
270
|
+
this._log(LogLevel.Debug, `${res.status} status connecting to ${this._launch.uri} for async notifications; they will be disabled: ${await this._getErrText(res)}`);
|
|
271
|
+
return;
|
|
272
|
+
}
|
|
273
|
+
retry = 0;
|
|
274
|
+
const parser = ( new SSEParser(event => {
|
|
275
|
+
if (event.type === 'message') {
|
|
276
|
+
this._proxy.$onDidReceiveMessage(this._id, event.data);
|
|
277
|
+
}
|
|
278
|
+
if (event.id) {
|
|
279
|
+
lastEventId = event.id;
|
|
280
|
+
}
|
|
281
|
+
}));
|
|
282
|
+
try {
|
|
283
|
+
await this._doSSE(parser, res);
|
|
284
|
+
}
|
|
285
|
+
catch (e) {
|
|
286
|
+
this._log(LogLevel.Info, `Error reading from async stream, we will reconnect: ${e}`);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
async _attachSSE() {
|
|
291
|
+
const postEndpoint = ( new DeferredPromise());
|
|
292
|
+
let res;
|
|
293
|
+
try {
|
|
294
|
+
res = await fetch(( this._launch.uri.toString(true)), {
|
|
295
|
+
method: 'GET',
|
|
296
|
+
signal: this._abortCtrl.signal,
|
|
297
|
+
headers: {
|
|
298
|
+
...Object.fromEntries(this._launch.headers),
|
|
299
|
+
'Accept': 'text/event-stream',
|
|
300
|
+
},
|
|
174
301
|
});
|
|
175
302
|
if (res.status >= 300) {
|
|
176
|
-
this._proxy.$
|
|
303
|
+
this._proxy.$onDidChangeState(this._id, { state: McpConnectionState.Kind.Error, message: `${res.status} status connecting to ${this._launch.uri} as SSE: ${await this._getErrText(res)}` });
|
|
304
|
+
return;
|
|
177
305
|
}
|
|
178
306
|
}
|
|
179
|
-
catch (
|
|
307
|
+
catch (e) {
|
|
308
|
+
this._proxy.$onDidChangeState(this._id, { state: McpConnectionState.Kind.Error, message: `Error connecting to ${this._launch.uri} as SSE: ${e}` });
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
const parser = ( new SSEParser(event => {
|
|
312
|
+
if (event.type === 'message') {
|
|
313
|
+
this._proxy.$onDidReceiveMessage(this._id, event.data);
|
|
314
|
+
}
|
|
315
|
+
else if (event.type === 'endpoint') {
|
|
316
|
+
postEndpoint.complete(( ( new URL(event.data, ( this._launch.uri.toString(true)))).toString()));
|
|
317
|
+
}
|
|
318
|
+
}));
|
|
319
|
+
this._register(toDisposable(() => postEndpoint.cancel()));
|
|
320
|
+
this._doSSE(parser, res).catch(err => {
|
|
321
|
+
this._proxy.$onDidChangeState(this._id, { state: McpConnectionState.Kind.Error, message: `Error reading SSE stream: ${String(err)}` });
|
|
322
|
+
});
|
|
323
|
+
return postEndpoint.p;
|
|
324
|
+
}
|
|
325
|
+
async _sendLegacySSE(url, message) {
|
|
326
|
+
const asBytes = ( new TextEncoder()).encode(message);
|
|
327
|
+
const res = await fetch(url, {
|
|
328
|
+
method: 'POST',
|
|
329
|
+
signal: this._abortCtrl.signal,
|
|
330
|
+
headers: {
|
|
331
|
+
...Object.fromEntries(this._launch.headers),
|
|
332
|
+
'Content-Type': 'application/json',
|
|
333
|
+
'Content-Length': String(asBytes.length),
|
|
334
|
+
},
|
|
335
|
+
body: asBytes,
|
|
336
|
+
});
|
|
337
|
+
if (res.status >= 300) {
|
|
338
|
+
this._log(LogLevel.Warning, `${res.status} status sending message to ${this._postEndpoint}: ${await this._getErrText(res)}`);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
async _doSSE(parser, res) {
|
|
342
|
+
if (!res.body) {
|
|
343
|
+
return;
|
|
344
|
+
}
|
|
345
|
+
const reader = res.body.getReader();
|
|
346
|
+
let chunk;
|
|
347
|
+
do {
|
|
348
|
+
try {
|
|
349
|
+
chunk = await raceCancellationError(reader.read(), this._cts.token);
|
|
350
|
+
}
|
|
351
|
+
catch (err) {
|
|
352
|
+
reader.cancel();
|
|
353
|
+
if (this._store.isDisposed) {
|
|
354
|
+
return;
|
|
355
|
+
}
|
|
356
|
+
else {
|
|
357
|
+
throw err;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
if (chunk.value) {
|
|
361
|
+
parser.feed(chunk.value);
|
|
362
|
+
}
|
|
363
|
+
} while (!chunk.done);
|
|
364
|
+
}
|
|
365
|
+
_log(level, message) {
|
|
366
|
+
if (!this._store.isDisposed) {
|
|
367
|
+
this._proxy.$onDidPublishLog(this._id, level, message);
|
|
180
368
|
}
|
|
181
369
|
}
|
|
182
370
|
async _getErrText(res) {
|
|
@@ -188,5 +376,14 @@ class McpSSEHandle extends Disposable {
|
|
|
188
376
|
}
|
|
189
377
|
}
|
|
190
378
|
}
|
|
379
|
+
function isJSON(str) {
|
|
380
|
+
try {
|
|
381
|
+
JSON.parse(str);
|
|
382
|
+
return true;
|
|
383
|
+
}
|
|
384
|
+
catch (e) {
|
|
385
|
+
return false;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
191
388
|
|
|
192
389
|
export { ExtHostMcpService, IExtHostMpcService };
|
|
@@ -260,7 +260,7 @@ class ExtHostNotebookController {
|
|
|
260
260
|
throw ( new Error('Document version mismatch'));
|
|
261
261
|
}
|
|
262
262
|
if (!this._extHostFileSystem.value.isWritableFileSystem(uri.scheme)) {
|
|
263
|
-
throw new FileOperationError(( localize(
|
|
263
|
+
throw new FileOperationError(( localize(2564, "Unable to modify read-only file '{0}'", this._resourceForError(uri))), FileOperationResult.FILE_PERMISSION_DENIED);
|
|
264
264
|
}
|
|
265
265
|
const data = {
|
|
266
266
|
metadata: filter(document.apiNotebook.metadata, key => !(serializer.options?.transientDocumentMetadata ?? {})[key]),
|
|
@@ -432,7 +432,7 @@ class ExtHostNotebookController {
|
|
|
432
432
|
if (typeof options?.mtime === 'number' && typeof options.etag === 'string' && options.etag !== ETAG_DISABLED &&
|
|
433
433
|
typeof stat.mtime === 'number' && typeof stat.size === 'number' &&
|
|
434
434
|
options.mtime < stat.mtime && options.etag !== etag({ mtime: options.mtime , size: stat.size })) {
|
|
435
|
-
throw new FileOperationError(( localize(
|
|
435
|
+
throw new FileOperationError(( localize(2565, "File Modified Since")), FileOperationResult.FILE_MODIFIED_SINCE, options);
|
|
436
436
|
}
|
|
437
437
|
return;
|
|
438
438
|
}
|
|
@@ -57,6 +57,9 @@ let ExtHostNotebookKernels = class ExtHostNotebookKernels {
|
|
|
57
57
|
`Cannot invoke 'notebook.selectKernel' for unrecognized notebook editor ${( v.notebookEditor.notebook.uri.toString())}`
|
|
58
58
|
));
|
|
59
59
|
}
|
|
60
|
+
if ('skipIfAlreadySelected' in v) {
|
|
61
|
+
return { notebookEditorId, skipIfAlreadySelected: v.skipIfAlreadySelected };
|
|
62
|
+
}
|
|
60
63
|
return { notebookEditorId };
|
|
61
64
|
}
|
|
62
65
|
return v;
|
|
@@ -3,6 +3,7 @@ import { CancellationToken } from "../../../base/common/cancellation.js";
|
|
|
3
3
|
import { UriComponents } from "../../../base/common/uri.js";
|
|
4
4
|
import { ExtHostQuickDiffShape, IMainContext } from "./extHost.protocol.js";
|
|
5
5
|
import { IURITransformer } from "../../../base/common/uriIpc.js";
|
|
6
|
+
import { IExtensionDescription } from "../../../platform/extensions/common/extensions.js";
|
|
6
7
|
export declare class ExtHostQuickDiff implements ExtHostQuickDiffShape {
|
|
7
8
|
private readonly uriTransformer;
|
|
8
9
|
private static handlePool;
|
|
@@ -10,5 +11,5 @@ export declare class ExtHostQuickDiff implements ExtHostQuickDiffShape {
|
|
|
10
11
|
private providers;
|
|
11
12
|
constructor(mainContext: IMainContext, uriTransformer: IURITransformer | undefined);
|
|
12
13
|
$provideOriginalResource(handle: number, uriComponents: UriComponents, token: CancellationToken): Promise<UriComponents | null>;
|
|
13
|
-
registerQuickDiffProvider(selector: vscode.DocumentSelector, quickDiffProvider: vscode.QuickDiffProvider, label: string, rootUri?: vscode.Uri): vscode.Disposable;
|
|
14
|
+
registerQuickDiffProvider(extension: IExtensionDescription, selector: vscode.DocumentSelector, quickDiffProvider: vscode.QuickDiffProvider, id: string, label: string, rootUri?: vscode.Uri): vscode.Disposable;
|
|
14
15
|
}
|
|
@@ -3,6 +3,7 @@ import { URI } from '../../../base/common/uri.js';
|
|
|
3
3
|
import { MainContext } from './extHost.protocol.js';
|
|
4
4
|
import { asPromise } from '../../../base/common/async.js';
|
|
5
5
|
import { DocumentSelector } from './extHostTypeConverters.js';
|
|
6
|
+
import { ExtensionIdentifier } from '../../../platform/extensions/common/extensions.js';
|
|
6
7
|
|
|
7
8
|
class ExtHostQuickDiff {
|
|
8
9
|
static { this.handlePool = 0; }
|
|
@@ -20,10 +21,11 @@ class ExtHostQuickDiff {
|
|
|
20
21
|
return asPromise(() => provider.provideOriginalResource(uri, token))
|
|
21
22
|
.then(r => r || null);
|
|
22
23
|
}
|
|
23
|
-
registerQuickDiffProvider(selector, quickDiffProvider, label, rootUri) {
|
|
24
|
+
registerQuickDiffProvider(extension, selector, quickDiffProvider, id, label, rootUri) {
|
|
24
25
|
const handle = ExtHostQuickDiff.handlePool++;
|
|
25
26
|
this.providers.set(handle, quickDiffProvider);
|
|
26
|
-
|
|
27
|
+
const extensionId = ExtensionIdentifier.toKey(extension.identifier);
|
|
28
|
+
this.proxy.$registerQuickDiffProvider(handle, DocumentSelector.from(selector, this.uriTransformer), `${extensionId}.${id}`, label, rootUri);
|
|
27
29
|
return {
|
|
28
30
|
dispose: () => {
|
|
29
31
|
this.proxy.$unregisterQuickDiffProvider(handle);
|
|
@@ -11,7 +11,7 @@ interface LoadFunction {
|
|
|
11
11
|
interface IAlternativeModuleProvider {
|
|
12
12
|
alternativeModuleName(name: string): string | undefined;
|
|
13
13
|
}
|
|
14
|
-
interface INodeModuleFactory extends Partial<IAlternativeModuleProvider> {
|
|
14
|
+
export interface INodeModuleFactory extends Partial<IAlternativeModuleProvider> {
|
|
15
15
|
readonly nodeModuleName: string | string[];
|
|
16
16
|
load(request: string, parent: URI, original: LoadFunction): any;
|
|
17
17
|
}
|
|
@@ -55,6 +55,7 @@ export declare class ExtHostSCM implements ExtHostSCMShape {
|
|
|
55
55
|
createSourceControl(extension: IExtensionDescription, id: string, label: string, rootUri: vscode.Uri | undefined): vscode.SourceControl;
|
|
56
56
|
getLastInputBox(extension: IExtensionDescription): ExtHostSCMInputBox | undefined;
|
|
57
57
|
$provideOriginalResource(sourceControlHandle: number, uriComponents: UriComponents, token: CancellationToken): Promise<UriComponents | null>;
|
|
58
|
+
$provideSecondaryOriginalResource(sourceControlHandle: number, uriComponents: UriComponents, token: CancellationToken): Promise<UriComponents | null>;
|
|
58
59
|
$onInputBoxValueChange(sourceControlHandle: number, value: string): Promise<void>;
|
|
59
60
|
$executeResourceCommand(sourceControlHandle: number, groupHandle: number, handle: number, preserveFocus: boolean): Promise<void>;
|
|
60
61
|
$validateInput(sourceControlHandle: number, value: string, cursorPosition: number): Promise<[
|
|
@@ -475,6 +475,16 @@ class ExtHostSourceControl {
|
|
|
475
475
|
}
|
|
476
476
|
this.#proxy.$updateSourceControl(this.handle, { hasQuickDiffProvider: !!quickDiffProvider, quickDiffLabel });
|
|
477
477
|
}
|
|
478
|
+
get secondaryQuickDiffProvider() {
|
|
479
|
+
checkProposedApiEnabled(this._extension, 'quickDiffProvider');
|
|
480
|
+
return this._secondaryQuickDiffProvider;
|
|
481
|
+
}
|
|
482
|
+
set secondaryQuickDiffProvider(secondaryQuickDiffProvider) {
|
|
483
|
+
checkProposedApiEnabled(this._extension, 'quickDiffProvider');
|
|
484
|
+
this._secondaryQuickDiffProvider = secondaryQuickDiffProvider;
|
|
485
|
+
const secondaryQuickDiffLabel = secondaryQuickDiffProvider?.label;
|
|
486
|
+
this.#proxy.$updateSourceControl(this.handle, { hasSecondaryQuickDiffProvider: !!secondaryQuickDiffProvider, secondaryQuickDiffLabel });
|
|
487
|
+
}
|
|
478
488
|
get historyProvider() {
|
|
479
489
|
checkProposedApiEnabled(this._extension, 'scmHistoryProvider');
|
|
480
490
|
return this._historyProvider;
|
|
@@ -573,6 +583,7 @@ class ExtHostSourceControl {
|
|
|
573
583
|
this._groups = ( new Map());
|
|
574
584
|
this._count = undefined;
|
|
575
585
|
this._quickDiffProvider = undefined;
|
|
586
|
+
this._secondaryQuickDiffProvider = undefined;
|
|
576
587
|
this._historyProviderDisposable = ( new MutableDisposable());
|
|
577
588
|
this._commitTemplate = undefined;
|
|
578
589
|
this._acceptInputDisposables = ( new MutableDisposable());
|
|
@@ -758,6 +769,16 @@ let ExtHostSCM = class ExtHostSCM {
|
|
|
758
769
|
return asPromise(() => sourceControl.quickDiffProvider.provideOriginalResource(uri, token))
|
|
759
770
|
.then(r => r || null);
|
|
760
771
|
}
|
|
772
|
+
$provideSecondaryOriginalResource(sourceControlHandle, uriComponents, token) {
|
|
773
|
+
const uri = URI.revive(uriComponents);
|
|
774
|
+
this.logService.trace('ExtHostSCM#$provideSecondaryOriginalResource', sourceControlHandle, ( uri.toString()));
|
|
775
|
+
const sourceControl = this._sourceControls.get(sourceControlHandle);
|
|
776
|
+
if (!sourceControl || !sourceControl.secondaryQuickDiffProvider || !sourceControl.secondaryQuickDiffProvider.provideOriginalResource) {
|
|
777
|
+
return Promise.resolve(null);
|
|
778
|
+
}
|
|
779
|
+
return asPromise(() => sourceControl.secondaryQuickDiffProvider.provideOriginalResource(uri, token))
|
|
780
|
+
.then(r => r || null);
|
|
781
|
+
}
|
|
761
782
|
$onInputBoxValueChange(sourceControlHandle, value) {
|
|
762
783
|
this.logService.trace('ExtHostSCM#$onInputBoxValueChange', sourceControlHandle);
|
|
763
784
|
const sourceControl = this._sourceControls.get(sourceControlHandle);
|
|
@@ -138,7 +138,7 @@ let ExtHostSearch = class ExtHostSearch {
|
|
|
138
138
|
}
|
|
139
139
|
const query = reviveQuery(rawQuery);
|
|
140
140
|
const engine = this.createAITextSearchManager(query, provider);
|
|
141
|
-
return engine.search(progress => this._proxy.$handleTextMatch(handle, session, progress), token);
|
|
141
|
+
return engine.search(progress => this._proxy.$handleTextMatch(handle, session, progress), token, result => this._proxy.$handleKeywordResult(handle, session, result));
|
|
142
142
|
}
|
|
143
143
|
$enableExtensionHostSearch() { }
|
|
144
144
|
async $getAIName(handle) {
|
|
@@ -188,7 +188,7 @@ class ExtHostStatusBarEntry {
|
|
|
188
188
|
}
|
|
189
189
|
else {
|
|
190
190
|
name = ( localize(
|
|
191
|
-
|
|
191
|
+
2566,
|
|
192
192
|
"{0} (Extension)",
|
|
193
193
|
this._extension.displayName || this._extension.name
|
|
194
194
|
));
|
|
@@ -221,7 +221,7 @@ class StatusBarMessage {
|
|
|
221
221
|
constructor(statusBar) {
|
|
222
222
|
this._messages = [];
|
|
223
223
|
this._item = statusBar.createStatusBarEntry(undefined, 'status.extensionMessage', StatusBarAlignment.Left, Number.MIN_VALUE);
|
|
224
|
-
this._item.name = ( localize(
|
|
224
|
+
this._item.name = ( localize(2567, "Extension Status"));
|
|
225
225
|
}
|
|
226
226
|
dispose() {
|
|
227
227
|
this._messages.length = 0;
|
|
@@ -28,7 +28,7 @@ let ExtHostTelemetry = class ExtHostTelemetry extends Disposable {
|
|
|
28
28
|
const id = initData.remote.isRemote ? 'remoteExtHostTelemetry' : isWorker ? 'workerExtHostTelemetry' : 'extHostTelemetry';
|
|
29
29
|
this._outputLogger = this._register(loggerService.createLogger(id, {
|
|
30
30
|
name: ( localize(
|
|
31
|
-
|
|
31
|
+
2568,
|
|
32
32
|
"Extension Telemetry{0}",
|
|
33
33
|
this._inLoggingOnlyMode ? ' (Not Sent)' : ''
|
|
34
34
|
)),
|
|
@@ -482,7 +482,7 @@ let BaseExtHostTerminalService = class BaseExtHostTerminalService extends Dispos
|
|
|
482
482
|
async $startExtensionTerminal(id, initialDimensions) {
|
|
483
483
|
const terminal = this.getTerminalById(id);
|
|
484
484
|
if (!terminal) {
|
|
485
|
-
return { message: ( localize(
|
|
485
|
+
return { message: ( localize(2569, "Could not find the terminal with id {0} on the extension host", id)) };
|
|
486
486
|
}
|
|
487
487
|
if (!terminal.isOpen) {
|
|
488
488
|
await ( new Promise(r => {
|