@codingame/monaco-vscode-api 20.5.0 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/missing-services.js +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 +113 -18
- 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
|
@@ -4,7 +4,7 @@ import { raceCancellationError } from '../../../base/common/async.js';
|
|
|
4
4
|
import { CancellationToken } from '../../../base/common/cancellation.js';
|
|
5
5
|
import { NotImplementedError, isCancellationError } from '../../../base/common/errors.js';
|
|
6
6
|
import { IdGenerator } from '../../../base/common/idGenerator.js';
|
|
7
|
-
import { DisposableStore } from '../../../base/common/lifecycle.js';
|
|
7
|
+
import { DisposableStore, Disposable } from '../../../base/common/lifecycle.js';
|
|
8
8
|
import { mixin, equals } from '../../../base/common/objects.js';
|
|
9
9
|
import { StopWatch } from '../../../base/common/stopwatch.js';
|
|
10
10
|
import { regExpLeadsToEndlessLoop } from '../../../base/common/strings.js';
|
|
@@ -20,8 +20,13 @@ import { ExtensionIdentifier } from '../../../platform/extensions/common/extensi
|
|
|
20
20
|
import { isProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
21
21
|
import { Cache } from './cache.js';
|
|
22
22
|
import { ISuggestResultDtoField, ISuggestDataDtoField, MainContext } from './extHost.protocol.js';
|
|
23
|
-
import { DocumentSymbol as DocumentSymbol$1, Range, SymbolTag, SymbolKind, DefinitionLink, Position, Hover, EvaluatableExpression, InlineValueContext, InlineValue, DocumentHighlight, MultiDocumentHighlight, location, Selection as Selection$1, CodeActionTriggerKind, WorkspaceEdit, Diagnostic, DataTransfer, DataTransferItem, TextEdit, WorkspaceSymbol, CompletionContext, MarkdownString, CompletionItemTag, CompletionItemKind, CompletionCommand, IconPath, PartialAcceptInfo, InlineCompletionEndOfLifeReason, SignatureHelp, InlayHintKind, DocumentLink, Color, ColorPresentation, FoldingRange, SelectionRange, CallHierarchyItem, TypeHierarchyItem, DocumentSelector } from './extHostTypeConverters.js';
|
|
24
|
-
import { DocumentSymbol,
|
|
23
|
+
import { DocumentSymbol as DocumentSymbol$1, Range, SymbolTag, SymbolKind, DefinitionLink, Position, Hover, EvaluatableExpression, InlineValueContext, InlineValue, DocumentHighlight, MultiDocumentHighlight, location, Selection as Selection$1, CodeActionTriggerKind, WorkspaceEdit, Diagnostic, DataTransfer, DataTransferItem, TextEdit, WorkspaceSymbol, CompletionContext, MarkdownString, CompletionItemTag, CompletionItemKind, CompletionCommand, IconPath, InlineCompletionDisplayLocationKind, PartialAcceptInfo, InlineCompletionEndOfLifeReason, SignatureHelp, InlayHintKind, DocumentLink, Color, ColorPresentation, FoldingRange, SelectionRange, CallHierarchyItem, TypeHierarchyItem, DocumentSelector } from './extHostTypeConverters.js';
|
|
24
|
+
import { DocumentSymbol, CodeAction, InternalDataTransferItem, DataTransfer as DataTransfer$1, DocumentDropOrPasteEditKind, NewSymbolNameTriggerKind, SemanticTokens, SemanticTokensEdits, SemanticTokensEdit, CompletionList, InlineCompletionTriggerKind, InlineCompletionDisplayLocationKind as InlineCompletionDisplayLocationKind$1, InlineCompletionsDisposeReasonKind, Disposable as Disposable$1, SyntaxTokenType } from './extHostTypes.js';
|
|
25
|
+
import { Emitter } from '../../../base/common/event.js';
|
|
26
|
+
import { Range as Range$2 } from './extHostTypes/range.js';
|
|
27
|
+
import { CodeActionKind } from './extHostTypes/codeActionKind.js';
|
|
28
|
+
import { SnippetString } from './extHostTypes/snippetString.js';
|
|
29
|
+
import { Location } from './extHostTypes/location.js';
|
|
25
30
|
|
|
26
31
|
class DocumentSymbolAdapter {
|
|
27
32
|
constructor(_documents, _provider) {
|
|
@@ -541,7 +546,7 @@ class DocumentPasteEditProvider {
|
|
|
541
546
|
return (edits.map((edit, i) => ({
|
|
542
547
|
_cacheId: [cacheId, i],
|
|
543
548
|
title: edit.title ?? ( localize(
|
|
544
|
-
|
|
549
|
+
2630,
|
|
545
550
|
"Paste using '{0}' extension",
|
|
546
551
|
this._extension.displayName || this._extension.name
|
|
547
552
|
)),
|
|
@@ -1106,6 +1111,7 @@ class InlineCompletionAdapter {
|
|
|
1106
1111
|
triggerKind: this.languageTriggerKindToVSCodeTriggerKind[context.triggerKind],
|
|
1107
1112
|
requestUuid: context.requestUuid,
|
|
1108
1113
|
requestIssuedDateTime: context.requestIssuedDateTime,
|
|
1114
|
+
earliestShownDateTime: context.earliestShownDateTime,
|
|
1109
1115
|
}, token);
|
|
1110
1116
|
if (!result) {
|
|
1111
1117
|
return undefined;
|
|
@@ -1123,6 +1129,7 @@ class InlineCompletionAdapter {
|
|
|
1123
1129
|
});
|
|
1124
1130
|
return {
|
|
1125
1131
|
pid,
|
|
1132
|
+
languageId: doc.languageId,
|
|
1126
1133
|
items: ( resultItems.map((item, idx) => {
|
|
1127
1134
|
let command = undefined;
|
|
1128
1135
|
if (item.command) {
|
|
@@ -1153,11 +1160,14 @@ class InlineCompletionAdapter {
|
|
|
1153
1160
|
displayLocation: (item.displayLocation && this._isAdditionsProposedApiEnabled) ? {
|
|
1154
1161
|
range: Range.from(item.displayLocation.range),
|
|
1155
1162
|
label: item.displayLocation.label,
|
|
1163
|
+
kind: item.displayLocation.kind ? InlineCompletionDisplayLocationKind.from(item.displayLocation.kind) : InlineCompletionDisplayLocationKind$1.Code,
|
|
1156
1164
|
} : undefined,
|
|
1157
1165
|
warning: (item.warning && this._isAdditionsProposedApiEnabled) ? {
|
|
1158
1166
|
message: MarkdownString.from(item.warning.message),
|
|
1159
1167
|
icon: item.warning.icon ? IconPath.fromThemeIcon(item.warning.icon) : undefined,
|
|
1160
1168
|
} : undefined,
|
|
1169
|
+
correlationId: this._isAdditionsProposedApiEnabled ? item.correlationId : undefined,
|
|
1170
|
+
suggestionId: undefined,
|
|
1161
1171
|
});
|
|
1162
1172
|
})),
|
|
1163
1173
|
commands: ( commands.map(c => {
|
|
@@ -1686,7 +1696,7 @@ class DocumentDropEditAdapter {
|
|
|
1686
1696
|
return (editsArray.map((edit, i) => ({
|
|
1687
1697
|
_cacheId: [cacheId, i],
|
|
1688
1698
|
title: edit.title ?? ( localize(
|
|
1689
|
-
|
|
1699
|
+
2631,
|
|
1690
1700
|
"Drop using '{0}' extension",
|
|
1691
1701
|
this._extension.displayName || this._extension.name
|
|
1692
1702
|
)),
|
|
@@ -1716,9 +1726,13 @@ class AdapterData {
|
|
|
1716
1726
|
this.extension = extension;
|
|
1717
1727
|
}
|
|
1718
1728
|
}
|
|
1719
|
-
class ExtHostLanguageFeatures {
|
|
1729
|
+
class ExtHostLanguageFeatures extends Disposable {
|
|
1720
1730
|
static { this._handlePool = 0; }
|
|
1731
|
+
get inlineCompletionsUnificationState() {
|
|
1732
|
+
return this._inlineCompletionsUnificationState;
|
|
1733
|
+
}
|
|
1721
1734
|
constructor(mainContext, _uriTransformer, _documents, _commands, _diagnostics, _logService, _apiDeprecation, _extensionTelemetry) {
|
|
1735
|
+
super();
|
|
1722
1736
|
this._uriTransformer = _uriTransformer;
|
|
1723
1737
|
this._documents = _documents;
|
|
1724
1738
|
this._commands = _commands;
|
|
@@ -1727,13 +1741,20 @@ class ExtHostLanguageFeatures {
|
|
|
1727
1741
|
this._apiDeprecation = _apiDeprecation;
|
|
1728
1742
|
this._extensionTelemetry = _extensionTelemetry;
|
|
1729
1743
|
this._adapter = ( new Map());
|
|
1744
|
+
this._onDidChangeInlineCompletionsUnificationState = this._register(( new Emitter()));
|
|
1745
|
+
this.onDidChangeInlineCompletionsUnificationState = this._onDidChangeInlineCompletionsUnificationState.event;
|
|
1730
1746
|
this._proxy = ( mainContext.getProxy(MainContext.MainThreadLanguageFeatures));
|
|
1747
|
+
this._inlineCompletionsUnificationState = {
|
|
1748
|
+
codeUnification: false,
|
|
1749
|
+
modelUnification: false,
|
|
1750
|
+
expAssignments: []
|
|
1751
|
+
};
|
|
1731
1752
|
}
|
|
1732
1753
|
_transformDocumentSelector(selector, extension) {
|
|
1733
1754
|
return DocumentSelector.from(selector, this._uriTransformer, extension);
|
|
1734
1755
|
}
|
|
1735
1756
|
_createDisposable(handle) {
|
|
1736
|
-
return ( new Disposable(() => {
|
|
1757
|
+
return ( new Disposable$1(() => {
|
|
1737
1758
|
this._adapter.delete(handle);
|
|
1738
1759
|
this._proxy.$unregister(handle);
|
|
1739
1760
|
}));
|
|
@@ -1802,7 +1823,7 @@ class ExtHostLanguageFeatures {
|
|
|
1802
1823
|
let result = this._createDisposable(handle);
|
|
1803
1824
|
if (eventHandle !== undefined) {
|
|
1804
1825
|
const subscription = provider.onDidChangeCodeLenses(_ => this._proxy.$emitCodeLensEvent(eventHandle));
|
|
1805
|
-
result = Disposable.from(result, subscription);
|
|
1826
|
+
result = Disposable$1.from(result, subscription);
|
|
1806
1827
|
}
|
|
1807
1828
|
return result;
|
|
1808
1829
|
}
|
|
@@ -1873,7 +1894,7 @@ class ExtHostLanguageFeatures {
|
|
|
1873
1894
|
let result = this._createDisposable(handle);
|
|
1874
1895
|
if (eventHandle !== undefined) {
|
|
1875
1896
|
const subscription = provider.onDidChangeInlineValues(_ => this._proxy.$emitInlineValuesEvent(eventHandle));
|
|
1876
|
-
result = Disposable.from(result, subscription);
|
|
1897
|
+
result = Disposable$1.from(result, subscription);
|
|
1877
1898
|
}
|
|
1878
1899
|
return result;
|
|
1879
1900
|
}
|
|
@@ -2022,7 +2043,7 @@ class ExtHostLanguageFeatures {
|
|
|
2022
2043
|
let result = this._createDisposable(handle);
|
|
2023
2044
|
if (eventHandle) {
|
|
2024
2045
|
const subscription = provider.onDidChangeSemanticTokens(_ => this._proxy.$emitDocumentSemanticTokensEvent(eventHandle));
|
|
2025
|
-
result = Disposable.from(result, subscription);
|
|
2046
|
+
result = Disposable$1.from(result, subscription);
|
|
2026
2047
|
}
|
|
2027
2048
|
return result;
|
|
2028
2049
|
}
|
|
@@ -2067,9 +2088,9 @@ class ExtHostLanguageFeatures {
|
|
|
2067
2088
|
let result = this._createDisposable(handle);
|
|
2068
2089
|
if (eventHandle !== undefined) {
|
|
2069
2090
|
const subscription = provider.onDidChange(_ => this._proxy.$emitInlineCompletionsChange(eventHandle));
|
|
2070
|
-
result = Disposable.from(result, subscription);
|
|
2091
|
+
result = Disposable$1.from(result, subscription);
|
|
2071
2092
|
}
|
|
2072
|
-
this._proxy.$registerInlineCompletionsSupport(handle, this._transformDocumentSelector(selector, extension), adapter.supportsHandleEvents, ExtensionIdentifier.toKey(extension.identifier.value), extension.version, metadata?.groupId ? ExtensionIdentifier.toKey(metadata.groupId) : undefined, metadata?.yieldTo?.map(extId => ExtensionIdentifier.toKey(extId)) || [], metadata?.displayName, metadata?.debounceDelayMs, eventHandle);
|
|
2093
|
+
this._proxy.$registerInlineCompletionsSupport(handle, this._transformDocumentSelector(selector, extension), adapter.supportsHandleEvents, ExtensionIdentifier.toKey(extension.identifier.value), extension.version, metadata?.groupId ? ExtensionIdentifier.toKey(metadata.groupId) : undefined, metadata?.yieldTo?.map(extId => ExtensionIdentifier.toKey(extId)) || [], metadata?.displayName, metadata?.debounceDelayMs, metadata?.excludes?.map(extId => ExtensionIdentifier.toKey(extId)) || [], eventHandle);
|
|
2073
2094
|
return result;
|
|
2074
2095
|
}
|
|
2075
2096
|
$provideInlineCompletions(handle, resource, position, context, token) {
|
|
@@ -2098,6 +2119,10 @@ class ExtHostLanguageFeatures {
|
|
|
2098
2119
|
$freeInlineCompletionsList(handle, pid, reason) {
|
|
2099
2120
|
this._withAdapter(handle, InlineCompletionAdapter, async (adapter) => { adapter.disposeCompletions(pid, reason); }, undefined, undefined);
|
|
2100
2121
|
}
|
|
2122
|
+
$acceptInlineCompletionsUnificationState(state) {
|
|
2123
|
+
this._inlineCompletionsUnificationState = state;
|
|
2124
|
+
this._onDidChangeInlineCompletionsUnificationState.fire();
|
|
2125
|
+
}
|
|
2101
2126
|
registerSignatureHelpProvider(extension, selector, provider, metadataOrTriggerChars) {
|
|
2102
2127
|
const metadata = Array.isArray(metadataOrTriggerChars)
|
|
2103
2128
|
? { triggerCharacters: metadataOrTriggerChars, retriggerCharacters: [] }
|
|
@@ -2125,7 +2150,7 @@ class ExtHostLanguageFeatures {
|
|
|
2125
2150
|
let result = this._createDisposable(handle);
|
|
2126
2151
|
if (eventHandle !== undefined) {
|
|
2127
2152
|
const subscription = provider.onDidChangeInlayHints(uri => this._proxy.$emitInlayHintsEvent(eventHandle));
|
|
2128
|
-
result = Disposable.from(result, subscription);
|
|
2153
|
+
result = Disposable$1.from(result, subscription);
|
|
2129
2154
|
}
|
|
2130
2155
|
return result;
|
|
2131
2156
|
}
|
|
@@ -2171,7 +2196,7 @@ class ExtHostLanguageFeatures {
|
|
|
2171
2196
|
let result = this._createDisposable(handle);
|
|
2172
2197
|
if (eventHandle !== undefined) {
|
|
2173
2198
|
const subscription = provider.onDidChangeFoldingRanges(() => this._proxy.$emitFoldingRangeEvent(eventHandle));
|
|
2174
|
-
result = Disposable.from(result, subscription);
|
|
2199
|
+
result = Disposable$1.from(result, subscription);
|
|
2175
2200
|
}
|
|
2176
2201
|
return result;
|
|
2177
2202
|
}
|
|
@@ -6,11 +6,11 @@ import { IDisposable } from "../../../base/common/lifecycle.js";
|
|
|
6
6
|
import { UriComponents } from "../../../base/common/uri.js";
|
|
7
7
|
import { ExtensionIdentifier, IExtensionDescription } from "../../../platform/extensions/common/extensions.js";
|
|
8
8
|
import { ILogService } from "../../../platform/log/common/log.service.js";
|
|
9
|
-
import { IChatMessage,
|
|
9
|
+
import { IChatMessage, IChatResponsePart, ILanguageModelChatMetadataAndIdentifier } from "../../contrib/chat/common/languageModels.js";
|
|
10
|
+
import { SerializableObjectWithBuffers } from "../../services/extensions/common/proxyIdentifier.js";
|
|
10
11
|
import { ExtHostLanguageModelsShape } from "./extHost.protocol.js";
|
|
11
12
|
import { IExtHostAuthentication } from "./extHostAuthentication.js";
|
|
12
13
|
import { IExtHostRpcService } from "./extHostRpcService.js";
|
|
13
|
-
import { SerializableObjectWithBuffers } from "../../services/extensions/common/proxyIdentifier.js";
|
|
14
14
|
export interface IExtHostLanguageModels extends ExtHostLanguageModels {
|
|
15
15
|
}
|
|
16
16
|
export declare const IExtHostLanguageModels: import("../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IExtHostLanguageModels>;
|
|
@@ -30,9 +30,9 @@ export declare class ExtHostLanguageModels implements ExtHostLanguageModelsShape
|
|
|
30
30
|
private readonly _ignoredFileProviders;
|
|
31
31
|
constructor(extHostRpc: IExtHostRpcService, _logService: ILogService, _extHostAuthentication: IExtHostAuthentication);
|
|
32
32
|
dispose(): void;
|
|
33
|
-
|
|
33
|
+
registerLanguageModelChatProvider(extension: IExtensionDescription, vendor: string, provider: vscode.LanguageModelChatProvider): IDisposable;
|
|
34
34
|
private _clearModelCache;
|
|
35
|
-
$
|
|
35
|
+
$provideLanguageModelChatInfo(vendor: string, options: {
|
|
36
36
|
silent: boolean;
|
|
37
37
|
}, token: CancellationToken): Promise<ILanguageModelChatMetadataAndIdentifier[]>;
|
|
38
38
|
$startChatRequest(modelId: string, requestId: number, from: ExtensionIdentifier, messages: SerializableObjectWithBuffers<IChatMessage[]>, options: vscode.LanguageModelChatRequestOptions, token: CancellationToken): Promise<void>;
|
|
@@ -42,7 +42,7 @@ export declare class ExtHostLanguageModels implements ExtHostLanguageModelsShape
|
|
|
42
42
|
selectLanguageModels(extension: IExtensionDescription, selector: vscode.LanguageModelChatSelector): Promise<vscode.LanguageModelChat[]>;
|
|
43
43
|
private _sendChatRequest;
|
|
44
44
|
private _convertMessages;
|
|
45
|
-
$acceptResponsePart(requestId: number, chunk:
|
|
45
|
+
$acceptResponsePart(requestId: number, chunk: SerializableObjectWithBuffers<IChatResponsePart | IChatResponsePart[]>): Promise<void>;
|
|
46
46
|
$acceptResponseDone(requestId: number, error: SerializedError | undefined): Promise<void>;
|
|
47
47
|
private _getAuthAccess;
|
|
48
48
|
private _isUsingAuth;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
3
3
|
import { AsyncIterableSource, AsyncIterableObject, RunOnceScheduler } from '../../../base/common/async.js';
|
|
4
|
+
import { VSBuffer } from '../../../base/common/buffer.js';
|
|
4
5
|
import { CancellationToken } from '../../../base/common/cancellation.js';
|
|
5
6
|
import { transformErrorForSerialization, transformErrorFromSerialization } from '../../../base/common/errors.js';
|
|
6
7
|
import { Emitter, Event } from '../../../base/common/event.js';
|
|
@@ -12,29 +13,20 @@ import { ExtensionIdentifierMap, ExtensionIdentifier, ExtensionIdentifierSet } f
|
|
|
12
13
|
import { createDecorator } from '../../../platform/instantiation/common/instantiation.js';
|
|
13
14
|
import { ILogService } from '../../../platform/log/common/log.service.js';
|
|
14
15
|
import { Progress } from '../../../platform/progress/common/progress.js';
|
|
16
|
+
import { DEFAULT_MODEL_PICKER_CATEGORY } from '../../contrib/chat/common/modelPicker/modelPickerWidget.js';
|
|
15
17
|
import { INTERNAL_AUTH_PROVIDER_PREFIX } from '../../services/authentication/common/authentication.js';
|
|
16
|
-
import { checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
18
|
+
import { isProposedApiEnabled, checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
19
|
+
import { SerializableObjectWithBuffers } from '../../services/extensions/common/proxyIdentifier.js';
|
|
17
20
|
import { MainContext } from './extHost.protocol.js';
|
|
18
21
|
import { IExtHostAuthentication } from './extHostAuthentication.js';
|
|
19
22
|
import { IExtHostRpcService } from './extHostRpcService.js';
|
|
20
23
|
import { LanguageModelChatMessage2 } from './extHostTypeConverters.js';
|
|
21
|
-
import { LanguageModelTextPart,
|
|
22
|
-
import { SerializableObjectWithBuffers } from '../../services/extensions/common/proxyIdentifier.js';
|
|
23
|
-
import { VSBuffer } from '../../../base/common/buffer.js';
|
|
24
|
-
import { DEFAULT_MODEL_PICKER_CATEGORY } from '../../contrib/chat/common/modelPicker/modelPickerWidget.js';
|
|
24
|
+
import { LanguageModelTextPart, LanguageModelThinkingPart, LanguageModelDataPart, LanguageModelToolCallPart, LanguageModelChatToolMode, LanguageModelError, LanguageModelChatMessageRole } from './extHostTypes.js';
|
|
25
25
|
|
|
26
26
|
var ExtHostLanguageModels_1;
|
|
27
27
|
const IExtHostLanguageModels = ( createDecorator('IExtHostLanguageModels'));
|
|
28
|
-
class LanguageModelResponseStream {
|
|
29
|
-
constructor(option, stream) {
|
|
30
|
-
this.option = option;
|
|
31
|
-
this.stream = ( new AsyncIterableSource());
|
|
32
|
-
this.stream = stream ?? ( new AsyncIterableSource());
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
28
|
class LanguageModelResponse {
|
|
36
29
|
constructor() {
|
|
37
|
-
this._responseStreams = ( new Map());
|
|
38
30
|
this._defaultStream = ( new AsyncIterableSource());
|
|
39
31
|
this._isDone = false;
|
|
40
32
|
const that = this;
|
|
@@ -54,65 +46,36 @@ class LanguageModelResponse {
|
|
|
54
46
|
},
|
|
55
47
|
};
|
|
56
48
|
}
|
|
57
|
-
|
|
58
|
-
if (this._responseStreams.size > 0) {
|
|
59
|
-
for (const [, value] of this._responseStreams) {
|
|
60
|
-
yield value.stream;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
yield this._defaultStream;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
handleFragment(fragments) {
|
|
49
|
+
handleResponsePart(parts) {
|
|
68
50
|
if (this._isDone) {
|
|
69
51
|
return;
|
|
70
52
|
}
|
|
71
|
-
const
|
|
72
|
-
for (const
|
|
53
|
+
const lmResponseParts = [];
|
|
54
|
+
for (const part of Iterable.wrap(parts)) {
|
|
73
55
|
let out;
|
|
74
|
-
if (
|
|
75
|
-
out = new LanguageModelTextPart(
|
|
76
|
-
}
|
|
77
|
-
else if (fragment.part.type === 'data') {
|
|
78
|
-
out = new LanguageModelTextPart('');
|
|
56
|
+
if (part.type === 'text') {
|
|
57
|
+
out = new LanguageModelTextPart(part.value, part.audience);
|
|
79
58
|
}
|
|
80
|
-
else {
|
|
81
|
-
out = new
|
|
59
|
+
else if (part.type === 'thinking') {
|
|
60
|
+
out = new LanguageModelThinkingPart(part.value, part.id, part.metadata);
|
|
82
61
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
partsByIndex.set(fragment.index, [out]);
|
|
62
|
+
else if (part.type === 'data') {
|
|
63
|
+
out = new LanguageModelDataPart(part.data.buffer, part.mimeType, part.audience);
|
|
86
64
|
}
|
|
87
65
|
else {
|
|
88
|
-
|
|
66
|
+
out = new LanguageModelToolCallPart(part.toolCallId, part.name, part.parameters);
|
|
89
67
|
}
|
|
68
|
+
lmResponseParts.push(out);
|
|
90
69
|
}
|
|
91
|
-
|
|
92
|
-
let res = this._responseStreams.get(index);
|
|
93
|
-
if (!res) {
|
|
94
|
-
if (this._responseStreams.size === 0) {
|
|
95
|
-
res = ( new LanguageModelResponseStream(index, this._defaultStream));
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
res = ( new LanguageModelResponseStream(index));
|
|
99
|
-
}
|
|
100
|
-
this._responseStreams.set(index, res);
|
|
101
|
-
}
|
|
102
|
-
res.stream.emitMany(parts);
|
|
103
|
-
}
|
|
70
|
+
this._defaultStream.emitMany(lmResponseParts);
|
|
104
71
|
}
|
|
105
72
|
reject(err) {
|
|
106
73
|
this._isDone = true;
|
|
107
|
-
|
|
108
|
-
stream.reject(err);
|
|
109
|
-
}
|
|
74
|
+
this._defaultStream.reject(err);
|
|
110
75
|
}
|
|
111
76
|
resolve() {
|
|
112
77
|
this._isDone = true;
|
|
113
|
-
|
|
114
|
-
stream.resolve();
|
|
115
|
-
}
|
|
78
|
+
this._defaultStream.resolve();
|
|
116
79
|
}
|
|
117
80
|
}
|
|
118
81
|
let ExtHostLanguageModels = class ExtHostLanguageModels {
|
|
@@ -136,12 +99,12 @@ let ExtHostLanguageModels = class ExtHostLanguageModels {
|
|
|
136
99
|
this._onDidChangeModelAccess.dispose();
|
|
137
100
|
this._onDidChangeProviders.dispose();
|
|
138
101
|
}
|
|
139
|
-
|
|
140
|
-
this._languageModelProviders.set(vendor, { extension: extension
|
|
102
|
+
registerLanguageModelChatProvider(extension, vendor, provider) {
|
|
103
|
+
this._languageModelProviders.set(vendor, { extension: extension, provider });
|
|
141
104
|
this._proxy.$registerLanguageModelProvider(vendor);
|
|
142
105
|
let providerChangeEventDisposable;
|
|
143
|
-
if (provider.
|
|
144
|
-
providerChangeEventDisposable = provider.
|
|
106
|
+
if (provider.onDidChangeLanguageModelChatInformation) {
|
|
107
|
+
providerChangeEventDisposable = provider.onDidChangeLanguageModelChatInformation(() => {
|
|
145
108
|
this._proxy.$onLMProviderChange(vendor);
|
|
146
109
|
});
|
|
147
110
|
}
|
|
@@ -159,39 +122,40 @@ let ExtHostLanguageModels = class ExtHostLanguageModels {
|
|
|
159
122
|
}
|
|
160
123
|
});
|
|
161
124
|
}
|
|
162
|
-
async $
|
|
125
|
+
async $provideLanguageModelChatInfo(vendor, options, token) {
|
|
163
126
|
const data = this._languageModelProviders.get(vendor);
|
|
164
127
|
if (!data) {
|
|
165
128
|
return [];
|
|
166
129
|
}
|
|
167
130
|
this._clearModelCache(vendor);
|
|
168
|
-
const modelInformation = (await data.provider.
|
|
131
|
+
const modelInformation = (data.provider.provideLanguageModelChatInformation ? await data.provider.provideLanguageModelChatInformation(options, token) : await data.provider.prepareLanguageModelChatInformation(options, token)) ?? [];
|
|
169
132
|
const modelMetadataAndIdentifier = ( modelInformation.map(m => {
|
|
170
133
|
let auth;
|
|
171
|
-
if (m.
|
|
134
|
+
if (m.requiresAuthorization && isProposedApiEnabled(data.extension, 'chatProvider')) {
|
|
172
135
|
auth = {
|
|
173
|
-
providerLabel: data.
|
|
174
|
-
accountLabel: typeof m.
|
|
136
|
+
providerLabel: data.extension.displayName || data.extension.name,
|
|
137
|
+
accountLabel: typeof m.requiresAuthorization === 'object' ? m.requiresAuthorization.label : undefined
|
|
175
138
|
};
|
|
176
139
|
}
|
|
177
140
|
return {
|
|
178
141
|
metadata: {
|
|
179
|
-
extension: data.extension,
|
|
142
|
+
extension: data.extension.identifier,
|
|
180
143
|
id: m.id,
|
|
181
144
|
vendor,
|
|
182
145
|
name: m.name ?? '',
|
|
183
146
|
family: m.family ?? '',
|
|
184
|
-
|
|
185
|
-
|
|
147
|
+
detail: m.detail,
|
|
148
|
+
tooltip: m.tooltip,
|
|
186
149
|
version: m.version,
|
|
187
150
|
maxInputTokens: m.maxInputTokens,
|
|
188
151
|
maxOutputTokens: m.maxOutputTokens,
|
|
189
152
|
auth,
|
|
190
153
|
isDefault: m.isDefault,
|
|
191
154
|
isUserSelectable: m.isUserSelectable,
|
|
155
|
+
statusIcon: m.statusIcon,
|
|
192
156
|
modelPickerCategory: m.category ?? DEFAULT_MODEL_PICKER_CATEGORY,
|
|
193
157
|
capabilities: m.capabilities ? {
|
|
194
|
-
vision: m.capabilities.
|
|
158
|
+
vision: m.capabilities.imageInput,
|
|
195
159
|
toolCalling: !!m.capabilities.toolCalling,
|
|
196
160
|
agentMode: !!m.capabilities.toolCalling
|
|
197
161
|
} : undefined,
|
|
@@ -219,7 +183,7 @@ let ExtHostLanguageModels = class ExtHostLanguageModels {
|
|
|
219
183
|
const queue = [];
|
|
220
184
|
const sendNow = () => {
|
|
221
185
|
if (queue.length > 0) {
|
|
222
|
-
this._proxy.$reportResponsePart(requestId, queue);
|
|
186
|
+
this._proxy.$reportResponsePart(requestId, ( new SerializableObjectWithBuffers(queue)));
|
|
223
187
|
queue.length = 0;
|
|
224
188
|
}
|
|
225
189
|
};
|
|
@@ -236,28 +200,31 @@ let ExtHostLanguageModels = class ExtHostLanguageModels {
|
|
|
236
200
|
};
|
|
237
201
|
const progress = ( new Progress(async (fragment) => {
|
|
238
202
|
if (token.isCancellationRequested) {
|
|
239
|
-
this._logService.warn(`[CHAT](${data.extension.value}) CANNOT send progress because the REQUEST IS CANCELLED`);
|
|
203
|
+
this._logService.warn(`[CHAT](${data.extension.identifier.value}) CANNOT send progress because the REQUEST IS CANCELLED`);
|
|
240
204
|
return;
|
|
241
205
|
}
|
|
242
206
|
let part;
|
|
243
|
-
if (fragment
|
|
244
|
-
part = { type: 'tool_use', name: fragment.
|
|
207
|
+
if (fragment instanceof LanguageModelToolCallPart) {
|
|
208
|
+
part = { type: 'tool_use', name: fragment.name, parameters: fragment.input, toolCallId: fragment.callId };
|
|
209
|
+
}
|
|
210
|
+
else if (fragment instanceof LanguageModelTextPart) {
|
|
211
|
+
part = { type: 'text', value: fragment.value, audience: fragment.audience };
|
|
245
212
|
}
|
|
246
|
-
else if (fragment
|
|
247
|
-
part = { type: '
|
|
213
|
+
else if (fragment instanceof LanguageModelDataPart) {
|
|
214
|
+
part = { type: 'data', mimeType: fragment.mimeType, data: VSBuffer.wrap(fragment.data), audience: fragment.audience };
|
|
248
215
|
}
|
|
249
|
-
else if (fragment
|
|
250
|
-
part = { type: '
|
|
216
|
+
else if (fragment instanceof LanguageModelThinkingPart) {
|
|
217
|
+
part = { type: 'thinking', value: fragment.value, id: fragment.id, metadata: fragment.metadata };
|
|
251
218
|
}
|
|
252
219
|
if (!part) {
|
|
253
|
-
this._logService.warn(`[CHAT](${data.extension.value}) UNKNOWN part ${JSON.stringify(fragment)}`);
|
|
220
|
+
this._logService.warn(`[CHAT](${data.extension.identifier.value}) UNKNOWN part ${JSON.stringify(fragment)}`);
|
|
254
221
|
return;
|
|
255
222
|
}
|
|
256
|
-
sendSoon(
|
|
223
|
+
sendSoon(part);
|
|
257
224
|
}));
|
|
258
225
|
let value;
|
|
259
226
|
try {
|
|
260
|
-
value = data.provider.provideLanguageModelChatResponse(knownModel.info, ( messages.value.map(LanguageModelChatMessage2.to)), { ...options, modelOptions: options.modelOptions ?? {},
|
|
227
|
+
value = data.provider.provideLanguageModelChatResponse(knownModel.info, ( messages.value.map(LanguageModelChatMessage2.to)), { ...options, modelOptions: options.modelOptions ?? {}, requestInitiator: ExtensionIdentifier.toKey(from), toolMode: options.toolMode ?? LanguageModelChatToolMode.Auto }, progress, token);
|
|
261
228
|
}
|
|
262
229
|
catch (err) {
|
|
263
230
|
throw err;
|
|
@@ -338,8 +305,9 @@ let ExtHostLanguageModels = class ExtHostLanguageModels {
|
|
|
338
305
|
async selectLanguageModels(extension, selector) {
|
|
339
306
|
const models = await this._proxy.$selectChatModels({ ...selector, extension: extension.identifier });
|
|
340
307
|
const result = [];
|
|
341
|
-
|
|
342
|
-
|
|
308
|
+
const modelPromises = ( models.map(identifier => this.getLanguageModelByIdentifier(extension, identifier)));
|
|
309
|
+
const modelResults = await Promise.all(modelPromises);
|
|
310
|
+
for (const model of modelResults) {
|
|
343
311
|
if (model) {
|
|
344
312
|
result.push(model);
|
|
345
313
|
}
|
|
@@ -384,7 +352,7 @@ let ExtHostLanguageModels = class ExtHostLanguageModels {
|
|
|
384
352
|
async $acceptResponsePart(requestId, chunk) {
|
|
385
353
|
const data = this._pendingRequest.get(requestId);
|
|
386
354
|
if (data) {
|
|
387
|
-
data.res.
|
|
355
|
+
data.res.handleResponsePart(chunk.value);
|
|
388
356
|
}
|
|
389
357
|
}
|
|
390
358
|
async $acceptResponseDone(requestId, error) {
|
|
@@ -412,7 +380,7 @@ let ExtHostLanguageModels = class ExtHostLanguageModels {
|
|
|
412
380
|
}
|
|
413
381
|
try {
|
|
414
382
|
const detail = justification
|
|
415
|
-
? ( localize(
|
|
383
|
+
? ( localize(2632, "Justification: {1}", to.displayName, justification))
|
|
416
384
|
: undefined;
|
|
417
385
|
await this._extHostAuthentication.getSession(from, providerId, [], { forceNewSession: { detail } });
|
|
418
386
|
this.$updateModelAccesslist([{ from: from.identifier, to: to.identifier, enabled: true }]);
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
import { MainContext } from './extHost.protocol.js';
|
|
3
3
|
import { Position, TokenType, Range as Range$1, DocumentSelector } from './extHostTypeConverters.js';
|
|
4
|
-
import {
|
|
4
|
+
import { StandardTokenType, LanguageStatusSeverity } from './extHostTypes.js';
|
|
5
5
|
import Severity$1 from '../../../base/common/severity.js';
|
|
6
6
|
import { disposableTimeout } from '../../../base/common/async.js';
|
|
7
7
|
import { DisposableStore } from '../../../base/common/lifecycle.js';
|
|
8
8
|
import { checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
9
|
+
import { Range } from './extHostTypes/range.js';
|
|
9
10
|
|
|
10
11
|
class ExtHostLanguages {
|
|
11
12
|
constructor(mainContext, _documents, _commands, _uriTransformer) {
|
|
@@ -8,7 +8,7 @@ import { IExtHostInitDataService } from './extHostInitDataService.js';
|
|
|
8
8
|
let ExtHostLogService = class ExtHostLogService extends LogService {
|
|
9
9
|
constructor(isWorker, loggerService, initData) {
|
|
10
10
|
const id = initData.remote.isRemote ? 'remoteexthost' : isWorker ? 'workerexthost' : 'exthost';
|
|
11
|
-
const name = initData.remote.isRemote ? ( localize(
|
|
11
|
+
const name = initData.remote.isRemote ? ( localize(2633, "Extension Host (Remote)")) : isWorker ? ( localize(2634, "Extension Host (Worker)")) : ( localize(2635, "Extension Host"));
|
|
12
12
|
super(loggerService.createLogger(id, { name }));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
@@ -240,9 +240,12 @@ class McpHTTPHandle extends Disposable {
|
|
|
240
240
|
let resourceMetadataChallenge;
|
|
241
241
|
if (( originalResponse.headers.has('WWW-Authenticate'))) {
|
|
242
242
|
const authHeader = originalResponse.headers.get('WWW-Authenticate');
|
|
243
|
-
const
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
const challenges = parseWWWAuthenticateHeader(authHeader);
|
|
244
|
+
for (const challenge of challenges) {
|
|
245
|
+
if (challenge.scheme === 'Bearer' && challenge.params['resource_metadata']) {
|
|
246
|
+
resourceMetadataChallenge = challenge.params['resource_metadata'];
|
|
247
|
+
break;
|
|
248
|
+
}
|
|
246
249
|
}
|
|
247
250
|
}
|
|
248
251
|
let serverMetadataUrl;
|
|
@@ -282,7 +285,7 @@ class McpHTTPHandle extends Disposable {
|
|
|
282
285
|
const defaultMetadata = getDefaultMetadataForUrl(( new URL(baseUrl)));
|
|
283
286
|
defaultMetadata.scopes_supported = scopesSupported ?? defaultMetadata.scopes_supported ?? [];
|
|
284
287
|
this._authMetadata = {
|
|
285
|
-
authorizationServer: ( URI.parse(
|
|
288
|
+
authorizationServer: ( URI.parse(baseUrl)),
|
|
286
289
|
serverMetadata: defaultMetadata,
|
|
287
290
|
resourceMetadata: resource
|
|
288
291
|
};
|
|
@@ -314,7 +317,9 @@ class McpHTTPHandle extends Disposable {
|
|
|
314
317
|
return body;
|
|
315
318
|
}
|
|
316
319
|
else {
|
|
317
|
-
throw ( new Error(
|
|
320
|
+
throw ( new Error(
|
|
321
|
+
`Invalid resource metadata. Expected to follow shape of https://datatracker.ietf.org/doc/html/rfc9728#name-protected-resource-metadata (Hints: is scopes_supported an array? Is resource a string?). Current payload: ${JSON.stringify(body)}`
|
|
322
|
+
));
|
|
318
323
|
}
|
|
319
324
|
}
|
|
320
325
|
async _getAuthorizationServerMetadata(authorizationServer, addtionalHeaders) {
|
|
@@ -365,37 +370,35 @@ class McpHTTPHandle extends Disposable {
|
|
|
365
370
|
if (res.status === 202) {
|
|
366
371
|
return;
|
|
367
372
|
}
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
else if (event.type === 'endpoint') {
|
|
375
|
-
this._log(LogLevel.Warning, `Received SSE endpoint from a POST to ${this._launch.uri}, will fall back to legacy SSE`);
|
|
376
|
-
this._sseFallbackWithMessage(message);
|
|
377
|
-
throw ( new CancellationError());
|
|
378
|
-
}
|
|
379
|
-
}));
|
|
380
|
-
try {
|
|
381
|
-
await this._doSSE(parser, res);
|
|
373
|
+
const contentType = res.headers.get('Content-Type')?.toLowerCase() || '';
|
|
374
|
+
if (contentType.startsWith('text/event-stream')) {
|
|
375
|
+
const parser = ( new SSEParser(event => {
|
|
376
|
+
if (event.type === 'message') {
|
|
377
|
+
this._proxy.$onDidReceiveMessage(this._id, event.data);
|
|
382
378
|
}
|
|
383
|
-
|
|
384
|
-
this._log(LogLevel.Warning, `
|
|
379
|
+
else if (event.type === 'endpoint') {
|
|
380
|
+
this._log(LogLevel.Warning, `Received SSE endpoint from a POST to ${this._launch.uri}, will fall back to legacy SSE`);
|
|
381
|
+
this._sseFallbackWithMessage(message);
|
|
382
|
+
throw ( new CancellationError());
|
|
385
383
|
}
|
|
386
|
-
|
|
384
|
+
}));
|
|
385
|
+
try {
|
|
386
|
+
await this._doSSE(parser, res);
|
|
387
387
|
}
|
|
388
|
-
|
|
389
|
-
this.
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
388
|
+
catch (err) {
|
|
389
|
+
this._log(LogLevel.Warning, `Error reading SSE stream: ${String(err)}`);
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
else if (contentType.startsWith('application/json')) {
|
|
393
|
+
this._proxy.$onDidReceiveMessage(this._id, await res.text());
|
|
394
|
+
}
|
|
395
|
+
else {
|
|
396
|
+
const responseBody = await res.text();
|
|
397
|
+
if (isJSON(responseBody)) {
|
|
398
|
+
this._proxy.$onDidReceiveMessage(this._id, responseBody);
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
this._log(LogLevel.Warning, `Unexpected ${res.status} response for request: ${responseBody}`);
|
|
399
402
|
}
|
|
400
403
|
}
|
|
401
404
|
}
|
|
@@ -17,7 +17,7 @@ import { IExtHostConsumerFileSystem } from "./extHostFileSystemConsumer.js";
|
|
|
17
17
|
import { ITextQuery } from "../../services/search/common/search.js";
|
|
18
18
|
import { IExtHostSearch } from "./extHostSearch.js";
|
|
19
19
|
import { IRawClosedNotebookFileMatch } from "../../contrib/search/common/searchNotebookHelpers.js";
|
|
20
|
-
import { NotebookPriorityInfo } from "@codingame/monaco-vscode-
|
|
20
|
+
import { NotebookPriorityInfo } from "@codingame/monaco-vscode-4dda7789-5a25-5e8b-b2de-c2f11b1b96e5-common/vscode/vs/workbench/contrib/search/common/search";
|
|
21
21
|
import { ILogService } from "../../../platform/log/common/log.service.js";
|
|
22
22
|
export declare class ExtHostNotebookController implements ExtHostNotebookShape {
|
|
23
23
|
private _textDocumentsAndEditors;
|
|
@@ -67,7 +67,7 @@ export declare class ExtHostNotebookController implements ExtHostNotebookShape {
|
|
|
67
67
|
registerNotebookSerializer(extension: IExtensionDescription, viewType: string, serializer: vscode.NotebookSerializer, options?: vscode.NotebookDocumentContentOptions, registration?: vscode.NotebookRegistrationData): vscode.Disposable;
|
|
68
68
|
$dataToNotebook(handle: number, bytes: VSBuffer, token: CancellationToken): Promise<SerializableObjectWithBuffers<NotebookDataDto>>;
|
|
69
69
|
$notebookToData(handle: number, data: SerializableObjectWithBuffers<NotebookDataDto>, token: CancellationToken): Promise<VSBuffer>;
|
|
70
|
-
$saveNotebook(handle: number, uriComponents: UriComponents, versionId: number, options: files.IWriteFileOptions, token: CancellationToken): Promise<INotebookPartialFileStatsWithMetadata>;
|
|
70
|
+
$saveNotebook(handle: number, uriComponents: UriComponents, versionId: number, options: files.IWriteFileOptions, token: CancellationToken): Promise<INotebookPartialFileStatsWithMetadata | files.FileOperationError>;
|
|
71
71
|
/**
|
|
72
72
|
* Search for query in all notebooks that can be deserialized by the serializer fetched by `handle`.
|
|
73
73
|
*
|
|
@@ -90,3 +90,6 @@ export declare class ExtHostNotebookController implements ExtHostNotebookShape {
|
|
|
90
90
|
private static _registerApiCommands;
|
|
91
91
|
private trace;
|
|
92
92
|
}
|
|
93
|
+
export declare class NotebookSaveError extends Error {
|
|
94
|
+
constructor(message: string);
|
|
95
|
+
}
|