@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
|
@@ -100,7 +100,7 @@ class NullDefaultAccountService extends Disposable {
|
|
|
100
100
|
this.getChatEntitlements(session.accessToken, chatEntitlementUrl),
|
|
101
101
|
this.getTokenEntitlements(session.accessToken, tokenEntitlementUrl),
|
|
102
102
|
]);
|
|
103
|
-
const mcpRegistryProvider = this.productService.quality !== 'stable' && tokenEntitlements.mcp
|
|
103
|
+
const mcpRegistryProvider = this.productService.quality !== 'stable' && tokenEntitlements.mcp ? await this.getMcpRegistryProvider(session.accessToken, mcpRegistryDataUrl) : undefined;
|
|
104
104
|
return {
|
|
105
105
|
sessionId: session.id,
|
|
106
106
|
enterprise: id === enterpriseAuthProviderId || session.account.label.includes('_'),
|
|
@@ -197,7 +197,7 @@ class NullDefaultAccountService extends Disposable {
|
|
|
197
197
|
constructor() {
|
|
198
198
|
super({
|
|
199
199
|
id: DEFAULT_ACCOUNT_SIGN_IN_COMMAND,
|
|
200
|
-
title: ( localize(
|
|
200
|
+
title: ( localize(13055, "Sign in to {0}", authProviderLabel)),
|
|
201
201
|
});
|
|
202
202
|
}
|
|
203
203
|
run() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Event } from "../../../../base/common/event.js";
|
|
2
2
|
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
3
3
|
import { ViewContainer } from "../../../common/views.js";
|
|
4
|
-
import { IActivity } from "@codingame/monaco-vscode-
|
|
4
|
+
import { IActivity } from "@codingame/monaco-vscode-d941ac7b-412f-57e3-b1bf-f6b0eb253b21-common/vscode/vs/workbench/services/activity/common/activity";
|
|
5
5
|
export declare const IActivityService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IActivityService>;
|
|
6
6
|
export interface IActivityService {
|
|
7
7
|
readonly _serviceBrand: undefined;
|
|
@@ -49,7 +49,7 @@ export interface IAuthenticationCreateSessionOptions {
|
|
|
49
49
|
*/
|
|
50
50
|
[key: string]: any;
|
|
51
51
|
}
|
|
52
|
-
export interface
|
|
52
|
+
export interface IAuthenticationWwwAuthenticateRequest {
|
|
53
53
|
/**
|
|
54
54
|
* The raw WWW-Authenticate header value that triggered this challenge.
|
|
55
55
|
* This will be parsed by the authentication provider to extract the necessary
|
|
@@ -60,9 +60,9 @@ export interface IAuthenticationWWWAuthenticateRequest {
|
|
|
60
60
|
* Optional scopes for the session. If not provided, the authentication provider
|
|
61
61
|
* may use default scopes or extract them from the challenge.
|
|
62
62
|
*/
|
|
63
|
-
readonly
|
|
63
|
+
readonly fallbackScopes?: readonly string[];
|
|
64
64
|
}
|
|
65
|
-
export declare function
|
|
65
|
+
export declare function isAuthenticationWwwAuthenticateRequest(obj: unknown): obj is IAuthenticationWwwAuthenticateRequest;
|
|
66
66
|
/**
|
|
67
67
|
* Represents constraints for authentication, including challenges and optional scopes.
|
|
68
68
|
* This is used when creating or retrieving sessions that must satisfy specific authentication
|
|
@@ -77,7 +77,7 @@ export interface IAuthenticationConstraint {
|
|
|
77
77
|
* Optional scopes for the session. If not provided, the authentication provider
|
|
78
78
|
* may extract scopes from the challenges or use default scopes.
|
|
79
79
|
*/
|
|
80
|
-
readonly
|
|
80
|
+
readonly fallbackScopes?: readonly string[];
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Options for getting authentication sessions via the service.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
const INTERNAL_AUTH_PROVIDER_PREFIX = '__';
|
|
4
|
-
function
|
|
4
|
+
function isAuthenticationWwwAuthenticateRequest(obj) {
|
|
5
5
|
return typeof obj === 'object'
|
|
6
6
|
&& obj !== null
|
|
7
7
|
&& 'wwwAuthenticate' in obj
|
|
8
8
|
&& (typeof obj.wwwAuthenticate === 'string');
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export { INTERNAL_AUTH_PROVIDER_PREFIX,
|
|
11
|
+
export { INTERNAL_AUTH_PROVIDER_PREFIX, isAuthenticationWwwAuthenticateRequest };
|
|
@@ -2,7 +2,7 @@ import { Event } from "../../../../base/common/event.js";
|
|
|
2
2
|
import { IDisposable } from "../../../../base/common/lifecycle.js";
|
|
3
3
|
import { IAuthorizationServerMetadata, IAuthorizationProtectedResourceMetadata } from "../../../../base/common/oauth.js";
|
|
4
4
|
import { URI } from "../../../../base/common/uri.js";
|
|
5
|
-
import { AuthenticationProviderInformation, AuthenticationSessionsChangeEvent, IAuthenticationProvider, AuthenticationSessionAccount,
|
|
5
|
+
import { AuthenticationProviderInformation, AuthenticationSessionsChangeEvent, IAuthenticationProvider, AuthenticationSessionAccount, IAuthenticationWwwAuthenticateRequest, IAuthenticationGetSessionsOptions, AuthenticationSession, IAuthenticationCreateSessionOptions, IAuthenticationProviderHostDelegate } from "./authentication.js";
|
|
6
6
|
export declare const IAuthenticationService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IAuthenticationService>;
|
|
7
7
|
export interface IAuthenticationService {
|
|
8
8
|
readonly _serviceBrand: undefined;
|
|
@@ -84,14 +84,14 @@ export interface IAuthenticationService {
|
|
|
84
84
|
* @param options Additional options for getting sessions
|
|
85
85
|
* @param activateImmediate If true, the provider should activate immediately if it is not already
|
|
86
86
|
*/
|
|
87
|
-
getSessions(id: string, scopeListOrRequest?: ReadonlyArray<string> |
|
|
87
|
+
getSessions(id: string, scopeListOrRequest?: ReadonlyArray<string> | IAuthenticationWwwAuthenticateRequest, options?: IAuthenticationGetSessionsOptions, activateImmediate?: boolean): Promise<ReadonlyArray<AuthenticationSession>>;
|
|
88
88
|
/**
|
|
89
89
|
* Creates an AuthenticationSession with the given provider and scopes
|
|
90
90
|
* @param providerId The id of the provider
|
|
91
91
|
* @param scopes The scopes to request
|
|
92
92
|
* @param options Additional options for creating the session
|
|
93
93
|
*/
|
|
94
|
-
createSession(providerId: string, scopeListOrRequest: ReadonlyArray<string> |
|
|
94
|
+
createSession(providerId: string, scopeListOrRequest: ReadonlyArray<string> | IAuthenticationWwwAuthenticateRequest, options?: IAuthenticationCreateSessionOptions): Promise<AuthenticationSession>;
|
|
95
95
|
/**
|
|
96
96
|
* Removes the session with the given id from the provider with the given id
|
|
97
97
|
* @param providerId The id of the provider
|
|
@@ -168,8 +168,8 @@ export interface IAuthenticationExtensionsService {
|
|
|
168
168
|
* @param scopes
|
|
169
169
|
*/
|
|
170
170
|
removeSessionPreference(providerId: string, extensionId: string, scopes: string[]): void;
|
|
171
|
-
selectSession(providerId: string, extensionId: string, extensionName: string, scopeListOrRequest: ReadonlyArray<string> |
|
|
172
|
-
requestSessionAccess(providerId: string, extensionId: string, extensionName: string, scopeListOrRequest: ReadonlyArray<string> |
|
|
173
|
-
requestNewSession(providerId: string, scopeListOrRequest: ReadonlyArray<string> |
|
|
171
|
+
selectSession(providerId: string, extensionId: string, extensionName: string, scopeListOrRequest: ReadonlyArray<string> | IAuthenticationWwwAuthenticateRequest, possibleSessions: readonly AuthenticationSession[]): Promise<AuthenticationSession>;
|
|
172
|
+
requestSessionAccess(providerId: string, extensionId: string, extensionName: string, scopeListOrRequest: ReadonlyArray<string> | IAuthenticationWwwAuthenticateRequest, possibleSessions: readonly AuthenticationSession[]): void;
|
|
173
|
+
requestNewSession(providerId: string, scopeListOrRequest: ReadonlyArray<string> | IAuthenticationWwwAuthenticateRequest, extensionId: string, extensionName: string): Promise<void>;
|
|
174
174
|
updateNewSessionRequests(providerId: string, addedSessions: readonly AuthenticationSession[]): void;
|
|
175
175
|
}
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { CancellationToken } from "../../../../base/common/cancellation.js";
|
|
2
|
+
import { Event } from "../../../../base/common/event.js";
|
|
3
|
+
import { Lazy } from "../../../../base/common/lazy.js";
|
|
4
|
+
import { Disposable } from "../../../../base/common/lifecycle.js";
|
|
5
|
+
import { IConfigurationService } from "../../../../platform/configuration/common/configuration.service.js";
|
|
6
|
+
import { RawContextKey } from "../../../../platform/contextkey/common/contextkey.js";
|
|
7
|
+
import { IContextKeyService } from "../../../../platform/contextkey/common/contextkey.service.js";
|
|
8
|
+
import { IDialogService } from "../../../../platform/dialogs/common/dialogs.service.js";
|
|
9
|
+
import { IInstantiationService } from "../../../../platform/instantiation/common/instantiation.js";
|
|
10
|
+
import { ILogService } from "../../../../platform/log/common/log.service.js";
|
|
11
|
+
import { IProductService } from "../../../../platform/product/common/productService.service.js";
|
|
12
|
+
import { IRequestService } from "../../../../platform/request/common/request.service.js";
|
|
13
|
+
import { IStorageService } from "../../../../platform/storage/common/storage.service.js";
|
|
14
|
+
import { ITelemetryService } from "../../../../platform/telemetry/common/telemetry.service.js";
|
|
15
|
+
import { AuthenticationSession } from "../../authentication/common/authentication.js";
|
|
16
|
+
import { IAuthenticationExtensionsService } from "../../authentication/common/authentication.service.js";
|
|
17
|
+
import { IAuthenticationService } from "../../authentication/common/authentication.service.js";
|
|
18
|
+
import { IOpenerService } from "../../../../platform/opener/common/opener.service.js";
|
|
19
|
+
import { IWorkbenchEnvironmentService } from "../../environment/common/environmentService.service.js";
|
|
20
|
+
import { ILifecycleService } from "../../lifecycle/common/lifecycle.service.js";
|
|
21
|
+
import { IObservable } from "../../../../base/common/observable.js";
|
|
22
|
+
import { IChatEntitlementService } from "./chatEntitlementService.service.js";
|
|
23
|
+
export declare namespace ChatEntitlementContextKeys {
|
|
24
|
+
const Setup: {
|
|
25
|
+
hidden: RawContextKey<boolean>;
|
|
26
|
+
installed: RawContextKey<boolean>;
|
|
27
|
+
disabled: RawContextKey<boolean>;
|
|
28
|
+
untrusted: RawContextKey<boolean>;
|
|
29
|
+
later: RawContextKey<boolean>;
|
|
30
|
+
registered: RawContextKey<boolean>;
|
|
31
|
+
};
|
|
32
|
+
const Entitlement: {
|
|
33
|
+
signedOut: RawContextKey<boolean>;
|
|
34
|
+
canSignUp: RawContextKey<boolean>;
|
|
35
|
+
planFree: RawContextKey<boolean>;
|
|
36
|
+
planPro: RawContextKey<boolean>;
|
|
37
|
+
planProPlus: RawContextKey<boolean>;
|
|
38
|
+
planBusiness: RawContextKey<boolean>;
|
|
39
|
+
planEnterprise: RawContextKey<boolean>;
|
|
40
|
+
organisations: RawContextKey<string[]>;
|
|
41
|
+
internal: RawContextKey<boolean>;
|
|
42
|
+
sku: RawContextKey<string>;
|
|
43
|
+
};
|
|
44
|
+
const chatQuotaExceeded: RawContextKey<boolean>;
|
|
45
|
+
const completionsQuotaExceeded: RawContextKey<boolean>;
|
|
46
|
+
const chatAnonymous: RawContextKey<boolean>;
|
|
47
|
+
}
|
|
48
|
+
export declare enum ChatEntitlement {
|
|
49
|
+
/** Signed out */
|
|
50
|
+
Unknown = 1,
|
|
51
|
+
/** Signed in but not yet resolved */
|
|
52
|
+
Unresolved = 2,
|
|
53
|
+
/** Signed in and entitled to Free */
|
|
54
|
+
Available = 3,
|
|
55
|
+
/** Signed in but not entitled to Free */
|
|
56
|
+
Unavailable = 4,
|
|
57
|
+
/** Signed-up to Free */
|
|
58
|
+
Free = 5,
|
|
59
|
+
/** Signed-up to Pro */
|
|
60
|
+
Pro = 6,
|
|
61
|
+
/** Signed-up to Pro Plus */
|
|
62
|
+
ProPlus = 7,
|
|
63
|
+
/** Signed-up to Business */
|
|
64
|
+
Business = 8,
|
|
65
|
+
/** Signed-up to Enterprise */
|
|
66
|
+
Enterprise = 9
|
|
67
|
+
}
|
|
68
|
+
export interface IChatSentiment {
|
|
69
|
+
/**
|
|
70
|
+
* User has Chat installed.
|
|
71
|
+
*/
|
|
72
|
+
installed?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* User signals no intent in using Chat.
|
|
75
|
+
*
|
|
76
|
+
* Note: in contrast to `disabled`, this should not only disable
|
|
77
|
+
* Chat but also hide all of its UI.
|
|
78
|
+
*/
|
|
79
|
+
hidden?: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* User signals intent to disable Chat.
|
|
82
|
+
*
|
|
83
|
+
* Note: in contrast to `hidden`, this should not hide
|
|
84
|
+
* Chat but but disable its functionality.
|
|
85
|
+
*/
|
|
86
|
+
disabled?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Chat is disabled due to missing workspace trust.
|
|
89
|
+
*
|
|
90
|
+
* Note: even though this disables Chat, we want to treat it
|
|
91
|
+
* different from the `disabled` state that is by explicit
|
|
92
|
+
* user choice.
|
|
93
|
+
*/
|
|
94
|
+
untrusted?: boolean;
|
|
95
|
+
/**
|
|
96
|
+
* User signals intent to use Chat later.
|
|
97
|
+
*/
|
|
98
|
+
later?: boolean;
|
|
99
|
+
/**
|
|
100
|
+
* User has registered as Free or Pro user.
|
|
101
|
+
*/
|
|
102
|
+
registered?: boolean;
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Checks the chat entitlements to see if the user falls into the paid category
|
|
106
|
+
* @param chatEntitlement The chat entitlement to check
|
|
107
|
+
* @returns Whether or not they are a paid user
|
|
108
|
+
*/
|
|
109
|
+
export declare function isProUser(chatEntitlement: ChatEntitlement): boolean;
|
|
110
|
+
interface IChatQuotasAccessor {
|
|
111
|
+
clearQuotas(): void;
|
|
112
|
+
acceptQuotas(quotas: IQuotas): void;
|
|
113
|
+
}
|
|
114
|
+
export declare class ChatEntitlementService extends Disposable implements IChatEntitlementService {
|
|
115
|
+
private readonly contextKeyService;
|
|
116
|
+
private readonly configurationService;
|
|
117
|
+
_serviceBrand: undefined;
|
|
118
|
+
readonly context: Lazy<ChatEntitlementContext> | undefined;
|
|
119
|
+
readonly requests: Lazy<ChatEntitlementRequests> | undefined;
|
|
120
|
+
constructor(instantiationService: IInstantiationService, productService: IProductService, environmentService: IWorkbenchEnvironmentService, contextKeyService: IContextKeyService, configurationService: IConfigurationService);
|
|
121
|
+
readonly onDidChangeEntitlement: Event<void>;
|
|
122
|
+
readonly entitlementObs: IObservable<ChatEntitlement>;
|
|
123
|
+
get entitlement(): ChatEntitlement;
|
|
124
|
+
get isInternal(): boolean;
|
|
125
|
+
get organisations(): string[] | undefined;
|
|
126
|
+
get sku(): string | undefined;
|
|
127
|
+
private readonly _onDidChangeQuotaExceeded;
|
|
128
|
+
readonly onDidChangeQuotaExceeded: Event<void>;
|
|
129
|
+
private readonly _onDidChangeQuotaRemaining;
|
|
130
|
+
readonly onDidChangeQuotaRemaining: Event<void>;
|
|
131
|
+
private _quotas;
|
|
132
|
+
get quotas(): IQuotas;
|
|
133
|
+
private readonly chatQuotaExceededContextKey;
|
|
134
|
+
private readonly completionsQuotaExceededContextKey;
|
|
135
|
+
private ExtensionQuotaContextKeys;
|
|
136
|
+
private registerListeners;
|
|
137
|
+
acceptQuotas(quotas: IQuotas): void;
|
|
138
|
+
private compareQuotas;
|
|
139
|
+
clearQuotas(): void;
|
|
140
|
+
private updateContextKeys;
|
|
141
|
+
readonly onDidChangeSentiment: Event<void>;
|
|
142
|
+
readonly sentimentObs: IObservable<IChatSentiment>;
|
|
143
|
+
get sentiment(): IChatSentiment;
|
|
144
|
+
private readonly anonymousContextKey;
|
|
145
|
+
private readonly _onDidChangeAnonymous;
|
|
146
|
+
readonly onDidChangeAnonymous: Event<void>;
|
|
147
|
+
readonly anonymousObs: IObservable<boolean>;
|
|
148
|
+
get anonymous(): boolean;
|
|
149
|
+
update(token: CancellationToken): Promise<void>;
|
|
150
|
+
}
|
|
151
|
+
interface IEntitlements {
|
|
152
|
+
readonly entitlement: ChatEntitlement;
|
|
153
|
+
readonly organisations?: string[];
|
|
154
|
+
readonly sku?: string;
|
|
155
|
+
readonly quotas?: IQuotas;
|
|
156
|
+
}
|
|
157
|
+
export interface IQuotaSnapshot {
|
|
158
|
+
readonly total: number;
|
|
159
|
+
readonly remaining: number;
|
|
160
|
+
readonly percentRemaining: number;
|
|
161
|
+
readonly overageEnabled: boolean;
|
|
162
|
+
readonly overageCount: number;
|
|
163
|
+
readonly unlimited: boolean;
|
|
164
|
+
}
|
|
165
|
+
export interface IQuotas {
|
|
166
|
+
readonly resetDate?: string;
|
|
167
|
+
readonly resetDateHasTime?: boolean;
|
|
168
|
+
readonly chat?: IQuotaSnapshot;
|
|
169
|
+
readonly completions?: IQuotaSnapshot;
|
|
170
|
+
readonly premiumChat?: IQuotaSnapshot;
|
|
171
|
+
}
|
|
172
|
+
export declare class ChatEntitlementRequests extends Disposable {
|
|
173
|
+
private readonly context;
|
|
174
|
+
private readonly chatQuotasAccessor;
|
|
175
|
+
private readonly telemetryService;
|
|
176
|
+
private readonly authenticationService;
|
|
177
|
+
private readonly logService;
|
|
178
|
+
private readonly requestService;
|
|
179
|
+
private readonly dialogService;
|
|
180
|
+
private readonly openerService;
|
|
181
|
+
private readonly configurationService;
|
|
182
|
+
private readonly authenticationExtensionsService;
|
|
183
|
+
private readonly lifecycleService;
|
|
184
|
+
static providerId(configurationService: IConfigurationService): string;
|
|
185
|
+
private state;
|
|
186
|
+
private pendingResolveCts;
|
|
187
|
+
private didResolveEntitlements;
|
|
188
|
+
constructor(context: ChatEntitlementContext, chatQuotasAccessor: IChatQuotasAccessor, telemetryService: ITelemetryService, authenticationService: IAuthenticationService, logService: ILogService, requestService: IRequestService, dialogService: IDialogService, openerService: IOpenerService, configurationService: IConfigurationService, authenticationExtensionsService: IAuthenticationExtensionsService, lifecycleService: ILifecycleService);
|
|
189
|
+
private registerListeners;
|
|
190
|
+
private resolve;
|
|
191
|
+
private findMatchingProviderSession;
|
|
192
|
+
private doGetSessions;
|
|
193
|
+
private includesScopes;
|
|
194
|
+
private resolveEntitlement;
|
|
195
|
+
private doResolveEntitlement;
|
|
196
|
+
private getEntitlementUrl;
|
|
197
|
+
private toQuotas;
|
|
198
|
+
private request;
|
|
199
|
+
private update;
|
|
200
|
+
forceResolveEntitlement(sessions: AuthenticationSession[] | undefined, token?: Readonly<CancellationToken>): Promise<IEntitlements | undefined>;
|
|
201
|
+
signUpFree(sessions: AuthenticationSession[]): Promise<true | false | {
|
|
202
|
+
errorCode: number;
|
|
203
|
+
}>;
|
|
204
|
+
private onUnknownSignUpError;
|
|
205
|
+
private onUnprocessableSignUpError;
|
|
206
|
+
signIn(options?: {
|
|
207
|
+
useSocialProvider?: string;
|
|
208
|
+
additionalScopes?: readonly string[];
|
|
209
|
+
}): Promise<{
|
|
210
|
+
session: AuthenticationSession;
|
|
211
|
+
entitlements: IEntitlements | undefined;
|
|
212
|
+
}>;
|
|
213
|
+
dispose(): void;
|
|
214
|
+
}
|
|
215
|
+
export interface IChatEntitlementContextState extends IChatSentiment {
|
|
216
|
+
/**
|
|
217
|
+
* Users last known or resolved entitlement.
|
|
218
|
+
*/
|
|
219
|
+
entitlement: ChatEntitlement;
|
|
220
|
+
/**
|
|
221
|
+
* User's last known or resolved raw SKU type.
|
|
222
|
+
*/
|
|
223
|
+
sku: string | undefined;
|
|
224
|
+
/**
|
|
225
|
+
* User's last known or resolved organisations.
|
|
226
|
+
*/
|
|
227
|
+
organisations: string[] | undefined;
|
|
228
|
+
/**
|
|
229
|
+
* User is or was a registered Chat user.
|
|
230
|
+
*/
|
|
231
|
+
registered?: boolean;
|
|
232
|
+
}
|
|
233
|
+
export declare class ChatEntitlementContext extends Disposable {
|
|
234
|
+
private readonly storageService;
|
|
235
|
+
private readonly logService;
|
|
236
|
+
private readonly configurationService;
|
|
237
|
+
private readonly telemetryService;
|
|
238
|
+
private static readonly CHAT_ENTITLEMENT_CONTEXT_STORAGE_KEY;
|
|
239
|
+
private static readonly CHAT_DISABLED_CONFIGURATION_KEY;
|
|
240
|
+
private readonly canSignUpContextKey;
|
|
241
|
+
private readonly signedOutContextKey;
|
|
242
|
+
private readonly freeContextKey;
|
|
243
|
+
private readonly proContextKey;
|
|
244
|
+
private readonly proPlusContextKey;
|
|
245
|
+
private readonly businessContextKey;
|
|
246
|
+
private readonly enterpriseContextKey;
|
|
247
|
+
private readonly organisationsContextKey;
|
|
248
|
+
private readonly isInternalContextKey;
|
|
249
|
+
private readonly skuContextKey;
|
|
250
|
+
private readonly hiddenContext;
|
|
251
|
+
private readonly laterContext;
|
|
252
|
+
private readonly installedContext;
|
|
253
|
+
private readonly disabledContext;
|
|
254
|
+
private readonly untrustedContext;
|
|
255
|
+
private readonly registeredContext;
|
|
256
|
+
private _state;
|
|
257
|
+
private suspendedState;
|
|
258
|
+
get state(): IChatEntitlementContextState;
|
|
259
|
+
private readonly _onDidChange;
|
|
260
|
+
readonly onDidChange: Event<void>;
|
|
261
|
+
private updateBarrier;
|
|
262
|
+
constructor(contextKeyService: IContextKeyService, storageService: IStorageService, logService: ILogService, configurationService: IConfigurationService, telemetryService: ITelemetryService);
|
|
263
|
+
private registerListeners;
|
|
264
|
+
private withConfiguration;
|
|
265
|
+
update(context: {
|
|
266
|
+
installed: boolean;
|
|
267
|
+
disabled: boolean;
|
|
268
|
+
untrusted: boolean;
|
|
269
|
+
}): Promise<void>;
|
|
270
|
+
update(context: {
|
|
271
|
+
hidden: false;
|
|
272
|
+
}): Promise<void>;
|
|
273
|
+
update(context: {
|
|
274
|
+
later: boolean;
|
|
275
|
+
}): Promise<void>;
|
|
276
|
+
update(context: {
|
|
277
|
+
entitlement: ChatEntitlement;
|
|
278
|
+
organisations: string[] | undefined;
|
|
279
|
+
sku: string | undefined;
|
|
280
|
+
}): Promise<void>;
|
|
281
|
+
private updateContext;
|
|
282
|
+
private updateContextSync;
|
|
283
|
+
suspend(): void;
|
|
284
|
+
resume(): void;
|
|
285
|
+
}
|
|
286
|
+
export {};
|