@codingame/monaco-vscode-api 20.5.0 → 21.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 +136 -50
- package/package.json +8 -8
- package/services.d.ts +8 -4
- package/services.js +8 -4
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.js +3 -3
- package/vscode/src/vs/base/browser/domSanitize.d.ts +23 -11
- package/vscode/src/vs/base/browser/domSanitize.js +86 -7
- package/vscode/src/vs/base/browser/domStylesheets.js +2 -2
- package/vscode/src/vs/base/browser/event.d.ts +1 -1
- package/vscode/src/vs/base/browser/markdownRenderer.d.ts +8 -4
- package/vscode/src/vs/base/browser/markdownRenderer.js +72 -126
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.d.ts +10 -10
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +5 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css +2 -2
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.d.ts +4 -4
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.js +32 -7
- package/vscode/src/vs/base/browser/ui/button/button.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +4 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/dropdown/dropdownActionViewItem.js +1 -1
- package/vscode/src/vs/base/browser/ui/findinput/findInput.d.ts +7 -7
- package/vscode/src/vs/base/browser/ui/findinput/findInput.js +7 -7
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.d.ts +6 -6
- package/vscode/src/vs/base/browser/ui/findinput/replaceInput.js +6 -6
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.css +5 -0
- package/vscode/src/vs/base/browser/ui/hover/hoverWidget.js +2 -1
- package/vscode/src/vs/base/browser/ui/iconLabel/iconLabel.js +4 -4
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +2 -2
- package/vscode/src/vs/base/browser/ui/list/listWidget.d.ts +3 -3
- package/vscode/src/vs/base/browser/ui/list/listWidget.js +3 -3
- package/vscode/src/vs/base/browser/ui/menu/menu.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/menu/menu.js +21 -16
- package/vscode/src/vs/base/browser/ui/resizable/resizable.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/resizable/resizable.js +2 -2
- package/vscode/src/vs/base/browser/ui/sash/sash.d.ts +4 -4
- package/vscode/src/vs/base/browser/ui/sash/sash.js +16 -22
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/scrollbar/scrollableElement.js +2 -2
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.css +2 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.d.ts +4 -4
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +3 -3
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +12 -12
- package/vscode/src/vs/base/browser/ui/toggle/toggle.d.ts +2 -2
- package/vscode/src/vs/base/browser/ui/toggle/toggle.js +2 -2
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/common/actions.d.ts +3 -3
- package/vscode/src/vs/base/common/actions.js +3 -3
- package/vscode/src/vs/base/common/async.d.ts +18 -7
- package/vscode/src/vs/base/common/async.js +71 -14
- package/vscode/src/vs/base/common/codicons.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +3 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +3 -0
- package/vscode/src/vs/base/common/defaultAccount.d.ts +23 -0
- package/vscode/src/vs/base/common/event.d.ts +0 -5
- package/vscode/src/vs/base/common/event.js +0 -12
- package/vscode/src/vs/base/common/hotReloadHelpers.js +2 -33
- package/vscode/src/vs/base/common/htmlContent.d.ts +1 -1
- package/vscode/src/vs/base/common/htmlContent.js +2 -2
- package/vscode/src/vs/base/common/lazy.d.ts +1 -1
- package/vscode/src/vs/base/common/lazy.js +14 -4
- package/vscode/src/vs/base/common/lifecycle.d.ts +7 -11
- package/vscode/src/vs/base/common/lifecycle.js +19 -2
- package/vscode/src/vs/base/common/marshallingIds.d.ts +5 -4
- package/vscode/src/vs/base/common/marshallingIds.js +5 -4
- package/vscode/src/vs/base/common/mime.d.ts +4 -0
- package/vscode/src/vs/base/common/mime.js +4 -1
- package/vscode/src/vs/base/common/network.d.ts +5 -0
- package/vscode/src/vs/base/common/network.js +2 -0
- package/vscode/src/vs/base/common/oauth.d.ts +18 -2
- package/vscode/src/vs/base/common/oauth.js +114 -19
- package/vscode/src/vs/base/common/observableInternal/debugLocation.d.ts +20 -0
- package/vscode/src/vs/base/common/observableInternal/debugLocation.js +63 -0
- package/vscode/src/vs/base/common/observableInternal/experimental/reducer.js +2 -1
- package/vscode/src/vs/base/common/observableInternal/index.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/index.js +2 -1
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/devToolsLogger.js +15 -33
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.d.ts +0 -7
- package/vscode/src/vs/base/common/observableInternal/logging/debugger/utils.js +1 -42
- package/vscode/src/vs/base/common/observableInternal/logging/logging.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/logging/logging.js +4 -4
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.js +6 -5
- package/vscode/src/vs/base/common/observableInternal/observables/derived.d.ts +4 -3
- package/vscode/src/vs/base/common/observableInternal/observables/derived.js +12 -11
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +4 -4
- package/vscode/src/vs/base/common/observableInternal/observables/lazyObservableValue.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/lazyObservableValue.js +2 -2
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +4 -3
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.js +10 -8
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignal.js +6 -5
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignalFromEvent.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/observableSignalFromEvent.js +5 -4
- package/vscode/src/vs/base/common/observableInternal/observables/observableValue.d.ts +3 -2
- package/vscode/src/vs/base/common/observableInternal/observables/observableValue.js +7 -6
- package/vscode/src/vs/base/common/observableInternal/observables/observableValueOpts.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/observables/observableValueOpts.js +4 -3
- package/vscode/src/vs/base/common/observableInternal/reactions/autorun.d.ts +11 -3
- package/vscode/src/vs/base/common/observableInternal/reactions/autorun.js +27 -7
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +2 -1
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.js +2 -2
- package/vscode/src/vs/base/common/observableInternal/utils/utilsCancellation.js +1 -0
- package/vscode/src/vs/base/common/policy.d.ts +29 -0
- package/vscode/src/vs/base/common/product.d.ts +15 -1
- package/vscode/src/vs/base/common/strings.d.ts +0 -6
- package/vscode/src/vs/base/common/strings.js +1 -8
- package/vscode/src/vs/base/common/types.js +1 -4
- package/vscode/src/vs/base/common/uuid.d.ts +2 -0
- package/vscode/src/vs/base/common/uuid.js +4 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +1 -0
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +9 -2
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.d.ts +2 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContextUtils.js +10 -3
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -0
- package/vscode/src/vs/editor/browser/controller/mouseHandler.js +2 -3
- package/vscode/src/vs/editor/browser/editorDom.d.ts +1 -0
- package/vscode/src/vs/editor/browser/editorDom.js +7 -4
- package/vscode/src/vs/editor/browser/observableCodeEditor.d.ts +2 -2
- package/vscode/src/vs/editor/browser/observableCodeEditor.js +3 -2
- package/vscode/src/vs/editor/browser/services/hoverService/hoverWidget.js +1 -4
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.d.ts +3 -0
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +14 -1
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.service.d.ts +4 -0
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +12 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +8 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/overviewRulerFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/utils/editorGutter.js +3 -1
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.d.ts +2 -2
- package/vscode/src/vs/editor/browser/widget/markdownRenderer/browser/markdownRenderer.js +31 -44
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +10 -10
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +6 -4
- package/vscode/src/vs/editor/common/config/editorOptions.js +302 -275
- package/vscode/src/vs/editor/common/core/2d/rect.js +5 -2
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/edits/lineEdit.d.ts +2 -2
- package/vscode/src/vs/editor/common/core/edits/lineEdit.js +1 -1
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +1 -1
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +9 -3
- package/vscode/src/vs/editor/common/core/edits/textEdit.d.ts +2 -2
- package/vscode/src/vs/editor/common/core/text/textLength.d.ts +3 -0
- package/vscode/src/vs/editor/common/core/text/textLength.js +6 -0
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -1
- package/vscode/src/vs/editor/common/languageFeatureRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +19 -1
- package/vscode/src/vs/editor/common/languages.js +77 -57
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/beforeEditPositionMapper.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/model/mirrorTextModel.d.ts +19 -1
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/pieceTreeTextBuffer/pieceTreeTextBuffer.js +1 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +4 -4
- package/vscode/src/vs/editor/common/model/textModel.js +4 -4
- package/vscode/src/vs/editor/common/model/textModelStringEdit.d.ts +1 -1
- package/vscode/src/vs/editor/common/model/textModelTokens.d.ts +1 -1
- package/vscode/src/vs/editor/common/model.d.ts +2 -1
- package/vscode/src/vs/editor/common/services/editorWebWorker.d.ts +7 -1
- package/vscode/src/vs/editor/common/services/editorWebWorker.js +13 -10
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +4 -0
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +6 -1
- package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +48 -2
- package/vscode/src/vs/editor/common/textModelEditSource.js +54 -1
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +1 -18
- package/vscode/src/vs/editor/common/tokens/sparseMultilineTokens.js +6 -1
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- 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 +28 -17
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeAction.js +1 -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/codelens.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +3 -2
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensWidget.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorDetector.js +1 -1
- 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/hoverColorPicker/hoverColorPickerParticipant.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/hoverColorPicker/hoverColorPickerParticipant.js +3 -3
- 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/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 +26 -26
- package/vscode/src/vs/editor/contrib/folding/browser/folding.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +21 -21
- 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 +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverComputer.js +4 -4
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/getHover.js +2 -2
- 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/hoverOperation.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverOperation.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +12 -12
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +9 -5
- package/vscode/src/vs/editor/contrib/inPlaceReplace/browser/inPlaceReplace.js +2 -2
- package/vscode/src/vs/editor/contrib/indentation/browser/indentation.js +20 -20
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsController.js +1 -1
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.d.ts +2 -2
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +11 -11
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +56 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +76 -18
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +7 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +6 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +9 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +18 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +31 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/suggestWidgetAdapter.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/typingSpeed.js +6 -10
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.d.ts +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/structuredLogger.js +11 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +36 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewInterface.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsCustomView.js +17 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsDeletionView.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsInsertionView.js +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsLineReplacementView.js +10 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +7 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +15 -8
- 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.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +49 -13
- 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 +31 -31
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +8 -3
- package/vscode/src/vs/editor/contrib/links/browser/links.js +10 -10
- package/vscode/src/vs/editor/contrib/message/browser/messageController.d.ts +0 -1
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +11 -14
- 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 +18 -18
- 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 +11 -11
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +10 -10
- 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/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +26 -15
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +17 -17
- 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 +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.js +4 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +1 -1
- package/vscode/src/vs/platform/accessibilitySignal/browser/accessibilitySignalService.js +62 -62
- 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/floatingMenu.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/floatingMenu.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +11 -11
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -6
- package/vscode/src/vs/platform/actions/browser/toolbar.js +3 -6
- package/vscode/src/vs/platform/actions/common/actions.d.ts +2 -1
- package/vscode/src/vs/platform/actions/common/actions.js +2 -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/assignment/common/assignment.d.ts +70 -0
- package/vscode/src/vs/platform/configuration/common/configurationModels.js +11 -8
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.d.ts +1 -1
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/configuration/common/configurations.js +2 -3
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.d.ts +1 -1
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +2 -2
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.d.ts +1 -0
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +11 -10
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dataChannel/common/dataChannel.d.ts +14 -0
- package/vscode/src/vs/platform/dataChannel/common/dataChannel.js +15 -0
- package/vscode/src/vs/{workbench/services → platform}/dataChannel/common/dataChannel.service.d.ts +2 -2
- package/vscode/src/vs/{workbench/services → platform}/dataChannel/common/dataChannel.service.js +1 -1
- package/vscode/src/vs/platform/debug/common/extensionHostDebug.d.ts +1 -1
- package/vscode/src/vs/platform/debug/common/extensionHostDebug.service.d.ts +1 -0
- package/vscode/src/vs/platform/diagnostics/common/diagnostics.d.ts +1 -1
- 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 +0 -1
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +1 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.d.ts +2 -0
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +21 -19
- 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 +11 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +12 -1
- 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/instantiation/common/instantiation.d.ts +1 -0
- package/vscode/src/vs/platform/instantiation/common/instantiationService.js +7 -0
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +4 -4
- package/vscode/src/vs/platform/list/browser/listService.js +27 -27
- package/vscode/src/vs/platform/log/common/log.d.ts +1 -1
- package/vscode/src/vs/platform/log/common/log.js +7 -7
- package/vscode/src/vs/platform/markers/common/markerService.js +2 -2
- package/vscode/src/vs/platform/markers/common/markers.js +6 -6
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.d.ts +18 -0
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.js +28 -0
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.d.ts +10 -0
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.service.js +6 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +8 -4
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.d.ts +4 -4
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +15 -20
- package/vscode/src/vs/platform/observable/common/wrapInHotClass.js +2 -28
- package/vscode/src/vs/platform/observable/common/wrapInReloadableClass.js +3 -42
- package/vscode/src/vs/platform/policy/common/policy.d.ts +3 -3
- package/vscode/src/vs/platform/policy/common/policy.service.d.ts +1 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/progress/common/progress.d.ts +0 -12
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +13 -12
- 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 +10 -7
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -2
- package/vscode/src/vs/platform/quickinput/browser/quickInputService.js +2 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.d.ts +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputDelegate.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTree.d.ts +0 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +0 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +5 -17
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.d.ts +0 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeFilter.js +3 -6
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.d.ts +1 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +5 -30
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +0 -3
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +2 -6
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +53 -26
- package/vscode/src/vs/platform/request/common/request.d.ts +2 -0
- package/vscode/src/vs/platform/request/common/request.js +25 -19
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +2 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +5 -0
- 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.js +95 -95
- 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/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.js +5 -5
- package/vscode/src/vs/platform/window/common/window.d.ts +6 -2
- package/vscode/src/vs/platform/window/common/window.js +3 -2
- package/vscode/src/vs/platform/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +37 -9
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +53 -26
- package/vscode/src/vs/workbench/api/common/extHostApiCommands.js +7 -1
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +6 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +67 -13
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +2 -3
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +23 -30
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +12 -4
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +73 -12
- package/vscode/src/vs/workbench/api/common/extHostCommands.js +6 -1
- package/vscode/src/vs/workbench/api/common/extHostComments.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +3 -1
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.d.ts +7 -4
- package/vscode/src/vs/workbench/api/common/extHostDocumentData.js +27 -6
- package/vscode/src/vs/workbench/api/common/extHostDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostFileSystemEventService.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +8 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +39 -14
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +5 -5
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +52 -84
- package/vscode/src/vs/workbench/api/common/extHostLanguages.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +36 -33
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +5 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +69 -53
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocument.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookDocumentSaveParticipant.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookEditor.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +14 -12
- 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.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +6 -4
- package/vscode/src/vs/workbench/api/common/extHostTextEditor.js +5 -1
- package/vscode/src/vs/workbench/api/common/extHostTimeline.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +3 -2
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +16 -8
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +93 -20
- package/vscode/src/vs/workbench/api/common/extHostTypes/codeActionKind.d.ts +19 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/codeActionKind.js +37 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/diagnostic.d.ts +31 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/diagnostic.js +91 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/es5ClassCompat.d.ts +7 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/es5ClassCompat.js +27 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/location.d.ts +11 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/location.js +44 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/markdownString.d.ts +20 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/markdownString.js +65 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/notebooks.d.ts +84 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/notebooks.js +229 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/position.d.ts +29 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/position.js +169 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/range.d.ts +26 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/range.js +137 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/selection.d.ts +20 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/selection.js +76 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetString.d.ts +12 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetString.js +84 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetTextEdit.d.ts +13 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/snippetTextEdit.js +28 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/symbolInformation.d.ts +45 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/symbolInformation.js +75 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/textEdit.d.ts +24 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/textEdit.js +82 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/workspaceEdit.d.ts +99 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes/workspaceEdit.js +146 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +86 -420
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +65 -1186
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +3 -2
- 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 +13 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +7 -0
- 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 +74 -73
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/editorInput.d.ts +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +2 -0
- 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 +157 -157
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatAgents.service.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +13 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +64 -56
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatEntitlementService.service.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +71 -15
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.js +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +49 -22
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.js +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +24 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.service.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +13 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariables.service.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +14 -1
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +18 -1
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +25 -7
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +15 -8
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +36 -18
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +46 -36
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/confirmationTool.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/confirmationTool.js +76 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/editFileTool.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +205 -107
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +14 -8
- 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.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/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +1 -0
- 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.js +65 -65
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.service.js +6 -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 -7
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- 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/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 +10 -7
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +12 -6
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.d.ts +1 -5
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookCommon.js +1 -4
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookService.service.d.ts +1 -1
- 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.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +7 -2
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/terminal/common/environmentVariable.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/quickFix/browser/quickFix.service.d.ts +1 -1
- 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/services/accounts/common/defaultAccount.d.ts +2 -21
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +34 -6
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationUsageService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +48 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.js +7 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +7 -6
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +0 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +94 -86
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification.service.d.ts +8 -0
- package/vscode/src/vs/workbench/services/inlineCompletions/common/inlineCompletionsUnification.service.js +6 -0
- package/vscode/src/vs/workbench/services/language/common/languageService.js +28 -28
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +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/statusbar/browser/statusbar.d.ts +4 -0
- 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 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/workingCopyFileService.service.d.ts +1 -1
- package/vscode-dts/vscode.d.ts +218 -2
- package/vscode-dts/vscode.proposed.authenticationChallenges.d.ts +161 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +47 -1
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +3 -1
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +28 -108
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +101 -12
- package/vscode-dts/vscode.proposed.contribSecondarySidebar.d.ts +6 -0
- package/vscode-dts/vscode.proposed.d.ts +3 -0
- package/vscode-dts/vscode.proposed.defaultChatParticipant.d.ts +0 -5
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +31 -0
- package/vscode-dts/vscode.proposed.languageModelDataPart.d.ts +2 -2
- package/vscode-dts/vscode.proposed.languageModelThinkingPart.d.ts +49 -0
- package/vscode-dts/vscode.proposed.languageModelToolResultAudience.d.ts +16 -5
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +7 -0
- package/vscode/src/vs/base/browser/dompurify/dompurify.d.ts +0 -114
- package/vscode/src/vs/base/common/hotReload.js +0 -80
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.d.ts +0 -6
- package/vscode/src/vs/workbench/services/coreExperimentation/common/coreExperimentationService.service.js +0 -6
- package/vscode/src/vs/workbench/services/dataChannel/common/dataChannel.d.ts +0 -7
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IAction } from "../../../../base/common/actions.js";
|
|
1
2
|
import { DeferredPromise } from "../../../../base/common/async.js";
|
|
2
3
|
import { Event } from "../../../../base/common/event.js";
|
|
3
4
|
import { IMarkdownString } from "../../../../base/common/htmlContent.js";
|
|
@@ -9,14 +10,14 @@ import { ISelection } from "../../../../editor/common/core/selection.js";
|
|
|
9
10
|
import { Command, Location, TextEdit } from "../../../../editor/common/languages.js";
|
|
10
11
|
import { FileType } from "../../../../platform/files/common/files.js";
|
|
11
12
|
import { ICellEditOperation } from "../../notebook/common/notebookCommon.js";
|
|
12
|
-
import { IWorkspaceSymbol } from "@codingame/monaco-vscode-
|
|
13
|
-
import { IChatAgentCommand, IChatAgentData, IChatAgentResult } from "@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatAgents";
|
|
14
|
-
import { IChatResponseModel } from "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
13
|
+
import { IWorkspaceSymbol } from "@codingame/monaco-vscode-4dda7789-5a25-5e8b-b2de-c2f11b1b96e5-common/vscode/vs/workbench/contrib/search/common/search";
|
|
14
|
+
import { IChatAgentCommand, IChatAgentData, IChatAgentResult, UserSelectedTools } from "@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatAgents";
|
|
15
|
+
import { IChatRequestModeInfo, IChatResponseModel } from "@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
15
16
|
import { IChatParserContext } from "@codingame/monaco-vscode-0af61f78-dfc5-57ba-8d32-66268c8de38d-common/vscode/vs/workbench/contrib/chat/common/chatRequestParser";
|
|
16
17
|
import { IChatRequestVariableEntry } from "./chatVariableEntries.js";
|
|
17
18
|
import { IChatRequestVariableValue } from "./chatVariables.js";
|
|
18
19
|
import { ChatAgentLocation, ChatModeKind } from "./constants.js";
|
|
19
|
-
import { IPreparedToolInvocation, IToolConfirmationMessages, IToolResult, IToolResultInputOutputDetails } from "./languageModelToolsService.js";
|
|
20
|
+
import { IPreparedToolInvocation, IToolConfirmationMessages, IToolResult, IToolResultInputOutputDetails, ToolDataSource } from "./languageModelToolsService.js";
|
|
20
21
|
export interface IChatRequest {
|
|
21
22
|
message: string;
|
|
22
23
|
variables: Record<string, IChatRequestVariableValue[]>;
|
|
@@ -39,6 +40,7 @@ export interface IChatResponseErrorDetails {
|
|
|
39
40
|
isQuotaExceeded?: boolean;
|
|
40
41
|
level?: ChatErrorLevel;
|
|
41
42
|
confirmationButtons?: IChatResponseErrorDetailsConfirmationButton[];
|
|
43
|
+
code?: string;
|
|
42
44
|
}
|
|
43
45
|
export interface IChatResponseProgressFileTreeData {
|
|
44
46
|
label: string;
|
|
@@ -82,6 +84,10 @@ export interface IChatContentReference {
|
|
|
82
84
|
description: string;
|
|
83
85
|
kind: ChatResponseReferencePartStatusKind;
|
|
84
86
|
};
|
|
87
|
+
diffMeta?: {
|
|
88
|
+
added: number;
|
|
89
|
+
removed: number;
|
|
90
|
+
};
|
|
85
91
|
};
|
|
86
92
|
kind: "reference";
|
|
87
93
|
}
|
|
@@ -119,6 +125,8 @@ export interface IChatMultiDiffData {
|
|
|
119
125
|
originalUri?: URI;
|
|
120
126
|
modifiedUri?: URI;
|
|
121
127
|
goToFileUri?: URI;
|
|
128
|
+
added?: number;
|
|
129
|
+
removed?: number;
|
|
122
130
|
}>;
|
|
123
131
|
};
|
|
124
132
|
kind: "multiDiffData";
|
|
@@ -210,12 +218,22 @@ export interface IChatElicitationRequest {
|
|
|
210
218
|
message: string | IMarkdownString;
|
|
211
219
|
acceptButtonLabel: string;
|
|
212
220
|
rejectButtonLabel: string;
|
|
213
|
-
|
|
221
|
+
subtitle?: string | IMarkdownString;
|
|
222
|
+
source?: ToolDataSource;
|
|
214
223
|
state: "pending" | "accepted" | "rejected";
|
|
215
224
|
acceptedResult?: Record<string, unknown>;
|
|
216
|
-
|
|
225
|
+
moreActions?: IAction[];
|
|
226
|
+
accept(value: IAction | true): Promise<void>;
|
|
217
227
|
reject(): Promise<void>;
|
|
218
|
-
onDidRequestHide
|
|
228
|
+
onDidRequestHide?: Event<void>;
|
|
229
|
+
}
|
|
230
|
+
export interface IChatThinkingPart {
|
|
231
|
+
kind: "thinking";
|
|
232
|
+
value?: string | string[];
|
|
233
|
+
id?: string;
|
|
234
|
+
metadata?: {
|
|
235
|
+
readonly [key: string]: any;
|
|
236
|
+
};
|
|
219
237
|
}
|
|
220
238
|
export interface IChatTerminalToolInvocationData {
|
|
221
239
|
kind: "terminal";
|
|
@@ -224,7 +242,11 @@ export interface IChatTerminalToolInvocationData {
|
|
|
224
242
|
userEdited?: string;
|
|
225
243
|
toolEdited?: string;
|
|
226
244
|
};
|
|
245
|
+
/** Message for model recommending the use of an alternative tool */
|
|
246
|
+
alternativeRecommendation?: string;
|
|
227
247
|
language: string;
|
|
248
|
+
terminalToolSessionId?: string;
|
|
249
|
+
autoApproveInfo?: IMarkdownString;
|
|
228
250
|
}
|
|
229
251
|
/**
|
|
230
252
|
* @deprecated This is the old API shape, we should support this for a while before removing it so
|
|
@@ -239,18 +261,42 @@ export interface IChatToolInputInvocationData {
|
|
|
239
261
|
kind: "input";
|
|
240
262
|
rawInput: any;
|
|
241
263
|
}
|
|
264
|
+
export declare enum ToolConfirmKind {
|
|
265
|
+
Denied = 0,
|
|
266
|
+
ConfirmationNotNeeded = 1,
|
|
267
|
+
Setting = 2,
|
|
268
|
+
LmServicePerTool = 3,
|
|
269
|
+
UserAction = 4,
|
|
270
|
+
Skipped = 5
|
|
271
|
+
}
|
|
272
|
+
export type ConfirmedReason = {
|
|
273
|
+
type: ToolConfirmKind.Denied;
|
|
274
|
+
} | {
|
|
275
|
+
type: ToolConfirmKind.ConfirmationNotNeeded;
|
|
276
|
+
} | {
|
|
277
|
+
type: ToolConfirmKind.Setting;
|
|
278
|
+
id: string;
|
|
279
|
+
} | {
|
|
280
|
+
type: ToolConfirmKind.LmServicePerTool;
|
|
281
|
+
scope: "session" | "workspace" | "profile";
|
|
282
|
+
} | {
|
|
283
|
+
type: ToolConfirmKind.UserAction;
|
|
284
|
+
} | {
|
|
285
|
+
type: ToolConfirmKind.Skipped;
|
|
286
|
+
};
|
|
242
287
|
export interface IChatToolInvocation {
|
|
243
288
|
presentation: IPreparedToolInvocation["presentation"];
|
|
244
289
|
toolSpecificData?: IChatTerminalToolInvocationData | ILegacyChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent | IChatPullRequestContent | IChatTodoListContent;
|
|
245
290
|
/** Presence of this property says that confirmation is required */
|
|
246
291
|
confirmationMessages?: IToolConfirmationMessages;
|
|
247
|
-
confirmed: DeferredPromise<
|
|
248
|
-
/**
|
|
249
|
-
isConfirmed:
|
|
292
|
+
confirmed: DeferredPromise<ConfirmedReason>;
|
|
293
|
+
/** undefined=don't know yet. */
|
|
294
|
+
isConfirmed: ConfirmedReason | undefined;
|
|
250
295
|
originMessage: string | IMarkdownString | undefined;
|
|
251
296
|
invocationMessage: string | IMarkdownString;
|
|
252
297
|
pastTenseMessage: string | IMarkdownString | undefined;
|
|
253
298
|
resultDetails: IToolResult["toolResultDetails"];
|
|
299
|
+
source: ToolDataSource;
|
|
254
300
|
progress: IObservable<{
|
|
255
301
|
message?: string | IMarkdownString;
|
|
256
302
|
progress: number;
|
|
@@ -279,10 +325,12 @@ export interface IChatToolInvocationSerialized {
|
|
|
279
325
|
originMessage: string | IMarkdownString | undefined;
|
|
280
326
|
pastTenseMessage: string | IMarkdownString | undefined;
|
|
281
327
|
resultDetails?: Array<URI | Location> | IToolResultInputOutputDetails | IToolResultOutputDetailsSerialized;
|
|
282
|
-
|
|
328
|
+
/** boolean used by pre-1.104 versions */
|
|
329
|
+
isConfirmed: ConfirmedReason | boolean | undefined;
|
|
283
330
|
isComplete: boolean;
|
|
284
331
|
toolCallId: string;
|
|
285
332
|
toolId: string;
|
|
333
|
+
source: ToolDataSource;
|
|
286
334
|
kind: "toolInvocationSerialized";
|
|
287
335
|
}
|
|
288
336
|
export interface IChatExtensionsContent {
|
|
@@ -311,7 +359,7 @@ export interface IChatPrepareToolInvocationPart {
|
|
|
311
359
|
readonly kind: "prepareToolInvocation";
|
|
312
360
|
readonly toolName: string;
|
|
313
361
|
}
|
|
314
|
-
export type IChatProgress = IChatMarkdownContent | IChatAgentMarkdownContentWithVulnerability | IChatTreeData | IChatMultiDiffData | IChatUsedContext | IChatContentReference | IChatContentInlineReference | IChatCodeCitation | IChatProgressMessage | IChatTask | IChatTaskResult | IChatCommandButton | IChatWarningMessage | IChatTextEdit | IChatNotebookEdit | IChatMoveMessage | IChatResponseCodeblockUriPart | IChatConfirmation | IChatClearToPreviousToolInvocation | IChatToolInvocation | IChatToolInvocationSerialized | IChatExtensionsContent | IChatPullRequestContent | IChatUndoStop | IChatPrepareToolInvocationPart | IChatTaskSerialized | IChatElicitationRequest;
|
|
362
|
+
export type IChatProgress = IChatMarkdownContent | IChatAgentMarkdownContentWithVulnerability | IChatTreeData | IChatMultiDiffData | IChatUsedContext | IChatContentReference | IChatContentInlineReference | IChatCodeCitation | IChatProgressMessage | IChatTask | IChatTaskResult | IChatCommandButton | IChatWarningMessage | IChatTextEdit | IChatNotebookEdit | IChatMoveMessage | IChatResponseCodeblockUriPart | IChatConfirmation | IChatClearToPreviousToolInvocation | IChatToolInvocation | IChatToolInvocationSerialized | IChatExtensionsContent | IChatPullRequestContent | IChatUndoStop | IChatPrepareToolInvocationPart | IChatThinkingPart | IChatTaskSerialized | IChatElicitationRequest;
|
|
315
363
|
export interface IChatFollowup {
|
|
316
364
|
kind: "reply";
|
|
317
365
|
message: string;
|
|
@@ -406,8 +454,13 @@ export interface IChatEditingHunkAction {
|
|
|
406
454
|
kind: "chatEditingHunkAction";
|
|
407
455
|
uri: URI;
|
|
408
456
|
lineCount: number;
|
|
457
|
+
linesAdded: number;
|
|
458
|
+
linesRemoved: number;
|
|
409
459
|
outcome: "accepted" | "rejected";
|
|
410
460
|
hasRemainingEdits: boolean;
|
|
461
|
+
modeId?: string;
|
|
462
|
+
modelId?: string;
|
|
463
|
+
languageId?: string;
|
|
411
464
|
}
|
|
412
465
|
export type ChatUserAction = IChatVoteAction | IChatCopyAction | IChatInsertAction | IChatApplyAction | IChatTerminalAction | IChatCommandAction | IChatFollowupAction | IChatBugReportAction | IChatInlineChatCodeAction | IChatEditingSessionAction | IChatEditingHunkAction;
|
|
413
466
|
export interface IChatUserActionEvent {
|
|
@@ -417,6 +470,8 @@ export interface IChatUserActionEvent {
|
|
|
417
470
|
sessionId: string;
|
|
418
471
|
requestId: string;
|
|
419
472
|
result: IChatAgentResult | undefined;
|
|
473
|
+
modelId?: string | undefined;
|
|
474
|
+
modeId?: string | undefined;
|
|
420
475
|
}
|
|
421
476
|
export interface IChatDynamicRequest {
|
|
422
477
|
/**
|
|
@@ -471,10 +526,9 @@ export interface IChatTerminalLocationData {
|
|
|
471
526
|
}
|
|
472
527
|
export type IChatLocationData = IChatEditorLocationData | IChatNotebookLocationData | IChatTerminalLocationData;
|
|
473
528
|
export interface IChatSendRequestOptions {
|
|
474
|
-
|
|
529
|
+
modeInfo?: IChatRequestModeInfo;
|
|
475
530
|
userSelectedModelId?: string;
|
|
476
|
-
userSelectedTools?: IObservable<
|
|
477
|
-
modeInstructions?: string;
|
|
531
|
+
userSelectedTools?: IObservable<UserSelectedTools>;
|
|
478
532
|
location?: ChatAgentLocation;
|
|
479
533
|
locationData?: IChatLocationData;
|
|
480
534
|
parserContext?: IChatParserContext;
|
|
@@ -485,6 +539,8 @@ export interface IChatSendRequestOptions {
|
|
|
485
539
|
attachedContext?: IChatRequestVariableEntry[];
|
|
486
540
|
/** The target agent ID can be specified with this property instead of using @ in 'message' */
|
|
487
541
|
agentId?: string;
|
|
542
|
+
/** agentId, but will not add a @ name to the request */
|
|
543
|
+
agentIdSilent?: string;
|
|
488
544
|
slashCommand?: string;
|
|
489
545
|
/**
|
|
490
546
|
* The label of the confirmation action that was selected.
|
|
@@ -34,6 +34,15 @@ var ChatResponseClearToPreviousToolInvocationReason;
|
|
|
34
34
|
ChatResponseClearToPreviousToolInvocationReason[ChatResponseClearToPreviousToolInvocationReason["FilteredContentRetry"] = 1] = "FilteredContentRetry";
|
|
35
35
|
ChatResponseClearToPreviousToolInvocationReason[ChatResponseClearToPreviousToolInvocationReason["CopyrightContentRetry"] = 2] = "CopyrightContentRetry";
|
|
36
36
|
})(ChatResponseClearToPreviousToolInvocationReason || (ChatResponseClearToPreviousToolInvocationReason = {}));
|
|
37
|
+
var ToolConfirmKind;
|
|
38
|
+
(function (ToolConfirmKind) {
|
|
39
|
+
ToolConfirmKind[ToolConfirmKind["Denied"] = 0] = "Denied";
|
|
40
|
+
ToolConfirmKind[ToolConfirmKind["ConfirmationNotNeeded"] = 1] = "ConfirmationNotNeeded";
|
|
41
|
+
ToolConfirmKind[ToolConfirmKind["Setting"] = 2] = "Setting";
|
|
42
|
+
ToolConfirmKind[ToolConfirmKind["LmServicePerTool"] = 3] = "LmServicePerTool";
|
|
43
|
+
ToolConfirmKind[ToolConfirmKind["UserAction"] = 4] = "UserAction";
|
|
44
|
+
ToolConfirmKind[ToolConfirmKind["Skipped"] = 5] = "Skipped";
|
|
45
|
+
})(ToolConfirmKind || (ToolConfirmKind = {}));
|
|
37
46
|
var ChatAgentVoteDirection;
|
|
38
47
|
(function (ChatAgentVoteDirection) {
|
|
39
48
|
ChatAgentVoteDirection[ChatAgentVoteDirection["Down"] = 0] = "Down";
|
|
@@ -57,4 +66,4 @@ var ChatCopyKind;
|
|
|
57
66
|
ChatCopyKind[ChatCopyKind["Toolbar"] = 2] = "Toolbar";
|
|
58
67
|
})(ChatCopyKind || (ChatCopyKind = {}));
|
|
59
68
|
|
|
60
|
-
export { ChatAgentVoteDirection, ChatAgentVoteDownReason, ChatCopyKind, ChatErrorLevel, ChatResponseClearToPreviousToolInvocationReason, ChatResponseReferencePartStatusKind, isIDocumentContext, isIUsedContext };
|
|
69
|
+
export { ChatAgentVoteDirection, ChatAgentVoteDownReason, ChatCopyKind, ChatErrorLevel, ChatResponseClearToPreviousToolInvocationReason, ChatResponseReferencePartStatusKind, ToolConfirmKind, isIDocumentContext, isIUsedContext };
|
|
@@ -15,9 +15,10 @@ export interface IChatService {
|
|
|
15
15
|
}>;
|
|
16
16
|
isEnabled(location: ChatAgentLocation): boolean;
|
|
17
17
|
hasSessions(): boolean;
|
|
18
|
-
startSession(location: ChatAgentLocation, token: CancellationToken, isGlobalEditingSession?: boolean): ChatModel;
|
|
18
|
+
startSession(location: ChatAgentLocation, token: CancellationToken, isGlobalEditingSession?: boolean, inputType?: string): ChatModel;
|
|
19
19
|
getSession(sessionId: string): IChatModel | undefined;
|
|
20
20
|
getOrRestoreSession(sessionId: string): Promise<IChatModel | undefined>;
|
|
21
|
+
getPersistedSessionTitle(sessionId: string): string | undefined;
|
|
21
22
|
isPersistedSessionEmpty(sessionId: string): boolean;
|
|
22
23
|
loadSessionFromContent(data: IExportableChatData | ISerializableChatData | URI): IChatModel | undefined;
|
|
23
24
|
loadSessionForResource(resource: URI, location: ChatAgentLocation, token: CancellationToken): Promise<IChatModel | undefined>;
|
|
@@ -1,48 +1,75 @@
|
|
|
1
|
-
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
2
1
|
import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
3
2
|
import { Event } from "../../../../base/common/event.js";
|
|
4
|
-
import {
|
|
3
|
+
import { IMarkdownString } from "../../../../base/common/htmlContent.js";
|
|
4
|
+
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
5
|
+
import { IObservable } from "../../../../base/common/observable.js";
|
|
5
6
|
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
6
|
-
import { IChatProgress } from "./chatService.js";
|
|
7
|
-
import { IChatAgentRequest } from "@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatAgents";
|
|
8
7
|
import { IRelaxedExtensionDescription } from "../../../../platform/extensions/common/extensions.js";
|
|
8
|
+
import { IChatAgentRequest } from "@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatAgents";
|
|
9
|
+
import { IChatProgress } from "./chatService.js";
|
|
10
|
+
export declare enum ChatSessionStatus {
|
|
11
|
+
Failed = 0,
|
|
12
|
+
Completed = 1,
|
|
13
|
+
InProgress = 2
|
|
14
|
+
}
|
|
9
15
|
export interface IChatSessionsExtensionPoint {
|
|
10
|
-
readonly id: string;
|
|
11
16
|
readonly type: string;
|
|
12
17
|
readonly name: string;
|
|
13
18
|
readonly displayName: string;
|
|
14
19
|
readonly description: string;
|
|
15
20
|
readonly extensionDescription: IRelaxedExtensionDescription;
|
|
16
21
|
readonly when?: string;
|
|
22
|
+
readonly capabilities?: {
|
|
23
|
+
supportsFileAttachments?: boolean;
|
|
24
|
+
supportsToolAttachments?: boolean;
|
|
25
|
+
};
|
|
17
26
|
}
|
|
18
27
|
export interface IChatSessionItem {
|
|
19
28
|
id: string;
|
|
20
29
|
label: string;
|
|
21
|
-
iconPath?:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
30
|
+
iconPath?: ThemeIcon;
|
|
31
|
+
description?: string | IMarkdownString;
|
|
32
|
+
status?: ChatSessionStatus;
|
|
33
|
+
tooltip?: string | IMarkdownString;
|
|
34
|
+
timing?: {
|
|
35
|
+
startTime: number;
|
|
36
|
+
endTime?: number;
|
|
37
|
+
};
|
|
38
|
+
statistics?: {
|
|
39
|
+
insertions: number;
|
|
40
|
+
deletions: number;
|
|
41
|
+
};
|
|
25
42
|
}
|
|
43
|
+
export type IChatSessionHistoryItem = {
|
|
44
|
+
type: "request";
|
|
45
|
+
prompt: string;
|
|
46
|
+
participant: string;
|
|
47
|
+
} | {
|
|
48
|
+
type: "response";
|
|
49
|
+
parts: IChatProgress[];
|
|
50
|
+
participant: string;
|
|
51
|
+
};
|
|
26
52
|
export interface ChatSession extends IDisposable {
|
|
27
|
-
readonly
|
|
53
|
+
readonly sessionId: string;
|
|
28
54
|
readonly onWillDispose: Event<void>;
|
|
29
|
-
history: Array<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} | {
|
|
33
|
-
type: "response";
|
|
34
|
-
parts: IChatProgress[];
|
|
35
|
-
}>;
|
|
36
|
-
readonly progressEvent?: Event<IChatProgress[]>;
|
|
55
|
+
history: Array<IChatSessionHistoryItem>;
|
|
56
|
+
readonly progressObs?: IObservable<IChatProgress[]>;
|
|
57
|
+
readonly isCompleteObs?: IObservable<boolean>;
|
|
37
58
|
readonly interruptActiveResponseCallback?: () => Promise<boolean>;
|
|
38
|
-
requestHandler?: (request: IChatAgentRequest, progress: (progress: IChatProgress[]) => void, history: [
|
|
39
|
-
|
|
59
|
+
requestHandler?: (request: IChatAgentRequest, progress: (progress: IChatProgress[]) => void, history: any[], // TODO: Nail down types
|
|
60
|
+
token: CancellationToken) => Promise<void>;
|
|
40
61
|
}
|
|
41
62
|
export interface IChatSessionItemProvider {
|
|
42
63
|
readonly chatSessionType: string;
|
|
64
|
+
readonly onDidChangeChatSessionItems: Event<void>;
|
|
43
65
|
provideChatSessionItems(token: CancellationToken): Promise<IChatSessionItem[]>;
|
|
66
|
+
provideNewChatSessionItem?(options: {
|
|
67
|
+
request: IChatAgentRequest;
|
|
68
|
+
prompt?: string;
|
|
69
|
+
history?: any[];
|
|
70
|
+
metadata?: any;
|
|
71
|
+
}, token: CancellationToken): Promise<IChatSessionItem>;
|
|
44
72
|
}
|
|
45
73
|
export interface IChatSessionContentProvider {
|
|
46
|
-
|
|
47
|
-
provideChatSessionContent(id: string, token: CancellationToken): Promise<ChatSession>;
|
|
74
|
+
provideChatSessionContent(sessionId: string, token: CancellationToken): Promise<ChatSession>;
|
|
48
75
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
var ChatSessionStatus;
|
|
4
|
+
(function (ChatSessionStatus) {
|
|
5
|
+
ChatSessionStatus[ChatSessionStatus["Failed"] = 0] = "Failed";
|
|
6
|
+
ChatSessionStatus[ChatSessionStatus["Completed"] = 1] = "Completed";
|
|
7
|
+
ChatSessionStatus[ChatSessionStatus["InProgress"] = 2] = "InProgress";
|
|
8
|
+
})(ChatSessionStatus || (ChatSessionStatus = {}));
|
|
9
|
+
|
|
10
|
+
export { ChatSessionStatus };
|
|
@@ -1,22 +1,37 @@
|
|
|
1
1
|
import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
2
2
|
import { Event } from "../../../../base/common/event.js";
|
|
3
3
|
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
4
|
-
import {
|
|
4
|
+
import { IEditableData } from "../../../common/views.js";
|
|
5
|
+
import { IChatAgentRequest } from "@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatAgents";
|
|
6
|
+
import { IChatSessionItemProvider, IChatSessionsExtensionPoint, IChatSessionItem, IChatSessionContentProvider, ChatSession } from "./chatSessionsService.js";
|
|
5
7
|
export interface IChatSessionsService {
|
|
6
8
|
readonly _serviceBrand: undefined;
|
|
7
9
|
readonly onDidChangeItemsProviders: Event<IChatSessionItemProvider>;
|
|
8
10
|
readonly onDidChangeSessionItems: Event<string>;
|
|
9
11
|
readonly onDidChangeAvailability: Event<void>;
|
|
10
|
-
|
|
11
|
-
getChatSessionContributions(): IChatSessionsExtensionPoint[];
|
|
12
|
-
canResolveItemProvider(chatSessionType: string): Promise<boolean>;
|
|
13
|
-
canResolveContentProvider(chatSessionType: string): Promise<boolean>;
|
|
14
|
-
getChatSessionItemProviders(): IChatSessionItemProvider[];
|
|
12
|
+
readonly onDidChangeInProgress: Event<void>;
|
|
15
13
|
registerChatSessionItemProvider(provider: IChatSessionItemProvider): IDisposable;
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
getAllChatSessionContributions(): IChatSessionsExtensionPoint[];
|
|
15
|
+
canResolveItemProvider(chatSessionType: string): Promise<boolean>;
|
|
16
|
+
getAllChatSessionItemProviders(): IChatSessionItemProvider[];
|
|
17
|
+
provideNewChatSessionItem(chatSessionType: string, options: {
|
|
18
|
+
request: IChatAgentRequest;
|
|
19
|
+
prompt?: string;
|
|
20
|
+
history?: any[];
|
|
21
|
+
metadata?: any;
|
|
22
|
+
}, token: CancellationToken): Promise<IChatSessionItem>;
|
|
18
23
|
provideChatSessionItems(chatSessionType: string, token: CancellationToken): Promise<IChatSessionItem[]>;
|
|
19
|
-
|
|
24
|
+
reportInProgress(chatSessionType: string, count: number): void;
|
|
25
|
+
getInProgress(): {
|
|
26
|
+
displayName: string;
|
|
27
|
+
count: number;
|
|
28
|
+
}[];
|
|
29
|
+
registerChatSessionContentProvider(chatSessionType: string, provider: IChatSessionContentProvider): IDisposable;
|
|
30
|
+
canResolveContentProvider(chatSessionType: string): Promise<boolean>;
|
|
20
31
|
provideChatSessionContent(chatSessionType: string, id: string, token: CancellationToken): Promise<ChatSession>;
|
|
32
|
+
setEditableSession(sessionId: string, data: IEditableData | null): Promise<void>;
|
|
33
|
+
getEditableData(sessionId: string): IEditableData | undefined;
|
|
34
|
+
isEditable(sessionId: string): boolean;
|
|
35
|
+
notifySessionItemsChanged(chatSessionType: string): void;
|
|
21
36
|
}
|
|
22
37
|
export declare const IChatSessionsService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IChatSessionsService>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IChatTodo } from "@codingame/monaco-vscode-chat-service-override/vscode/vs/workbench/contrib/chat/common/chatTodoListService";
|
|
2
2
|
export declare const IChatTodoListService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IChatTodoListService>;
|
|
3
3
|
export interface IChatTodoListService {
|
|
4
4
|
readonly _serviceBrand: undefined;
|
|
5
|
-
|
|
5
|
+
getTodos(sessionId: string): IChatTodo[];
|
|
6
|
+
setTodos(sessionId: string, todos: IChatTodo[]): void;
|
|
6
7
|
}
|
|
@@ -155,7 +155,7 @@ export declare enum PromptFileVariableKind {
|
|
|
155
155
|
* @param kind The kind of the prompt file variable entry.
|
|
156
156
|
*/
|
|
157
157
|
export declare function toPromptFileVariableEntry(uri: URI, kind: PromptFileVariableKind, originLabel?: string, automaticallyAdded?: boolean): IPromptFileVariableEntry;
|
|
158
|
-
export declare function toPromptTextVariableEntry(content: string,
|
|
158
|
+
export declare function toPromptTextVariableEntry(content: string, automaticallyAdded?: boolean): IPromptTextVariableEntry;
|
|
159
159
|
export declare function toFileVariableEntry(uri: URI, range?: IRange): IChatRequestFileEntry;
|
|
160
160
|
export declare class ChatRequestVariableSet {
|
|
161
161
|
private _ids;
|
|
@@ -166,5 +166,6 @@ export declare class ChatRequestVariableSet {
|
|
|
166
166
|
remove(entry: IChatRequestVariableEntry): void;
|
|
167
167
|
has(entry: IChatRequestVariableEntry): boolean;
|
|
168
168
|
asArray(): IChatRequestVariableEntry[];
|
|
169
|
+
get length(): number;
|
|
169
170
|
}
|
|
170
171
|
export {};
|
|
@@ -54,9 +54,9 @@ var IDiagnosticVariableEntryFilterData;
|
|
|
54
54
|
}
|
|
55
55
|
return data.problemMessage.substring(0, lastSpace) + '…';
|
|
56
56
|
}
|
|
57
|
-
let labelStr = ( localize(
|
|
57
|
+
let labelStr = ( localize(5547, "All Problems"));
|
|
58
58
|
if (data.filterUri) {
|
|
59
|
-
labelStr = ( localize(
|
|
59
|
+
labelStr = ( localize(5548, "Problems in {0}", basename(data.filterUri)));
|
|
60
60
|
}
|
|
61
61
|
return labelStr;
|
|
62
62
|
}
|
|
@@ -85,6 +85,9 @@ function isNotebookOutputVariableEntry(obj) {
|
|
|
85
85
|
function isElementVariableEntry(obj) {
|
|
86
86
|
return obj.kind === 'element';
|
|
87
87
|
}
|
|
88
|
+
function isChatRequestFileEntry(obj) {
|
|
89
|
+
return obj.kind === 'file';
|
|
90
|
+
}
|
|
88
91
|
function isPromptFileVariableEntry(obj) {
|
|
89
92
|
return obj.kind === 'promptFile';
|
|
90
93
|
}
|
|
@@ -112,14 +115,13 @@ function toPromptFileVariableEntry(uri, kind, originLabel, automaticallyAdded =
|
|
|
112
115
|
automaticallyAdded
|
|
113
116
|
};
|
|
114
117
|
}
|
|
115
|
-
function toPromptTextVariableEntry(content,
|
|
118
|
+
function toPromptTextVariableEntry(content, automaticallyAdded = false) {
|
|
116
119
|
return {
|
|
117
|
-
id: `vscode.prompt.instructions.text
|
|
118
|
-
name: `prompt:
|
|
120
|
+
id: `vscode.prompt.instructions.text`,
|
|
121
|
+
name: `prompt:instructionsList`,
|
|
119
122
|
value: content,
|
|
120
|
-
settingId,
|
|
121
123
|
kind: 'promptText',
|
|
122
|
-
modelDescription: 'Prompt instructions
|
|
124
|
+
modelDescription: 'Prompt instructions list',
|
|
123
125
|
automaticallyAdded
|
|
124
126
|
};
|
|
125
127
|
}
|
|
@@ -155,6 +157,9 @@ class ChatRequestVariableSet {
|
|
|
155
157
|
asArray() {
|
|
156
158
|
return this._entries.slice(0);
|
|
157
159
|
}
|
|
160
|
+
get length() {
|
|
161
|
+
return this._entries.length;
|
|
162
|
+
}
|
|
158
163
|
}
|
|
159
164
|
|
|
160
|
-
export { ChatRequestVariableSet, IChatRequestVariableEntry, IDiagnosticVariableEntryFilterData, OmittedState, PromptFileVariableKind, isElementVariableEntry, isImageVariableEntry, isNotebookOutputVariableEntry, isPasteVariableEntry, isPromptFileVariableEntry, isPromptTextVariableEntry, isSCMHistoryItemVariableEntry, toPromptFileVariableEntry, toPromptTextVariableEntry };
|
|
165
|
+
export { ChatRequestVariableSet, IChatRequestVariableEntry, IDiagnosticVariableEntryFilterData, OmittedState, PromptFileVariableKind, isChatRequestFileEntry, isElementVariableEntry, isImageVariableEntry, isNotebookOutputVariableEntry, isPasteVariableEntry, isPromptFileVariableEntry, isPromptTextVariableEntry, isSCMHistoryItemVariableEntry, toPromptFileVariableEntry, toPromptTextVariableEntry };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { IDynamicVariable } from "./chatVariables.js";
|
|
2
|
-
import {
|
|
2
|
+
import { IToolAndToolSetEnablementMap } from "./languageModelToolsService.js";
|
|
3
3
|
export declare const IChatVariablesService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IChatVariablesService>;
|
|
4
4
|
export interface IChatVariablesService {
|
|
5
5
|
_serviceBrand: undefined;
|
|
6
6
|
getDynamicVariables(sessionId: string): ReadonlyArray<IDynamicVariable>;
|
|
7
|
-
|
|
8
|
-
getSelectedToolSets(sessionId: string): ReadonlyArray<ToolSet>;
|
|
7
|
+
getSelectedToolAndToolSets(sessionId: string): IToolAndToolSetEnablementMap;
|
|
9
8
|
}
|
|
@@ -4,9 +4,15 @@ export declare enum ChatConfiguration {
|
|
|
4
4
|
Edits2Enabled = "chat.edits2.enabled",
|
|
5
5
|
ExtensionToolsEnabled = "chat.extensionTools.enabled",
|
|
6
6
|
EditRequests = "chat.editRequests",
|
|
7
|
+
GlobalAutoApprove = "chat.tools.global.autoApprove",
|
|
8
|
+
AutoApproveEdits = "chat.tools.edits.autoApprove",
|
|
7
9
|
EnableMath = "chat.math.enabled",
|
|
8
10
|
CheckpointsEnabled = "chat.checkpoints.enabled",
|
|
9
|
-
AgentSessionsViewLocation = "chat.agentSessionsViewLocation"
|
|
11
|
+
AgentSessionsViewLocation = "chat.agentSessionsViewLocation",
|
|
12
|
+
ThinkingStyle = "chat.agent.thinkingStyle",
|
|
13
|
+
UseChatSessionsForCloudButton = "chat.useChatSessionsForCloudButton",
|
|
14
|
+
ShowAgentSessionsViewDescription = "chat.showAgentSessionsViewDescription",
|
|
15
|
+
EmptyStateHistoryEnabled = "chat.emptyState.history.enabled"
|
|
10
16
|
}
|
|
11
17
|
/**
|
|
12
18
|
* The "kind" of the chat mode- "Agent" for custom modes.
|
|
@@ -18,6 +24,12 @@ export declare enum ChatModeKind {
|
|
|
18
24
|
}
|
|
19
25
|
export declare function validateChatMode(mode: unknown): ChatModeKind | undefined;
|
|
20
26
|
export declare function isChatMode(mode: unknown): mode is ChatModeKind;
|
|
27
|
+
export declare enum ThinkingDisplayMode {
|
|
28
|
+
Collapsed = "collapsed",
|
|
29
|
+
CollapsedPreview = "collapsedPreview",
|
|
30
|
+
Expanded = "expanded",
|
|
31
|
+
None = "none"
|
|
32
|
+
}
|
|
21
33
|
export type RawChatParticipantLocation = "panel" | "terminal" | "notebook" | "editing-session";
|
|
22
34
|
export declare enum ChatAgentLocation {
|
|
23
35
|
Panel = "panel",
|
|
@@ -28,3 +40,4 @@ export declare enum ChatAgentLocation {
|
|
|
28
40
|
export declare namespace ChatAgentLocation {
|
|
29
41
|
function fromRaw(value: RawChatParticipantLocation | string): ChatAgentLocation;
|
|
30
42
|
}
|
|
43
|
+
export declare const ChatUnsupportedFileSchemes: Set<string>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
|
|
2
|
+
import { Schemas } from '../../../../base/common/network.js';
|
|
2
3
|
|
|
3
4
|
var ChatConfiguration;
|
|
4
5
|
(function (ChatConfiguration) {
|
|
@@ -7,9 +8,15 @@ var ChatConfiguration;
|
|
|
7
8
|
ChatConfiguration["Edits2Enabled"] = "chat.edits2.enabled";
|
|
8
9
|
ChatConfiguration["ExtensionToolsEnabled"] = "chat.extensionTools.enabled";
|
|
9
10
|
ChatConfiguration["EditRequests"] = "chat.editRequests";
|
|
11
|
+
ChatConfiguration["GlobalAutoApprove"] = "chat.tools.global.autoApprove";
|
|
12
|
+
ChatConfiguration["AutoApproveEdits"] = "chat.tools.edits.autoApprove";
|
|
10
13
|
ChatConfiguration["EnableMath"] = "chat.math.enabled";
|
|
11
14
|
ChatConfiguration["CheckpointsEnabled"] = "chat.checkpoints.enabled";
|
|
12
15
|
ChatConfiguration["AgentSessionsViewLocation"] = "chat.agentSessionsViewLocation";
|
|
16
|
+
ChatConfiguration["ThinkingStyle"] = "chat.agent.thinkingStyle";
|
|
17
|
+
ChatConfiguration["UseChatSessionsForCloudButton"] = "chat.useChatSessionsForCloudButton";
|
|
18
|
+
ChatConfiguration["ShowAgentSessionsViewDescription"] = "chat.showAgentSessionsViewDescription";
|
|
19
|
+
ChatConfiguration["EmptyStateHistoryEnabled"] = "chat.emptyState.history.enabled";
|
|
13
20
|
})(ChatConfiguration || (ChatConfiguration = {}));
|
|
14
21
|
var ChatModeKind;
|
|
15
22
|
(function (ChatModeKind) {
|
|
@@ -27,6 +34,13 @@ function validateChatMode(mode) {
|
|
|
27
34
|
return undefined;
|
|
28
35
|
}
|
|
29
36
|
}
|
|
37
|
+
var ThinkingDisplayMode;
|
|
38
|
+
(function (ThinkingDisplayMode) {
|
|
39
|
+
ThinkingDisplayMode["Collapsed"] = "collapsed";
|
|
40
|
+
ThinkingDisplayMode["CollapsedPreview"] = "collapsedPreview";
|
|
41
|
+
ThinkingDisplayMode["Expanded"] = "expanded";
|
|
42
|
+
ThinkingDisplayMode["None"] = "none";
|
|
43
|
+
})(ThinkingDisplayMode || (ThinkingDisplayMode = {}));
|
|
30
44
|
var ChatAgentLocation;
|
|
31
45
|
(function (ChatAgentLocation) {
|
|
32
46
|
ChatAgentLocation["Panel"] = "panel";
|
|
@@ -46,5 +60,8 @@ var ChatAgentLocation;
|
|
|
46
60
|
}
|
|
47
61
|
ChatAgentLocation.fromRaw = fromRaw;
|
|
48
62
|
})(ChatAgentLocation || (ChatAgentLocation = {}));
|
|
63
|
+
const ChatUnsupportedFileSchemes = ( new Set(
|
|
64
|
+
[Schemas.vscodeChatEditor, Schemas.walkThrough, Schemas.vscodeChatSession, 'ccreq']
|
|
65
|
+
));
|
|
49
66
|
|
|
50
|
-
export { ChatAgentLocation, ChatConfiguration, ChatModeKind, validateChatMode };
|
|
67
|
+
export { ChatAgentLocation, ChatConfiguration, ChatModeKind, ChatUnsupportedFileSchemes, ThinkingDisplayMode, validateChatMode };
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
+
import { Separator } from "../../../../base/common/actions.js";
|
|
2
|
+
import { VSBuffer } from "../../../../base/common/buffer.js";
|
|
1
3
|
import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
2
4
|
import { IMarkdownString } from "../../../../base/common/htmlContent.js";
|
|
3
5
|
import { IJSONSchema } from "../../../../base/common/jsonSchema.js";
|
|
4
6
|
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
7
|
+
import { IObservable, IReader, ITransaction, ObservableSet } from "../../../../base/common/observable.js";
|
|
5
8
|
import { ThemeIcon } from "../../../../base/common/themables.js";
|
|
6
9
|
import { URI } from "../../../../base/common/uri.js";
|
|
7
10
|
import { Location } from "../../../../editor/common/languages.js";
|
|
8
11
|
import { ContextKeyExpression } from "../../../../platform/contextkey/common/contextkey.js";
|
|
9
12
|
import { ExtensionIdentifier } from "../../../../platform/extensions/common/extensions.js";
|
|
10
13
|
import { IProgress } from "../../../../platform/progress/common/progress.js";
|
|
11
|
-
import { IChatExtensionsContent,
|
|
12
|
-
import {
|
|
13
|
-
import { IObservable, IReader, ITransaction, ObservableSet } from "../../../../base/common/observable.js";
|
|
14
|
-
import { ToolResultAudience } from "./languageModels.js";
|
|
14
|
+
import { IChatExtensionsContent, IChatTodoListContent, IChatToolInputInvocationData, type IChatTerminalToolInvocationData } from "./chatService.js";
|
|
15
|
+
import { LanguageModelPartAudience } from "./languageModels.js";
|
|
15
16
|
export interface IToolData {
|
|
16
17
|
id: string;
|
|
17
18
|
source: ToolDataSource;
|
|
@@ -58,9 +59,14 @@ export type ToolDataSource = {
|
|
|
58
59
|
} | {
|
|
59
60
|
type: "internal";
|
|
60
61
|
label: string;
|
|
62
|
+
} | {
|
|
63
|
+
type: "external";
|
|
64
|
+
label: string;
|
|
61
65
|
};
|
|
62
66
|
export declare namespace ToolDataSource {
|
|
63
67
|
const Internal: ToolDataSource;
|
|
68
|
+
/** External tools may not be contributed or invoked, but may be invoked externally and described in an IChatToolInvocationSerialized */
|
|
69
|
+
const External: ToolDataSource;
|
|
64
70
|
function toKey(source: ToolDataSource): string;
|
|
65
71
|
function equals(a: ToolDataSource, b: ToolDataSource): boolean;
|
|
66
72
|
function classify(source: ToolDataSource): {
|
|
@@ -136,7 +142,7 @@ export declare function stringifyPromptTsxPart(part: IToolResultPromptTsxPart):
|
|
|
136
142
|
export interface IToolResultTextPart {
|
|
137
143
|
kind: "text";
|
|
138
144
|
value: string;
|
|
139
|
-
audience?:
|
|
145
|
+
audience?: LanguageModelPartAudience[];
|
|
140
146
|
}
|
|
141
147
|
export interface IToolResultDataPart {
|
|
142
148
|
kind: "data";
|
|
@@ -144,20 +150,32 @@ export interface IToolResultDataPart {
|
|
|
144
150
|
mimeType: string;
|
|
145
151
|
data: VSBuffer;
|
|
146
152
|
};
|
|
147
|
-
audience?:
|
|
153
|
+
audience?: LanguageModelPartAudience[];
|
|
148
154
|
}
|
|
149
155
|
export interface IToolConfirmationMessages {
|
|
150
156
|
title: string | IMarkdownString;
|
|
151
157
|
message: string | IMarkdownString;
|
|
152
158
|
disclaimer?: string | IMarkdownString;
|
|
153
159
|
allowAutoConfirm?: boolean;
|
|
160
|
+
terminalCustomActions?: ToolConfirmationAction[];
|
|
161
|
+
}
|
|
162
|
+
export interface IToolConfirmationAction {
|
|
163
|
+
label: string;
|
|
164
|
+
disabled?: boolean;
|
|
165
|
+
tooltip?: string;
|
|
166
|
+
data: any;
|
|
167
|
+
}
|
|
168
|
+
export type ToolConfirmationAction = IToolConfirmationAction | Separator;
|
|
169
|
+
export declare enum ToolInvocationPresentation {
|
|
170
|
+
Hidden = "hidden",
|
|
171
|
+
HiddenAfterComplete = "hiddenAfterComplete"
|
|
154
172
|
}
|
|
155
173
|
export interface IPreparedToolInvocation {
|
|
156
174
|
invocationMessage?: string | IMarkdownString;
|
|
157
175
|
pastTenseMessage?: string | IMarkdownString;
|
|
158
176
|
originMessage?: string | IMarkdownString;
|
|
159
177
|
confirmationMessages?: IToolConfirmationMessages;
|
|
160
|
-
presentation?:
|
|
178
|
+
presentation?: ToolInvocationPresentation;
|
|
161
179
|
toolSpecificData?: IChatTerminalToolInvocationData | IChatToolInputInvocationData | IChatExtensionsContent | IChatTodoListContent;
|
|
162
180
|
}
|
|
163
181
|
export interface IToolImpl {
|