@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
|
@@ -20,17 +20,17 @@ var MarkerSeverity;
|
|
|
20
20
|
}
|
|
21
21
|
MarkerSeverity.compare = compare;
|
|
22
22
|
const _displayStrings = Object.create(null);
|
|
23
|
-
_displayStrings[MarkerSeverity.Error] = ( localize(
|
|
24
|
-
_displayStrings[MarkerSeverity.Warning] = ( localize(
|
|
25
|
-
_displayStrings[MarkerSeverity.Info] = ( localize(
|
|
23
|
+
_displayStrings[MarkerSeverity.Error] = ( localize(1966, "Error"));
|
|
24
|
+
_displayStrings[MarkerSeverity.Warning] = ( localize(1967, "Warning"));
|
|
25
|
+
_displayStrings[MarkerSeverity.Info] = ( localize(1968, "Info"));
|
|
26
26
|
function toString(a) {
|
|
27
27
|
return _displayStrings[a] || '';
|
|
28
28
|
}
|
|
29
29
|
MarkerSeverity.toString = toString;
|
|
30
30
|
const _displayStringsPlural = Object.create(null);
|
|
31
|
-
_displayStringsPlural[MarkerSeverity.Error] = ( localize(
|
|
32
|
-
_displayStringsPlural[MarkerSeverity.Warning] = ( localize(
|
|
33
|
-
_displayStringsPlural[MarkerSeverity.Info] = ( localize(
|
|
31
|
+
_displayStringsPlural[MarkerSeverity.Error] = ( localize(1969, "Errors"));
|
|
32
|
+
_displayStringsPlural[MarkerSeverity.Warning] = ( localize(1970, "Warnings"));
|
|
33
|
+
_displayStringsPlural[MarkerSeverity.Info] = ( localize(1971, "Infos"));
|
|
34
34
|
function toStringPlural(a) {
|
|
35
35
|
return _displayStringsPlural[a] || '';
|
|
36
36
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
export declare enum McpGalleryResourceType {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
McpServersQueryService = "McpServersQueryService",
|
|
3
|
+
McpServersSearchService = "McpServersSearchService",
|
|
4
|
+
McpServerWebUri = "McpServerWebUriTemplate",
|
|
5
|
+
McpServerResourceUri = "McpServerResourceUriTemplate",
|
|
6
|
+
McpServerNamedResourceUri = "McpServerNamedResourceUriTemplate",
|
|
7
|
+
PublisherUriTemplate = "PublisherUriTemplate",
|
|
8
|
+
ContactSupportUri = "ContactSupportUri",
|
|
9
|
+
PrivacyPolicyUri = "PrivacyPolicyUri",
|
|
10
|
+
TermsOfServiceUri = "TermsOfServiceUri",
|
|
11
|
+
ReportUri = "ReportUri"
|
|
4
12
|
}
|
|
5
13
|
export type McpGalleryManifestResource = {
|
|
6
14
|
readonly id: string;
|
|
@@ -2,8 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var McpGalleryResourceType;
|
|
4
4
|
(function (McpGalleryResourceType) {
|
|
5
|
-
McpGalleryResourceType["
|
|
6
|
-
McpGalleryResourceType["
|
|
5
|
+
McpGalleryResourceType["McpServersQueryService"] = "McpServersQueryService";
|
|
6
|
+
McpGalleryResourceType["McpServersSearchService"] = "McpServersSearchService";
|
|
7
|
+
McpGalleryResourceType["McpServerWebUri"] = "McpServerWebUriTemplate";
|
|
8
|
+
McpGalleryResourceType["McpServerResourceUri"] = "McpServerResourceUriTemplate";
|
|
9
|
+
McpGalleryResourceType["McpServerNamedResourceUri"] = "McpServerNamedResourceUriTemplate";
|
|
10
|
+
McpGalleryResourceType["PublisherUriTemplate"] = "PublisherUriTemplate";
|
|
11
|
+
McpGalleryResourceType["ContactSupportUri"] = "ContactSupportUri";
|
|
12
|
+
McpGalleryResourceType["PrivacyPolicyUri"] = "PrivacyPolicyUri";
|
|
13
|
+
McpGalleryResourceType["TermsOfServiceUri"] = "TermsOfServiceUri";
|
|
14
|
+
McpGalleryResourceType["ReportUri"] = "ReportUri";
|
|
7
15
|
})(McpGalleryResourceType || (McpGalleryResourceType = {}));
|
|
8
16
|
var McpGalleryManifestStatus;
|
|
9
17
|
(function (McpGalleryManifestStatus) {
|
|
@@ -3,15 +3,15 @@ import { Event } from "../../../base/common/event.js";
|
|
|
3
3
|
import { IMarkdownString } from "../../../base/common/htmlContent.js";
|
|
4
4
|
import { IPager } from "@codingame/monaco-vscode-62190c26-af1c-5f7a-a364-e05a59cfb7c7-common/vscode/vs/base/common/paging";
|
|
5
5
|
import { URI } from "../../../base/common/uri.js";
|
|
6
|
-
import { IQueryOptions, IGalleryMcpServer, IGalleryMcpServerConfiguration, type DidUninstallMcpServerEvent, type IInstallableMcpServer, type ILocalMcpServer, type InstallMcpServerEvent, type InstallMcpServerResult, type InstallOptions, type RegistryType, type UninstallMcpServerEvent, type UninstallOptions } from "@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/platform/mcp/common/mcpManagement";
|
|
6
|
+
import { IQueryOptions, IGalleryMcpServer, IGalleryMcpServerConfiguration, type DidUninstallMcpServerEvent, type IInstallableMcpServer, type ILocalMcpServer, type InstallMcpServerEvent, type InstallMcpServerResult, type InstallOptions, type McpServerConfigurationParseResult, type RegistryType, type UninstallMcpServerEvent, type UninstallOptions } from "@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/platform/mcp/common/mcpManagement";
|
|
7
7
|
export declare const IMcpGalleryService: import("../../instantiation/common/instantiation.js").ServiceIdentifier<IMcpGalleryService>;
|
|
8
8
|
export interface IMcpGalleryService {
|
|
9
9
|
readonly _serviceBrand: undefined;
|
|
10
10
|
isEnabled(): boolean;
|
|
11
11
|
query(options?: IQueryOptions, token?: CancellationToken): Promise<IPager<IGalleryMcpServer>>;
|
|
12
|
-
getMcpServersFromVSCodeGallery(servers: string[]): Promise<IGalleryMcpServer[]>;
|
|
13
12
|
getMcpServersFromGallery(urls: string[]): Promise<IGalleryMcpServer[]>;
|
|
14
13
|
getMcpServer(url: string): Promise<IGalleryMcpServer | undefined>;
|
|
14
|
+
getMcpServerByName(name: string): Promise<IGalleryMcpServer | undefined>;
|
|
15
15
|
getMcpServerConfiguration(extension: IGalleryMcpServer, token: CancellationToken): Promise<IGalleryMcpServerConfiguration>;
|
|
16
16
|
getReadme(extension: IGalleryMcpServer, token: CancellationToken): Promise<string>;
|
|
17
17
|
}
|
|
@@ -29,7 +29,7 @@ export interface IMcpManagementService {
|
|
|
29
29
|
installFromGallery(server: IGalleryMcpServer, options?: InstallOptions): Promise<ILocalMcpServer>;
|
|
30
30
|
updateMetadata(local: ILocalMcpServer, server: IGalleryMcpServer, profileLocation?: URI): Promise<ILocalMcpServer>;
|
|
31
31
|
uninstall(server: ILocalMcpServer, options?: UninstallOptions): Promise<void>;
|
|
32
|
-
getMcpServerConfigurationFromManifest(manifest: IGalleryMcpServerConfiguration, packageType: RegistryType):
|
|
32
|
+
getMcpServerConfigurationFromManifest(manifest: IGalleryMcpServerConfiguration, packageType: RegistryType): McpServerConfigurationParseResult;
|
|
33
33
|
}
|
|
34
34
|
export declare const IAllowedMcpServersService: import("../../instantiation/common/instantiation.js").ServiceIdentifier<IAllowedMcpServersService>;
|
|
35
35
|
export interface IAllowedMcpServersService {
|
|
@@ -47,12 +47,12 @@ class NoOpProgress {
|
|
|
47
47
|
}
|
|
48
48
|
function withSeverityPrefix(label, severity) {
|
|
49
49
|
if (severity === Severity$1.Error) {
|
|
50
|
-
return localize(
|
|
50
|
+
return localize(1976, "Error: {0}", label);
|
|
51
51
|
}
|
|
52
52
|
if (severity === Severity$1.Warning) {
|
|
53
|
-
return localize(
|
|
53
|
+
return localize(1977, "Warning: {0}", label);
|
|
54
54
|
}
|
|
55
|
-
return localize(
|
|
55
|
+
return localize(1978, "Info: {0}", label);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
export { NeverShowAgainScope, NoOpNotification, NoOpProgress, NotificationPriority, NotificationsFilter, Severity$1 as Severity, isNotificationSource, withSeverityPrefix };
|
|
@@ -4,9 +4,9 @@ import productJson from '../../../../../product.json.js';
|
|
|
4
4
|
var product = {
|
|
5
5
|
...productJson,
|
|
6
6
|
quality: 'stable',
|
|
7
|
-
version: '1.
|
|
8
|
-
commit: '
|
|
9
|
-
date: '2025-10-
|
|
7
|
+
version: '1.105.0',
|
|
8
|
+
commit: '03c265b1adee71ac88f833e065f7bb956b60550a',
|
|
9
|
+
date: '2025-10-10T15:45:11.487Z',
|
|
10
10
|
...(globalThis._VSCODE_PRODUCT_JSON ?? {})
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -364,6 +364,7 @@ export declare class InputBox extends QuickInput implements IInputBox {
|
|
|
364
364
|
readonly onDidChangeValue: Event<string>;
|
|
365
365
|
readonly onDidAccept: Event<void>;
|
|
366
366
|
show(): void;
|
|
367
|
+
accept(): void;
|
|
367
368
|
protected update(): void;
|
|
368
369
|
}
|
|
369
370
|
export declare class QuickWidget extends QuickInput implements IQuickWidget {
|
|
@@ -26,25 +26,25 @@ import { observableValue } from '../../../base/common/observableInternal/observa
|
|
|
26
26
|
|
|
27
27
|
registerCss(quickInput);
|
|
28
28
|
const inQuickInputContextKeyValue = 'inQuickInput';
|
|
29
|
-
const InQuickInputContextKey = ( new RawContextKey(inQuickInputContextKeyValue, false, ( localize(
|
|
29
|
+
const InQuickInputContextKey = ( new RawContextKey(inQuickInputContextKeyValue, false, ( localize(1986, "Whether keyboard focus is inside the quick input control"))));
|
|
30
30
|
const inQuickInputContext = ( ContextKeyExpr.has(inQuickInputContextKeyValue));
|
|
31
31
|
const quickInputAlignmentContextKeyValue = 'quickInputAlignment';
|
|
32
|
-
const QuickInputAlignmentContextKey = ( new RawContextKey(quickInputAlignmentContextKeyValue, 'top', ( localize(
|
|
32
|
+
const QuickInputAlignmentContextKey = ( new RawContextKey(quickInputAlignmentContextKeyValue, 'top', ( localize(1987, "The alignment of the quick input"))));
|
|
33
33
|
const quickInputTypeContextKeyValue = 'quickInputType';
|
|
34
|
-
const QuickInputTypeContextKey = ( new RawContextKey(quickInputTypeContextKeyValue, undefined, ( localize(
|
|
34
|
+
const QuickInputTypeContextKey = ( new RawContextKey(quickInputTypeContextKeyValue, undefined, ( localize(1988, "The type of the currently visible quick input"))));
|
|
35
35
|
const endOfQuickInputBoxContextKeyValue = 'cursorAtEndOfQuickInputBox';
|
|
36
36
|
const EndOfQuickInputBoxContextKey = ( new RawContextKey(endOfQuickInputBoxContextKeyValue, false, ( localize(
|
|
37
|
-
|
|
37
|
+
1989,
|
|
38
38
|
"Whether the cursor in the quick input is at the end of the input box"
|
|
39
39
|
))));
|
|
40
40
|
const endOfQuickInputBoxContext = ( ContextKeyExpr.has(endOfQuickInputBoxContextKeyValue));
|
|
41
41
|
const backButton = {
|
|
42
42
|
iconClass: ThemeIcon.asClassName(Codicon.quickInputBack),
|
|
43
|
-
tooltip: ( localize(
|
|
43
|
+
tooltip: ( localize(1990, "Back")),
|
|
44
44
|
handle: -1
|
|
45
45
|
};
|
|
46
46
|
class QuickInput extends Disposable {
|
|
47
|
-
static { this.noPromptMessage = ( localize(
|
|
47
|
+
static { this.noPromptMessage = ( localize(1991, "Press 'Enter' to confirm your input or 'Escape' to cancel")); }
|
|
48
48
|
constructor(ui) {
|
|
49
49
|
super();
|
|
50
50
|
this.ui = ui;
|
|
@@ -324,7 +324,7 @@ class QuickInput extends Disposable {
|
|
|
324
324
|
}
|
|
325
325
|
getSteps() {
|
|
326
326
|
if (this.step && this.totalSteps) {
|
|
327
|
-
return localize(
|
|
327
|
+
return localize(1992, "{0}/{1}", this.step, this.totalSteps);
|
|
328
328
|
}
|
|
329
329
|
if (this.step) {
|
|
330
330
|
return String(this.step);
|
|
@@ -397,7 +397,7 @@ class QuickPick extends QuickInput {
|
|
|
397
397
|
this.onDidTriggerItemButton = this.onDidTriggerItemButtonEmitter.event;
|
|
398
398
|
this.onDidTriggerSeparatorButton = this.onDidTriggerSeparatorButtonEmitter.event;
|
|
399
399
|
}
|
|
400
|
-
static { this.DEFAULT_ARIA_LABEL = ( localize(
|
|
400
|
+
static { this.DEFAULT_ARIA_LABEL = ( localize(1993, "Type to narrow down results.")); }
|
|
401
401
|
get quickNavigate() {
|
|
402
402
|
return this._quickNavigate;
|
|
403
403
|
}
|
|
@@ -577,7 +577,7 @@ class QuickPick extends QuickInput {
|
|
|
577
577
|
this.update();
|
|
578
578
|
}
|
|
579
579
|
get okLabel() {
|
|
580
|
-
return this._okLabel ?? ( localize(
|
|
580
|
+
return this._okLabel ?? ( localize(1994, "OK"));
|
|
581
581
|
}
|
|
582
582
|
set okLabel(okLabel) {
|
|
583
583
|
this._okLabel = okLabel;
|
|
@@ -761,9 +761,14 @@ class QuickPick extends QuickInput {
|
|
|
761
761
|
}
|
|
762
762
|
let ariaLabel = this.ariaLabel;
|
|
763
763
|
if (!ariaLabel && visibilities.inputBox) {
|
|
764
|
-
ariaLabel = this.placeholder
|
|
764
|
+
ariaLabel = this.placeholder;
|
|
765
765
|
if (this.title) {
|
|
766
|
-
ariaLabel
|
|
766
|
+
ariaLabel = ariaLabel
|
|
767
|
+
? `${ariaLabel} - ${this.title}`
|
|
768
|
+
: this.title;
|
|
769
|
+
}
|
|
770
|
+
if (!ariaLabel) {
|
|
771
|
+
ariaLabel = QuickPick.DEFAULT_ARIA_LABEL;
|
|
767
772
|
}
|
|
768
773
|
}
|
|
769
774
|
if (this.ui.list.ariaLabel !== ariaLabel) {
|
|
@@ -853,11 +858,11 @@ class QuickPick extends QuickInput {
|
|
|
853
858
|
if (inBackground && !this._canAcceptInBackground) {
|
|
854
859
|
return;
|
|
855
860
|
}
|
|
856
|
-
if (this.activeItems[0]) {
|
|
861
|
+
if (this.activeItems[0] && !this._canSelectMany) {
|
|
857
862
|
this._selectedItems = [this.activeItems[0]];
|
|
858
863
|
this.onDidChangeSelectionEmitter.fire(this.selectedItems);
|
|
859
|
-
this.handleAccept(inBackground ?? false);
|
|
860
864
|
}
|
|
865
|
+
this.handleAccept(inBackground ?? false);
|
|
861
866
|
}
|
|
862
867
|
}
|
|
863
868
|
class InputBox extends QuickInput {
|
|
@@ -918,7 +923,7 @@ class InputBox extends QuickInput {
|
|
|
918
923
|
set prompt(prompt) {
|
|
919
924
|
this._prompt = prompt;
|
|
920
925
|
this.noValidationMessage = prompt
|
|
921
|
-
? ( localize(
|
|
926
|
+
? ( localize(1995, "{0} (Press 'Enter' to confirm or 'Escape' to cancel)", prompt))
|
|
922
927
|
: QuickInput.noPromptMessage;
|
|
923
928
|
this.update();
|
|
924
929
|
}
|
|
@@ -936,6 +941,9 @@ class InputBox extends QuickInput {
|
|
|
936
941
|
}
|
|
937
942
|
super.show();
|
|
938
943
|
}
|
|
944
|
+
accept() {
|
|
945
|
+
this.onDidAcceptEmitter.fire();
|
|
946
|
+
}
|
|
939
947
|
update() {
|
|
940
948
|
if (!this.visible) {
|
|
941
949
|
return;
|
|
@@ -997,7 +1005,7 @@ class QuickWidget extends QuickInput {
|
|
|
997
1005
|
}
|
|
998
1006
|
let QuickInputHoverDelegate = class QuickInputHoverDelegate extends WorkbenchHoverDelegate {
|
|
999
1007
|
constructor(configurationService, hoverService) {
|
|
1000
|
-
super('
|
|
1008
|
+
super('mouse', undefined, (options) => this.getOverrideOptions(options), configurationService, hoverService);
|
|
1001
1009
|
}
|
|
1002
1010
|
getOverrideOptions(options) {
|
|
1003
1011
|
const showHoverHint = (isHTMLElement(options.content)
|
|
@@ -4,22 +4,32 @@ import { isMacintosh } from '../../../base/common/platform.js';
|
|
|
4
4
|
import { localize } from '../../../nls.js';
|
|
5
5
|
import { ContextKeyExpr } from '../../contextkey/common/contextkey.js';
|
|
6
6
|
import { InputFocusedContext } from '../../contextkey/common/contextkeys.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { KeybindingsRegistry, KeybindingWeight } from '../../keybinding/common/keybindingsRegistry.js';
|
|
8
|
+
import { inQuickInputContext, quickInputTypeContextKeyValue, endOfQuickInputBoxContext } from './quickInput.js';
|
|
9
9
|
import { QuickInputType, QuickPickFocus } from '../common/quickInput.js';
|
|
10
10
|
import { IQuickInputService } from '../common/quickInput.service.js';
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}
|
|
12
|
+
function registerQuickInputCommandAndKeybindingRule(rule, options = {}) {
|
|
13
|
+
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
14
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
15
|
+
when: inQuickInputContext,
|
|
16
|
+
metadata: { description: ( localize(
|
|
17
|
+
1996,
|
|
18
|
+
"Used while in the context of any kind of quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well."
|
|
19
|
+
)) },
|
|
20
|
+
...rule,
|
|
21
|
+
secondary: getSecondary(rule.primary, rule.secondary ?? [], options)
|
|
22
|
+
});
|
|
23
|
+
}
|
|
20
24
|
function registerQuickPickCommandAndKeybindingRule(rule, options = {}) {
|
|
21
25
|
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
22
|
-
|
|
26
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
27
|
+
when: ( ContextKeyExpr.and(( ContextKeyExpr.or((
|
|
28
|
+
ContextKeyExpr.equals(quickInputTypeContextKeyValue, QuickInputType.QuickPick)), ( ContextKeyExpr.equals(quickInputTypeContextKeyValue, QuickInputType.QuickTree)))), inQuickInputContext)),
|
|
29
|
+
metadata: { description: ( localize(
|
|
30
|
+
1997,
|
|
31
|
+
"Used while in the context of the quick pick. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well."
|
|
32
|
+
)) },
|
|
23
33
|
...rule,
|
|
24
34
|
secondary: getSecondary(rule.primary, rule.secondary ?? [], options)
|
|
25
35
|
});
|
|
@@ -68,11 +78,11 @@ registerQuickPickCommandAndKeybindingRule({ id: 'quickInput.last', primary: ctrl
|
|
|
68
78
|
registerQuickPickCommandAndKeybindingRule({ id: 'quickInput.next', primary: KeyCode.DownArrow, handler: focusHandler(QuickPickFocus.Next) }, { withCtrlMod: true });
|
|
69
79
|
registerQuickPickCommandAndKeybindingRule({ id: 'quickInput.previous', primary: KeyCode.UpArrow, handler: focusHandler(QuickPickFocus.Previous) }, { withCtrlMod: true });
|
|
70
80
|
const nextSeparatorFallbackDesc = ( localize(
|
|
71
|
-
|
|
81
|
+
1998,
|
|
72
82
|
"If we're in quick access mode, this will navigate to the next item. If we are not in quick access mode, this will navigate to the next separator."
|
|
73
83
|
));
|
|
74
84
|
const prevSeparatorFallbackDesc = ( localize(
|
|
75
|
-
|
|
85
|
+
1999,
|
|
76
86
|
"If we're in quick access mode, this will navigate to the previous item. If we are not in quick access mode, this will navigate to the previous separator."
|
|
77
87
|
));
|
|
78
88
|
if (isMacintosh) {
|
|
@@ -125,6 +135,22 @@ else {
|
|
|
125
135
|
handler: focusHandler(QuickPickFocus.PreviousSeparator)
|
|
126
136
|
});
|
|
127
137
|
}
|
|
138
|
+
KeybindingsRegistry.registerCommandAndKeybindingRule({
|
|
139
|
+
id: 'quickInput.accept',
|
|
140
|
+
primary: KeyCode.Enter,
|
|
141
|
+
weight: KeybindingWeight.WorkbenchContrib,
|
|
142
|
+
when: ( ContextKeyExpr.and((
|
|
143
|
+
ContextKeyExpr.notEquals(quickInputTypeContextKeyValue, QuickInputType.QuickWidget)), inQuickInputContext)),
|
|
144
|
+
metadata: { description: ( localize(
|
|
145
|
+
2000,
|
|
146
|
+
"Used while in the context of some quick input. If you change one keybinding for this command, you should change all of the other keybindings (modifier variants) of this command as well."
|
|
147
|
+
)) },
|
|
148
|
+
handler: (accessor) => {
|
|
149
|
+
const currentQuickPick = accessor.get(IQuickInputService).currentQuickInput;
|
|
150
|
+
currentQuickPick?.accept();
|
|
151
|
+
},
|
|
152
|
+
secondary: getSecondary(KeyCode.Enter, [], { withAltMod: true, withCtrlMod: true, withCmdMod: true })
|
|
153
|
+
});
|
|
128
154
|
registerQuickPickCommandAndKeybindingRule({
|
|
129
155
|
id: 'quickInput.acceptInBackground',
|
|
130
156
|
when: ( ContextKeyExpr.and(inQuickInputContext, ( ContextKeyExpr.equals(quickInputTypeContextKeyValue, QuickInputType.QuickPick)), ( ContextKeyExpr.or(( InputFocusedContext.negate()), endOfQuickInputBoxContext)))),
|
|
@@ -135,6 +161,14 @@ registerQuickPickCommandAndKeybindingRule({
|
|
|
135
161
|
currentQuickPick?.accept(true);
|
|
136
162
|
},
|
|
137
163
|
}, { withAltMod: true, withCtrlMod: true, withCmdMod: true });
|
|
164
|
+
registerQuickInputCommandAndKeybindingRule({
|
|
165
|
+
id: 'quickInput.hide',
|
|
166
|
+
primary: KeyCode.Escape,
|
|
167
|
+
handler: (accessor) => {
|
|
168
|
+
const currentQuickPick = accessor.get(IQuickInputService).currentQuickInput;
|
|
169
|
+
currentQuickPick?.hide();
|
|
170
|
+
}
|
|
171
|
+
}, { withAltMod: true, withCtrlMod: true, withCmdMod: true });
|
|
138
172
|
registerQuickPickCommandAndKeybindingRule({
|
|
139
173
|
id: 'quickInput.toggleHover',
|
|
140
174
|
primary: ctrlKeyMod | KeyCode.Space,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
-
import { $ as $$1, onDidRegisterWindow, onWillUnregisterWindow, getWindow, EventType, addDisposableListener, append, trackFocus, isAncestor, isHTMLElement,
|
|
3
|
+
import { $ as $$1, onDidRegisterWindow, onWillUnregisterWindow, getWindow, EventType, addDisposableListener, append, trackFocus, isAncestor, isHTMLElement, reset, isAncestorOfActiveElement, addDisposableGenericMouseUpListener, addDisposableGenericMouseDownListener, addDisposableGenericMouseMoveListener, getActiveWindow } from '../../../base/browser/dom.js';
|
|
4
4
|
import { createStyleSheet } from '../../../base/browser/domStylesheets.js';
|
|
5
5
|
import { ActionBar } from '../../../base/browser/ui/actionbar/actionbar.js';
|
|
6
6
|
import { Button } from '../../../base/browser/ui/button/button.js';
|
|
@@ -8,7 +8,6 @@ import { CountBadge } from '../../../base/browser/ui/countBadge/countBadge.js';
|
|
|
8
8
|
import { ProgressBar } from '../../../base/browser/ui/progressbar/progressbar.js';
|
|
9
9
|
import { CancellationToken } from '../../../base/common/cancellation.js';
|
|
10
10
|
import { Emitter, Event } from '../../../base/common/event.js';
|
|
11
|
-
import { KeyCode } from '../../../base/common/keyCodes.js';
|
|
12
11
|
import { Disposable, dispose } from '../../../base/common/lifecycle.js';
|
|
13
12
|
import Severity$1 from '../../../base/common/severity.js';
|
|
14
13
|
import { isString } from '../../../base/common/types.js';
|
|
@@ -110,7 +109,7 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
110
109
|
const rightActionBar = this._register(( new ActionBar(titleBar, { hoverDelegate: this.options.hoverDelegate })));
|
|
111
110
|
rightActionBar.domNode.classList.add('quick-input-right-action-bar');
|
|
112
111
|
const headerContainer = append(container, $('.quick-input-header'));
|
|
113
|
-
const checkAll = this._register(( new TriStateCheckbox(( localize(
|
|
112
|
+
const checkAll = this._register(( new TriStateCheckbox(( localize(2001, "Toggle all checkboxes")), false, { ...defaultCheckboxStyles, size: 15 })));
|
|
114
113
|
append(headerContainer, checkAll.domNode);
|
|
115
114
|
this._register(checkAll.onChange(() => {
|
|
116
115
|
const checked = checkAll.checked;
|
|
@@ -129,21 +128,21 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
129
128
|
const visibleCountContainer = append(filterContainer, $('.quick-input-visible-count'));
|
|
130
129
|
visibleCountContainer.setAttribute('aria-live', 'polite');
|
|
131
130
|
visibleCountContainer.setAttribute('aria-atomic', 'true');
|
|
132
|
-
const visibleCount = this._register(( new CountBadge(visibleCountContainer, { countFormat: ( localize(
|
|
131
|
+
const visibleCount = this._register(( new CountBadge(visibleCountContainer, { countFormat: ( localize(2002, "{0} Results")) }, this.styles.countBadge)));
|
|
133
132
|
const countContainer = append(filterContainer, $('.quick-input-count'));
|
|
134
133
|
countContainer.setAttribute('aria-live', 'polite');
|
|
135
|
-
const count = this._register(( new CountBadge(countContainer, { countFormat: ( localize(
|
|
134
|
+
const count = this._register(( new CountBadge(countContainer, { countFormat: ( localize(2003, "{0} Selected")) }, this.styles.countBadge)));
|
|
136
135
|
const inlineActionBar = this._register(( new ActionBar(headerContainer, { hoverDelegate: this.options.hoverDelegate })));
|
|
137
136
|
inlineActionBar.domNode.classList.add('quick-input-inline-action-bar');
|
|
138
137
|
const okContainer = append(headerContainer, $('.quick-input-action'));
|
|
139
138
|
const ok = this._register(( new Button(okContainer, this.styles.button)));
|
|
140
|
-
ok.label = ( localize(
|
|
139
|
+
ok.label = ( localize(2004, "OK"));
|
|
141
140
|
this._register(ok.onDidClick(e => {
|
|
142
141
|
this.onDidAcceptEmitter.fire();
|
|
143
142
|
}));
|
|
144
143
|
const customButtonContainer = append(headerContainer, $('.quick-input-action'));
|
|
145
144
|
const customButton = this._register(( new Button(customButtonContainer, { ...this.styles.button, supportIcons: true })));
|
|
146
|
-
customButton.label = ( localize(
|
|
145
|
+
customButton.label = ( localize(2005, "Custom"));
|
|
147
146
|
this._register(customButton.onDidClick(e => {
|
|
148
147
|
this.onDidCustomEmitter.fire();
|
|
149
148
|
}));
|
|
@@ -196,6 +195,9 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
196
195
|
tree.tree.setFocus([]);
|
|
197
196
|
}, 0);
|
|
198
197
|
}));
|
|
198
|
+
this._register(tree.onDidAccept(() => {
|
|
199
|
+
this.onDidAcceptEmitter.fire();
|
|
200
|
+
}));
|
|
199
201
|
this._register(tree.tree.onDidChangeContentHeight(() => this.updateLayout()));
|
|
200
202
|
const focusTracker = trackFocus(container);
|
|
201
203
|
this._register(focusTracker);
|
|
@@ -231,59 +233,6 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
231
233
|
this._register(addDisposableListener(container, EventType.FOCUS, (e) => {
|
|
232
234
|
inputBox.setFocus();
|
|
233
235
|
}));
|
|
234
|
-
this._register(addStandardDisposableListener(container, EventType.KEY_DOWN, (event) => {
|
|
235
|
-
if (isAncestor(event.target, widget)) {
|
|
236
|
-
return;
|
|
237
|
-
}
|
|
238
|
-
switch (event.keyCode) {
|
|
239
|
-
case KeyCode.Enter:
|
|
240
|
-
EventHelper.stop(event, true);
|
|
241
|
-
if (this.enabled) {
|
|
242
|
-
this.onDidAcceptEmitter.fire();
|
|
243
|
-
}
|
|
244
|
-
break;
|
|
245
|
-
case KeyCode.Escape:
|
|
246
|
-
EventHelper.stop(event, true);
|
|
247
|
-
this.hide(QuickInputHideReason.Gesture);
|
|
248
|
-
break;
|
|
249
|
-
case KeyCode.Tab:
|
|
250
|
-
if (!event.altKey && !event.ctrlKey && !event.metaKey) {
|
|
251
|
-
const selectors = [
|
|
252
|
-
'.quick-input-list .monaco-action-bar .always-visible',
|
|
253
|
-
'.quick-input-list-entry:hover .monaco-action-bar',
|
|
254
|
-
'.monaco-list-row.focused .monaco-action-bar'
|
|
255
|
-
];
|
|
256
|
-
if (container.classList.contains('show-checkboxes')) {
|
|
257
|
-
selectors.push('input');
|
|
258
|
-
}
|
|
259
|
-
else {
|
|
260
|
-
selectors.push('input[type=text]');
|
|
261
|
-
}
|
|
262
|
-
if (this.getUI().list.displayed) {
|
|
263
|
-
selectors.push('.monaco-list');
|
|
264
|
-
}
|
|
265
|
-
if (this.getUI().message) {
|
|
266
|
-
selectors.push('.quick-input-message a');
|
|
267
|
-
}
|
|
268
|
-
if (this.getUI().widget) {
|
|
269
|
-
if (isAncestor(event.target, this.getUI().widget)) {
|
|
270
|
-
break;
|
|
271
|
-
}
|
|
272
|
-
selectors.push('.quick-input-html-widget');
|
|
273
|
-
}
|
|
274
|
-
const stops = container.querySelectorAll(selectors.join(', '));
|
|
275
|
-
if (!event.shiftKey && isAncestor(event.target, stops[stops.length - 1])) {
|
|
276
|
-
EventHelper.stop(event, true);
|
|
277
|
-
stops[0].focus();
|
|
278
|
-
}
|
|
279
|
-
if (event.shiftKey && isAncestor(event.target, stops[0])) {
|
|
280
|
-
EventHelper.stop(event, true);
|
|
281
|
-
stops[stops.length - 1].focus();
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
break;
|
|
285
|
-
}
|
|
286
|
-
}));
|
|
287
236
|
this.dndController = this._register(this.instantiationService.createInstance(QuickInputDragAndDropController, this._container, container, [
|
|
288
237
|
{
|
|
289
238
|
node: titleBar,
|
|
@@ -595,7 +544,7 @@ let QuickInputController = class QuickInputController extends Disposable {
|
|
|
595
544
|
ui.ignoreFocusOut = false;
|
|
596
545
|
ui.inputBox.toggles = undefined;
|
|
597
546
|
const backKeybindingLabel = this.options.backKeybindingLabel();
|
|
598
|
-
backButton.tooltip = backKeybindingLabel ? ( localize(
|
|
547
|
+
backButton.tooltip = backKeybindingLabel ? ( localize(2006, "Back ({0})", backKeybindingLabel)) : ( localize(2007, "Back"));
|
|
599
548
|
ui.container.style.display = '';
|
|
600
549
|
this.updateLayout();
|
|
601
550
|
this.dndController?.layoutContainer();
|
|
@@ -190,7 +190,7 @@ class QuickInputItemDelegate {
|
|
|
190
190
|
}
|
|
191
191
|
class QuickInputAccessibilityProvider {
|
|
192
192
|
getWidgetAriaLabel() {
|
|
193
|
-
return localize(
|
|
193
|
+
return localize(2008, "Quick Input");
|
|
194
194
|
}
|
|
195
195
|
getAriaLabel(element) {
|
|
196
196
|
return element.separator?.label
|
|
@@ -60,7 +60,7 @@ function renderQuickInputDescription(description, container, actionHandler) {
|
|
|
60
60
|
let title = node.title;
|
|
61
61
|
if (!title && node.href.startsWith('command:')) {
|
|
62
62
|
title = ( localize(
|
|
63
|
-
|
|
63
|
+
2009,
|
|
64
64
|
"Click to execute command '{0}'",
|
|
65
65
|
node.href.substring('command:'.length)
|
|
66
66
|
));
|
package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js
CHANGED
|
@@ -8,7 +8,7 @@ class QuickTreeAccessibilityProvider {
|
|
|
8
8
|
this.onCheckedEvent = onCheckedEvent;
|
|
9
9
|
}
|
|
10
10
|
getWidgetAriaLabel() {
|
|
11
|
-
return localize(
|
|
11
|
+
return localize(2013, "Quick Tree");
|
|
12
12
|
}
|
|
13
13
|
getAriaLabel(element) {
|
|
14
14
|
return element.ariaLabel || ( [element.label, element.description]
|
|
@@ -22,6 +22,11 @@ export declare class QuickInputTreeController extends Disposable {
|
|
|
22
22
|
* Event that is fired when the tree would no longer have focus.
|
|
23
23
|
*/
|
|
24
24
|
readonly onLeave: Event<void>;
|
|
25
|
+
private readonly _onDidAccept;
|
|
26
|
+
/**
|
|
27
|
+
* Event that is fired when a non-pickable item is clicked, indicating acceptance.
|
|
28
|
+
*/
|
|
29
|
+
readonly onDidAccept: Event<void>;
|
|
25
30
|
private readonly _container;
|
|
26
31
|
constructor(container: HTMLElement, hoverDelegate: IHoverDelegate | undefined, instantiationService: IInstantiationService);
|
|
27
32
|
get tree(): WorkbenchObjectTree<IQuickTreeItem, IQuickTreeFilterData>;
|
|
@@ -39,6 +44,7 @@ export declare class QuickInputTreeController extends Disposable {
|
|
|
39
44
|
focus(what: QuickPickFocus): void;
|
|
40
45
|
registerOnOpenListener(): void;
|
|
41
46
|
getCheckedLeafItems(): IQuickTreeItem[];
|
|
47
|
+
getActiveItems(): readonly IQuickTreeItem[];
|
|
42
48
|
check(element: IQuickTreeItem, checked: boolean | "partial"): void;
|
|
43
49
|
checkAll(checked: boolean | "partial"): void;
|
|
44
50
|
}
|
|
@@ -27,6 +27,8 @@ let QuickInputTreeController = class QuickInputTreeController extends Disposable
|
|
|
27
27
|
this.onDidChangeCheckedLeafItems = this._onDidCheckedLeafItemsChange.event;
|
|
28
28
|
this._onLeave = ( new Emitter());
|
|
29
29
|
this.onLeave = this._onLeave.event;
|
|
30
|
+
this._onDidAccept = this._register(( new Emitter()));
|
|
31
|
+
this.onDidAccept = this._onDidAccept.event;
|
|
30
32
|
this._container = append(container, $('.quick-input-tree'));
|
|
31
33
|
this._renderer = this._register(this.instantiationService.createInstance(QuickInputTreeRenderer, hoverDelegate, this._onDidTriggerButton, this.onDidChangeCheckboxState));
|
|
32
34
|
this._filter = this.instantiationService.createInstance(QuickInputTreeFilter);
|
|
@@ -193,6 +195,11 @@ let QuickInputTreeController = class QuickInputTreeController extends Disposable
|
|
|
193
195
|
if (item.disabled) {
|
|
194
196
|
return;
|
|
195
197
|
}
|
|
198
|
+
if (item.pickable === false) {
|
|
199
|
+
this._tree.setFocus([item]);
|
|
200
|
+
this._onDidAccept.fire();
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
196
203
|
const newState = item.checked !== true;
|
|
197
204
|
if ((item.checked ?? false) === newState) {
|
|
198
205
|
return;
|
|
@@ -248,6 +255,9 @@ let QuickInputTreeController = class QuickInputTreeController extends Disposable
|
|
|
248
255
|
}
|
|
249
256
|
return checkedItems;
|
|
250
257
|
}
|
|
258
|
+
getActiveItems() {
|
|
259
|
+
return this._tree.getFocus().filter((item) => item !== null);
|
|
260
|
+
}
|
|
251
261
|
check(element, checked) {
|
|
252
262
|
if (element.checked === checked) {
|
|
253
263
|
return;
|
|
@@ -60,11 +60,16 @@ let QuickInputTreeRenderer = class QuickInputTreeRenderer extends Disposable {
|
|
|
60
60
|
renderElement(node, index, templateData, _details) {
|
|
61
61
|
const store = templateData.toDisposeElement;
|
|
62
62
|
const quickTreeItem = node.element;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
templateData.checkbox.
|
|
63
|
+
if (quickTreeItem.pickable === false) {
|
|
64
|
+
templateData.checkbox.domNode.style.display = 'none';
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
templateData.checkbox.domNode.style.display = '';
|
|
68
|
+
templateData.checkbox.checked = quickTreeItem.checked ?? false;
|
|
69
|
+
store.add(Event.filter(this.onCheckedEvent, e => e.item === quickTreeItem)(e => templateData.checkbox.checked = e.checked));
|
|
70
|
+
if (quickTreeItem.disabled) {
|
|
71
|
+
templateData.checkbox.disable();
|
|
72
|
+
}
|
|
68
73
|
}
|
|
69
74
|
if (quickTreeItem.iconPath) {
|
|
70
75
|
const icon = isDark(this._themeService.getColorTheme().type) ? quickTreeItem.iconPath.dark : (quickTreeItem.iconPath.light ?? quickTreeItem.iconPath.dark);
|
|
@@ -9,7 +9,7 @@ import { observableValue } from '../../../../base/common/observableInternal/obse
|
|
|
9
9
|
import { autorun } from '../../../../base/common/observableInternal/reactions/autorun.js';
|
|
10
10
|
|
|
11
11
|
class QuickTree extends QuickInput {
|
|
12
|
-
static { this.DEFAULT_ARIA_LABEL = ( localize(
|
|
12
|
+
static { this.DEFAULT_ARIA_LABEL = ( localize(2014, "Type to narrow down results.")); }
|
|
13
13
|
constructor(ui) {
|
|
14
14
|
super(ui);
|
|
15
15
|
this.type = QuickInputType.QuickTree;
|
|
@@ -27,6 +27,9 @@ class QuickTree extends QuickInput {
|
|
|
27
27
|
this.onDidAccept = ui.onDidAccept;
|
|
28
28
|
this._registerAutoruns();
|
|
29
29
|
this._register(ui.tree.onDidChangeCheckedLeafItems(e => this._onDidChangeCheckedLeafItems.fire(e)));
|
|
30
|
+
this._register(ui.tree.tree.onDidChangeFocus(e => {
|
|
31
|
+
this._activeItems.set(ui.tree.getActiveItems(), undefined);
|
|
32
|
+
}));
|
|
30
33
|
}
|
|
31
34
|
get value() { return this._value.get(); }
|
|
32
35
|
set value(value) { this._value.set(value, undefined); }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Event } from "../../../base/common/event.js";
|
|
2
2
|
import { IMatch } from "../../../base/common/filters.js";
|
|
3
|
-
import { IItemAccessor } from "@codingame/monaco-vscode-
|
|
3
|
+
import { IItemAccessor } from "@codingame/monaco-vscode-a17e9d37-b6c1-5556-8402-5db73960fae3-common/vscode/vs/base/common/fuzzyScorer";
|
|
4
4
|
import { ResolvedKeybinding } from "../../../base/common/keybindings.js";
|
|
5
5
|
import { IDisposable } from "../../../base/common/lifecycle.js";
|
|
6
6
|
import Severity from "../../../base/common/severity.js";
|
|
@@ -648,6 +648,10 @@ export interface IInputBox extends IQuickInput {
|
|
|
648
648
|
* Severity of the input validation message.
|
|
649
649
|
*/
|
|
650
650
|
severity: Severity;
|
|
651
|
+
/**
|
|
652
|
+
* Programmatically accepts an item. Used internally for keyboard navigation.
|
|
653
|
+
*/
|
|
654
|
+
accept(): void;
|
|
651
655
|
}
|
|
652
656
|
export declare enum QuickInputButtonLocation {
|
|
653
657
|
/**
|
|
@@ -879,6 +883,11 @@ export interface IQuickTreeItem extends IQuickItem {
|
|
|
879
883
|
* The children of this tree item.
|
|
880
884
|
*/
|
|
881
885
|
children?: readonly IQuickTreeItem[];
|
|
886
|
+
/**
|
|
887
|
+
* Defaults to true, can be false to disable picks for a single item.
|
|
888
|
+
* When false, the item is not selectable and does not respond to mouse/keyboard activation.
|
|
889
|
+
*/
|
|
890
|
+
pickable?: boolean;
|
|
882
891
|
}
|
|
883
892
|
/**
|
|
884
893
|
* Represents an event that occurs when the checkbox state of a tree item changes.
|