@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
|
@@ -80,8 +80,8 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
80
80
|
DefaultFormatter_1.extensionItemLabels.length = 0;
|
|
81
81
|
DefaultFormatter_1.extensionDescriptions.length = 0;
|
|
82
82
|
DefaultFormatter_1.extensionIds.push(null);
|
|
83
|
-
DefaultFormatter_1.extensionItemLabels.push(( localize(
|
|
84
|
-
DefaultFormatter_1.extensionDescriptions.push(( localize(
|
|
83
|
+
DefaultFormatter_1.extensionItemLabels.push(( localize(7845, 'None')));
|
|
84
|
+
DefaultFormatter_1.extensionDescriptions.push(( localize(7846, "None")));
|
|
85
85
|
for (const extension of extensions) {
|
|
86
86
|
if (extension.main || extension.browser) {
|
|
87
87
|
DefaultFormatter_1.extensionIds.push(extension.identifier.value);
|
|
@@ -108,13 +108,13 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
108
108
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
109
109
|
const detail = kind === FormattingKind.File
|
|
110
110
|
? ( localize(
|
|
111
|
-
|
|
111
|
+
7847,
|
|
112
112
|
"Extension '{0}' is configured as formatter but it cannot format '{1}'-files",
|
|
113
113
|
extension.displayName || extension.name,
|
|
114
114
|
langName
|
|
115
115
|
))
|
|
116
116
|
: ( localize(
|
|
117
|
-
|
|
117
|
+
7848,
|
|
118
118
|
"Extension '{0}' is configured as formatter but it can only format '{1}'-files as a whole, not selections or parts of it.",
|
|
119
119
|
extension.displayName || extension.name,
|
|
120
120
|
langName
|
|
@@ -128,12 +128,12 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
128
128
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
129
129
|
const message = !defaultFormatterId
|
|
130
130
|
? ( localize(
|
|
131
|
-
|
|
131
|
+
7849,
|
|
132
132
|
"There are multiple formatters for '{0}' files. One of them should be configured as default formatter.",
|
|
133
133
|
DefaultFormatter_1._maybeQuotes(langName)
|
|
134
134
|
))
|
|
135
135
|
: ( localize(
|
|
136
|
-
|
|
136
|
+
7850,
|
|
137
137
|
"Extension '{0}' is configured as formatter but not available. Select a different default formatter to continue.",
|
|
138
138
|
defaultFormatterId
|
|
139
139
|
));
|
|
@@ -146,16 +146,16 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
146
146
|
}
|
|
147
147
|
if (mode !== FormattingMode.Silent) {
|
|
148
148
|
const { confirmed } = await this._dialogService.confirm({
|
|
149
|
-
message: ( localize(
|
|
149
|
+
message: ( localize(7851, "Configure Default Formatter")),
|
|
150
150
|
detail: formatterOrMessage,
|
|
151
|
-
primaryButton: ( localize(
|
|
151
|
+
primaryButton: ( localize(7852, "&&Configure..."))
|
|
152
152
|
});
|
|
153
153
|
if (confirmed) {
|
|
154
154
|
return this._pickAndPersistDefaultFormatter(formatter, document);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
else {
|
|
158
|
-
this._notificationService.prompt(Severity$1.Info, formatterOrMessage, [{ label: ( localize(
|
|
158
|
+
this._notificationService.prompt(Severity$1.Info, formatterOrMessage, [{ label: ( localize(7853, "Configure...")), run: () => this._pickAndPersistDefaultFormatter(formatter, document) }], { priority: NotificationPriority.SILENT });
|
|
159
159
|
}
|
|
160
160
|
return undefined;
|
|
161
161
|
}
|
|
@@ -169,7 +169,7 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
169
169
|
}));
|
|
170
170
|
const langName = this._languageService.getLanguageName(document.getLanguageId()) || document.getLanguageId();
|
|
171
171
|
const pick = await this._quickInputService.pick(picks, { placeHolder: ( localize(
|
|
172
|
-
|
|
172
|
+
7854,
|
|
173
173
|
"Select a default formatter for '{0}' files",
|
|
174
174
|
DefaultFormatter_1._maybeQuotes(langName)
|
|
175
175
|
)) });
|
|
@@ -202,14 +202,14 @@ let DefaultFormatter = class DefaultFormatter extends Disposable {
|
|
|
202
202
|
if (typeof result !== 'string') {
|
|
203
203
|
return;
|
|
204
204
|
}
|
|
205
|
-
const command = { id: `formatter/configure/dfl/${generateUuid()}`, title: ( localize(
|
|
205
|
+
const command = { id: `formatter/configure/dfl/${generateUuid()}`, title: ( localize(7855, "Configure...")) };
|
|
206
206
|
this._languageStatusStore.add(CommandsRegistry.registerCommand(command.id, () => this._pickAndPersistDefaultFormatter(formatter, document)));
|
|
207
207
|
this._languageStatusStore.add(this._languageStatusService.addStatus({
|
|
208
208
|
id: 'formatter.conflict',
|
|
209
|
-
name: ( localize(
|
|
209
|
+
name: ( localize(7856, "Formatter Conflicts")),
|
|
210
210
|
selector: { language: document.getLanguageId(), pattern: document.uri.fsPath },
|
|
211
211
|
severity: Severity$1.Error,
|
|
212
|
-
label: ( localize(
|
|
212
|
+
label: ( localize(7857, "Formatting")),
|
|
213
213
|
detail: result,
|
|
214
214
|
busy: false,
|
|
215
215
|
source: '',
|
|
@@ -237,7 +237,7 @@ DefaultFormatter = DefaultFormatter_1 = ( __decorate([
|
|
|
237
237
|
properties: {
|
|
238
238
|
[DefaultFormatter.configName]: {
|
|
239
239
|
description: ( localize(
|
|
240
|
-
|
|
240
|
+
7858,
|
|
241
241
|
"Defines a default formatter which takes precedence over all other formatter settings. Must be the identifier of an extension contributing a formatter."
|
|
242
242
|
)),
|
|
243
243
|
type: ['string', 'null'],
|
|
@@ -260,7 +260,7 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
260
260
|
const pick = {
|
|
261
261
|
index,
|
|
262
262
|
label: provider.displayName || '',
|
|
263
|
-
description: isDefault ? ( localize(
|
|
263
|
+
description: isDefault ? ( localize(7859, "(default)")) : undefined,
|
|
264
264
|
};
|
|
265
265
|
if (isDefault) {
|
|
266
266
|
defaultFormatterPick = pick;
|
|
@@ -268,10 +268,10 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
268
268
|
return pick;
|
|
269
269
|
}));
|
|
270
270
|
const configurePick = {
|
|
271
|
-
label: ( localize(
|
|
271
|
+
label: ( localize(7860, "Configure Default Formatter..."))
|
|
272
272
|
};
|
|
273
273
|
const pick = await quickPickService.pick([...picks, { type: 'separator' }, configurePick], {
|
|
274
|
-
placeHolder: ( localize(
|
|
274
|
+
placeHolder: ( localize(7861, "Select a formatter")),
|
|
275
275
|
activeItem: defaultFormatterPick
|
|
276
276
|
});
|
|
277
277
|
if (!pick) {
|
|
@@ -280,7 +280,7 @@ async function showFormatterPick(accessor, model, formatters) {
|
|
|
280
280
|
else if (pick === configurePick) {
|
|
281
281
|
const langName = languageService.getLanguageName(model.getLanguageId()) || model.getLanguageId();
|
|
282
282
|
const pick = await quickPickService.pick(picks, { placeHolder: ( localize(
|
|
283
|
-
|
|
283
|
+
7854,
|
|
284
284
|
"Select a default formatter for '{0}' files",
|
|
285
285
|
DefaultFormatter._maybeQuotes(langName)
|
|
286
286
|
)) });
|
|
@@ -297,7 +297,7 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
297
297
|
constructor() {
|
|
298
298
|
super({
|
|
299
299
|
id: 'editor.action.formatDocument.multiple',
|
|
300
|
-
label: ( localize(
|
|
300
|
+
label: ( localize(7862, "Format Document With...")),
|
|
301
301
|
alias: 'Format Document...',
|
|
302
302
|
precondition: ( ContextKeyExpr.and(
|
|
303
303
|
EditorContextKeys.writable,
|
|
@@ -327,7 +327,7 @@ registerEditorAction(class FormatSelectionMultipleAction extends EditorAction {
|
|
|
327
327
|
constructor() {
|
|
328
328
|
super({
|
|
329
329
|
id: 'editor.action.formatSelection.multiple',
|
|
330
|
-
label: ( localize(
|
|
330
|
+
label: ( localize(7863, "Format Selection With...")),
|
|
331
331
|
alias: 'Format Code...',
|
|
332
332
|
precondition: ( ContextKeyExpr.and(( ContextKeyExpr.and(EditorContextKeys.writable)), EditorContextKeys.hasMultipleDocumentSelectionFormattingProvider)),
|
|
333
333
|
contextMenuOpts: {
|
|
@@ -15,7 +15,7 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
15
15
|
constructor() {
|
|
16
16
|
super({
|
|
17
17
|
id: 'editor.action.formatDocument.none',
|
|
18
|
-
label: ( localize2(
|
|
18
|
+
label: ( localize2(7864, "Format Document")),
|
|
19
19
|
precondition: ( ContextKeyExpr.and(EditorContextKeys.writable, ( EditorContextKeys.hasDocumentFormattingProvider.toNegated()))),
|
|
20
20
|
kbOpts: {
|
|
21
21
|
kbExpr: EditorContextKeys.editorTextFocus,
|
|
@@ -43,14 +43,14 @@ registerEditorAction(class FormatDocumentMultipleAction extends EditorAction {
|
|
|
43
43
|
return commandService.executeCommand('editor.action.formatDocument');
|
|
44
44
|
}
|
|
45
45
|
else if (model.isTooLargeForSyncing()) {
|
|
46
|
-
notificationService.warn(( localize(
|
|
46
|
+
notificationService.warn(( localize(7865, "This file cannot be formatted because it is too large")));
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
49
|
const langName = model.getLanguageId();
|
|
50
|
-
const message = ( localize(
|
|
50
|
+
const message = ( localize(7866, "There is no formatter for '{0}' files installed.", langName));
|
|
51
51
|
const { confirmed } = await dialogService.confirm({
|
|
52
52
|
message,
|
|
53
|
-
primaryButton: ( localize(
|
|
53
|
+
primaryButton: ( localize(7867, "&&Install Formatter..."))
|
|
54
54
|
});
|
|
55
55
|
if (confirmed) {
|
|
56
56
|
extensionsWorkbenchService.openSearch(`category:formatters ${langName}`);
|
|
@@ -19,7 +19,7 @@ registerEditorAction(class FormatModifiedAction extends EditorAction {
|
|
|
19
19
|
constructor() {
|
|
20
20
|
super({
|
|
21
21
|
id: 'editor.action.formatChanges',
|
|
22
|
-
label: ( localize2(
|
|
22
|
+
label: ( localize2(7868, "Format Modified Lines")),
|
|
23
23
|
precondition: ( ContextKeyExpr.and(
|
|
24
24
|
EditorContextKeys.writable,
|
|
25
25
|
EditorContextKeys.hasDocumentSelectionFormattingProvider
|
|
@@ -24,7 +24,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
24
24
|
static { this.IsReading = ( new RawContextKey(
|
|
25
25
|
'isReadingLineWithInlayHints',
|
|
26
26
|
false,
|
|
27
|
-
{ type: 'boolean', description: ( localize(
|
|
27
|
+
{ type: 'boolean', description: ( localize(7869, "Whether the current line and its inlay hints are currently focused")) }
|
|
28
28
|
)); }
|
|
29
29
|
static { this.ID = 'editor.contrib.InlayHintsAccessibility'; }
|
|
30
30
|
static get(editor) {
|
|
@@ -39,7 +39,7 @@ let InlayHintsAccessibility = class InlayHintsAccessibility {
|
|
|
39
39
|
this._ariaElement.style.position = 'fixed';
|
|
40
40
|
this._ariaElement.className = 'inlayhint-accessibility-element';
|
|
41
41
|
this._ariaElement.tabIndex = 0;
|
|
42
|
-
this._ariaElement.setAttribute('aria-description', ( localize(
|
|
42
|
+
this._ariaElement.setAttribute('aria-description', ( localize(7870, "Code with Inlay Hint Information")));
|
|
43
43
|
this._ctxIsReading = InlayHintsAccessibility_1.IsReading.bindTo(contextKeyService);
|
|
44
44
|
}
|
|
45
45
|
dispose() {
|
|
@@ -139,7 +139,7 @@ registerAction2(class StartReadHints extends EditorAction2 {
|
|
|
139
139
|
constructor() {
|
|
140
140
|
super({
|
|
141
141
|
id: 'inlayHints.startReadingLineWithHint',
|
|
142
|
-
title: ( localize2(
|
|
142
|
+
title: ( localize2(7871, "Read Line with Inlay Hints")),
|
|
143
143
|
precondition: EditorContextKeys.hasInlayHintsProvider,
|
|
144
144
|
f1: true
|
|
145
145
|
});
|
|
@@ -153,7 +153,7 @@ registerAction2(class StopReadHints extends EditorAction2 {
|
|
|
153
153
|
constructor() {
|
|
154
154
|
super({
|
|
155
155
|
id: 'inlayHints.stopReadingLineWithHint',
|
|
156
|
-
title: ( localize2(
|
|
156
|
+
title: ( localize2(7872, "Stop Inlay Hints Reading")),
|
|
157
157
|
precondition: InlayHintsAccessibility.IsReading,
|
|
158
158
|
f1: true,
|
|
159
159
|
keybinding: {
|
|
@@ -11,8 +11,8 @@ class ListResizeColumnAction extends Action2 {
|
|
|
11
11
|
constructor() {
|
|
12
12
|
super({
|
|
13
13
|
id: 'list.resizeColumn',
|
|
14
|
-
title: { value: ( localize(
|
|
15
|
-
category: { value: ( localize(
|
|
14
|
+
title: { value: ( localize(8095, "Resize Column")), original: 'Resize Column' },
|
|
15
|
+
category: { value: ( localize(8096, "List")), original: 'List' },
|
|
16
16
|
precondition: WorkbenchListFocusContextKey,
|
|
17
17
|
f1: true
|
|
18
18
|
});
|
|
@@ -17,14 +17,14 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
17
17
|
items.push({ label, index });
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
|
-
const column = await this._quickInputService.pick(items, { placeHolder: ( localize(
|
|
20
|
+
const column = await this._quickInputService.pick(items, { placeHolder: ( localize(8097, "Select the column to resize, type to filter.")) });
|
|
21
21
|
if (!column) {
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
24
|
const value = await this._quickInputService.input({
|
|
25
|
-
placeHolder: ( localize(
|
|
25
|
+
placeHolder: ( localize(8098, "i.e. 20, 60, 100...")),
|
|
26
26
|
prompt: ( localize(
|
|
27
|
-
|
|
27
|
+
8099,
|
|
28
28
|
"Please enter a width in percentage for the '{0}' column.",
|
|
29
29
|
column.label
|
|
30
30
|
)),
|
|
@@ -39,11 +39,11 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
39
39
|
async _validateColumnResizeValue(input) {
|
|
40
40
|
const percentage = Number.parseInt(input);
|
|
41
41
|
if (input && !Number.isInteger(percentage)) {
|
|
42
|
-
return localize(
|
|
42
|
+
return localize(8100, "Please enter an integer.");
|
|
43
43
|
}
|
|
44
44
|
else if (percentage < 0 || percentage > 100) {
|
|
45
45
|
return localize(
|
|
46
|
-
|
|
46
|
+
8101,
|
|
47
47
|
"Please enter a number greater than 0 and less than or equal to 100."
|
|
48
48
|
);
|
|
49
49
|
}
|
|
@@ -20,7 +20,10 @@ export interface IMcpHostDelegate {
|
|
|
20
20
|
readonly priority: number;
|
|
21
21
|
waitForInitialProviderPromises(): Promise<void>;
|
|
22
22
|
canStart(collectionDefinition: McpCollectionDefinition, serverDefinition: McpServerDefinition): boolean;
|
|
23
|
-
|
|
23
|
+
substituteVariables(serverDefinition: McpServerDefinition, launch: McpServerLaunch): Promise<McpServerLaunch>;
|
|
24
|
+
start(collectionDefinition: McpCollectionDefinition, serverDefinition: McpServerDefinition, resolvedLaunch: McpServerLaunch, options?: {
|
|
25
|
+
errorOnUserInteraction?: boolean;
|
|
26
|
+
}): IMcpMessageTransport;
|
|
24
27
|
}
|
|
25
28
|
export interface IMcpResolveConnectionOptions {
|
|
26
29
|
logger: ILogger;
|
|
@@ -45,4 +48,6 @@ export interface IMcpResolveConnectionOptions {
|
|
|
45
48
|
autoTrustChanges?: boolean;
|
|
46
49
|
/** If set, try to launch with debugging when dev mode is configured */
|
|
47
50
|
debug?: boolean;
|
|
51
|
+
/** If true, throw an error if any user interaction would be required during startup. */
|
|
52
|
+
errorOnUserInteraction?: boolean;
|
|
48
53
|
}
|
|
@@ -132,6 +132,13 @@ export declare namespace McpServerDefinitionVariableReplacement {
|
|
|
132
132
|
function toSerialized(def: McpServerDefinitionVariableReplacement): McpServerDefinitionVariableReplacement.Serialized;
|
|
133
133
|
function fromSerialized(def: McpServerDefinitionVariableReplacement.Serialized): McpServerDefinitionVariableReplacement;
|
|
134
134
|
}
|
|
135
|
+
export interface IAutostartResult {
|
|
136
|
+
serversRequiringInteraction: Array<{
|
|
137
|
+
serverId: string;
|
|
138
|
+
serverLabel: string;
|
|
139
|
+
errorMessage?: string;
|
|
140
|
+
}>;
|
|
141
|
+
}
|
|
135
142
|
export declare enum LazyCollectionState {
|
|
136
143
|
HasUnknown = 0,
|
|
137
144
|
LoadingUnknown = 1,
|
|
@@ -174,6 +181,11 @@ export interface IMcpServerStartOpts {
|
|
|
174
181
|
debug?: boolean;
|
|
175
182
|
/** Correlate multiple interactions such that any trust prompts are presented in combination. */
|
|
176
183
|
interaction?: McpStartServerInteraction;
|
|
184
|
+
/**
|
|
185
|
+
* If true, throw an error if any user interaction would be required during startup.
|
|
186
|
+
* This includes variable resolution, trust prompts, and authentication prompts.
|
|
187
|
+
*/
|
|
188
|
+
errorOnUserInteraction?: boolean;
|
|
177
189
|
}
|
|
178
190
|
export declare namespace McpServerTrust {
|
|
179
191
|
enum Kind {
|
|
@@ -195,6 +207,7 @@ export interface IMcpServer extends IDisposable {
|
|
|
195
207
|
readonly serverMetadata: IObservable<{
|
|
196
208
|
serverName?: string;
|
|
197
209
|
serverInstructions?: string;
|
|
210
|
+
icons: IMcpIcons;
|
|
198
211
|
} | undefined>;
|
|
199
212
|
/**
|
|
200
213
|
* Full definition as it exists in the MCP registry. Unlike the references
|
|
@@ -240,6 +253,7 @@ export interface IMcpResource {
|
|
|
240
253
|
readonly description?: string;
|
|
241
254
|
readonly mimeType?: string;
|
|
242
255
|
readonly sizeInBytes?: number;
|
|
256
|
+
readonly icons: IMcpIcons;
|
|
243
257
|
}
|
|
244
258
|
export interface IMcpResourceTemplate {
|
|
245
259
|
readonly name: string;
|
|
@@ -247,6 +261,7 @@ export interface IMcpResourceTemplate {
|
|
|
247
261
|
readonly description?: string;
|
|
248
262
|
readonly mimeType?: string;
|
|
249
263
|
readonly template: UriTemplate;
|
|
264
|
+
readonly icons: IMcpIcons;
|
|
250
265
|
/** Gets string completions for the given template part. */
|
|
251
266
|
complete(templatePart: string, prefix: string, alreadyResolved: Record<string, string | string[]>, token: CancellationToken): Promise<string[]>;
|
|
252
267
|
/** Gets the resolved URI from template parts. */
|
|
@@ -290,6 +305,7 @@ export interface IMcpTool {
|
|
|
290
305
|
readonly id: string;
|
|
291
306
|
/** Name for #referencing in chat */
|
|
292
307
|
readonly referenceName: string;
|
|
308
|
+
readonly icons: IMcpIcons;
|
|
293
309
|
readonly definition: MCP.Tool;
|
|
294
310
|
/**
|
|
295
311
|
* Calls a tool
|
|
@@ -404,6 +420,7 @@ export declare namespace McpConnectionState {
|
|
|
404
420
|
const isRunning: (s: McpConnectionState) => boolean;
|
|
405
421
|
interface Stopped {
|
|
406
422
|
readonly state: Kind.Stopped;
|
|
423
|
+
readonly reason?: "needs-user-interaction";
|
|
407
424
|
}
|
|
408
425
|
interface Starting {
|
|
409
426
|
readonly state: Kind.Starting;
|
|
@@ -426,6 +443,12 @@ export declare class MpcResponseError extends Error {
|
|
|
426
443
|
}
|
|
427
444
|
export declare class McpConnectionFailedError extends Error {
|
|
428
445
|
}
|
|
446
|
+
export declare class UserInteractionRequiredError extends Error {
|
|
447
|
+
readonly reason: string;
|
|
448
|
+
private static readonly prefix;
|
|
449
|
+
static is(error: Error): boolean;
|
|
450
|
+
constructor(reason: string);
|
|
451
|
+
}
|
|
429
452
|
export interface IMcpConfigPath {
|
|
430
453
|
id: string;
|
|
431
454
|
key: "userLocalValue" | "userRemoteValue" | "workspaceValue" | "workspaceFolderValue";
|
|
@@ -479,6 +502,7 @@ export interface IWorkbenchMcpServer {
|
|
|
479
502
|
readonly publisherUrl?: string;
|
|
480
503
|
readonly publisherDisplayName?: string;
|
|
481
504
|
readonly starsCount?: number;
|
|
505
|
+
readonly license?: string;
|
|
482
506
|
readonly url?: string;
|
|
483
507
|
readonly repository?: string;
|
|
484
508
|
readonly config?: IMcpServerConfiguration | undefined;
|
|
@@ -536,3 +560,12 @@ export declare enum McpToolName {
|
|
|
536
560
|
MaxPrefixLen = 18,
|
|
537
561
|
MaxLength = 64
|
|
538
562
|
}
|
|
563
|
+
export declare const McpToolResourceLinkMimeType = "application/vnd.code.resource-link";
|
|
564
|
+
export interface IMcpToolResourceLinkContents {
|
|
565
|
+
uri: UriComponents;
|
|
566
|
+
underlyingMimeType?: string;
|
|
567
|
+
}
|
|
568
|
+
export interface IMcpIcons {
|
|
569
|
+
/** Gets the image URI appropriate to the approximate display size */
|
|
570
|
+
getUrl(size: number): URI | undefined;
|
|
571
|
+
}
|
|
@@ -159,13 +159,13 @@ var McpConnectionState;
|
|
|
159
159
|
McpConnectionState.toString = (s) => {
|
|
160
160
|
switch (s.state) {
|
|
161
161
|
case Kind.Stopped:
|
|
162
|
-
return localize(
|
|
162
|
+
return localize(8627, 'Stopped');
|
|
163
163
|
case Kind.Starting:
|
|
164
|
-
return localize(
|
|
164
|
+
return localize(8628, 'Starting');
|
|
165
165
|
case Kind.Running:
|
|
166
|
-
return localize(
|
|
166
|
+
return localize(8629, 'Running');
|
|
167
167
|
case Kind.Error:
|
|
168
|
-
return localize(
|
|
168
|
+
return localize(8630, 'Error {0}', s.message);
|
|
169
169
|
default:
|
|
170
170
|
assertNever();
|
|
171
171
|
}
|
|
@@ -196,6 +196,16 @@ class MpcResponseError extends Error {
|
|
|
196
196
|
}
|
|
197
197
|
class McpConnectionFailedError extends Error {
|
|
198
198
|
}
|
|
199
|
+
class UserInteractionRequiredError extends Error {
|
|
200
|
+
static { this.prefix = 'User interaction required: '; }
|
|
201
|
+
static is(error) {
|
|
202
|
+
return error.message.startsWith(this.prefix);
|
|
203
|
+
}
|
|
204
|
+
constructor(reason) {
|
|
205
|
+
super(`${UserInteractionRequiredError.prefix}${reason}`);
|
|
206
|
+
this.reason = reason;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
199
209
|
var McpServerEnablementState;
|
|
200
210
|
(function (McpServerEnablementState) {
|
|
201
211
|
McpServerEnablementState[McpServerEnablementState["DisabledByAccess"] = 0] = "DisabledByAccess";
|
|
@@ -318,5 +328,6 @@ var McpToolName;
|
|
|
318
328
|
McpToolName[McpToolName["MaxPrefixLen"] = 18] = "MaxPrefixLen";
|
|
319
329
|
McpToolName[McpToolName["MaxLength"] = 64] = "MaxLength";
|
|
320
330
|
})(McpToolName || (McpToolName = {}));
|
|
331
|
+
const McpToolResourceLinkMimeType = 'application/vnd.code.resource-link';
|
|
321
332
|
|
|
322
|
-
export { HasInstalledMcpServersContext, InstalledMcpServersViewId, LazyCollectionState, McpCapability, McpCollectionDefinition, McpCollectionSortOrder, McpConnectionFailedError, McpConnectionState, McpError, McpResourceURI, McpServerCacheState, McpServerContainers, McpServerDefinition, McpServerDefinitionVariableReplacement, McpServerEditorTab, McpServerEnablementState, McpServerInstallState, McpServerLaunch, McpServerTransportType, McpServerTrust, McpServersGalleryStatusContext, McpStartServerInteraction, McpToolName, MpcResponseError, extensionMcpCollectionPrefix, extensionPrefixedIdentifier, isMcpResourceTemplate, mcpPromptPrefix, mcpPromptReplaceSpecialChars };
|
|
333
|
+
export { HasInstalledMcpServersContext, InstalledMcpServersViewId, LazyCollectionState, McpCapability, McpCollectionDefinition, McpCollectionSortOrder, McpConnectionFailedError, McpConnectionState, McpError, McpResourceURI, McpServerCacheState, McpServerContainers, McpServerDefinition, McpServerDefinitionVariableReplacement, McpServerEditorTab, McpServerEnablementState, McpServerInstallState, McpServerLaunch, McpServerTransportType, McpServerTrust, McpServersGalleryStatusContext, McpStartServerInteraction, McpToolName, McpToolResourceLinkMimeType, MpcResponseError, UserInteractionRequiredError, extensionMcpCollectionPrefix, extensionPrefixedIdentifier, isMcpResourceTemplate, mcpPromptPrefix, mcpPromptReplaceSpecialChars };
|
|
@@ -7,7 +7,7 @@ import { URI } from "../../../../base/common/uri.js";
|
|
|
7
7
|
import { IQueryOptions } from "@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/platform/mcp/common/mcpManagement";
|
|
8
8
|
import { IWorkbenchLocalMcpServer, IWorkbencMcpServerInstallOptions } from "@codingame/monaco-vscode-mcp-service-override/vscode/vs/workbench/services/mcp/common/mcpWorkbenchManagementService";
|
|
9
9
|
import { IMcpServerSamplingConfiguration } from "@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration";
|
|
10
|
-
import { IMcpServer, LazyCollectionState, McpCollectionDefinition, type IMcpConfigPath, type IMcpServerEditorOptions, type
|
|
10
|
+
import { IMcpServer, LazyCollectionState, McpCollectionDefinition, IAutostartResult, type IMcpConfigPath, type IMcpServerEditorOptions, type IWorkbenchMcpServer, type ISamplingOptions, type ISamplingResult, type IMcpToolCallContext } from "./mcpTypes.js";
|
|
11
11
|
import { MCP } from "./modelContextProtocol.js";
|
|
12
12
|
export declare const IMcpService: import("../../../../platform/instantiation/common/instantiation.js").ServiceIdentifier<IMcpService>;
|
|
13
13
|
export interface IMcpService {
|
|
@@ -23,7 +23,7 @@ export interface IMcpService {
|
|
|
23
23
|
collections: McpCollectionDefinition[];
|
|
24
24
|
}>;
|
|
25
25
|
/** Auto-starts pending servers based on user settings. */
|
|
26
|
-
autostart(token?: CancellationToken): Promise<
|
|
26
|
+
autostart(token?: CancellationToken): Promise<IAutostartResult>;
|
|
27
27
|
/** Activatese extensions and runs their MCP servers. */
|
|
28
28
|
activateCollections(): Promise<void>;
|
|
29
29
|
}
|