@codingame/monaco-vscode-api 18.4.0 → 19.0.1
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 +1217 -2932
- package/monaco.js +0 -3
- package/package.json +8 -8
- package/services.d.ts +12 -8
- package/services.js +12 -7
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.d.ts +83 -2
- package/vscode/src/vs/base/browser/dom.js +280 -3
- package/vscode/src/vs/base/browser/domStylesheets.d.ts +2 -0
- package/vscode/src/vs/base/browser/domStylesheets.js +11 -1
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +1 -0
- package/vscode/src/vs/base/browser/markdownRenderer.js +34 -18
- package/vscode/src/vs/base/browser/ui/button/button.js +4 -1
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/list/list.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/list/listView.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listView.js +5 -5
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +5 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +3 -1
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +21 -4
- package/vscode/src/vs/base/common/arrays.d.ts +0 -1
- package/vscode/src/vs/base/common/arrays.js +1 -6
- package/vscode/src/vs/base/common/async.d.ts +1 -0
- package/vscode/src/vs/base/common/async.js +2 -1
- package/vscode/src/vs/base/common/buffer.d.ts +1 -0
- package/vscode/src/vs/base/common/buffer.js +3 -0
- package/vscode/src/vs/base/common/codicons.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +7 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +7 -0
- package/vscode/src/vs/base/common/collections.d.ts +1 -0
- package/vscode/src/vs/base/common/collections.js +14 -1
- package/vscode/src/vs/base/common/color.js +2 -2
- package/vscode/src/vs/base/common/dataTransfer.d.ts +1 -1
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/event.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.d.ts +1 -1
- package/vscode/src/vs/base/common/glob.js +2 -2
- package/vscode/src/vs/base/common/hotReloadHelpers.js +1 -1
- package/vscode/src/vs/base/common/iterator.d.ts +1 -1
- package/vscode/src/vs/base/common/network.d.ts +1 -0
- package/vscode/src/vs/base/common/network.js +1 -0
- package/vscode/src/vs/base/common/oauth.d.ts +34 -4
- package/vscode/src/vs/base/common/oauth.js +77 -6
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.js +8 -1
- package/vscode/src/vs/base/common/observableInternal/set.js +0 -1
- package/vscode/src/vs/base/common/performance.js +1 -1
- package/vscode/src/vs/base/common/product.d.ts +2 -1
- package/vscode/src/vs/base/common/types.d.ts +4 -8
- package/vscode/src/vs/base/common/types.js +3 -3
- package/vscode/src/vs/base/common/worker/webWorker.js +1 -1
- package/vscode/src/vs/editor/browser/config/migrateOptions.js +8 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +2 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +18 -14
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +5 -3
- package/vscode/src/vs/editor/browser/editorBrowser.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/atlas/textureAtlas.js +5 -4
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.d.ts +3 -1
- package/vscode/src/vs/editor/browser/gpu/raster/glyphRasterizer.js +3 -3
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +2 -3
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +6 -0
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +38 -1
- package/vscode/src/vs/editor/browser/services/abstractCodeEditorService.js +9 -1
- package/vscode/src/vs/editor/browser/services/bulkEditService.d.ts +2 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.d.ts +4 -0
- package/vscode/src/vs/editor/browser/services/editorWorkerService.js +18 -2
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +32 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +141 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +11 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.js +6 -0
- package/vscode/src/vs/editor/browser/view/domLineBreaksComputer.js +2 -2
- package/vscode/src/vs/editor/browser/view/viewController.js +5 -1
- package/vscode/src/vs/editor/browser/view.d.ts +1 -1
- package/vscode/src/vs/editor/browser/view.js +5 -5
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.d.ts +1 -1
- package/vscode/src/vs/editor/browser/viewParts/viewCursors/viewCursors.js +3 -3
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +14 -6
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.d.ts +1 -0
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLineOptions.js +3 -7
- package/vscode/src/vs/editor/browser/viewParts/viewLinesGpu/viewLinesGpu.js +12 -2
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +4 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +8 -2
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +39 -9
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.css +52 -49
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +15 -15
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +7 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +2 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +54 -54
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +173 -160
- package/vscode/src/vs/editor/common/config/editorOptions.js +645 -570
- package/vscode/src/vs/editor/common/config/fontInfo.js +1 -1
- package/vscode/src/vs/editor/common/core/2d/point.d.ts +5 -0
- package/vscode/src/vs/editor/common/core/2d/point.js +23 -0
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/edit.d.ts +6 -0
- package/vscode/src/vs/editor/common/core/edits/edit.js +41 -0
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +17 -11
- package/vscode/src/vs/editor/common/core/edits/lineEdit.js +36 -9
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +63 -16
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +205 -48
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +5 -1
- package/vscode/src/vs/editor/common/core/edits/textEdit.js +18 -2
- package/vscode/src/vs/editor/common/core/text/abstractText.d.ts +3 -1
- package/vscode/src/vs/editor/common/core/text/abstractText.js +10 -1
- package/vscode/src/vs/editor/common/core/text/getPositionOffsetTransformerFromTextModel.js +2 -1
- package/vscode/src/vs/editor/common/core/text/positionToOffset.d.ts +2 -28
- package/vscode/src/vs/editor/common/core/text/positionToOffset.js +11 -92
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.d.ts +37 -0
- package/vscode/src/vs/editor/common/core/text/positionToOffsetImpl.js +104 -0
- package/vscode/src/vs/editor/common/cursor/cursor.d.ts +3 -2
- package/vscode/src/vs/editor/common/cursor/cursor.js +24 -16
- package/vscode/src/vs/editor/common/diff/defaultLinesDiffComputer/defaultLinesDiffComputer.js +3 -1
- package/vscode/src/vs/editor/common/diff/rangeMapping.d.ts +1 -0
- package/vscode/src/vs/editor/common/diff/rangeMapping.js +11 -1
- package/vscode/src/vs/editor/common/editorCommon.d.ts +2 -1
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/defaultDocumentColorsComputer.js +1 -1
- package/vscode/src/vs/editor/common/languages/languageConfiguration.d.ts +5 -1
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.d.ts +1 -0
- package/vscode/src/vs/editor/common/languages/languageConfigurationRegistry.js +7 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +31 -27
- package/vscode/src/vs/editor/common/languages.js +57 -62
- package/vscode/src/vs/editor/common/model/editStack.d.ts +2 -1
- package/vscode/src/vs/editor/common/model/editStack.js +4 -3
- package/vscode/src/vs/editor/common/model/intervalTree.d.ts +2 -2
- package/vscode/src/vs/editor/common/model/intervalTree.js +24 -7
- package/vscode/src/vs/editor/common/model/textModel.d.ts +24 -10
- package/vscode/src/vs/editor/common/model/textModel.js +114 -53
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js +1 -1
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.d.ts +0 -3
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterSyntaxTokenBackend.js +1 -13
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.d.ts +2 -0
- package/vscode/src/vs/editor/common/model/tokens/treeSitter/treeSitterTree.js +13 -2
- package/vscode/src/vs/editor/common/model.d.ts +8 -2
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/editorWebWorker.js +14 -0
- package/vscode/src/vs/editor/common/services/editorWorker.service.d.ts +4 -0
- package/vscode/src/vs/editor/common/services/findSectionHeaders.js +7 -0
- package/vscode/src/vs/editor/common/services/languageFeatures.service.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.d.ts +1 -2
- package/vscode/src/vs/editor/common/services/languageFeaturesService.js +0 -1
- package/vscode/src/vs/editor/common/services/model.service.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/modelService.js +3 -2
- package/vscode/src/vs/editor/common/services/textResourceConfiguration.service.d.ts +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +159 -157
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +160 -159
- package/vscode/src/vs/editor/common/standaloneStrings.js +50 -49
- package/vscode/src/vs/editor/common/textModelEditReason.d.ts +94 -12
- package/vscode/src/vs/editor/common/textModelEditReason.js +86 -20
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +24 -0
- package/vscode/src/vs/editor/common/textModelEvents.js +33 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.d.ts +22 -1
- package/vscode/src/vs/editor/common/tokens/lineTokens.js +79 -2
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +5 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +10 -4
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +39 -12
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +3 -3
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +6 -6
- package/vscode/src/vs/editor/common/viewModel.d.ts +3 -1
- package/vscode/src/vs/editor/common/viewModel.js +2 -1
- 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/anchorSelect/browser/anchorSelect.js +6 -6
- package/vscode/src/vs/editor/contrib/bracketMatching/browser/bracketMatching.js +6 -6
- package/vscode/src/vs/editor/contrib/caretOperations/browser/caretOperations.js +2 -2
- package/vscode/src/vs/editor/contrib/caretOperations/browser/transpose.js +1 -1
- package/vscode/src/vs/editor/contrib/clipboard/browser/clipboard.js +20 -20
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +3 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionCommands.js +29 -29
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +9 -9
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.css +2 -7
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerCloseButton.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerHeader.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/defaultDocumentColorProvider.js +3 -3
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/comment/browser/lineCommentCommand.js +9 -5
- package/vscode/src/vs/editor/contrib/contextmenu/browser/contextmenu.js +10 -10
- package/vscode/src/vs/editor/contrib/cursorUndo/browser/cursorUndo.js +2 -2
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteContribution.js +4 -4
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/copyPasteController.js +9 -9
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/defaultProviders.js +8 -8
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.js +2 -2
- package/vscode/src/vs/editor/contrib/editorState/browser/keybindingCancellation.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +16 -16
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +29 -29
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- 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 +3 -3
- package/vscode/src/vs/editor/contrib/gpu/browser/gpuActions.js +10 -5
- 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 +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +10 -6
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +22 -47
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +11 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/inlineCompletions.contribution.js +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/animation.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/changeRecorder.js +35 -30
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/ghostText.js +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/graph.js +66 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +12 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +144 -100
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +7 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +100 -49
- 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 +4 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +37 -29
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +39 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +150 -162
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/utils.js +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/ghostText/ghostTextView.js +12 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineCompletionsView.js +9 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +13 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +2 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.d.ts +5 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +103 -62
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +25 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.js +13 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCollapsedView.js +1 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +4 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +7 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +16 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +3 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +34 -34
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +13 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +6 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/originalEditorInlineDiffView.js +20 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +4 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +10 -7
- 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/middleScroll/browser/middleScroll.contribution.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.contribution.js +5 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScroll.css +20 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.d.ts +9 -0
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +132 -0
- 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 +9 -9
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +21 -17
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.css +0 -1
- package/vscode/src/vs/editor/contrib/readOnlyMessage/browser/contribution.js +2 -2
- package/vscode/src/vs/editor/contrib/rename/browser/rename.js +14 -12
- 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.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +5 -5
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetSession.js +3 -2
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css +24 -24
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +13 -13
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollModelProvider.js +18 -10
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.d.ts +4 -3
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +34 -39
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.d.ts +5 -6
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +65 -70
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +13 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestInlineCompletions.js +1 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +4 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetStatus.js +1 -1
- 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 +1 -1
- 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/standalone/browser/standaloneServices.d.ts +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +5 -2
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +79 -69
- package/vscode/src/vs/platform/action/common/actionCommonCategories.js +6 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +4 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- 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 +0 -1
- package/vscode/src/vs/platform/actions/common/actions.js +0 -1
- 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/configuration/common/configuration.js +4 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +11 -11
- 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.js +1 -1
- package/vscode/src/vs/platform/environment/common/argv.d.ts +11 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -19
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.service.d.ts +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagementUtil.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +9 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +9 -3
- package/vscode/src/vs/platform/files/browser/htmlFileSystemProvider.js +2 -2
- package/vscode/src/vs/platform/files/common/files.d.ts +6 -1
- package/vscode/src/vs/platform/files/common/files.js +11 -7
- package/vscode/src/vs/platform/files/common/files.service.d.ts +1 -0
- package/vscode/src/vs/platform/history/browser/contextScopedHistoryWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.d.ts +2 -2
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/keybinding/common/keybinding.service.d.ts +2 -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 -7
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.d.ts +4 -0
- package/vscode/src/vs/platform/log/common/log.js +15 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +4 -3
- package/vscode/src/vs/platform/markers/common/markers.d.ts +2 -0
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +9 -4
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.d.ts +10 -0
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.js +6 -0
- package/vscode/src/vs/platform/notification/common/notification.d.ts +1 -0
- package/vscode/src/vs/platform/notification/common/notification.js +12 -2
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +7 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputTree.js +7 -12
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +2 -1
- package/vscode/src/vs/platform/remote/common/remoteAgentEnvironment.d.ts +1 -0
- package/vscode/src/vs/platform/remote/common/remoteAuthorityResolver.d.ts +2 -2
- 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/commonProperties.d.ts +1 -1
- package/vscode/src/vs/platform/telemetry/common/telemetry.d.ts +2 -0
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +2 -1
- package/vscode/src/vs/platform/theme/browser/defaultStyles.d.ts +1 -1
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- 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.d.ts +1 -0
- package/vscode/src/vs/platform/theme/common/colors/editorColors.js +95 -94
- package/vscode/src/vs/platform/theme/common/colors/inputColors.js +47 -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 +6 -6
- package/vscode/src/vs/platform/theme/common/themeService.d.ts +1 -1
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.d.ts +3 -1
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +6 -2
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.d.ts +2 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +7 -6
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.service.d.ts +1 -1
- package/vscode/src/vs/platform/window/common/window.d.ts +1 -0
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +5 -7
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +25 -24
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +10 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +109 -77
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -1
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +22 -0
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +3 -0
- 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/extHostDocuments.d.ts +4 -2
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +35 -5
- package/vscode/src/vs/workbench/api/common/extHostEditorTabs.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +3 -4
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +1 -5
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +34 -182
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +7 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +2 -3
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +3 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +71 -20
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +7 -5
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +7 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.d.ts +4 -3
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +3 -0
- 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 +16 -7
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +20 -8
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +16 -13
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +11 -12
- package/vscode/src/vs/workbench/api/common/extHostWebviewMessaging.d.ts +2 -2
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- 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/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/contextkeys.js +6 -1
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.service.d.ts +1 -1
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -72
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +2 -1
- package/vscode/src/vs/workbench/common/editor.js +6 -6
- 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 +157 -160
- 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/chatAttachmentResolveService.service.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +62 -41
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +24 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +29 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +152 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +160 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.d.ts +2 -1
- 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 +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +11 -24
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +22 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/frontMatterCodec/tokens/index.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/simpleCodec/tokens/tokens.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +2 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.d.ts → promptsService.d.ts} +14 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.d.ts → promptsService.service.d.ts} +6 -7
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +6 -6
- 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.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 -0
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +73 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debugUtils.js +7 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- 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 +1 -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/mcpTypes.d.ts +55 -9
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +29 -13
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +16 -6
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +119 -31
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/services/notebookEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.service.js +6 -0
- 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/constants.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +10 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +13 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/browser/terminalCompletionService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +13 -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.d.ts +1 -0
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +6 -4
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +4 -0
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.d.ts +132 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.d.ts +20 -0
- package/vscode/src/vs/workbench/services/authentication/common/authenticationQuery.service.js +6 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolver.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +6 -0
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.js +6 -0
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +1 -1
- 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/environment/common/environmentService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +84 -84
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +2 -2
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +17 -17
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.service.d.ts +5 -1
- 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/mcp/common/mcpWorkbenchManagementService.service.d.ts +16 -0
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.js +6 -0
- package/vscode/src/vs/workbench/services/outline/browser/outline.service.d.ts +1 -1
- 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 +3 -3
- package/vscode/src/vs/workbench/services/textfile/common/textfiles.d.ts +1 -1
- 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 +13 -12
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyBackup.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyEditorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyService.service.d.ts +1 -1
- package/vscode-dts/vscode.proposed.authProviderSpecific.d.ts +30 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +10 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +139 -10
- package/vscode-dts/vscode.proposed.d.ts +3 -1
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +5 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +21 -4
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +1 -0
- package/vscode-dts/vscode.proposed.remoteCodingAgents.d.ts +8 -0
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.textDocumentChangeReason.d.ts +30 -0
- package/workbench.d.ts +1 -1
- package/vscode/src/vs/base/browser/domImpl/domObservable.d.ts +0 -3
- package/vscode/src/vs/base/browser/domImpl/domObservable.js +0 -16
- package/vscode/src/vs/base/browser/domImpl/n.d.ts +0 -83
- package/vscode/src/vs/base/browser/domImpl/n.js +0 -283
- package/vscode/src/vs/editor/common/codecs/frontMatterCodec/tokens/index.d.ts +0 -5
- package/vscode/src/vs/editor/common/codecs/simpleCodec/tokens/index.d.ts +0 -20
- package/vscode/src/vs/editor/common/tokens/tokenArray.d.ts +0 -25
- package/vscode/src/vs/editor/common/tokens/tokenArray.js +0 -84
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.d.ts +0 -16
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineEditsAdapter.js +0 -94
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.d.ts +0 -243
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.js +0 -426
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.d.ts +0 -601
- package/vscode/src/vs/workbench/contrib/chat/common/chatModel.js +0 -1185
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.d.ts +0 -130
- package/vscode/src/vs/workbench/contrib/chat/common/chatParserTypes.js +0 -235
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +0 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/index.d.ts +0 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfigPathsService.service.js +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.d.ts +0 -6
- package/vscode/src/vs/workbench/contrib/welcomeGettingStarted/browser/gettingStartedExpService.service.js +0 -6
- package/vscode-dts/vscode.proposed.inlineEdit.d.ts +0 -103
- /package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/{types.service.js → promptsService.service.js} +0 -0
|
@@ -9,12 +9,13 @@ import { ISelection } from "../../../../editor/common/core/selection.js";
|
|
|
9
9
|
import { Command, Location, TextEdit } from "../../../../editor/common/languages.js";
|
|
10
10
|
import { FileType } from "../../../../platform/files/common/files.js";
|
|
11
11
|
import { ICellEditOperation } from "../../notebook/common/notebookCommon.js";
|
|
12
|
-
import { IWorkspaceSymbol } from "@codingame/monaco-vscode-
|
|
13
|
-
import { IChatAgentCommand, IChatAgentData, IChatAgentResult } from "
|
|
14
|
-
import {
|
|
15
|
-
import { IChatParserContext } from "@codingame/monaco-vscode-
|
|
12
|
+
import { IWorkspaceSymbol } from "@codingame/monaco-vscode-6f931a91-88ea-5232-897f-a17ec3929ba5-common/vscode/vs/workbench/contrib/search/common/search";
|
|
13
|
+
import { IChatAgentCommand, IChatAgentData, IChatAgentResult } from "@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common/vscode/vs/workbench/contrib/chat/common/chatAgents";
|
|
14
|
+
import { IChatResponseModel } from "@codingame/monaco-vscode-9911aec2-e4dd-5483-8369-9d695cc70d8a-common/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
15
|
+
import { IChatParserContext } from "@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common/vscode/vs/workbench/contrib/chat/common/chatRequestParser";
|
|
16
|
+
import { IChatRequestVariableEntry } from "./chatVariableEntries.js";
|
|
16
17
|
import { IChatRequestVariableValue } from "./chatVariables.js";
|
|
17
|
-
import { ChatAgentLocation,
|
|
18
|
+
import { ChatAgentLocation, ChatModeKind } from "./constants.js";
|
|
18
19
|
import { IPreparedToolInvocation, IToolConfirmationMessages, IToolResult } from "./languageModelToolsService.js";
|
|
19
20
|
export interface IChatRequest {
|
|
20
21
|
message: string;
|
|
@@ -177,6 +178,16 @@ export interface IChatConfirmation {
|
|
|
177
178
|
isUsed?: boolean;
|
|
178
179
|
kind: "confirmation";
|
|
179
180
|
}
|
|
181
|
+
export interface IChatElicitationRequest {
|
|
182
|
+
kind: "elicitation";
|
|
183
|
+
title: string | IMarkdownString;
|
|
184
|
+
message: string | IMarkdownString;
|
|
185
|
+
originMessage?: string | IMarkdownString;
|
|
186
|
+
state: "pending" | "accepted" | "rejected";
|
|
187
|
+
acceptedResult?: Record<string, unknown>;
|
|
188
|
+
accept(): Promise<void>;
|
|
189
|
+
reject(): Promise<void>;
|
|
190
|
+
}
|
|
180
191
|
export interface IChatTerminalToolInvocationData {
|
|
181
192
|
kind: "terminal";
|
|
182
193
|
command: string;
|
|
@@ -228,7 +239,7 @@ export interface IChatPrepareToolInvocationPart {
|
|
|
228
239
|
readonly kind: "prepareToolInvocation";
|
|
229
240
|
readonly toolName: string;
|
|
230
241
|
}
|
|
231
|
-
export type IChatProgress = IChatMarkdownContent | IChatAgentMarkdownContentWithVulnerability | IChatTreeData | IChatUsedContext | IChatContentReference | IChatContentInlineReference | IChatCodeCitation | IChatProgressMessage | IChatTask | IChatTaskResult | IChatCommandButton | IChatWarningMessage | IChatTextEdit | IChatNotebookEdit | IChatMoveMessage | IChatResponseCodeblockUriPart | IChatConfirmation | IChatToolInvocation | IChatToolInvocationSerialized | IChatExtensionsContent | IChatUndoStop | IChatPrepareToolInvocationPart | IChatTaskSerialized;
|
|
242
|
+
export type IChatProgress = IChatMarkdownContent | IChatAgentMarkdownContentWithVulnerability | IChatTreeData | IChatUsedContext | IChatContentReference | IChatContentInlineReference | IChatCodeCitation | IChatProgressMessage | IChatTask | IChatTaskResult | IChatCommandButton | IChatWarningMessage | IChatTextEdit | IChatNotebookEdit | IChatMoveMessage | IChatResponseCodeblockUriPart | IChatConfirmation | IChatToolInvocation | IChatToolInvocationSerialized | IChatExtensionsContent | IChatUndoStop | IChatPrepareToolInvocationPart | IChatTaskSerialized | IChatElicitationRequest;
|
|
232
243
|
export interface IChatFollowup {
|
|
233
244
|
kind: "reply";
|
|
234
245
|
message: string;
|
|
@@ -268,17 +279,27 @@ export interface IChatCopyAction {
|
|
|
268
279
|
copiedCharacters: number;
|
|
269
280
|
totalCharacters: number;
|
|
270
281
|
copiedText: string;
|
|
282
|
+
totalLines: number;
|
|
283
|
+
copiedLines: number;
|
|
284
|
+
modelId: string;
|
|
285
|
+
languageId?: string;
|
|
271
286
|
}
|
|
272
287
|
export interface IChatInsertAction {
|
|
273
288
|
kind: "insert";
|
|
274
289
|
codeBlockIndex: number;
|
|
275
290
|
totalCharacters: number;
|
|
291
|
+
totalLines: number;
|
|
292
|
+
languageId?: string;
|
|
293
|
+
modelId: string;
|
|
276
294
|
newFile?: boolean;
|
|
277
295
|
}
|
|
278
296
|
export interface IChatApplyAction {
|
|
279
297
|
kind: "apply";
|
|
280
298
|
codeBlockIndex: number;
|
|
281
299
|
totalCharacters: number;
|
|
300
|
+
totalLines: number;
|
|
301
|
+
languageId?: string;
|
|
302
|
+
modelId: string;
|
|
282
303
|
newFile?: boolean;
|
|
283
304
|
codeMapper?: string;
|
|
284
305
|
editsProposed: boolean;
|
|
@@ -340,7 +361,7 @@ export interface IChatTransferredSessionData {
|
|
|
340
361
|
sessionId: string;
|
|
341
362
|
inputValue: string;
|
|
342
363
|
location: ChatAgentLocation;
|
|
343
|
-
mode:
|
|
364
|
+
mode: ChatModeKind;
|
|
344
365
|
}
|
|
345
366
|
export interface IChatSendRequestResponseState {
|
|
346
367
|
responseCreatedPromise: Promise<IChatResponseModel>;
|
|
@@ -365,11 +386,10 @@ export interface IChatTerminalLocationData {
|
|
|
365
386
|
}
|
|
366
387
|
export type IChatLocationData = IChatEditorLocationData | IChatNotebookLocationData | IChatTerminalLocationData;
|
|
367
388
|
export interface IChatSendRequestOptions {
|
|
368
|
-
mode?:
|
|
389
|
+
mode?: ChatModeKind;
|
|
369
390
|
userSelectedModelId?: string;
|
|
370
391
|
userSelectedTools?: Record<string, boolean>;
|
|
371
392
|
modeInstructions?: string;
|
|
372
|
-
toolSelectionIsExclusive?: boolean;
|
|
373
393
|
location?: ChatAgentLocation;
|
|
374
394
|
locationData?: IChatLocationData;
|
|
375
395
|
parserContext?: IChatParserContext;
|
|
@@ -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 "@codingame/monaco-vscode-9911aec2-e4dd-5483-8369-9d695cc70d8a-common/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
5
|
+
import { IParsedChatRequest } from "@codingame/monaco-vscode-9ebd6daf-8734-5a28-ad24-b238f5e5819d-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes";
|
|
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>;
|
|
@@ -4,7 +4,7 @@ import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
|
4
4
|
import { IProgress } from "../../../../platform/progress/common/progress.js";
|
|
5
5
|
import { IChatProgress, IChatFollowup } from "./chatService.js";
|
|
6
6
|
import { IChatSlashData, IChatSlashCallback } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/chatSlashCommands";
|
|
7
|
-
import { ChatAgentLocation,
|
|
7
|
+
import { ChatAgentLocation, ChatModeKind } from "./constants.js";
|
|
8
8
|
import { IChatMessage } from "./languageModels.js";
|
|
9
9
|
export declare const IChatSlashCommandService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IChatSlashCommandService>;
|
|
10
10
|
export interface IChatSlashCommandService {
|
|
@@ -14,6 +14,6 @@ export interface IChatSlashCommandService {
|
|
|
14
14
|
executeCommand(id: string, prompt: string, progress: IProgress<IChatProgress>, history: IChatMessage[], location: ChatAgentLocation, token: CancellationToken): Promise<{
|
|
15
15
|
followUp: IChatFollowup[];
|
|
16
16
|
} | void>;
|
|
17
|
-
getCommands(location: ChatAgentLocation, mode:
|
|
17
|
+
getCommands(location: ChatAgentLocation, mode: ChatModeKind): Array<IChatSlashData>;
|
|
18
18
|
hasCommand(id: string): boolean;
|
|
19
19
|
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
2
|
+
import { URI } from "../../../../base/common/uri.js";
|
|
3
|
+
import { IRange } from "../../../../editor/common/core/range.js";
|
|
4
|
+
import { IOffsetRange } from "../../../../editor/common/core/ranges/offsetRange.js";
|
|
5
|
+
import { Location, SymbolKind } from "../../../../editor/common/languages.js";
|
|
6
|
+
import { MarkerSeverity, IMarker } from "../../../../platform/markers/common/markers.js";
|
|
7
|
+
import { ISCMHistoryItem } from "../../scm/common/history.js";
|
|
8
|
+
import { IChatContentReference } from "./chatService.js";
|
|
9
|
+
import { IChatRequestVariableValue } from "./chatVariables.js";
|
|
10
|
+
interface IBaseChatRequestVariableEntry {
|
|
11
|
+
readonly id: string;
|
|
12
|
+
readonly fullName?: string;
|
|
13
|
+
readonly icon?: ThemeIcon;
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly modelDescription?: string;
|
|
16
|
+
readonly range?: IOffsetRange;
|
|
17
|
+
readonly value: IChatRequestVariableValue;
|
|
18
|
+
readonly references?: IChatContentReference[];
|
|
19
|
+
omittedState?: OmittedState;
|
|
20
|
+
}
|
|
21
|
+
export interface IGenericChatRequestVariableEntry extends IBaseChatRequestVariableEntry {
|
|
22
|
+
kind: "generic";
|
|
23
|
+
}
|
|
24
|
+
export interface IChatRequestDirectoryEntry extends IBaseChatRequestVariableEntry {
|
|
25
|
+
kind: "directory";
|
|
26
|
+
}
|
|
27
|
+
export interface IChatRequestFileEntry extends IBaseChatRequestVariableEntry {
|
|
28
|
+
kind: "file";
|
|
29
|
+
}
|
|
30
|
+
export declare enum OmittedState {
|
|
31
|
+
NotOmitted = 0,
|
|
32
|
+
Partial = 1,
|
|
33
|
+
Full = 2
|
|
34
|
+
}
|
|
35
|
+
export interface IChatRequestToolEntry extends IBaseChatRequestVariableEntry {
|
|
36
|
+
readonly kind: "tool";
|
|
37
|
+
}
|
|
38
|
+
export interface IChatRequestToolSetEntry extends IBaseChatRequestVariableEntry {
|
|
39
|
+
readonly kind: "toolset";
|
|
40
|
+
readonly value: IChatRequestToolEntry[];
|
|
41
|
+
}
|
|
42
|
+
export interface IChatRequestImplicitVariableEntry extends IBaseChatRequestVariableEntry {
|
|
43
|
+
readonly kind: "implicit";
|
|
44
|
+
readonly isFile: true;
|
|
45
|
+
readonly value: URI | Location | undefined;
|
|
46
|
+
readonly isSelection: boolean;
|
|
47
|
+
enabled: boolean;
|
|
48
|
+
}
|
|
49
|
+
export interface IChatRequestPasteVariableEntry extends IBaseChatRequestVariableEntry {
|
|
50
|
+
readonly kind: "paste";
|
|
51
|
+
readonly code: string;
|
|
52
|
+
readonly language: string;
|
|
53
|
+
readonly pastedLines: string;
|
|
54
|
+
readonly fileName: string;
|
|
55
|
+
readonly copiedFrom: {
|
|
56
|
+
readonly uri: URI;
|
|
57
|
+
readonly range: IRange;
|
|
58
|
+
} | undefined;
|
|
59
|
+
}
|
|
60
|
+
export interface ISymbolVariableEntry extends IBaseChatRequestVariableEntry {
|
|
61
|
+
readonly kind: "symbol";
|
|
62
|
+
readonly value: Location;
|
|
63
|
+
readonly symbolKind: SymbolKind;
|
|
64
|
+
}
|
|
65
|
+
export interface ICommandResultVariableEntry extends IBaseChatRequestVariableEntry {
|
|
66
|
+
readonly kind: "command";
|
|
67
|
+
}
|
|
68
|
+
export interface IImageVariableEntry extends IBaseChatRequestVariableEntry {
|
|
69
|
+
readonly kind: "image";
|
|
70
|
+
readonly isPasted?: boolean;
|
|
71
|
+
readonly isURL?: boolean;
|
|
72
|
+
readonly mimeType?: string;
|
|
73
|
+
}
|
|
74
|
+
export interface INotebookOutputVariableEntry extends IBaseChatRequestVariableEntry {
|
|
75
|
+
readonly kind: "notebookOutput";
|
|
76
|
+
readonly outputIndex?: number;
|
|
77
|
+
readonly mimeType?: string;
|
|
78
|
+
}
|
|
79
|
+
export interface IDiagnosticVariableEntryFilterData {
|
|
80
|
+
readonly owner?: string;
|
|
81
|
+
readonly problemMessage?: string;
|
|
82
|
+
readonly filterUri?: URI;
|
|
83
|
+
readonly filterSeverity?: MarkerSeverity;
|
|
84
|
+
readonly filterRange?: IRange;
|
|
85
|
+
}
|
|
86
|
+
export declare namespace IDiagnosticVariableEntryFilterData {
|
|
87
|
+
const icon: ThemeIcon;
|
|
88
|
+
function fromMarker(marker: IMarker): IDiagnosticVariableEntryFilterData;
|
|
89
|
+
function toEntry(data: IDiagnosticVariableEntryFilterData): IDiagnosticVariableEntry;
|
|
90
|
+
function id(data: IDiagnosticVariableEntryFilterData): string;
|
|
91
|
+
function label(data: IDiagnosticVariableEntryFilterData): string;
|
|
92
|
+
}
|
|
93
|
+
export interface IDiagnosticVariableEntry extends IBaseChatRequestVariableEntry, IDiagnosticVariableEntryFilterData {
|
|
94
|
+
readonly kind: "diagnostic";
|
|
95
|
+
}
|
|
96
|
+
export interface IElementVariableEntry extends IBaseChatRequestVariableEntry {
|
|
97
|
+
readonly kind: "element";
|
|
98
|
+
}
|
|
99
|
+
export interface IPromptFileVariableEntry extends IBaseChatRequestVariableEntry {
|
|
100
|
+
readonly kind: "promptFile";
|
|
101
|
+
readonly value: URI;
|
|
102
|
+
readonly isRoot: boolean;
|
|
103
|
+
readonly originLabel?: string;
|
|
104
|
+
readonly modelDescription: string;
|
|
105
|
+
readonly automaticallyAdded: boolean;
|
|
106
|
+
}
|
|
107
|
+
export interface IPromptTextVariableEntry extends IBaseChatRequestVariableEntry {
|
|
108
|
+
readonly kind: "promptText";
|
|
109
|
+
readonly value: string;
|
|
110
|
+
readonly settingId?: string;
|
|
111
|
+
readonly modelDescription: string;
|
|
112
|
+
readonly automaticallyAdded: boolean;
|
|
113
|
+
}
|
|
114
|
+
export interface ISCMHistoryItemVariableEntry extends IBaseChatRequestVariableEntry {
|
|
115
|
+
readonly kind: "scmHistoryItem";
|
|
116
|
+
readonly value: URI;
|
|
117
|
+
readonly historyItem: ISCMHistoryItem;
|
|
118
|
+
}
|
|
119
|
+
export type IChatRequestVariableEntry = IGenericChatRequestVariableEntry | IChatRequestImplicitVariableEntry | IChatRequestPasteVariableEntry | ISymbolVariableEntry | ICommandResultVariableEntry | IDiagnosticVariableEntry | IImageVariableEntry | IChatRequestToolEntry | IChatRequestToolSetEntry | IChatRequestDirectoryEntry | IChatRequestFileEntry | INotebookOutputVariableEntry | IElementVariableEntry | IPromptFileVariableEntry | IPromptTextVariableEntry | ISCMHistoryItemVariableEntry;
|
|
120
|
+
export declare namespace IChatRequestVariableEntry {
|
|
121
|
+
function toUri(entry: IChatRequestVariableEntry): URI | undefined;
|
|
122
|
+
}
|
|
123
|
+
export declare function isImplicitVariableEntry(obj: IChatRequestVariableEntry): obj is IChatRequestImplicitVariableEntry;
|
|
124
|
+
export declare function isPasteVariableEntry(obj: IChatRequestVariableEntry): obj is IChatRequestPasteVariableEntry;
|
|
125
|
+
export declare function isImageVariableEntry(obj: IChatRequestVariableEntry): obj is IImageVariableEntry;
|
|
126
|
+
export declare function isNotebookOutputVariableEntry(obj: IChatRequestVariableEntry): obj is INotebookOutputVariableEntry;
|
|
127
|
+
export declare function isElementVariableEntry(obj: IChatRequestVariableEntry): obj is IElementVariableEntry;
|
|
128
|
+
export declare function isDiagnosticsVariableEntry(obj: IChatRequestVariableEntry): obj is IDiagnosticVariableEntry;
|
|
129
|
+
export declare function isChatRequestFileEntry(obj: IChatRequestVariableEntry): obj is IChatRequestFileEntry;
|
|
130
|
+
export declare function isPromptFileVariableEntry(obj: IChatRequestVariableEntry): obj is IPromptFileVariableEntry;
|
|
131
|
+
export declare function isPromptTextVariableEntry(obj: IChatRequestVariableEntry): obj is IPromptTextVariableEntry;
|
|
132
|
+
export declare function isChatRequestVariableEntry(obj: unknown): obj is IChatRequestVariableEntry;
|
|
133
|
+
export declare function isSCMHistoryItemVariableEntry(obj: IChatRequestVariableEntry): obj is ISCMHistoryItemVariableEntry;
|
|
134
|
+
export declare enum PromptFileVariableKind {
|
|
135
|
+
Instruction = "vscode.prompt.instructions.root",
|
|
136
|
+
InstructionReference = "vscode.prompt.instructions",
|
|
137
|
+
PromptFile = "vscode.prompt.file"
|
|
138
|
+
}
|
|
139
|
+
export declare function toPromptFileVariableEntry(uri: URI, kind: PromptFileVariableKind, originLabel?: string, automaticallyAdded?: boolean): IPromptFileVariableEntry;
|
|
140
|
+
export declare function toPromptTextVariableEntry(content: string, settingId?: string, automaticallyAdded?: boolean): IPromptTextVariableEntry;
|
|
141
|
+
export declare function toFileVariableEntry(uri: URI, range?: IRange): IChatRequestFileEntry;
|
|
142
|
+
export declare class ChatRequestVariableSet {
|
|
143
|
+
private _ids;
|
|
144
|
+
private _entries;
|
|
145
|
+
constructor(entries?: IChatRequestVariableEntry[]);
|
|
146
|
+
add(...entry: IChatRequestVariableEntry[]): void;
|
|
147
|
+
insertFirst(entry: IChatRequestVariableEntry): void;
|
|
148
|
+
remove(entry: IChatRequestVariableEntry): void;
|
|
149
|
+
has(entry: IChatRequestVariableEntry): boolean;
|
|
150
|
+
asArray(): IChatRequestVariableEntry[];
|
|
151
|
+
}
|
|
152
|
+
export {};
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
|
|
2
|
+
import { Codicon } from '../../../../base/common/codicons.js';
|
|
3
|
+
import { basename } from '../../../../base/common/resources.js';
|
|
4
|
+
import { URI } from '../../../../base/common/uri.js';
|
|
5
|
+
import { isLocation } from '../../../../editor/common/languages.js';
|
|
6
|
+
import { localize } from '../../../../nls.js';
|
|
7
|
+
|
|
8
|
+
var OmittedState;
|
|
9
|
+
(function (OmittedState) {
|
|
10
|
+
OmittedState[OmittedState["NotOmitted"] = 0] = "NotOmitted";
|
|
11
|
+
OmittedState[OmittedState["Partial"] = 1] = "Partial";
|
|
12
|
+
OmittedState[OmittedState["Full"] = 2] = "Full";
|
|
13
|
+
})(OmittedState || (OmittedState = {}));
|
|
14
|
+
var IDiagnosticVariableEntryFilterData;
|
|
15
|
+
(function (IDiagnosticVariableEntryFilterData) {
|
|
16
|
+
IDiagnosticVariableEntryFilterData.icon = Codicon.error;
|
|
17
|
+
function fromMarker(marker) {
|
|
18
|
+
return {
|
|
19
|
+
filterUri: marker.resource,
|
|
20
|
+
owner: marker.owner,
|
|
21
|
+
problemMessage: marker.message,
|
|
22
|
+
filterRange: { startLineNumber: marker.startLineNumber, endLineNumber: marker.endLineNumber, startColumn: marker.startColumn, endColumn: marker.endColumn }
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
IDiagnosticVariableEntryFilterData.fromMarker = fromMarker;
|
|
26
|
+
function toEntry(data) {
|
|
27
|
+
return {
|
|
28
|
+
id: id(data),
|
|
29
|
+
name: label(data),
|
|
30
|
+
icon: IDiagnosticVariableEntryFilterData.icon,
|
|
31
|
+
value: data,
|
|
32
|
+
kind: 'diagnostic',
|
|
33
|
+
...data,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
IDiagnosticVariableEntryFilterData.toEntry = toEntry;
|
|
37
|
+
function id(data) {
|
|
38
|
+
return [data.filterUri, data.owner, data.filterSeverity, data.filterRange?.startLineNumber].join(':');
|
|
39
|
+
}
|
|
40
|
+
IDiagnosticVariableEntryFilterData.id = id;
|
|
41
|
+
function label(data) {
|
|
42
|
+
let TrimThreshold;
|
|
43
|
+
(function (TrimThreshold) {
|
|
44
|
+
TrimThreshold[TrimThreshold["MaxChars"] = 30] = "MaxChars";
|
|
45
|
+
TrimThreshold[TrimThreshold["MaxSpaceLookback"] = 10] = "MaxSpaceLookback";
|
|
46
|
+
})(TrimThreshold || (TrimThreshold = {}));
|
|
47
|
+
if (data.problemMessage) {
|
|
48
|
+
if (data.problemMessage.length < TrimThreshold.MaxChars) {
|
|
49
|
+
return data.problemMessage;
|
|
50
|
+
}
|
|
51
|
+
const lastSpace = data.problemMessage.lastIndexOf(' ', TrimThreshold.MaxChars);
|
|
52
|
+
if (lastSpace === -1 || lastSpace + TrimThreshold.MaxSpaceLookback < TrimThreshold.MaxChars) {
|
|
53
|
+
return data.problemMessage.substring(0, TrimThreshold.MaxChars) + '…';
|
|
54
|
+
}
|
|
55
|
+
return data.problemMessage.substring(0, lastSpace) + '…';
|
|
56
|
+
}
|
|
57
|
+
let labelStr = ( localize(5302, "All Problems"));
|
|
58
|
+
if (data.filterUri) {
|
|
59
|
+
labelStr = ( localize(5303, "Problems in {0}", basename(data.filterUri)));
|
|
60
|
+
}
|
|
61
|
+
return labelStr;
|
|
62
|
+
}
|
|
63
|
+
IDiagnosticVariableEntryFilterData.label = label;
|
|
64
|
+
})(IDiagnosticVariableEntryFilterData || (IDiagnosticVariableEntryFilterData = {}));
|
|
65
|
+
var IChatRequestVariableEntry;
|
|
66
|
+
(function (IChatRequestVariableEntry) {
|
|
67
|
+
function toUri(entry) {
|
|
68
|
+
return URI.isUri(entry.value)
|
|
69
|
+
? entry.value
|
|
70
|
+
: isLocation(entry.value)
|
|
71
|
+
? entry.value.uri
|
|
72
|
+
: undefined;
|
|
73
|
+
}
|
|
74
|
+
IChatRequestVariableEntry.toUri = toUri;
|
|
75
|
+
})(IChatRequestVariableEntry || (IChatRequestVariableEntry = {}));
|
|
76
|
+
function isPasteVariableEntry(obj) {
|
|
77
|
+
return obj.kind === 'paste';
|
|
78
|
+
}
|
|
79
|
+
function isImageVariableEntry(obj) {
|
|
80
|
+
return obj.kind === 'image';
|
|
81
|
+
}
|
|
82
|
+
function isNotebookOutputVariableEntry(obj) {
|
|
83
|
+
return obj.kind === 'notebookOutput';
|
|
84
|
+
}
|
|
85
|
+
function isElementVariableEntry(obj) {
|
|
86
|
+
return obj.kind === 'element';
|
|
87
|
+
}
|
|
88
|
+
function isPromptFileVariableEntry(obj) {
|
|
89
|
+
return obj.kind === 'promptFile';
|
|
90
|
+
}
|
|
91
|
+
function isPromptTextVariableEntry(obj) {
|
|
92
|
+
return obj.kind === 'promptText';
|
|
93
|
+
}
|
|
94
|
+
function isSCMHistoryItemVariableEntry(obj) {
|
|
95
|
+
return obj.kind === 'scmHistoryItem';
|
|
96
|
+
}
|
|
97
|
+
var PromptFileVariableKind;
|
|
98
|
+
(function (PromptFileVariableKind) {
|
|
99
|
+
PromptFileVariableKind["Instruction"] = "vscode.prompt.instructions.root";
|
|
100
|
+
PromptFileVariableKind["InstructionReference"] = "vscode.prompt.instructions";
|
|
101
|
+
PromptFileVariableKind["PromptFile"] = "vscode.prompt.file";
|
|
102
|
+
})(PromptFileVariableKind || (PromptFileVariableKind = {}));
|
|
103
|
+
function toPromptFileVariableEntry(uri, kind, originLabel, automaticallyAdded = false) {
|
|
104
|
+
return {
|
|
105
|
+
id: `${kind}__${( uri.toString())}`,
|
|
106
|
+
name: `prompt:${basename(uri)}`,
|
|
107
|
+
value: uri,
|
|
108
|
+
kind: 'promptFile',
|
|
109
|
+
modelDescription: 'Prompt instructions file',
|
|
110
|
+
isRoot: kind !== PromptFileVariableKind.InstructionReference,
|
|
111
|
+
originLabel,
|
|
112
|
+
automaticallyAdded
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function toPromptTextVariableEntry(content, settingId, automaticallyAdded = false) {
|
|
116
|
+
return {
|
|
117
|
+
id: `vscode.prompt.instructions.text${settingId ? `.${settingId}` : ''}`,
|
|
118
|
+
name: `prompt:text`,
|
|
119
|
+
value: content,
|
|
120
|
+
settingId,
|
|
121
|
+
kind: 'promptText',
|
|
122
|
+
modelDescription: 'Prompt instructions text',
|
|
123
|
+
automaticallyAdded
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
class ChatRequestVariableSet {
|
|
127
|
+
constructor(entries) {
|
|
128
|
+
this._ids = ( new Set());
|
|
129
|
+
this._entries = [];
|
|
130
|
+
if (entries) {
|
|
131
|
+
this.add(...entries);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
add(...entry) {
|
|
135
|
+
for (const e of entry) {
|
|
136
|
+
if (!( this._ids.has(e.id))) {
|
|
137
|
+
this._ids.add(e.id);
|
|
138
|
+
this._entries.push(e);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
insertFirst(entry) {
|
|
143
|
+
if (!( this._ids.has(entry.id))) {
|
|
144
|
+
this._ids.add(entry.id);
|
|
145
|
+
this._entries.unshift(entry);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
remove(entry) {
|
|
149
|
+
this._ids.delete(entry.id);
|
|
150
|
+
this._entries = this._entries.filter(e => e.id !== entry.id);
|
|
151
|
+
}
|
|
152
|
+
has(entry) {
|
|
153
|
+
return ( this._ids.has(entry.id));
|
|
154
|
+
}
|
|
155
|
+
asArray() {
|
|
156
|
+
return this._entries.slice(0);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export { ChatRequestVariableSet, IChatRequestVariableEntry, IDiagnosticVariableEntryFilterData, OmittedState, PromptFileVariableKind, isElementVariableEntry, isImageVariableEntry, isNotebookOutputVariableEntry, isPasteVariableEntry, isPromptFileVariableEntry, isPromptTextVariableEntry, isSCMHistoryItemVariableEntry, toPromptFileVariableEntry, toPromptTextVariableEntry };
|
|
@@ -3,8 +3,9 @@ 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
|
|
6
|
+
import { IChatModel } from "@codingame/monaco-vscode-9911aec2-e4dd-5483-8369-9d695cc70d8a-common/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
7
7
|
import { IChatContentReference, IChatProgressMessage } from "./chatService.js";
|
|
8
|
+
import { IDiagnosticVariableEntryFilterData } from "./chatVariableEntries.js";
|
|
8
9
|
export interface IChatVariableData {
|
|
9
10
|
id: string;
|
|
10
11
|
name: string;
|
|
@@ -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-c465110a-57c0-59d7-a6b2-be0a4db7e517-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 {
|
|
@@ -2,16 +2,16 @@ export declare enum ChatConfiguration {
|
|
|
2
2
|
UseFileStorage = "chat.useFileStorage",
|
|
3
3
|
AgentEnabled = "chat.agent.enabled",
|
|
4
4
|
Edits2Enabled = "chat.edits2.enabled",
|
|
5
|
-
ExtensionToolsEnabled = "chat.extensionTools.enabled"
|
|
5
|
+
ExtensionToolsEnabled = "chat.extensionTools.enabled",
|
|
6
|
+
EditRequests = "chat.editRequests"
|
|
6
7
|
}
|
|
7
|
-
export declare enum
|
|
8
|
+
export declare enum ChatModeKind {
|
|
8
9
|
Ask = "ask",
|
|
9
10
|
Edit = "edit",
|
|
10
11
|
Agent = "agent"
|
|
11
12
|
}
|
|
12
|
-
export declare function
|
|
13
|
-
export declare function
|
|
14
|
-
export declare function isChatMode(mode: unknown): mode is ChatMode;
|
|
13
|
+
export declare function validateChatMode(mode: unknown): ChatModeKind | undefined;
|
|
14
|
+
export declare function isChatMode(mode: unknown): mode is ChatModeKind;
|
|
15
15
|
export type RawChatParticipantLocation = "panel" | "terminal" | "notebook" | "editing-session";
|
|
16
16
|
export declare enum ChatAgentLocation {
|
|
17
17
|
Panel = "panel",
|
|
@@ -6,37 +6,24 @@ var ChatConfiguration;
|
|
|
6
6
|
ChatConfiguration["AgentEnabled"] = "chat.agent.enabled";
|
|
7
7
|
ChatConfiguration["Edits2Enabled"] = "chat.edits2.enabled";
|
|
8
8
|
ChatConfiguration["ExtensionToolsEnabled"] = "chat.extensionTools.enabled";
|
|
9
|
+
ChatConfiguration["EditRequests"] = "chat.editRequests";
|
|
9
10
|
})(ChatConfiguration || (ChatConfiguration = {}));
|
|
10
|
-
var
|
|
11
|
-
(function (
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})(
|
|
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
|
-
}
|
|
11
|
+
var ChatModeKind;
|
|
12
|
+
(function (ChatModeKind) {
|
|
13
|
+
ChatModeKind["Ask"] = "ask";
|
|
14
|
+
ChatModeKind["Edit"] = "edit";
|
|
15
|
+
ChatModeKind["Agent"] = "agent";
|
|
16
|
+
})(ChatModeKind || (ChatModeKind = {}));
|
|
27
17
|
function validateChatMode(mode) {
|
|
28
18
|
switch (mode) {
|
|
29
|
-
case
|
|
30
|
-
case
|
|
31
|
-
case
|
|
19
|
+
case ChatModeKind.Ask:
|
|
20
|
+
case ChatModeKind.Edit:
|
|
21
|
+
case ChatModeKind.Agent:
|
|
32
22
|
return mode;
|
|
33
23
|
default:
|
|
34
24
|
return undefined;
|
|
35
25
|
}
|
|
36
26
|
}
|
|
37
|
-
function isChatMode(mode) {
|
|
38
|
-
return !!validateChatMode(mode);
|
|
39
|
-
}
|
|
40
27
|
var ChatAgentLocation;
|
|
41
28
|
(function (ChatAgentLocation) {
|
|
42
29
|
ChatAgentLocation["Panel"] = "panel";
|
|
@@ -57,4 +44,4 @@ var ChatAgentLocation;
|
|
|
57
44
|
ChatAgentLocation.fromRaw = fromRaw;
|
|
58
45
|
})(ChatAgentLocation || (ChatAgentLocation = {}));
|
|
59
46
|
|
|
60
|
-
export { ChatAgentLocation, ChatConfiguration,
|
|
47
|
+
export { ChatAgentLocation, ChatConfiguration, ChatModeKind, validateChatMode };
|
|
@@ -76,6 +76,12 @@ export interface IToolInvocationContext {
|
|
|
76
76
|
sessionId: string;
|
|
77
77
|
}
|
|
78
78
|
export declare function isToolInvocationContext(obj: any): obj is IToolInvocationContext;
|
|
79
|
+
export interface IToolInvocationPreparationContext {
|
|
80
|
+
parameters: any;
|
|
81
|
+
chatRequestId?: string;
|
|
82
|
+
chatSessionId?: string;
|
|
83
|
+
chatInteractionId?: string;
|
|
84
|
+
}
|
|
79
85
|
export interface IToolResultInputOutputDetails {
|
|
80
86
|
readonly input: string;
|
|
81
87
|
readonly output: ({
|
|
@@ -127,8 +133,9 @@ export interface IPreparedToolInvocation {
|
|
|
127
133
|
}
|
|
128
134
|
export interface IToolImpl {
|
|
129
135
|
invoke(invocation: IToolInvocation, countTokens: CountTokensCallback, progress: ToolProgress, token: CancellationToken): Promise<IToolResult>;
|
|
130
|
-
prepareToolInvocation?(
|
|
136
|
+
prepareToolInvocation?(context: IToolInvocationPreparationContext, token: CancellationToken): Promise<IPreparedToolInvocation | undefined>;
|
|
131
137
|
}
|
|
138
|
+
export type IToolAndToolSetEnablementMap = ReadonlyMap<IToolData | ToolSet, boolean>;
|
|
132
139
|
export declare class ToolSet {
|
|
133
140
|
readonly id: string;
|
|
134
141
|
readonly referenceName: string;
|
|
@@ -27,16 +27,16 @@ var ToolDataSource;
|
|
|
27
27
|
ToolDataSource.equals = equals;
|
|
28
28
|
function classify(source) {
|
|
29
29
|
if (source.type === 'internal') {
|
|
30
|
-
return { ordinal: 1, label: ( localize(
|
|
30
|
+
return { ordinal: 1, label: ( localize(5307, 'Built-In')) };
|
|
31
31
|
}
|
|
32
32
|
else if (source.type === 'mcp') {
|
|
33
|
-
return { ordinal: 2, label: ( localize(
|
|
33
|
+
return { ordinal: 2, label: ( localize(5308, 'MCP Server: {0}', source.label)) };
|
|
34
34
|
}
|
|
35
35
|
else if (source.type === 'user') {
|
|
36
|
-
return { ordinal: 0, label: ( localize(
|
|
36
|
+
return { ordinal: 0, label: ( localize(5309, 'User Defined')) };
|
|
37
37
|
}
|
|
38
38
|
else {
|
|
39
|
-
return { ordinal: 3, label: ( localize(
|
|
39
|
+
return { ordinal: 3, label: ( localize(5310, 'Extension: {0}', source.label)) };
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
ToolDataSource.classify = classify;
|
|
@@ -3,7 +3,7 @@ import { Event } from "../../../../base/common/event.js";
|
|
|
3
3
|
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
4
4
|
import { IObservable } from "../../../../base/common/observable.js";
|
|
5
5
|
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
6
|
-
import { IToolData, IToolImpl, IToolInvocation, CountTokensCallback, IToolResult, ToolSet, ToolDataSource } from "./languageModelToolsService.js";
|
|
6
|
+
import { IToolData, IToolImpl, IToolInvocation, CountTokensCallback, IToolResult, IToolAndToolSetEnablementMap, ToolSet, ToolDataSource } from "./languageModelToolsService.js";
|
|
7
7
|
export declare const ILanguageModelToolsService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<ILanguageModelToolsService>;
|
|
8
8
|
export interface ILanguageModelToolsService {
|
|
9
9
|
_serviceBrand: undefined;
|
|
@@ -17,8 +17,10 @@ export interface ILanguageModelToolsService {
|
|
|
17
17
|
setToolAutoConfirmation(toolId: string, scope: "workspace" | "profile" | "memory", autoConfirm?: boolean): void;
|
|
18
18
|
resetToolAutoConfirmation(): void;
|
|
19
19
|
cancelToolCallsForRequest(requestId: string): void;
|
|
20
|
-
|
|
20
|
+
toToolEnablementMap(toolOrToolSetNames: Set<string>): Record<string, boolean>;
|
|
21
|
+
toToolAndToolSetEnablementMap(toolOrToolSetNames: readonly string[] | undefined): IToolAndToolSetEnablementMap;
|
|
21
22
|
readonly toolSets: IObservable<Iterable<ToolSet>>;
|
|
23
|
+
getToolSet(id: string): ToolSet | undefined;
|
|
22
24
|
getToolSetByName(name: string): ToolSet | undefined;
|
|
23
25
|
createToolSet(source: ToolDataSource, id: string, referenceName: string, options?: {
|
|
24
26
|
icon?: ThemeIcon;
|
|
@@ -92,7 +92,7 @@ export interface ILanguageModelChatMetadata {
|
|
|
92
92
|
readonly modelPickerCategory: {
|
|
93
93
|
label: string;
|
|
94
94
|
order: number;
|
|
95
|
-
};
|
|
95
|
+
} | undefined;
|
|
96
96
|
readonly auth?: {
|
|
97
97
|
readonly providerLabel: string;
|
|
98
98
|
readonly accountLabel?: string;
|
|
@@ -103,6 +103,10 @@ export interface ILanguageModelChatMetadata {
|
|
|
103
103
|
readonly agentMode?: boolean;
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
+
export declare namespace ILanguageModelChatMetadata {
|
|
107
|
+
function suitableForAgentMode(metadata: ILanguageModelChatMetadata): boolean;
|
|
108
|
+
function asQualifiedName(metadata: ILanguageModelChatMetadata): string;
|
|
109
|
+
}
|
|
106
110
|
export interface ILanguageModelChatResponse {
|
|
107
111
|
stream: AsyncIterable<IChatResponseFragment | IChatResponseFragment[]>;
|
|
108
112
|
result: Promise<any>;
|