@codingame/monaco-vscode-api 21.6.0 → 22.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 +68 -78
- package/package.json +8 -8
- package/services.d.ts +4 -4
- package/services.js +5 -4
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.js +6 -3
- package/vscode/src/vs/base/browser/domSanitize.d.ts +8 -0
- package/vscode/src/vs/base/browser/domSanitize.js +49 -27
- package/vscode/src/vs/base/browser/domStylesheets.js +5 -1
- package/vscode/src/vs/base/browser/markdownRenderer.js +7 -5
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +2 -2
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +1 -1
- package/vscode/src/vs/base/browser/ui/menu/menu.js +1 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.d.ts +1 -1
- package/vscode/src/vs/base/common/async.js +6 -0
- package/vscode/src/vs/base/common/cancellation.d.ts +21 -0
- package/vscode/src/vs/base/common/cancellation.js +42 -1
- 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/decorators/cancelPreviousCalls.d.ts +84 -0
- package/vscode/src/vs/base/common/decorators.d.ts +1 -1
- package/vscode/src/vs/base/common/htmlContent.d.ts +2 -0
- package/vscode/src/vs/base/common/htmlContent.js +9 -6
- package/vscode/src/vs/base/common/lifecycle.js +21 -7
- package/vscode/src/vs/base/common/numbers.d.ts +0 -45
- package/vscode/src/vs/base/common/oauth.d.ts +33 -0
- package/vscode/src/vs/base/common/oauth.js +79 -3
- package/vscode/src/vs/base/common/observableInternal/base.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/index.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/logging/debugGetDependencyGraph.js +98 -0
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/observables/baseObservable.js +8 -1
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/observables/derivedImpl.js +10 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.d.ts +4 -0
- package/vscode/src/vs/base/common/observableInternal/observables/observableFromEvent.js +3 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.d.ts +1 -0
- package/vscode/src/vs/base/common/observableInternal/reactions/autorunImpl.js +9 -0
- package/vscode/src/vs/base/common/product.d.ts +7 -1
- package/vscode/src/vs/base/common/strings.d.ts +0 -1
- package/vscode/src/vs/base/common/strings.js +9 -4
- package/vscode/src/vs/base/common/uriIpc.js +24 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentRich.js +26 -16
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderContentSimple.js +3 -3
- package/vscode/src/vs/editor/browser/services/hoverService/hover.css +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.d.ts +3 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/diffEditorViewZones.js +8 -8
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorViewModel.js +4 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.d.ts +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditorWidget.js +26 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/gutterFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +1 -1
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +93 -85
- package/vscode/src/vs/editor/common/config/editorOptions.js +386 -351
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +71 -71
- package/vscode/src/vs/editor/common/core/ranges/lineRange.d.ts +3 -3
- package/vscode/src/vs/editor/common/editorContextKeys.js +46 -46
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +5 -1
- package/vscode/src/vs/editor/common/languages.js +56 -56
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +86 -85
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +86 -85
- package/vscode/src/vs/editor/common/standaloneStrings.js +47 -47
- package/vscode/src/vs/editor/common/textModelEditSource.d.ts +1 -0
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/monospaceLineBreaksComputer.js +9 -7
- package/vscode/src/vs/editor/common/viewModel/screenReaderSimpleModel.d.ts +1 -0
- 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 +17 -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/codelensController.js +2 -2
- 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.js +1 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/standaloneColorPicker/standaloneColorPickerActions.js +7 -7
- package/vscode/src/vs/editor/contrib/comment/browser/comment.js +6 -6
- package/vscode/src/vs/editor/contrib/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/floatingMenu/browser/floatingMenu.contribution.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.contribution.js +8 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +44 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.d.ts +10 -0
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +81 -0
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +21 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/format.js +3 -0
- 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/clickLinkGesture.d.ts +4 -1
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/link/clickLinkGesture.js +20 -11
- 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/contentHoverController.js +2 -1
- package/vscode/src/vs/editor/contrib/hover/browser/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +24 -24
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +9 -9
- package/vscode/src/vs/editor/contrib/hover/browser/markerHoverParticipant.js +5 -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/inlayHints.js +2 -7
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +8 -8
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +19 -19
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +12 -12
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +18 -13
- 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 +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +14 -6
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +7 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +154 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +3 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +7 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +18 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.d.ts +45 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/telemetry.js +7 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +16 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +5 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsModel.js +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +24 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +13 -4
- 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.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +36 -35
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +11 -11
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/middleScroll/browser/middleScrollController.js +3 -3
- 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 +6 -6
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.d.ts +3 -0
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +13 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +12 -19
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollProvider.js +10 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +8 -8
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +10 -10
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +18 -18
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetRenderer.js +2 -2
- package/vscode/src/vs/editor/contrib/suggest/browser/wordContextKey.js +1 -1
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +26 -26
- 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/quickInput/standaloneQuickInputService.js +1 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +0 -1
- package/vscode/src/vs/editor/standalone/browser/standaloneThemeService.js +1 -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 +9 -6
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +13 -14
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +7 -7
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +5 -5
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +1 -1
- package/vscode/src/vs/platform/actions/browser/toolbar.js +5 -5
- package/vscode/src/vs/platform/actions/common/actions.d.ts +2 -0
- package/vscode/src/vs/platform/actions/common/actions.js +2 -0
- package/vscode/src/vs/platform/actions/common/menuResetAction.js +1 -1
- package/vscode/src/vs/platform/actions/common/menuService.js +2 -2
- package/vscode/src/vs/platform/assignment/common/assignment.d.ts +6 -1
- package/vscode/src/vs/platform/clipboard/browser/clipboardService.js +2 -2
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +10 -10
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.d.ts +2 -0
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +32 -3
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +11 -11
- package/vscode/src/vs/platform/contextkey/common/contextkeys.d.ts +0 -1
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +10 -11
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.d.ts +32 -0
- package/vscode/src/vs/platform/dataChannel/browser/forwardingTelemetryService.js +86 -0
- 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 +1 -0
- package/vscode/src/vs/platform/environment/common/environment.service.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +19 -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/extensionManagement/common/implicitActivationEvents.d.ts +1 -3
- package/vscode/src/vs/platform/extensionManagement/common/implicitActivationEvents.js +1 -1
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +20 -20
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +2 -1
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +4 -3
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +4 -3
- 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/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.js +6 -6
- 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 +10 -2
- package/vscode/src/vs/platform/mcp/common/mcpGalleryManifest.js +10 -2
- package/vscode/src/vs/platform/mcp/common/mcpManagement.service.d.ts +3 -3
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/quickInput.d.ts +1 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +23 -15
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +47 -13
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +10 -61
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.d.ts +6 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +10 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeRenderer.js +10 -5
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +4 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +10 -1
- package/vscode/src/vs/platform/request/common/request.js +34 -18
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +1 -1
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +2 -3
- package/vscode/src/vs/platform/terminal/common/terminal.js +6 -7
- 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/workspace/common/workspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +11 -10
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +25 -24
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.d.ts +4 -4
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +10 -18
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +5 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +16 -4
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +1 -3
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +9 -5
- package/vscode/src/vs/workbench/api/common/extHostCustomEditors.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDebugService.js +0 -3
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +9 -4
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +7 -2
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +97 -9
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +66 -62
- package/vscode/src/vs/workbench/api/common/extHostNotebook.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostSCM.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +22 -0
- package/vscode/src/vs/workbench/api/common/extHostSecrets.d.ts +0 -1
- package/vscode/src/vs/workbench/api/common/extHostSecrets.js +0 -3
- 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 +2 -2
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +8 -8
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +53 -3
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.d.ts +2 -0
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +5 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +6 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +60 -9
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +18 -14
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +7 -7
- package/vscode/src/vs/workbench/api/common/extHostWebviewPanels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +1 -1
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +262 -31
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +5 -7
- package/vscode/src/vs/workbench/browser/contextkeys.js +15 -43
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.js +73 -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.js +4 -4
- package/vscode/src/vs/workbench/common/theme.js +167 -167
- package/vscode/src/vs/workbench/common/views.js +4 -4
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +175 -158
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextPickService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +15 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatContextKeys.js +61 -66
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.service.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.d.ts +24 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatService.service.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.d.ts +28 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatVariableEntries.js +35 -6
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +16 -6
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +11 -8
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelToolsService.service.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +50 -42
- package/vscode/src/vs/workbench/contrib/chat/common/modelPicker/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +23 -8
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/common/tools/manageTodoListTool.js +29 -29
- package/vscode/src/vs/workbench/contrib/chat/common/tools/tools.js +4 -3
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorAccessibilityHelp.js +5 -5
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/diffEditorHelper.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +7 -6
- 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/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/dropOrPasteInto/browser/commands.js +2 -2
- package/vscode/src/vs/workbench/contrib/dropOrPasteInto/browser/configurationSchema.js +4 -4
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/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/mcpRegistryTypes.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +16 -5
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +217 -60
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffSourceResolverService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/scm/common/history.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetCompletionProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsFile.js +3 -3
- package/vscode/src/vs/workbench/contrib/snippets/browser/snippetsService.js +9 -9
- package/vscode/src/vs/workbench/contrib/speech/common/speechService.js +29 -29
- package/vscode/src/vs/workbench/contrib/tasks/common/constants.js +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +7 -7
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +16 -3
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +18 -6
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +42 -8
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.js +2 -1
- package/vscode/src/vs/workbench/contrib/testing/common/constants.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +12 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/services/accounts/common/defaultAccount.js +2 -2
- package/vscode/src/vs/workbench/services/activity/common/activity.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/common/authentication.d.ts +4 -4
- package/vscode/src/vs/workbench/services/authentication/common/authentication.js +2 -2
- package/vscode/src/vs/workbench/services/authentication/common/authentication.service.d.ts +6 -6
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +286 -0
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +861 -0
- package/vscode/src/vs/workbench/{contrib → services}/chat/common/chatEntitlementService.service.d.ts +8 -2
- 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/extensions/common/extensionsRegistry.js +87 -87
- package/vscode/src/vs/workbench/services/language/common/languageService.js +30 -30
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/preferences/common/preferences.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/textfile/common/encoding.js +1 -1
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +22 -22
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode-dts/vscode.d.ts +92 -47
- package/vscode-dts/vscode.proposed.authenticationChallenges.d.ts +7 -80
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +14 -1
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +12 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +19 -0
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +19 -11
- package/vscode-dts/vscode.proposed.d.ts +1 -1
- package/vscode-dts/{vscode.proposed.secretStorageKeys.d.ts → vscode.proposed.devDeviceId.d.ts} +3 -4
- package/vscode-dts/vscode.proposed.languageModelCapabilities.d.ts +5 -0
- package/vscode-dts/vscode.proposed.scmHistoryProvider.d.ts +2 -0
- package/vscode-dts/vscode.proposed.terminalCompletionProvider.d.ts +70 -16
- package/vscode/src/vs/workbench/contrib/chat/common/chatLayoutService.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/frontMatterCodec/tokens/index.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/codecs/base/simpleCodec/tokens/tokens.d.ts +0 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/types.d.ts +0 -55
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/types.d.ts +0 -91
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +0 -125
- /package/vscode/src/vs/workbench/{contrib → services}/chat/common/chatEntitlementService.service.js +0 -0
|
@@ -250,6 +250,7 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
250
250
|
extHostLogService
|
|
251
251
|
)));
|
|
252
252
|
const extHostLanguageModelTools = rpcProtocol.set(ExtHostContext.ExtHostLanguageModelTools, ( new ExtHostLanguageModelTools(rpcProtocol, extHostLanguageModels)));
|
|
253
|
+
const extHostChatSessions = rpcProtocol.set(ExtHostContext.ExtHostChatSessions, ( new ExtHostChatSessions(extHostCommands, extHostLanguageModels, rpcProtocol, extHostLogService)));
|
|
253
254
|
const extHostChatAgents2 = rpcProtocol.set(ExtHostContext.ExtHostChatAgents2, ( new ExtHostChatAgents2(
|
|
254
255
|
rpcProtocol,
|
|
255
256
|
extHostLogService,
|
|
@@ -265,7 +266,6 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
265
266
|
const extHostStatusBar = rpcProtocol.set(ExtHostContext.ExtHostStatusBar, ( new ExtHostStatusBar(rpcProtocol, extHostCommands.converter)));
|
|
266
267
|
const extHostSpeech = rpcProtocol.set(ExtHostContext.ExtHostSpeech, ( new ExtHostSpeech(rpcProtocol)));
|
|
267
268
|
const extHostEmbeddings = rpcProtocol.set(ExtHostContext.ExtHostEmbeddings, ( new ExtHostEmbeddings(rpcProtocol)));
|
|
268
|
-
const extHostChatSessions = rpcProtocol.set(ExtHostContext.ExtHostChatSessions, ( new ExtHostChatSessions(extHostCommands, extHostLanguageModels, rpcProtocol, extHostLogService)));
|
|
269
269
|
rpcProtocol.set(ExtHostContext.ExtHostMcp, accessor.get(IExtHostMpcService));
|
|
270
270
|
const expected = ( Object.values(ExtHostContext));
|
|
271
271
|
rpcProtocol.assertRegistered(expected);
|
|
@@ -319,9 +319,6 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
319
319
|
})();
|
|
320
320
|
const authentication = {
|
|
321
321
|
getSession(providerId, scopesOrChallenge, options) {
|
|
322
|
-
if (!Array.isArray(scopesOrChallenge)) {
|
|
323
|
-
checkProposedApiEnabled(extension, 'authenticationChallenges');
|
|
324
|
-
}
|
|
325
322
|
if ((typeof options?.forceNewSession === 'object' && options.forceNewSession.learnMore) ||
|
|
326
323
|
(typeof options?.createIfNone === 'object' && options.createIfNone.learnMore)) {
|
|
327
324
|
checkProposedApiEnabled(extension, 'authLearnMore');
|
|
@@ -391,6 +388,10 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
391
388
|
};
|
|
392
389
|
const env = {
|
|
393
390
|
get machineId() { return initData.telemetryInfo.machineId; },
|
|
391
|
+
get devDeviceId() {
|
|
392
|
+
checkProposedApiEnabled(extension, 'devDeviceId');
|
|
393
|
+
return initData.telemetryInfo.devDeviceId;
|
|
394
|
+
},
|
|
394
395
|
get sessionId() { return initData.telemetryInfo.sessionId; },
|
|
395
396
|
get language() { return initData.environment.appLanguage; },
|
|
396
397
|
get appName() { return initData.environment.appName; },
|
|
@@ -425,9 +426,9 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
425
426
|
ExtHostTelemetryLogger.validateSender(sender);
|
|
426
427
|
return extHostTelemetry.instantiateLogger(extension, sender, options);
|
|
427
428
|
},
|
|
428
|
-
openExternal(uri, options) {
|
|
429
|
+
async openExternal(uri, options) {
|
|
429
430
|
return extHostWindow.openUri(uri, {
|
|
430
|
-
allowTunneling:
|
|
431
|
+
allowTunneling: initData.remote.isRemote ?? (initData.remote.authority ? await extHostTunnelService.hasTunnelProvider() : false),
|
|
431
432
|
allowContributedOpeners: options?.allowContributedOpeners,
|
|
432
433
|
});
|
|
433
434
|
},
|
|
@@ -873,9 +874,9 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
873
874
|
registerTerminalProfileProvider(id, provider) {
|
|
874
875
|
return extHostTerminalService.registerProfileProvider(extension, id, provider);
|
|
875
876
|
},
|
|
876
|
-
registerTerminalCompletionProvider(provider, ...triggerCharacters) {
|
|
877
|
+
registerTerminalCompletionProvider(id, provider, ...triggerCharacters) {
|
|
877
878
|
checkProposedApiEnabled(extension, 'terminalCompletionProvider');
|
|
878
|
-
return extHostTerminalService.registerTerminalCompletionProvider(extension, provider, ...triggerCharacters);
|
|
879
|
+
return extHostTerminalService.registerTerminalCompletionProvider(extension, id, provider, ...triggerCharacters);
|
|
879
880
|
},
|
|
880
881
|
registerTerminalQuickFixProvider(id, provider) {
|
|
881
882
|
checkProposedApiEnabled(extension, 'terminalQuickFixProvider');
|
|
@@ -1487,9 +1488,9 @@ function createApiFactoryAndRegisterActors(accessor) {
|
|
|
1487
1488
|
checkProposedApiEnabled(extension, 'chatSessionsProvider');
|
|
1488
1489
|
return extHostChatSessions.registerChatSessionItemProvider(extension, chatSessionType, provider);
|
|
1489
1490
|
},
|
|
1490
|
-
registerChatSessionContentProvider(chatSessionType, provider, capabilities) {
|
|
1491
|
+
registerChatSessionContentProvider(chatSessionType, provider, chatParticipant, capabilities) {
|
|
1491
1492
|
checkProposedApiEnabled(extension, 'chatSessionsProvider');
|
|
1492
|
-
return extHostChatSessions.registerChatSessionContentProvider(extension, chatSessionType, provider, capabilities);
|
|
1493
|
+
return extHostChatSessions.registerChatSessionContentProvider(extension, chatSessionType, chatParticipant, provider, capabilities);
|
|
1493
1494
|
},
|
|
1494
1495
|
registerChatOutputRenderer: (viewType, renderer) => {
|
|
1495
1496
|
checkProposedApiEnabled(extension, 'chatOutputRenderer');
|
|
@@ -67,7 +67,7 @@ import { ICellExecutionComplete, ICellExecutionStateUpdate } from "@codingame/mo
|
|
|
67
67
|
import { ICellRange } from "@codingame/monaco-vscode-670aae94-7f88-54d7-90ea-6fcbef423557-common/vscode/vs/workbench/contrib/notebook/common/notebookRange";
|
|
68
68
|
import { ISCMHistoryOptions } from "../../contrib/scm/common/history.js";
|
|
69
69
|
import { InputValidationType } from "@codingame/monaco-vscode-ff9fa663-eae3-5274-8573-c2b918871e4b-common/vscode/vs/workbench/contrib/scm/common/scm";
|
|
70
|
-
import { IWorkspaceSymbol, NotebookPriorityInfo } from "@codingame/monaco-vscode-
|
|
70
|
+
import { IWorkspaceSymbol, NotebookPriorityInfo } from "@codingame/monaco-vscode-5084de40-f866-5cb5-9d9b-33a10f6f235d-common/vscode/vs/workbench/contrib/search/common/search";
|
|
71
71
|
import { IRawClosedNotebookFileMatch } from "../../contrib/search/common/searchNotebookHelpers.js";
|
|
72
72
|
import { IKeywordRecognitionEvent, ISpeechProviderMetadata, ISpeechToTextEvent, ITextToSpeechEvent } from "../../contrib/speech/common/speechService.js";
|
|
73
73
|
import { CoverageDetails, ExtensionRunTestsRequest, ICallProfileRunHandler, IFileCoverage, ISerializedTestResults, IStartControllerTests, ITestItem, ITestMessage, ITestRunProfile, ITestRunTask, ResolvedTestRunRequest, TestControllerCapability, TestMessageFollowupRequest, TestMessageFollowupResponse, TestResultState, TestsDiffOp } from "../../contrib/testing/common/testTypes.js";
|
|
@@ -75,8 +75,8 @@ import { Timeline, TimelineChangeEvent, TimelineOptions, TimelineProviderDescrip
|
|
|
75
75
|
import { TypeHierarchyItem } from "@codingame/monaco-vscode-7f39b6f1-3542-5430-8760-0f404d7a7cee-common/vscode/vs/workbench/contrib/typeHierarchy/common/typeHierarchy";
|
|
76
76
|
import { RelatedInformationResult, RelatedInformationType } from "@codingame/monaco-vscode-quickaccess-service-override/vscode/vs/workbench/services/aiRelatedInformation/common/aiRelatedInformation";
|
|
77
77
|
import { AiSettingsSearchProviderOptions, AiSettingsSearchResult } from "../../services/aiSettingsSearch/common/aiSettingsSearch.js";
|
|
78
|
-
import { AuthenticationSession, AuthenticationSessionAccount, AuthenticationSessionsChangeEvent, IAuthenticationCreateSessionOptions, IAuthenticationGetSessionsOptions } from "../../services/authentication/common/authentication.js";
|
|
79
|
-
import { EditorGroupColumn } from "@codingame/monaco-vscode-
|
|
78
|
+
import { AuthenticationSession, AuthenticationSessionAccount, AuthenticationSessionsChangeEvent, IAuthenticationConstraint, IAuthenticationCreateSessionOptions, IAuthenticationGetSessionsOptions, IAuthenticationWwwAuthenticateRequest } from "../../services/authentication/common/authentication.js";
|
|
79
|
+
import { EditorGroupColumn } from "@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common/vscode/vs/workbench/services/editor/common/editorGroupColumn";
|
|
80
80
|
import { IExtensionDescriptionDelta, IStaticWorkspaceData } from "../../services/extensions/common/extensionHostProtocol.js";
|
|
81
81
|
import { IResolveAuthorityResult } from "../../services/extensions/common/extensionHostProxy.js";
|
|
82
82
|
import { ActivationKind, ExtensionActivationReason, MissingExtensionDependency } from "../../services/extensions/common/extensions.js";
|
|
@@ -173,24 +173,12 @@ export interface AuthenticationGetSessionOptions {
|
|
|
173
173
|
silent?: boolean;
|
|
174
174
|
account?: AuthenticationSessionAccount;
|
|
175
175
|
}
|
|
176
|
-
export interface AuthenticationChallenge {
|
|
177
|
-
scheme: string;
|
|
178
|
-
params: Record<string, string>;
|
|
179
|
-
}
|
|
180
|
-
export interface AuthenticationWWWAuthenticateRequest {
|
|
181
|
-
wwwAuthenticate: string;
|
|
182
|
-
scopes?: readonly string[];
|
|
183
|
-
}
|
|
184
|
-
export interface AuthenticationConstraint {
|
|
185
|
-
challenges: readonly AuthenticationChallenge[];
|
|
186
|
-
scopes?: readonly string[];
|
|
187
|
-
}
|
|
188
176
|
export interface MainThreadAuthenticationShape extends IDisposable {
|
|
189
177
|
$registerAuthenticationProvider(id: string, label: string, supportsMultipleAccounts: boolean, supportedAuthorizationServers?: UriComponents[], supportsChallenges?: boolean): Promise<void>;
|
|
190
178
|
$unregisterAuthenticationProvider(id: string): Promise<void>;
|
|
191
179
|
$ensureProvider(id: string): Promise<void>;
|
|
192
180
|
$sendDidChangeSessions(providerId: string, event: AuthenticationSessionsChangeEvent): Promise<void>;
|
|
193
|
-
$getSession(providerId: string, scopeListOrRequest: ReadonlyArray<string> |
|
|
181
|
+
$getSession(providerId: string, scopeListOrRequest: ReadonlyArray<string> | IAuthenticationWwwAuthenticateRequest, extensionId: string, extensionName: string, options: AuthenticationGetSessionOptions): Promise<AuthenticationSession | undefined>;
|
|
194
182
|
$getAccounts(providerId: string): Promise<ReadonlyArray<AuthenticationSessionAccount>>;
|
|
195
183
|
$removeSession(providerId: string, sessionId: string): Promise<void>;
|
|
196
184
|
$waitForUriHandler(expectedUri: UriComponents): Promise<UriComponents>;
|
|
@@ -1236,6 +1224,11 @@ export type IChatAgentHistoryEntryDto = {
|
|
|
1236
1224
|
export interface ExtHostChatAgentsShape2 {
|
|
1237
1225
|
$invokeAgent(handle: number, request: Dto<IChatAgentRequest>, context: {
|
|
1238
1226
|
history: IChatAgentHistoryEntryDto[];
|
|
1227
|
+
chatSessionContext?: {
|
|
1228
|
+
chatSessionType: string;
|
|
1229
|
+
chatSessionId: string;
|
|
1230
|
+
isUntitled: boolean;
|
|
1231
|
+
};
|
|
1239
1232
|
}, token: CancellationToken): Promise<IChatAgentResult | undefined>;
|
|
1240
1233
|
$provideFollowups(request: Dto<IChatAgentRequest>, handle: number, result: IChatAgentResult, context: {
|
|
1241
1234
|
history: IChatAgentHistoryEntryDto[];
|
|
@@ -1645,6 +1638,7 @@ export interface MainThreadTunnelServiceShape extends IDisposable {
|
|
|
1645
1638
|
}): Promise<void>;
|
|
1646
1639
|
$getTunnels(): Promise<TunnelDescription[]>;
|
|
1647
1640
|
$setTunnelProvider(features: TunnelProviderFeatures | undefined, enablePortsView: boolean): Promise<void>;
|
|
1641
|
+
$hasTunnelProvider(): Promise<boolean>;
|
|
1648
1642
|
$setRemoteTunnelService(processId: number): Promise<void>;
|
|
1649
1643
|
$setCandidateFilter(): Promise<void>;
|
|
1650
1644
|
$onFoundNewCandidates(candidates: CandidatePort[]): Promise<void>;
|
|
@@ -1850,8 +1844,8 @@ export interface ExtHostLabelServiceShape {
|
|
|
1850
1844
|
export interface ExtHostAuthenticationShape {
|
|
1851
1845
|
$getSessions(id: string, scopes: string[] | undefined, options: IAuthenticationGetSessionsOptions): Promise<ReadonlyArray<AuthenticationSession>>;
|
|
1852
1846
|
$createSession(id: string, scopes: string[], options: IAuthenticationCreateSessionOptions): Promise<AuthenticationSession>;
|
|
1853
|
-
$getSessionsFromChallenges(id: string, constraint:
|
|
1854
|
-
$createSessionFromChallenges(id: string, constraint:
|
|
1847
|
+
$getSessionsFromChallenges(id: string, constraint: IAuthenticationConstraint, options: IAuthenticationGetSessionsOptions): Promise<ReadonlyArray<AuthenticationSession>>;
|
|
1848
|
+
$createSessionFromChallenges(id: string, constraint: IAuthenticationConstraint, options: IAuthenticationCreateSessionOptions): Promise<AuthenticationSession>;
|
|
1855
1849
|
$removeSession(id: string, sessionId: string): Promise<void>;
|
|
1856
1850
|
$onDidChangeAuthenticationSessions(id: string, label: string, extensionIdFilter?: string[]): Promise<void>;
|
|
1857
1851
|
$onDidUnregisterAuthenticationProvider(id: string): Promise<void>;
|
|
@@ -2377,8 +2371,8 @@ export declare class TerminalCompletionListDto<T extends ITerminalCompletionItem
|
|
|
2377
2371
|
export interface TerminalResourceRequestConfigDto {
|
|
2378
2372
|
filesRequested?: boolean;
|
|
2379
2373
|
foldersRequested?: boolean;
|
|
2380
|
-
|
|
2381
|
-
cwd
|
|
2374
|
+
globPattern?: string | IRelativePattern;
|
|
2375
|
+
cwd: UriComponents;
|
|
2382
2376
|
pathSeparator: string;
|
|
2383
2377
|
}
|
|
2384
2378
|
export interface ExtHostTerminalServiceShape {
|
|
@@ -2435,7 +2429,9 @@ export interface ExtHostSCMShape {
|
|
|
2435
2429
|
$provideHistoryItemRefs(sourceControlHandle: number, historyItemRefs: string[] | undefined, token: CancellationToken): Promise<SCMHistoryItemRefDto[] | undefined>;
|
|
2436
2430
|
$provideHistoryItems(sourceControlHandle: number, options: ISCMHistoryOptions, token: CancellationToken): Promise<SCMHistoryItemDto[] | undefined>;
|
|
2437
2431
|
$provideHistoryItemChanges(sourceControlHandle: number, historyItemId: string, historyItemParentId: string | undefined, token: CancellationToken): Promise<SCMHistoryItemChangeDto[] | undefined>;
|
|
2432
|
+
$resolveHistoryItem(sourceControlHandle: number, historyItemId: string, token: CancellationToken): Promise<SCMHistoryItemDto | undefined>;
|
|
2438
2433
|
$resolveHistoryItemChatContext(sourceControlHandle: number, historyItemId: string, token: CancellationToken): Promise<string | undefined>;
|
|
2434
|
+
$resolveHistoryItemChangeRangeChatContext(sourceControlHandle: number, historyItemId: string, historyItemParentId: string, path: string, token: CancellationToken): Promise<string | undefined>;
|
|
2439
2435
|
$resolveHistoryItemRefsCommonAncestor(sourceControlHandle: number, historyItemRefs: string[], token: CancellationToken): Promise<string | undefined>;
|
|
2440
2436
|
}
|
|
2441
2437
|
export interface ExtHostQuickDiffShape {
|
|
@@ -2834,9 +2830,15 @@ export interface ExtHostTestingShape {
|
|
|
2834
2830
|
/** Disposes followup actions for a test (failure) message */
|
|
2835
2831
|
$disposeTestFollowups(id: number[]): void;
|
|
2836
2832
|
}
|
|
2833
|
+
export interface IStartMcpOptions {
|
|
2834
|
+
launch: McpServerLaunch.Serialized;
|
|
2835
|
+
defaultCwd?: UriComponents;
|
|
2836
|
+
errorOnUserInteraction?: boolean;
|
|
2837
|
+
}
|
|
2837
2838
|
export interface ExtHostMcpShape {
|
|
2839
|
+
$substituteVariables(workspaceFolder: UriComponents | undefined, value: McpServerLaunch.Serialized): Promise<McpServerLaunch.Serialized>;
|
|
2838
2840
|
$resolveMcpLaunch(collectionId: string, label: string): Promise<McpServerLaunch.Serialized | undefined>;
|
|
2839
|
-
$startMcp(id: number,
|
|
2841
|
+
$startMcp(id: number, opts: IStartMcpOptions): void;
|
|
2840
2842
|
$stopMcp(id: number): void;
|
|
2841
2843
|
$sendMessage(id: number, message: string): void;
|
|
2842
2844
|
$waitForInitialCollectionProviders(): Promise<void>;
|
|
@@ -2847,7 +2849,7 @@ export interface MainThreadMcpShape {
|
|
|
2847
2849
|
$onDidReceiveMessage(id: number, message: string): void;
|
|
2848
2850
|
$upsertMcpCollection(collection: McpCollectionDefinition.FromExtHost, servers: McpServerDefinition.Serialized[]): void;
|
|
2849
2851
|
$deleteMcpCollection(collectionId: string): void;
|
|
2850
|
-
$getTokenFromServerMetadata(id: number, authorizationServer: UriComponents, serverMetadata: IAuthorizationServerMetadata, resourceMetadata: IAuthorizationProtectedResourceMetadata | undefined): Promise<string | undefined>;
|
|
2852
|
+
$getTokenFromServerMetadata(id: number, authorizationServer: UriComponents, serverMetadata: IAuthorizationServerMetadata, resourceMetadata: IAuthorizationProtectedResourceMetadata | undefined, errorOnUserInteraction?: boolean): Promise<string | undefined>;
|
|
2851
2853
|
}
|
|
2852
2854
|
export interface MainThreadDataChannelsShape extends IDisposable {
|
|
2853
2855
|
}
|
|
@@ -2951,6 +2953,7 @@ export interface MainThreadChatSessionsShape extends IDisposable {
|
|
|
2951
2953
|
$registerChatSessionItemProvider(handle: number, chatSessionType: string): void;
|
|
2952
2954
|
$unregisterChatSessionItemProvider(handle: number): void;
|
|
2953
2955
|
$onDidChangeChatSessionItems(handle: number): void;
|
|
2956
|
+
$onDidCommitChatSessionItem(handle: number, original: string, modified: string): void;
|
|
2954
2957
|
$registerChatSessionContentProvider(handle: number, chatSessionType: string): void;
|
|
2955
2958
|
$unregisterChatSessionContentProvider(handle: number): void;
|
|
2956
2959
|
$handleProgressChunk(handle: number, sessionId: string, requestId: string, chunks: (IChatProgressDto | [
|
|
@@ -2965,8 +2968,6 @@ export interface ExtHostChatSessionsShape {
|
|
|
2965
2968
|
$provideChatSessionItems(providerHandle: number, token: CancellationToken): Promise<Dto<IChatSessionItem>[]>;
|
|
2966
2969
|
$provideNewChatSessionItem(providerHandle: number, options: {
|
|
2967
2970
|
request: IChatAgentRequest;
|
|
2968
|
-
prompt?: string;
|
|
2969
|
-
history?: any[];
|
|
2970
2971
|
metadata?: any;
|
|
2971
2972
|
}, token: CancellationToken): Promise<Dto<IChatSessionItem>>;
|
|
2972
2973
|
$provideChatSessionContent(providerHandle: number, sessionId: string, token: CancellationToken): Promise<ChatSessionDto>;
|
|
@@ -38,20 +38,20 @@ export declare class ExtHostAuthentication implements ExtHostAuthenticationShape
|
|
|
38
38
|
* @returns An event with a built-in filter for the extensionId
|
|
39
39
|
*/
|
|
40
40
|
getExtensionScopedSessionsEvent(extensionId: string): Event<vscode.AuthenticationSessionsChangeEvent>;
|
|
41
|
-
getSession(requestingExtension: IExtensionDescription, providerId: string, scopesOrRequest: readonly string[] | vscode.
|
|
41
|
+
getSession(requestingExtension: IExtensionDescription, providerId: string, scopesOrRequest: readonly string[] | vscode.AuthenticationWwwAuthenticateRequest, options: vscode.AuthenticationGetSessionOptions & ({
|
|
42
42
|
createIfNone: true;
|
|
43
43
|
} | {
|
|
44
44
|
forceNewSession: true;
|
|
45
45
|
} | {
|
|
46
46
|
forceNewSession: vscode.AuthenticationForceNewSessionOptions;
|
|
47
47
|
})): Promise<vscode.AuthenticationSession>;
|
|
48
|
-
getSession(requestingExtension: IExtensionDescription, providerId: string, scopesOrRequest: readonly string[] | vscode.
|
|
48
|
+
getSession(requestingExtension: IExtensionDescription, providerId: string, scopesOrRequest: readonly string[] | vscode.AuthenticationWwwAuthenticateRequest, options: vscode.AuthenticationGetSessionOptions & {
|
|
49
49
|
forceNewSession: true;
|
|
50
50
|
}): Promise<vscode.AuthenticationSession>;
|
|
51
|
-
getSession(requestingExtension: IExtensionDescription, providerId: string, scopesOrRequest: readonly string[] | vscode.
|
|
51
|
+
getSession(requestingExtension: IExtensionDescription, providerId: string, scopesOrRequest: readonly string[] | vscode.AuthenticationWwwAuthenticateRequest, options: vscode.AuthenticationGetSessionOptions & {
|
|
52
52
|
forceNewSession: vscode.AuthenticationForceNewSessionOptions;
|
|
53
53
|
}): Promise<vscode.AuthenticationSession>;
|
|
54
|
-
getSession(requestingExtension: IExtensionDescription, providerId: string, scopesOrRequest: readonly string[] | vscode.
|
|
54
|
+
getSession(requestingExtension: IExtensionDescription, providerId: string, scopesOrRequest: readonly string[] | vscode.AuthenticationWwwAuthenticateRequest, options: vscode.AuthenticationGetSessionOptions): Promise<vscode.AuthenticationSession | undefined>;
|
|
55
55
|
getAccounts(providerId: string): Promise<readonly import("../../services/authentication/common/authentication.js").AuthenticationSessionAccount[]>;
|
|
56
56
|
registerAuthenticationProvider(id: string, label: string, provider: vscode.AuthenticationProvider, options?: vscode.AuthenticationProviderOptions): vscode.Disposable;
|
|
57
57
|
$createSession(providerId: string, scopes: string[], options: vscode.AuthenticationProviderSessionOptions): Promise<vscode.AuthenticationSession>;
|
|
@@ -5,7 +5,7 @@ import { Emitter, Event } from '../../../base/common/event.js';
|
|
|
5
5
|
import { MainContext } from './extHost.protocol.js';
|
|
6
6
|
import { Disposable, ProgressLocation } from './extHostTypes.js';
|
|
7
7
|
import { ExtensionIdentifier } from '../../../platform/extensions/common/extensions.js';
|
|
8
|
-
import {
|
|
8
|
+
import { isAuthenticationWwwAuthenticateRequest, INTERNAL_AUTH_PROVIDER_PREFIX } from '../../services/authentication/common/authentication.js';
|
|
9
9
|
import { createDecorator } from '../../../platform/instantiation/common/instantiation.js';
|
|
10
10
|
import { IExtHostRpcService } from './extHostRpcService.js';
|
|
11
11
|
import { URI } from '../../../base/common/uri.js';
|
|
@@ -53,19 +53,11 @@ let ExtHostAuthentication = class ExtHostAuthentication {
|
|
|
53
53
|
const extensionId = ExtensionIdentifier.toKey(requestingExtension.identifier);
|
|
54
54
|
const keys = ( Object.keys(options));
|
|
55
55
|
const optionsStr = ( keys.sort().map(key => `${key}:${!!options[key]}`)).join(', ');
|
|
56
|
-
if ('challenge' in scopesOrRequest
|
|
57
|
-
&& typeof scopesOrRequest.challenge === 'string'
|
|
58
|
-
&& !scopesOrRequest.wwwAuthenticate) {
|
|
59
|
-
scopesOrRequest = {
|
|
60
|
-
wwwAuthenticate: scopesOrRequest.challenge,
|
|
61
|
-
scopes: scopesOrRequest.scopes
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
56
|
let singlerKey;
|
|
65
|
-
if (
|
|
57
|
+
if (isAuthenticationWwwAuthenticateRequest(scopesOrRequest)) {
|
|
66
58
|
const challenge = scopesOrRequest;
|
|
67
59
|
const challengeStr = challenge.wwwAuthenticate;
|
|
68
|
-
const scopesStr = challenge.
|
|
60
|
+
const scopesStr = challenge.fallbackScopes ? [...challenge.fallbackScopes].sort().join(' ') : '';
|
|
69
61
|
singlerKey = `${extensionId} ${providerId} challenge:${challengeStr} ${scopesStr} ${optionsStr}`;
|
|
70
62
|
}
|
|
71
63
|
else {
|
|
@@ -273,7 +265,7 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
273
265
|
? stringifiedServer + ' ' + _resourceMetadata?.resource
|
|
274
266
|
: stringifiedServer;
|
|
275
267
|
this.label = _resourceMetadata?.resource_name ?? this.authorizationServer.authority;
|
|
276
|
-
this._logger = loggerService.createLogger(this.id, { name: this.label });
|
|
268
|
+
this._logger = loggerService.createLogger(this.id, { name: `Auth: ${this.label}` });
|
|
277
269
|
this._disposable = ( new DisposableStore());
|
|
278
270
|
this._disposable.add(this._onDidChangeSessions);
|
|
279
271
|
const scopedEvent = Event.chain(onDidDynamicAuthProviderTokensChange.event, $ => ( $
|
|
@@ -287,7 +279,7 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
287
279
|
this._createFlows = [];
|
|
288
280
|
if (_serverMetadata.authorization_endpoint) {
|
|
289
281
|
this._createFlows.push({
|
|
290
|
-
label: ( localize(
|
|
282
|
+
label: ( localize(2628, "URL Handler")),
|
|
291
283
|
handler: (scopes, progress, token) => this._createWithUrlHandler(scopes, progress, token)
|
|
292
284
|
});
|
|
293
285
|
}
|
|
@@ -355,7 +347,7 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
355
347
|
try {
|
|
356
348
|
token = await this._extHostProgress.withProgressFromSource({ label: this.label, id: this.id }, {
|
|
357
349
|
location: ProgressLocation.Notification,
|
|
358
|
-
title: ( localize(
|
|
350
|
+
title: ( localize(2629, "Authenticating to '{0}'", this.label)),
|
|
359
351
|
cancellable: true
|
|
360
352
|
}, (progress, token) => handler(scopes, progress, token));
|
|
361
353
|
if (token) {
|
|
@@ -369,13 +361,13 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
369
361
|
}
|
|
370
362
|
const message = isCancellationError(err)
|
|
371
363
|
? ( localize(
|
|
372
|
-
|
|
364
|
+
2630,
|
|
373
365
|
"Having trouble authenticating to '{0}'? Would you like to try a different way? ({1})",
|
|
374
366
|
this.label,
|
|
375
367
|
nextMode
|
|
376
368
|
))
|
|
377
369
|
: ( localize(
|
|
378
|
-
|
|
370
|
+
2631,
|
|
379
371
|
"You have not yet finished authenticating to '{0}'. Would you like to try a different way? ({1})",
|
|
380
372
|
this.label,
|
|
381
373
|
nextMode
|
|
@@ -396,7 +388,7 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
396
388
|
}
|
|
397
389
|
this._tokenStore.update({ added: [{ ...token, created_at: Date.now() }], removed: [] });
|
|
398
390
|
const session = this._tokenStore.sessions.find(t => t.accessToken === token.access_token);
|
|
399
|
-
this._logger.info(`Created session for scopes: ${token.scope}`);
|
|
391
|
+
this._logger.info(`Created ${token.refresh_token ? 'refreshable' : 'non-refreshable'} session for scopes: ${token.scope}${token.expires_in ? ` that expires in ${token.expires_in} seconds` : ''}`);
|
|
400
392
|
return session;
|
|
401
393
|
}
|
|
402
394
|
async removeSession(sessionId) {
|
|
@@ -460,7 +452,7 @@ let DynamicAuthProvider = class DynamicAuthProvider {
|
|
|
460
452
|
throw ( new CancellationError());
|
|
461
453
|
}
|
|
462
454
|
progress.report({
|
|
463
|
-
message: ( localize(
|
|
455
|
+
message: ( localize(2632, "Complete the authentication in the browser window that has opened.")),
|
|
464
456
|
});
|
|
465
457
|
let code;
|
|
466
458
|
try {
|
|
@@ -68,6 +68,11 @@ export declare class ExtHostChatAgents2 extends Disposable implements ExtHostCha
|
|
|
68
68
|
$setRequestTools(requestId: string, tools: UserSelectedTools): Promise<void>;
|
|
69
69
|
$invokeAgent(handle: number, requestDto: Dto<IChatAgentRequest>, context: {
|
|
70
70
|
history: IChatAgentHistoryEntryDto[];
|
|
71
|
+
chatSessionContext?: {
|
|
72
|
+
chatSessionType: string;
|
|
73
|
+
chatSessionId: string;
|
|
74
|
+
isUntitled: boolean;
|
|
75
|
+
};
|
|
71
76
|
}, token: CancellationToken): Promise<IChatAgentResult | undefined>;
|
|
72
77
|
private getDiagnosticsWhenEnabled;
|
|
73
78
|
private getToolsForRequest;
|
|
@@ -391,7 +391,7 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
391
391
|
const request = revive(requestDto);
|
|
392
392
|
const convertedHistory = await this.prepareHistoryTurns(extension, request.agentId, context);
|
|
393
393
|
let location;
|
|
394
|
-
if (request.locationData?.type === ChatAgentLocation.
|
|
394
|
+
if (request.locationData?.type === ChatAgentLocation.EditorInline) {
|
|
395
395
|
const document = this._documents.getDocument(request.locationData.document);
|
|
396
396
|
location = new ChatRequestEditorData(document, Selection.to(request.locationData.selection), Range.to(request.locationData.wholeRange));
|
|
397
397
|
}
|
|
@@ -453,7 +453,18 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
453
453
|
const extRequest = ChatAgentRequest.to(request, location, model, this.getDiagnosticsWhenEnabled(agent.extension), this.getToolsForRequest(agent.extension, request.userSelectedTools), agent.extension, this._logService);
|
|
454
454
|
inFlightRequest = { requestId: requestDto.requestId, extRequest, extension: agent.extension };
|
|
455
455
|
this._inFlightRequests.add(inFlightRequest);
|
|
456
|
-
|
|
456
|
+
let chatSessionContext;
|
|
457
|
+
if (context.chatSessionContext) {
|
|
458
|
+
chatSessionContext = {
|
|
459
|
+
chatSessionItem: {
|
|
460
|
+
id: context.chatSessionContext.chatSessionId,
|
|
461
|
+
label: context.chatSessionContext.isUntitled ? 'Untitled Session' : 'Session',
|
|
462
|
+
},
|
|
463
|
+
isUntitled: context.chatSessionContext.isUntitled,
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
const chatContext = { history, chatSessionContext };
|
|
467
|
+
const task = agent.invoke(extRequest, chatContext, stream.apiObject, token);
|
|
457
468
|
return await raceCancellationWithTimeout(1000, Promise.resolve(task).then((result) => {
|
|
458
469
|
if (result?.metadata) {
|
|
459
470
|
try {
|
|
@@ -472,7 +483,7 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
472
483
|
responseIsIncomplete: true
|
|
473
484
|
};
|
|
474
485
|
}
|
|
475
|
-
if (errorDetails?.responseIsRedacted || errorDetails?.isQuotaExceeded || errorDetails?.confirmationButtons || errorDetails?.code) {
|
|
486
|
+
if (errorDetails?.responseIsRedacted || errorDetails?.isQuotaExceeded || errorDetails?.isRateLimited || errorDetails?.confirmationButtons || errorDetails?.code) {
|
|
476
487
|
checkProposedApiEnabled(agent.extension, 'chatParticipantPrivate');
|
|
477
488
|
}
|
|
478
489
|
return { errorDetails, timings: stream?.timings, metadata: result?.metadata, nextQuestion: result?.nextQuestion, details: result?.details };
|
|
@@ -484,7 +495,8 @@ class ExtHostChatAgents2 extends Disposable {
|
|
|
484
495
|
e = e.cause;
|
|
485
496
|
}
|
|
486
497
|
const isQuotaExceeded = e instanceof Error && e.name === 'ChatQuotaExceeded';
|
|
487
|
-
|
|
498
|
+
const isRateLimited = e instanceof Error && e.name === 'ChatRateLimited';
|
|
499
|
+
return { errorDetails: { message: toErrorMessage(e), responseIsIncomplete: true, isQuotaExceeded, isRateLimited } };
|
|
488
500
|
}
|
|
489
501
|
finally {
|
|
490
502
|
if (inFlightRequest) {
|
|
@@ -23,14 +23,12 @@ export declare class ExtHostChatSessions extends Disposable implements ExtHostCh
|
|
|
23
23
|
private readonly _sessionMap;
|
|
24
24
|
constructor(commands: ExtHostCommands, _languageModels: ExtHostLanguageModels, _extHostRpc: IExtHostRpcService, _logService: ILogService);
|
|
25
25
|
registerChatSessionItemProvider(extension: IExtensionDescription, chatSessionType: string, provider: vscode.ChatSessionItemProvider): vscode.Disposable;
|
|
26
|
-
registerChatSessionContentProvider(extension: IExtensionDescription, chatSessionType: string, provider: vscode.ChatSessionContentProvider, capabilities?: vscode.ChatSessionCapabilities): vscode.Disposable;
|
|
26
|
+
registerChatSessionContentProvider(extension: IExtensionDescription, chatSessionType: string, chatParticipant: vscode.ChatParticipant, provider: vscode.ChatSessionContentProvider, capabilities?: vscode.ChatSessionCapabilities): vscode.Disposable;
|
|
27
27
|
showChatSession(_extension: IExtensionDescription, chatSessionType: string, sessionId: string, options: vscode.ChatSessionShowOptions | undefined): Promise<void>;
|
|
28
28
|
private convertChatSessionStatus;
|
|
29
29
|
private convertChatSessionItem;
|
|
30
30
|
$provideNewChatSessionItem(handle: number, options: {
|
|
31
31
|
request: IChatAgentRequest;
|
|
32
|
-
prompt?: string;
|
|
33
|
-
history: any[];
|
|
34
32
|
metadata?: any;
|
|
35
33
|
}, token: CancellationToken): Promise<IChatSessionItem>;
|
|
36
34
|
$provideChatSessionItems(handle: number, token: vscode.CancellationToken): Promise<IChatSessionItem[]>;
|
|
@@ -3,6 +3,7 @@ import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.
|
|
|
3
3
|
import { coalesce } from '../../../base/common/arrays.js';
|
|
4
4
|
import { CancellationTokenSource } from '../../../base/common/cancellation.js';
|
|
5
5
|
import { Disposable, DisposableStore } from '../../../base/common/lifecycle.js';
|
|
6
|
+
import { revive } from '../../../base/common/marshalling.js';
|
|
6
7
|
import { MarshalledId } from '../../../base/common/marshallingIds.js';
|
|
7
8
|
import { ILogService } from '../../../platform/log/common/log.service.js';
|
|
8
9
|
import { ChatSessionStatus } from '../../contrib/chat/common/chatSessionsService.js';
|
|
@@ -12,7 +13,6 @@ import { ChatAgentResponseStream } from './extHostChatAgents2.js';
|
|
|
12
13
|
import { IExtHostRpcService } from './extHostRpcService.js';
|
|
13
14
|
import { ViewColumn, MarkdownString, ChatAgentRequest, ChatResponsePart } from './extHostTypeConverters.js';
|
|
14
15
|
import { Disposable as Disposable$1, ChatRequestTurn } from './extHostTypes.js';
|
|
15
|
-
import { revive } from '../../../base/common/marshalling.js';
|
|
16
16
|
|
|
17
17
|
var ExtHostChatSessions_1;
|
|
18
18
|
class ExtHostChatSession {
|
|
@@ -80,6 +80,12 @@ let ExtHostChatSessions = class ExtHostChatSessions extends Disposable {
|
|
|
80
80
|
this._proxy.$onDidChangeChatSessionItems(handle);
|
|
81
81
|
}));
|
|
82
82
|
}
|
|
83
|
+
if (provider.onDidCommitChatSessionItem) {
|
|
84
|
+
disposables.add(provider.onDidCommitChatSessionItem((e) => {
|
|
85
|
+
const { original, modified } = e;
|
|
86
|
+
this._proxy.$onDidCommitChatSessionItem(handle, original.id, modified.id);
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
83
89
|
return {
|
|
84
90
|
dispose: () => {
|
|
85
91
|
this._chatSessionItemProviders.delete(handle);
|
|
@@ -88,7 +94,7 @@ let ExtHostChatSessions = class ExtHostChatSessions extends Disposable {
|
|
|
88
94
|
}
|
|
89
95
|
};
|
|
90
96
|
}
|
|
91
|
-
registerChatSessionContentProvider(extension, chatSessionType, provider, capabilities) {
|
|
97
|
+
registerChatSessionContentProvider(extension, chatSessionType, chatParticipant, provider, capabilities) {
|
|
92
98
|
const handle = this._nextChatSessionContentProviderHandle++;
|
|
93
99
|
const disposables = ( new DisposableStore());
|
|
94
100
|
this._chatSessionContentProviders.set(handle, { provider, extension, capabilities, disposable: disposables });
|
|
@@ -146,8 +152,6 @@ let ExtHostChatSessions = class ExtHostChatSessions extends Disposable {
|
|
|
146
152
|
const vscodeRequest = ChatAgentRequest.to(revive(options.request), undefined, model, [], ( new Map()), entry.extension, this._logService);
|
|
147
153
|
const vscodeOptions = {
|
|
148
154
|
request: vscodeRequest,
|
|
149
|
-
prompt: options.prompt,
|
|
150
|
-
history: options.history,
|
|
151
155
|
metadata: options.metadata
|
|
152
156
|
};
|
|
153
157
|
const chatSessionItem = await entry.provider.provideNewChatSessionItem(vscodeOptions, token);
|
|
@@ -195,7 +199,7 @@ let ExtHostChatSessions = class ExtHostChatSessions extends Disposable {
|
|
|
195
199
|
agentId: id,
|
|
196
200
|
message: '',
|
|
197
201
|
variables: { variables: [] },
|
|
198
|
-
location: ChatAgentLocation.
|
|
202
|
+
location: ChatAgentLocation.Chat,
|
|
199
203
|
}, {
|
|
200
204
|
$handleProgressChunk: (requestId, chunks) => {
|
|
201
205
|
return this._proxy.$handleProgressChunk(handle, id, requestId, chunks);
|
|
@@ -6,7 +6,7 @@ import { ExtHostDocuments } from "./extHostDocuments.js";
|
|
|
6
6
|
import { IExtensionStoragePaths } from "./extHostStoragePaths.js";
|
|
7
7
|
import { ExtHostWebviews } from "./extHostWebview.js";
|
|
8
8
|
import { ExtHostWebviewPanels } from "./extHostWebviewPanels.js";
|
|
9
|
-
import { EditorGroupColumn } from "@codingame/monaco-vscode-
|
|
9
|
+
import { EditorGroupColumn } from "@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common/vscode/vs/workbench/services/editor/common/editorGroupColumn";
|
|
10
10
|
import type * as vscode from "vscode";
|
|
11
11
|
import * as extHostProtocol from "./extHost.protocol.js";
|
|
12
12
|
export declare class ExtHostCustomEditors implements extHostProtocol.ExtHostCustomEditorsShape {
|
|
@@ -403,9 +403,6 @@ let ExtHostDebugServiceBase = class ExtHostDebugServiceBase extends Disposable {
|
|
|
403
403
|
uri: folder.uri,
|
|
404
404
|
name: folder.name,
|
|
405
405
|
index: folder.index,
|
|
406
|
-
toResource: () => {
|
|
407
|
-
throw ( new Error('Not implemented'));
|
|
408
|
-
}
|
|
409
406
|
};
|
|
410
407
|
}
|
|
411
408
|
const variableResolver = await this._variableResolver.getResolver();
|
|
@@ -540,7 +540,7 @@ let AbstractExtHostExtensionService = AbstractExtHostExtensionService_1 = class
|
|
|
540
540
|
async _doHandleExtensionTests() {
|
|
541
541
|
const { extensionDevelopmentLocationURI, extensionTestsLocationURI } = this._initData.environment;
|
|
542
542
|
if (!extensionDevelopmentLocationURI || !extensionTestsLocationURI) {
|
|
543
|
-
throw ( new Error(( localize(
|
|
543
|
+
throw ( new Error(( localize(2634, "Cannot load test runner."))));
|
|
544
544
|
}
|
|
545
545
|
const extensionDescription = (await this.getExtensionPathIndex()).findSubstr(extensionTestsLocationURI);
|
|
546
546
|
const isESM = this._isESM(extensionDescription, extensionTestsLocationURI.path);
|
|
@@ -549,7 +549,7 @@ let AbstractExtHostExtensionService = AbstractExtHostExtensionService_1 = class
|
|
|
549
549
|
: this._loadCommonJSModule(null, extensionTestsLocationURI, ( new ExtensionActivationTimesBuilder(false))));
|
|
550
550
|
if (!testRunner || typeof testRunner.run !== 'function') {
|
|
551
551
|
throw ( new Error(( localize(
|
|
552
|
-
|
|
552
|
+
2635,
|
|
553
553
|
"Path {0} does not point to a valid extension test runner.",
|
|
554
554
|
(extensionTestsLocationURI.toString())
|
|
555
555
|
))));
|
|
@@ -546,7 +546,7 @@ class DocumentPasteEditProvider {
|
|
|
546
546
|
return (edits.map((edit, i) => ({
|
|
547
547
|
_cacheId: [cacheId, i],
|
|
548
548
|
title: edit.title ?? ( localize(
|
|
549
|
-
|
|
549
|
+
2636,
|
|
550
550
|
"Paste using '{0}' extension",
|
|
551
551
|
this._extension.displayName || this._extension.name
|
|
552
552
|
)),
|
|
@@ -1696,7 +1696,7 @@ class DocumentDropEditAdapter {
|
|
|
1696
1696
|
return (editsArray.map((edit, i) => ({
|
|
1697
1697
|
_cacheId: [cacheId, i],
|
|
1698
1698
|
title: edit.title ?? ( localize(
|
|
1699
|
-
|
|
1699
|
+
2637,
|
|
1700
1700
|
"Drop using '{0}' extension",
|
|
1701
1701
|
this._extension.displayName || this._extension.name
|
|
1702
1702
|
)),
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import { raceCancellation } from '../../../base/common/async.js';
|
|
3
3
|
import { CancellationToken } from '../../../base/common/cancellation.js';
|
|
4
4
|
import { CancellationError } from '../../../base/common/errors.js';
|
|
5
|
+
import { Lazy } from '../../../base/common/lazy.js';
|
|
5
6
|
import { toDisposable } from '../../../base/common/lifecycle.js';
|
|
6
7
|
import { revive } from '../../../base/common/marshalling.js';
|
|
7
8
|
import { generateUuid } from '../../../base/common/uuid.js';
|
|
8
9
|
import { isToolInvocationContext } from '../../contrib/chat/common/languageModelToolsService.js';
|
|
9
10
|
import { InternalEditToolId, ExtensionEditToolId } from '../../contrib/chat/common/tools/editFileTool.js';
|
|
10
11
|
import { InternalFetchWebPageToolId } from '../../contrib/chat/common/tools/tools.js';
|
|
12
|
+
import { SearchExtensionsToolId } from '../../contrib/extensions/common/searchExtensionsTool.js';
|
|
11
13
|
import { isProposedApiEnabled, checkProposedApiEnabled } from '../../services/extensions/common/extensions.js';
|
|
12
14
|
import { SerializableObjectWithBuffers } from '../../services/extensions/common/proxyIdentifier.js';
|
|
13
15
|
import { MainContext } from './extHost.protocol.js';
|
|
14
16
|
import { LanguageModelToolSource, LanguageModelToolResult2, MarkdownString } from './extHostTypeConverters.js';
|
|
15
|
-
import { SearchExtensionsToolId } from '../../contrib/extensions/common/searchExtensionsTool.js';
|
|
16
|
-
import { Lazy } from '../../../base/common/lazy.js';
|
|
17
17
|
|
|
18
18
|
class Tool {
|
|
19
19
|
constructor(data) {
|
|
@@ -93,6 +93,7 @@ class ExtHostLanguageModelTools {
|
|
|
93
93
|
context: options.toolInvocationToken,
|
|
94
94
|
chatRequestId: isProposedApiEnabled(extension, 'chatParticipantPrivate') ? options.chatRequestId : undefined,
|
|
95
95
|
chatInteractionId: isProposedApiEnabled(extension, 'chatParticipantPrivate') ? options.chatInteractionId : undefined,
|
|
96
|
+
fromSubAgent: isProposedApiEnabled(extension, 'chatParticipantPrivate') ? options.fromSubAgent : undefined,
|
|
96
97
|
}, token);
|
|
97
98
|
const dto = result instanceof SerializableObjectWithBuffers ? result.value : result;
|
|
98
99
|
return LanguageModelToolResult2.to(revive(dto));
|
|
@@ -148,6 +149,7 @@ class ExtHostLanguageModelTools {
|
|
|
148
149
|
options.chatRequestId = dto.chatRequestId;
|
|
149
150
|
options.chatInteractionId = dto.chatInteractionId;
|
|
150
151
|
options.chatSessionId = dto.context?.sessionId;
|
|
152
|
+
options.fromSubAgent = dto.fromSubAgent;
|
|
151
153
|
}
|
|
152
154
|
if (isProposedApiEnabled(item.extension, 'chatParticipantAdditions') && dto.modelId) {
|
|
153
155
|
options.model = await this.getModel(dto.modelId, item.extension);
|
|
@@ -160,12 +162,15 @@ class ExtHostLanguageModelTools {
|
|
|
160
162
|
}
|
|
161
163
|
let progress;
|
|
162
164
|
if (isProposedApiEnabled(item.extension, 'toolProgress')) {
|
|
165
|
+
let lastProgress;
|
|
163
166
|
progress = {
|
|
164
167
|
report: value => {
|
|
168
|
+
if (value.increment !== undefined) {
|
|
169
|
+
lastProgress = (lastProgress ?? 0) + value.increment;
|
|
170
|
+
}
|
|
165
171
|
this._proxy.$acceptToolProgress(dto.callId, {
|
|
166
172
|
message: MarkdownString.fromStrict(value.message),
|
|
167
|
-
|
|
168
|
-
total: 100,
|
|
173
|
+
progress: lastProgress === undefined ? undefined : lastProgress / 100,
|
|
169
174
|
});
|
|
170
175
|
}
|
|
171
176
|
};
|