@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
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
2
|
+
import { IOffsetRange, OffsetRange } from "../../../../editor/common/core/offsetRange.js";
|
|
3
|
+
import { IRange } from "../../../../editor/common/core/range.js";
|
|
4
|
+
import { IChatAgentCommand, IChatAgentData } from "./chatAgents.js";
|
|
5
|
+
import { IChatAgentService } from "./chatAgents.service.js";
|
|
6
|
+
import { IChatRequestVariableEntry } from "./chatModel.js";
|
|
7
|
+
import { IChatSlashData } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/chatSlashCommands";
|
|
8
|
+
import { IChatRequestVariableValue } from "./chatVariables.js";
|
|
9
|
+
import { ChatAgentLocation } from "./constants.js";
|
|
10
|
+
import { IToolData } from "./languageModelToolsService.js";
|
|
11
|
+
import { IChatPromptSlashCommand } from "./promptSyntax/service/types.js";
|
|
12
|
+
export interface IParsedChatRequest {
|
|
13
|
+
readonly parts: ReadonlyArray<IParsedChatRequestPart>;
|
|
14
|
+
readonly text: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IParsedChatRequestPart {
|
|
17
|
+
readonly kind: string;
|
|
18
|
+
readonly range: IOffsetRange;
|
|
19
|
+
readonly editorRange: IRange;
|
|
20
|
+
readonly text: string;
|
|
21
|
+
readonly promptText: string;
|
|
22
|
+
}
|
|
23
|
+
export declare function getPromptText(request: IParsedChatRequest): {
|
|
24
|
+
message: string;
|
|
25
|
+
diff: number;
|
|
26
|
+
};
|
|
27
|
+
export declare class ChatRequestTextPart implements IParsedChatRequestPart {
|
|
28
|
+
readonly range: OffsetRange;
|
|
29
|
+
readonly editorRange: IRange;
|
|
30
|
+
readonly text: string;
|
|
31
|
+
static readonly Kind = "text";
|
|
32
|
+
readonly kind = "text";
|
|
33
|
+
constructor(range: OffsetRange, editorRange: IRange, text: string);
|
|
34
|
+
get promptText(): string;
|
|
35
|
+
}
|
|
36
|
+
export declare const chatVariableLeader = "#";
|
|
37
|
+
export declare const chatAgentLeader = "@";
|
|
38
|
+
export declare const chatSubcommandLeader = "/";
|
|
39
|
+
export declare class ChatRequestToolPart implements IParsedChatRequestPart {
|
|
40
|
+
readonly range: OffsetRange;
|
|
41
|
+
readonly editorRange: IRange;
|
|
42
|
+
readonly toolName: string;
|
|
43
|
+
readonly toolId: string;
|
|
44
|
+
readonly displayName?: string | undefined;
|
|
45
|
+
readonly icon?: IToolData["icon"];
|
|
46
|
+
static readonly Kind = "tool";
|
|
47
|
+
readonly kind = "tool";
|
|
48
|
+
constructor(range: OffsetRange, editorRange: IRange, toolName: string, toolId: string, displayName?: string | undefined, icon?: IToolData["icon"]);
|
|
49
|
+
get text(): string;
|
|
50
|
+
get promptText(): string;
|
|
51
|
+
toVariableEntry(): IChatRequestVariableEntry;
|
|
52
|
+
}
|
|
53
|
+
export declare class ChatRequestAgentPart implements IParsedChatRequestPart {
|
|
54
|
+
readonly range: OffsetRange;
|
|
55
|
+
readonly editorRange: IRange;
|
|
56
|
+
readonly agent: IChatAgentData;
|
|
57
|
+
static readonly Kind = "agent";
|
|
58
|
+
readonly kind = "agent";
|
|
59
|
+
constructor(range: OffsetRange, editorRange: IRange, agent: IChatAgentData);
|
|
60
|
+
get text(): string;
|
|
61
|
+
get promptText(): string;
|
|
62
|
+
}
|
|
63
|
+
export declare class ChatRequestAgentSubcommandPart implements IParsedChatRequestPart {
|
|
64
|
+
readonly range: OffsetRange;
|
|
65
|
+
readonly editorRange: IRange;
|
|
66
|
+
readonly command: IChatAgentCommand;
|
|
67
|
+
static readonly Kind = "subcommand";
|
|
68
|
+
readonly kind = "subcommand";
|
|
69
|
+
constructor(range: OffsetRange, editorRange: IRange, command: IChatAgentCommand);
|
|
70
|
+
get text(): string;
|
|
71
|
+
get promptText(): string;
|
|
72
|
+
}
|
|
73
|
+
export declare class ChatRequestSlashCommandPart implements IParsedChatRequestPart {
|
|
74
|
+
readonly range: OffsetRange;
|
|
75
|
+
readonly editorRange: IRange;
|
|
76
|
+
readonly slashCommand: IChatSlashData;
|
|
77
|
+
static readonly Kind = "slash";
|
|
78
|
+
readonly kind = "slash";
|
|
79
|
+
constructor(range: OffsetRange, editorRange: IRange, slashCommand: IChatSlashData);
|
|
80
|
+
get text(): string;
|
|
81
|
+
get promptText(): string;
|
|
82
|
+
}
|
|
83
|
+
export declare class ChatRequestSlashPromptPart implements IParsedChatRequestPart {
|
|
84
|
+
readonly range: OffsetRange;
|
|
85
|
+
readonly editorRange: IRange;
|
|
86
|
+
readonly slashPromptCommand: IChatPromptSlashCommand;
|
|
87
|
+
static readonly Kind = "prompt";
|
|
88
|
+
readonly kind = "prompt";
|
|
89
|
+
constructor(range: OffsetRange, editorRange: IRange, slashPromptCommand: IChatPromptSlashCommand);
|
|
90
|
+
get text(): string;
|
|
91
|
+
get promptText(): string;
|
|
92
|
+
}
|
|
93
|
+
export declare class ChatRequestDynamicVariablePart implements IParsedChatRequestPart {
|
|
94
|
+
readonly range: OffsetRange;
|
|
95
|
+
readonly editorRange: IRange;
|
|
96
|
+
readonly text: string;
|
|
97
|
+
readonly id: string;
|
|
98
|
+
readonly modelDescription: string | undefined;
|
|
99
|
+
readonly data: IChatRequestVariableValue;
|
|
100
|
+
readonly fullName?: string | undefined;
|
|
101
|
+
readonly icon?: ThemeIcon | undefined;
|
|
102
|
+
readonly isFile?: boolean | undefined;
|
|
103
|
+
readonly isDirectory?: boolean | undefined;
|
|
104
|
+
static readonly Kind = "dynamic";
|
|
105
|
+
readonly kind = "dynamic";
|
|
106
|
+
constructor(range: OffsetRange, editorRange: IRange, text: string, id: string, modelDescription: string | undefined, data: IChatRequestVariableValue, fullName?: string | undefined, icon?: ThemeIcon | undefined, isFile?: boolean | undefined, isDirectory?: boolean | undefined);
|
|
107
|
+
get referenceText(): string;
|
|
108
|
+
get promptText(): string;
|
|
109
|
+
toVariableEntry(): IChatRequestVariableEntry;
|
|
110
|
+
}
|
|
111
|
+
export declare function reviveParsedChatRequest(serialized: IParsedChatRequest): IParsedChatRequest;
|
|
112
|
+
export declare function extractAgentAndCommand(parsed: IParsedChatRequest): {
|
|
113
|
+
agentPart: ChatRequestAgentPart | undefined;
|
|
114
|
+
commandPart: ChatRequestAgentSubcommandPart | undefined;
|
|
115
|
+
};
|
|
116
|
+
export declare function formatChatQuestion(chatAgentService: IChatAgentService, location: ChatAgentLocation, prompt: string, participant?: string | null, command?: string | null): string | undefined;
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
|
|
2
|
+
import { revive } from '../../../../base/common/marshalling.js';
|
|
3
|
+
import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
4
|
+
import { OffsetRange } from '../../../../editor/common/core/offsetRange.js';
|
|
5
|
+
import { reviveSerializedAgent } from './chatAgents.js';
|
|
6
|
+
import { IDiagnosticVariableEntryFilterData } from './chatModel.js';
|
|
7
|
+
|
|
8
|
+
function getPromptText(request) {
|
|
9
|
+
const message = ( request.parts.map(r => r.promptText)).join('').trimStart();
|
|
10
|
+
const diff = request.text.length - message.length;
|
|
11
|
+
return { message, diff };
|
|
12
|
+
}
|
|
13
|
+
class ChatRequestTextPart {
|
|
14
|
+
static { this.Kind = 'text'; }
|
|
15
|
+
constructor(range, editorRange, text) {
|
|
16
|
+
this.range = range;
|
|
17
|
+
this.editorRange = editorRange;
|
|
18
|
+
this.text = text;
|
|
19
|
+
this.kind = ChatRequestTextPart.Kind;
|
|
20
|
+
}
|
|
21
|
+
get promptText() {
|
|
22
|
+
return this.text;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const chatVariableLeader = '#';
|
|
26
|
+
const chatAgentLeader = '@';
|
|
27
|
+
const chatSubcommandLeader = '/';
|
|
28
|
+
class ChatRequestVariablePart {
|
|
29
|
+
static { this.Kind = 'var'; }
|
|
30
|
+
constructor(range, editorRange, variableName, variableArg, variableId) {
|
|
31
|
+
this.range = range;
|
|
32
|
+
this.editorRange = editorRange;
|
|
33
|
+
this.variableName = variableName;
|
|
34
|
+
this.variableArg = variableArg;
|
|
35
|
+
this.variableId = variableId;
|
|
36
|
+
this.kind = ChatRequestVariablePart.Kind;
|
|
37
|
+
}
|
|
38
|
+
get text() {
|
|
39
|
+
const argPart = this.variableArg ? `:${this.variableArg}` : '';
|
|
40
|
+
return `${chatVariableLeader}${this.variableName}${argPart}`;
|
|
41
|
+
}
|
|
42
|
+
get promptText() {
|
|
43
|
+
return this.text;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
class ChatRequestToolPart {
|
|
47
|
+
static { this.Kind = 'tool'; }
|
|
48
|
+
constructor(range, editorRange, toolName, toolId, displayName, icon) {
|
|
49
|
+
this.range = range;
|
|
50
|
+
this.editorRange = editorRange;
|
|
51
|
+
this.toolName = toolName;
|
|
52
|
+
this.toolId = toolId;
|
|
53
|
+
this.displayName = displayName;
|
|
54
|
+
this.icon = icon;
|
|
55
|
+
this.kind = ChatRequestToolPart.Kind;
|
|
56
|
+
}
|
|
57
|
+
get text() {
|
|
58
|
+
return `${chatVariableLeader}${this.toolName}`;
|
|
59
|
+
}
|
|
60
|
+
get promptText() {
|
|
61
|
+
return this.text;
|
|
62
|
+
}
|
|
63
|
+
toVariableEntry() {
|
|
64
|
+
return { kind: 'tool', id: this.toolId, name: this.toolName, range: this.range, value: undefined, icon: ThemeIcon.isThemeIcon(this.icon) ? this.icon : undefined, fullName: this.displayName };
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
class ChatRequestAgentPart {
|
|
68
|
+
static { this.Kind = 'agent'; }
|
|
69
|
+
constructor(range, editorRange, agent) {
|
|
70
|
+
this.range = range;
|
|
71
|
+
this.editorRange = editorRange;
|
|
72
|
+
this.agent = agent;
|
|
73
|
+
this.kind = ChatRequestAgentPart.Kind;
|
|
74
|
+
}
|
|
75
|
+
get text() {
|
|
76
|
+
return `${chatAgentLeader}${this.agent.name}`;
|
|
77
|
+
}
|
|
78
|
+
get promptText() {
|
|
79
|
+
return '';
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
class ChatRequestAgentSubcommandPart {
|
|
83
|
+
static { this.Kind = 'subcommand'; }
|
|
84
|
+
constructor(range, editorRange, command) {
|
|
85
|
+
this.range = range;
|
|
86
|
+
this.editorRange = editorRange;
|
|
87
|
+
this.command = command;
|
|
88
|
+
this.kind = ChatRequestAgentSubcommandPart.Kind;
|
|
89
|
+
}
|
|
90
|
+
get text() {
|
|
91
|
+
return `${chatSubcommandLeader}${this.command.name}`;
|
|
92
|
+
}
|
|
93
|
+
get promptText() {
|
|
94
|
+
return '';
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
class ChatRequestSlashCommandPart {
|
|
98
|
+
static { this.Kind = 'slash'; }
|
|
99
|
+
constructor(range, editorRange, slashCommand) {
|
|
100
|
+
this.range = range;
|
|
101
|
+
this.editorRange = editorRange;
|
|
102
|
+
this.slashCommand = slashCommand;
|
|
103
|
+
this.kind = ChatRequestSlashCommandPart.Kind;
|
|
104
|
+
}
|
|
105
|
+
get text() {
|
|
106
|
+
return `${chatSubcommandLeader}${this.slashCommand.command}`;
|
|
107
|
+
}
|
|
108
|
+
get promptText() {
|
|
109
|
+
return `${chatSubcommandLeader}${this.slashCommand.command}`;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
class ChatRequestSlashPromptPart {
|
|
113
|
+
static { this.Kind = 'prompt'; }
|
|
114
|
+
constructor(range, editorRange, slashPromptCommand) {
|
|
115
|
+
this.range = range;
|
|
116
|
+
this.editorRange = editorRange;
|
|
117
|
+
this.slashPromptCommand = slashPromptCommand;
|
|
118
|
+
this.kind = ChatRequestSlashPromptPart.Kind;
|
|
119
|
+
}
|
|
120
|
+
get text() {
|
|
121
|
+
return `${chatSubcommandLeader}${this.slashPromptCommand.command}`;
|
|
122
|
+
}
|
|
123
|
+
get promptText() {
|
|
124
|
+
return `${chatSubcommandLeader}${this.slashPromptCommand.command}`;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
class ChatRequestDynamicVariablePart {
|
|
128
|
+
static { this.Kind = 'dynamic'; }
|
|
129
|
+
constructor(range, editorRange, text, id, modelDescription, data, fullName, icon, isFile, isDirectory) {
|
|
130
|
+
this.range = range;
|
|
131
|
+
this.editorRange = editorRange;
|
|
132
|
+
this.text = text;
|
|
133
|
+
this.id = id;
|
|
134
|
+
this.modelDescription = modelDescription;
|
|
135
|
+
this.data = data;
|
|
136
|
+
this.fullName = fullName;
|
|
137
|
+
this.icon = icon;
|
|
138
|
+
this.isFile = isFile;
|
|
139
|
+
this.isDirectory = isDirectory;
|
|
140
|
+
this.kind = ChatRequestDynamicVariablePart.Kind;
|
|
141
|
+
}
|
|
142
|
+
get referenceText() {
|
|
143
|
+
return this.text.replace(chatVariableLeader, '');
|
|
144
|
+
}
|
|
145
|
+
get promptText() {
|
|
146
|
+
return this.text;
|
|
147
|
+
}
|
|
148
|
+
toVariableEntry() {
|
|
149
|
+
if (this.id === 'vscode.problems') {
|
|
150
|
+
return IDiagnosticVariableEntryFilterData.toEntry(this.data.filter);
|
|
151
|
+
}
|
|
152
|
+
return { kind: this.isDirectory ? 'directory' : this.isFile ? 'file' : 'generic', id: this.id, name: this.referenceText, range: this.range, value: this.data, fullName: this.fullName, icon: this.icon };
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function reviveParsedChatRequest(serialized) {
|
|
156
|
+
return {
|
|
157
|
+
text: serialized.text,
|
|
158
|
+
parts: ( serialized.parts.map(part => {
|
|
159
|
+
if (part.kind === ChatRequestTextPart.Kind) {
|
|
160
|
+
return ( new ChatRequestTextPart(( new OffsetRange(part.range.start, part.range.endExclusive)), part.editorRange, part.text));
|
|
161
|
+
}
|
|
162
|
+
else if (part.kind === ChatRequestVariablePart.Kind) {
|
|
163
|
+
return ( new ChatRequestVariablePart(( new OffsetRange(part.range.start, part.range.endExclusive)), part.editorRange, part.variableName, part.variableArg, part.variableId || ''));
|
|
164
|
+
}
|
|
165
|
+
else if (part.kind === ChatRequestToolPart.Kind) {
|
|
166
|
+
return ( new ChatRequestToolPart(( new OffsetRange(part.range.start, part.range.endExclusive)), part.editorRange, part.toolName, part.toolId, part.displayName, part.icon));
|
|
167
|
+
}
|
|
168
|
+
else if (part.kind === ChatRequestAgentPart.Kind) {
|
|
169
|
+
let agent = part.agent;
|
|
170
|
+
agent = reviveSerializedAgent(agent);
|
|
171
|
+
return ( new ChatRequestAgentPart(( new OffsetRange(part.range.start, part.range.endExclusive)), part.editorRange, agent));
|
|
172
|
+
}
|
|
173
|
+
else if (part.kind === ChatRequestAgentSubcommandPart.Kind) {
|
|
174
|
+
return ( new ChatRequestAgentSubcommandPart(( new OffsetRange(part.range.start, part.range.endExclusive)), part.editorRange, part.command));
|
|
175
|
+
}
|
|
176
|
+
else if (part.kind === ChatRequestSlashCommandPart.Kind) {
|
|
177
|
+
return ( new ChatRequestSlashCommandPart(( new OffsetRange(part.range.start, part.range.endExclusive)), part.editorRange, part.slashCommand));
|
|
178
|
+
}
|
|
179
|
+
else if (part.kind === ChatRequestSlashPromptPart.Kind) {
|
|
180
|
+
return ( new ChatRequestSlashPromptPart(( new OffsetRange(part.range.start, part.range.endExclusive)), part.editorRange, part.slashPromptCommand));
|
|
181
|
+
}
|
|
182
|
+
else if (part.kind === ChatRequestDynamicVariablePart.Kind) {
|
|
183
|
+
return ( new ChatRequestDynamicVariablePart(( new OffsetRange(part.range.start, part.range.endExclusive)), part.editorRange, part.text, part.id, part.modelDescription, revive(part.data), part.fullName, part.icon, part.isFile, part.isDirectory));
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
throw ( new Error(`Unknown chat request part: ${part.kind}`));
|
|
187
|
+
}
|
|
188
|
+
}))
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
function extractAgentAndCommand(parsed) {
|
|
192
|
+
const agentPart = parsed.parts.find((r) => r instanceof ChatRequestAgentPart);
|
|
193
|
+
const commandPart = parsed.parts.find((r) => r instanceof ChatRequestAgentSubcommandPart);
|
|
194
|
+
return { agentPart, commandPart };
|
|
195
|
+
}
|
|
196
|
+
function formatChatQuestion(chatAgentService, location, prompt, participant = null, command = null) {
|
|
197
|
+
let question = '';
|
|
198
|
+
if (participant && participant !== chatAgentService.getDefaultAgent(location)?.id) {
|
|
199
|
+
const agent = chatAgentService.getAgent(participant);
|
|
200
|
+
if (!agent) {
|
|
201
|
+
return undefined;
|
|
202
|
+
}
|
|
203
|
+
question += `${chatAgentLeader}${agent.name} `;
|
|
204
|
+
if (command) {
|
|
205
|
+
question += `${chatSubcommandLeader}${command} `;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
return question + prompt;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export { ChatRequestAgentPart, ChatRequestAgentSubcommandPart, ChatRequestDynamicVariablePart, ChatRequestSlashCommandPart, ChatRequestSlashPromptPart, ChatRequestTextPart, ChatRequestToolPart, chatAgentLeader, chatSubcommandLeader, chatVariableLeader, extractAgentAndCommand, formatChatQuestion, getPromptText, reviveParsedChatRequest };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { DeferredPromise } from "../../../../base/common/async.js";
|
|
2
2
|
import { Event } from "../../../../base/common/event.js";
|
|
3
3
|
import { IMarkdownString } from "../../../../base/common/htmlContent.js";
|
|
4
|
+
import { IObservable } from "../../../../base/common/observable.js";
|
|
4
5
|
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
5
6
|
import { URI } from "../../../../base/common/uri.js";
|
|
6
7
|
import { IRange } from "../../../../editor/common/core/range.js";
|
|
@@ -9,9 +10,9 @@ import { Command, Location, TextEdit } from "../../../../editor/common/languages
|
|
|
9
10
|
import { FileType } from "../../../../platform/files/common/files.js";
|
|
10
11
|
import { ICellEditOperation } from "../../notebook/common/notebookCommon.js";
|
|
11
12
|
import { IWorkspaceSymbol } from "@codingame/monaco-vscode-42931eb9-e564-530c-bafc-fa23ab43a070-common/vscode/vs/workbench/contrib/search/common/search";
|
|
12
|
-
import { IChatAgentCommand, IChatAgentData, IChatAgentResult } from "
|
|
13
|
-
import { IChatRequestVariableEntry, IChatResponseModel } from "
|
|
14
|
-
import { IChatParserContext } from "@codingame/monaco-vscode-
|
|
13
|
+
import { IChatAgentCommand, IChatAgentData, IChatAgentResult } from "./chatAgents.js";
|
|
14
|
+
import { IChatRequestVariableEntry, IChatResponseModel } from "./chatModel.js";
|
|
15
|
+
import { IChatParserContext } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatRequestParser";
|
|
15
16
|
import { IChatRequestVariableValue } from "./chatVariables.js";
|
|
16
17
|
import { ChatAgentLocation, ChatMode } from "./constants.js";
|
|
17
18
|
import { IPreparedToolInvocation, IToolConfirmationMessages, IToolResult } from "./languageModelToolsService.js";
|
|
@@ -180,9 +181,14 @@ export interface IChatToolInvocation {
|
|
|
180
181
|
confirmationMessages?: IToolConfirmationMessages;
|
|
181
182
|
confirmed: DeferredPromise<boolean>;
|
|
182
183
|
isConfirmed: boolean | undefined;
|
|
184
|
+
originMessage: string | IMarkdownString | undefined;
|
|
183
185
|
invocationMessage: string | IMarkdownString;
|
|
184
186
|
pastTenseMessage: string | IMarkdownString | undefined;
|
|
185
187
|
resultDetails: IToolResult["toolResultDetails"];
|
|
188
|
+
progress: IObservable<{
|
|
189
|
+
message?: string | IMarkdownString;
|
|
190
|
+
progress: number;
|
|
191
|
+
}>;
|
|
186
192
|
readonly toolId: string;
|
|
187
193
|
readonly toolCallId: string;
|
|
188
194
|
isCompletePromise: Promise<void>;
|
|
@@ -194,14 +200,20 @@ export interface IChatToolInvocationSerialized {
|
|
|
194
200
|
presentation: IPreparedToolInvocation["presentation"];
|
|
195
201
|
toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData;
|
|
196
202
|
invocationMessage: string | IMarkdownString;
|
|
203
|
+
originMessage: string | IMarkdownString | undefined;
|
|
197
204
|
pastTenseMessage: string | IMarkdownString | undefined;
|
|
198
205
|
resultDetails: IToolResult["toolResultDetails"];
|
|
199
206
|
isConfirmed: boolean | undefined;
|
|
200
207
|
isComplete: boolean;
|
|
201
208
|
toolCallId: string;
|
|
209
|
+
toolId: string;
|
|
202
210
|
kind: "toolInvocationSerialized";
|
|
203
211
|
}
|
|
204
|
-
export
|
|
212
|
+
export interface IChatExtensionsContent {
|
|
213
|
+
extensions: string[];
|
|
214
|
+
kind: "extensions";
|
|
215
|
+
}
|
|
216
|
+
export type IChatProgress = IChatMarkdownContent | IChatAgentMarkdownContentWithVulnerability | IChatTreeData | IChatUsedContext | IChatContentReference | IChatContentInlineReference | IChatCodeCitation | IChatProgressMessage | IChatTask | IChatTaskResult | IChatCommandButton | IChatWarningMessage | IChatTextEdit | IChatNotebookEdit | IChatMoveMessage | IChatResponseCodeblockUriPart | IChatConfirmation | IChatToolInvocation | IChatToolInvocationSerialized | IChatExtensionsContent | IChatUndoStop;
|
|
205
217
|
export interface IChatFollowup {
|
|
206
218
|
kind: "reply";
|
|
207
219
|
message: string;
|
|
@@ -280,7 +292,7 @@ export interface IChatEditingSessionAction {
|
|
|
280
292
|
kind: "chatEditingSessionAction";
|
|
281
293
|
uri: URI;
|
|
282
294
|
hasRemainingEdits: boolean;
|
|
283
|
-
outcome: "accepted" | "rejected" | "
|
|
295
|
+
outcome: "accepted" | "rejected" | "userModified";
|
|
284
296
|
}
|
|
285
297
|
export type ChatUserAction = IChatVoteAction | IChatCopyAction | IChatInsertAction | IChatApplyAction | IChatTerminalAction | IChatCommandAction | IChatFollowupAction | IChatBugReportAction | IChatInlineChatCodeAction | IChatEditingSessionAction;
|
|
286
298
|
export interface IChatUserActionEvent {
|
|
@@ -341,6 +353,8 @@ export interface IChatSendRequestOptions {
|
|
|
341
353
|
mode?: ChatMode;
|
|
342
354
|
userSelectedModelId?: string;
|
|
343
355
|
userSelectedTools?: string[];
|
|
356
|
+
userSelectedTools2?: Record<string, boolean>;
|
|
357
|
+
toolSelectionIsExclusive?: boolean;
|
|
344
358
|
location?: ChatAgentLocation;
|
|
345
359
|
locationData?: IChatLocationData;
|
|
346
360
|
parserContext?: IChatParserContext;
|
|
@@ -352,6 +366,5 @@ export interface IChatSendRequestOptions {
|
|
|
352
366
|
agentId?: string;
|
|
353
367
|
slashCommand?: string;
|
|
354
368
|
confirmation?: string;
|
|
355
|
-
hasInstructionAttachments?: boolean;
|
|
356
369
|
}
|
|
357
370
|
export declare const KEYWORD_ACTIVIATION_SETTING_ID = "accessibility.voice.keywordActivation";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
2
2
|
import { Event } from "../../../../base/common/event.js";
|
|
3
3
|
import { URI } from "../../../../base/common/uri.js";
|
|
4
|
-
import { ChatModel, IChatModel, IExportableChatData, ISerializableChatData, IChatRequestModel, IChatRequestVariableData } from "
|
|
5
|
-
import { IParsedChatRequest } from "
|
|
4
|
+
import { ChatModel, IChatModel, IExportableChatData, ISerializableChatData, IChatRequestModel, IChatRequestVariableData } from "./chatModel.js";
|
|
5
|
+
import { IParsedChatRequest } from "./chatParserTypes.js";
|
|
6
6
|
import { IChatTransferredSessionData, IChatSendRequestOptions, IChatSendRequestData, IChatCompleteResponse, IChatDetail, IChatUserActionEvent } from "./chatService.js";
|
|
7
7
|
import { ChatAgentLocation } from "./constants.js";
|
|
8
8
|
export declare const IChatService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IChatService>;
|
|
@@ -39,6 +39,6 @@ export interface IChatService {
|
|
|
39
39
|
reason: "initializationFailed" | "cleared";
|
|
40
40
|
}>;
|
|
41
41
|
transferChatSession(transferredSessionData: IChatTransferredSessionData, toWorkspace: URI): void;
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
activateDefaultAgent(location: ChatAgentLocation): Promise<void>;
|
|
43
|
+
readonly edits2Enabled: boolean;
|
|
44
44
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
import { URI } from "../../../../base/common/uri.js";
|
|
1
2
|
export declare const IChatTransferService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IChatTransferService>;
|
|
2
3
|
export interface IChatTransferService {
|
|
3
4
|
readonly _serviceBrand: undefined;
|
|
4
|
-
|
|
5
|
+
checkAndSetTransferredWorkspaceTrust(): Promise<void>;
|
|
6
|
+
addWorkspaceToTransferred(workspace: URI): void;
|
|
5
7
|
}
|
|
@@ -3,7 +3,7 @@ import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
|
3
3
|
import { URI } from "../../../../base/common/uri.js";
|
|
4
4
|
import { IRange } from "../../../../editor/common/core/range.js";
|
|
5
5
|
import { Location } from "../../../../editor/common/languages.js";
|
|
6
|
-
import { IChatModel, IDiagnosticVariableEntryFilterData } from "
|
|
6
|
+
import { IChatModel, IDiagnosticVariableEntryFilterData } from "./chatModel.js";
|
|
7
7
|
import { IChatContentReference, IChatProgressMessage } from "./chatService.js";
|
|
8
8
|
export interface IChatVariableData {
|
|
9
9
|
id: string;
|
|
@@ -29,7 +29,6 @@ export interface IDynamicVariable {
|
|
|
29
29
|
id: string;
|
|
30
30
|
fullName?: string;
|
|
31
31
|
icon?: ThemeIcon;
|
|
32
|
-
prefix?: string;
|
|
33
32
|
modelDescription?: string;
|
|
34
33
|
isFile?: boolean;
|
|
35
34
|
isDirectory?: boolean;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import { URI } from "../../../../base/common/uri.js";
|
|
2
|
-
import { Location } from "../../../../editor/common/languages.js";
|
|
3
|
-
import { IChatRequestVariableEntry, IChatRequestVariableData } from "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
4
|
-
import { IParsedChatRequest } from "@codingame/monaco-vscode-9a6d8b6c-ad4c-5ea3-9558-f43d6dc4c0ad-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes";
|
|
5
1
|
import { IDynamicVariable } from "./chatVariables.js";
|
|
6
|
-
import {
|
|
2
|
+
import { IToolData } from "./languageModelToolsService.js";
|
|
7
3
|
export declare const IChatVariablesService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IChatVariablesService>;
|
|
8
4
|
export interface IChatVariablesService {
|
|
9
5
|
_serviceBrand: undefined;
|
|
10
6
|
getDynamicVariables(sessionId: string): ReadonlyArray<IDynamicVariable>;
|
|
11
|
-
|
|
12
|
-
resolveVariables(prompt: IParsedChatRequest, attachedContextVariables: IChatRequestVariableEntry[] | undefined): IChatRequestVariableData;
|
|
7
|
+
getSelectedTools(sessionId: string): ReadonlyArray<IToolData>;
|
|
13
8
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Event } from "../../../../base/common/event.js";
|
|
2
|
-
import { IChatHistoryEntry } from "@codingame/monaco-vscode-
|
|
2
|
+
import { IChatHistoryEntry } from "@codingame/monaco-vscode-fab30422-b487-5f4e-8d30-8b4d266e3fcd-common/vscode/vs/workbench/contrib/chat/common/chatWidgetHistoryService";
|
|
3
3
|
import { ChatAgentLocation } from "./constants.js";
|
|
4
4
|
export declare const IChatWidgetHistoryService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IChatWidgetHistoryService>;
|
|
5
5
|
export interface IChatWidgetHistoryService {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export declare enum ChatConfiguration {
|
|
2
|
-
UnifiedChatView = "chat.unifiedChatView",
|
|
3
2
|
UseFileStorage = "chat.useFileStorage",
|
|
4
3
|
AgentEnabled = "chat.agent.enabled",
|
|
5
4
|
Edits2Enabled = "chat.edits2.enabled",
|
|
@@ -10,14 +9,14 @@ export declare enum ChatMode {
|
|
|
10
9
|
Edit = "edit",
|
|
11
10
|
Agent = "agent"
|
|
12
11
|
}
|
|
12
|
+
export declare function modeToString(mode: ChatMode): "Edit" | "Agent" | "Ask";
|
|
13
13
|
export declare function validateChatMode(mode: unknown): ChatMode | undefined;
|
|
14
14
|
export type RawChatParticipantLocation = "panel" | "terminal" | "notebook" | "editing-session";
|
|
15
15
|
export declare enum ChatAgentLocation {
|
|
16
16
|
Panel = "panel",
|
|
17
17
|
Terminal = "terminal",
|
|
18
18
|
Notebook = "notebook",
|
|
19
|
-
Editor = "editor"
|
|
20
|
-
EditingSession = "editing-session"
|
|
19
|
+
Editor = "editor"
|
|
21
20
|
}
|
|
22
21
|
export declare namespace ChatAgentLocation {
|
|
23
22
|
function fromRaw(value: RawChatParticipantLocation | string): ChatAgentLocation;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
var ChatConfiguration;
|
|
4
4
|
(function (ChatConfiguration) {
|
|
5
|
-
ChatConfiguration["UnifiedChatView"] = "chat.unifiedChatView";
|
|
6
5
|
ChatConfiguration["UseFileStorage"] = "chat.useFileStorage";
|
|
7
6
|
ChatConfiguration["AgentEnabled"] = "chat.agent.enabled";
|
|
8
7
|
ChatConfiguration["Edits2Enabled"] = "chat.edits2.enabled";
|
|
@@ -14,6 +13,17 @@ var ChatMode;
|
|
|
14
13
|
ChatMode["Edit"] = "edit";
|
|
15
14
|
ChatMode["Agent"] = "agent";
|
|
16
15
|
})(ChatMode || (ChatMode = {}));
|
|
16
|
+
function modeToString(mode) {
|
|
17
|
+
switch (mode) {
|
|
18
|
+
case ChatMode.Agent:
|
|
19
|
+
return 'Agent';
|
|
20
|
+
case ChatMode.Edit:
|
|
21
|
+
return 'Edit';
|
|
22
|
+
case ChatMode.Ask:
|
|
23
|
+
default:
|
|
24
|
+
return 'Ask';
|
|
25
|
+
}
|
|
26
|
+
}
|
|
17
27
|
function validateChatMode(mode) {
|
|
18
28
|
switch (mode) {
|
|
19
29
|
case ChatMode.Ask:
|
|
@@ -30,7 +40,6 @@ var ChatAgentLocation;
|
|
|
30
40
|
ChatAgentLocation["Terminal"] = "terminal";
|
|
31
41
|
ChatAgentLocation["Notebook"] = "notebook";
|
|
32
42
|
ChatAgentLocation["Editor"] = "editor";
|
|
33
|
-
ChatAgentLocation["EditingSession"] = "editing-session";
|
|
34
43
|
})(ChatAgentLocation || (ChatAgentLocation = {}));
|
|
35
44
|
(function (ChatAgentLocation) {
|
|
36
45
|
function fromRaw(value) {
|
|
@@ -39,11 +48,10 @@ var ChatAgentLocation;
|
|
|
39
48
|
case 'terminal': return ChatAgentLocation.Terminal;
|
|
40
49
|
case 'notebook': return ChatAgentLocation.Notebook;
|
|
41
50
|
case 'editor': return ChatAgentLocation.Editor;
|
|
42
|
-
case 'editing-session': return ChatAgentLocation.EditingSession;
|
|
43
51
|
}
|
|
44
52
|
return ChatAgentLocation.Panel;
|
|
45
53
|
}
|
|
46
54
|
ChatAgentLocation.fromRaw = fromRaw;
|
|
47
55
|
})(ChatAgentLocation || (ChatAgentLocation = {}));
|
|
48
56
|
|
|
49
|
-
export { ChatAgentLocation, ChatConfiguration, ChatMode, validateChatMode };
|
|
57
|
+
export { ChatAgentLocation, ChatConfiguration, ChatMode, modeToString, validateChatMode };
|
|
@@ -3,10 +3,12 @@ import { IMarkdownString } from "../../../../base/common/htmlContent.js";
|
|
|
3
3
|
import { IJSONSchema } from "../../../../base/common/jsonSchema.js";
|
|
4
4
|
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
5
5
|
import { URI } from "../../../../base/common/uri.js";
|
|
6
|
+
import { Location } from "../../../../editor/common/languages.js";
|
|
6
7
|
import { ContextKeyExpression } from "../../../../platform/contextkey/common/contextkey.js";
|
|
7
8
|
import { ExtensionIdentifier } from "../../../../platform/extensions/common/extensions.js";
|
|
8
|
-
import {
|
|
9
|
+
import { IProgress } from "../../../../platform/progress/common/progress.js";
|
|
9
10
|
import { IChatTerminalToolInvocationData, IChatToolInputInvocationData } from "./chatService.js";
|
|
11
|
+
import { VSBuffer } from "../../../../base/common/buffer.js";
|
|
10
12
|
export interface IToolData {
|
|
11
13
|
id: string;
|
|
12
14
|
source: ToolDataSource;
|
|
@@ -23,16 +25,23 @@ export interface IToolData {
|
|
|
23
25
|
inputSchema?: IJSONSchema;
|
|
24
26
|
canBeReferencedInPrompt?: boolean;
|
|
25
27
|
runsInWorkspace?: boolean;
|
|
26
|
-
requiresConfirmation?: boolean;
|
|
27
28
|
alwaysDisplayInputOutput?: boolean;
|
|
28
29
|
supportsToolPicker?: boolean;
|
|
29
30
|
}
|
|
31
|
+
export interface IToolProgressStep {
|
|
32
|
+
readonly message: string | IMarkdownString | undefined;
|
|
33
|
+
readonly increment: number | undefined;
|
|
34
|
+
readonly total: number | undefined;
|
|
35
|
+
}
|
|
36
|
+
export type ToolProgress = IProgress<IToolProgressStep>;
|
|
30
37
|
export type ToolDataSource = {
|
|
31
38
|
type: "extension";
|
|
39
|
+
label: string;
|
|
32
40
|
extensionId: ExtensionIdentifier;
|
|
33
41
|
isExternalTool: boolean;
|
|
34
42
|
} | {
|
|
35
43
|
type: "mcp";
|
|
44
|
+
label: string;
|
|
36
45
|
collectionId: string;
|
|
37
46
|
definitionId: string;
|
|
38
47
|
} | {
|
|
@@ -58,14 +67,24 @@ export interface IToolInvocationContext {
|
|
|
58
67
|
export declare function isToolInvocationContext(obj: any): obj is IToolInvocationContext;
|
|
59
68
|
export interface IToolResultInputOutputDetails {
|
|
60
69
|
readonly input: string;
|
|
61
|
-
readonly output:
|
|
70
|
+
readonly output: ({
|
|
71
|
+
type: "text";
|
|
72
|
+
value: string;
|
|
73
|
+
} | {
|
|
74
|
+
type: "data";
|
|
75
|
+
mimeType: string;
|
|
76
|
+
value64: string;
|
|
77
|
+
})[];
|
|
78
|
+
readonly isError?: boolean;
|
|
62
79
|
}
|
|
63
80
|
export declare function isToolResultInputOutputDetails(obj: any): obj is IToolResultInputOutputDetails;
|
|
64
81
|
export interface IToolResult {
|
|
65
|
-
content: (IToolResultPromptTsxPart | IToolResultTextPart)[];
|
|
82
|
+
content: (IToolResultPromptTsxPart | IToolResultTextPart | IToolResultDataPart)[];
|
|
66
83
|
toolResultMessage?: string | IMarkdownString;
|
|
67
84
|
toolResultDetails?: Array<URI | Location> | IToolResultInputOutputDetails;
|
|
85
|
+
toolResultError?: string;
|
|
68
86
|
}
|
|
87
|
+
export declare function toolResultHasBuffers(result: IToolResult): boolean;
|
|
69
88
|
export interface IToolResultPromptTsxPart {
|
|
70
89
|
kind: "promptTsx";
|
|
71
90
|
value: unknown;
|
|
@@ -75,6 +94,13 @@ export interface IToolResultTextPart {
|
|
|
75
94
|
kind: "text";
|
|
76
95
|
value: string;
|
|
77
96
|
}
|
|
97
|
+
export interface IToolResultDataPart {
|
|
98
|
+
kind: "data";
|
|
99
|
+
value: {
|
|
100
|
+
mimeType: string;
|
|
101
|
+
data: VSBuffer;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
78
104
|
export interface IToolConfirmationMessages {
|
|
79
105
|
title: string;
|
|
80
106
|
message: string | IMarkdownString;
|
|
@@ -83,13 +109,15 @@ export interface IToolConfirmationMessages {
|
|
|
83
109
|
export interface IPreparedToolInvocation {
|
|
84
110
|
invocationMessage?: string | IMarkdownString;
|
|
85
111
|
pastTenseMessage?: string | IMarkdownString;
|
|
112
|
+
originMessage?: string | IMarkdownString;
|
|
86
113
|
confirmationMessages?: IToolConfirmationMessages;
|
|
87
114
|
presentation?: "hidden" | undefined;
|
|
88
115
|
toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData;
|
|
89
116
|
}
|
|
90
117
|
export interface IToolImpl {
|
|
91
|
-
invoke(invocation: IToolInvocation, countTokens: CountTokensCallback, token: CancellationToken): Promise<IToolResult>;
|
|
118
|
+
invoke(invocation: IToolInvocation, countTokens: CountTokensCallback, progress: ToolProgress, token: CancellationToken): Promise<IToolResult>;
|
|
92
119
|
prepareToolInvocation?(parameters: any, token: CancellationToken): Promise<IPreparedToolInvocation | undefined>;
|
|
93
120
|
}
|
|
94
121
|
export type CountTokensCallback = (input: string, token: CancellationToken) => Promise<number>;
|
|
95
122
|
export declare function createToolInputUri(toolOrId: IToolData | string): URI;
|
|
123
|
+
export declare function createToolSchemaUri(toolOrId: IToolData | string): URI;
|