@codingame/monaco-vscode-api 26.2.2 → 28.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 +507 -27
- package/package.json +9 -9
- package/service-override/tools/editor.d.ts +4 -2
- package/service-override/tools/editor.js +1 -0
- package/services.d.ts +16 -1
- package/services.js +21 -4
- package/vscode/product.json.js +1 -1
- package/vscode/src/vs/base/browser/dom.d.ts +0 -15
- package/vscode/src/vs/base/browser/dom.js +3 -42
- package/vscode/src/vs/base/browser/pixelRatio.js +4 -1
- package/vscode/src/vs/base/browser/ui/actionbar/actionViewItems.js +3 -3
- package/vscode/src/vs/base/browser/ui/actionbar/actionbar.css +1 -1
- package/vscode/src/vs/base/browser/ui/animations/animations.d.ts +40 -0
- package/vscode/src/vs/base/browser/ui/animations/animations.js +373 -0
- package/vscode/src/vs/base/browser/ui/button/button.js +11 -4
- package/vscode/src/vs/base/browser/ui/codicons/codicon/codicon.ttf +0 -0
- package/vscode/src/vs/base/browser/ui/contextview/contextview.d.ts +3 -42
- package/vscode/src/vs/base/browser/ui/contextview/contextview.js +48 -126
- package/vscode/src/vs/base/browser/ui/dialog/dialog.css +19 -2
- package/vscode/src/vs/base/browser/ui/dialog/dialog.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/dialog/dialog.js +2 -0
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.css +5 -0
- package/vscode/src/vs/base/browser/ui/dropdown/dropdown.js +2 -1
- package/vscode/src/vs/base/browser/ui/grid/grid.d.ts +2 -1
- package/vscode/src/vs/base/browser/ui/grid/grid.js +2 -2
- package/vscode/src/vs/base/browser/ui/grid/gridview.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/grid/gridview.js +6 -2
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.css +1 -0
- package/vscode/src/vs/base/browser/ui/inputbox/inputBox.js +8 -3
- package/vscode/src/vs/base/browser/ui/list/listView.js +9 -2
- package/vscode/src/vs/base/browser/ui/menu/menu.d.ts +1 -1
- package/vscode/src/vs/base/browser/ui/menu/menu.js +12 -10
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/progressbar/progressbar.js +6 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.css +2 -2
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.d.ts +1 -0
- package/vscode/src/vs/base/browser/ui/selectBox/selectBox.js +2 -1
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.css +42 -5
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxCustom.js +69 -35
- package/vscode/src/vs/base/browser/ui/selectBox/selectBoxNative.js +8 -3
- package/vscode/src/vs/base/browser/ui/splitview/paneview.js +1 -1
- package/vscode/src/vs/base/browser/ui/table/tableWidget.js +1 -1
- package/vscode/src/vs/base/browser/ui/toolbar/toolbar.js +1 -1
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.d.ts +3 -0
- package/vscode/src/vs/base/browser/ui/tree/abstractTree.js +24 -19
- package/vscode/src/vs/base/browser/ui/tree/asyncDataTree.js +3 -1
- package/vscode/src/vs/base/browser/ui/tree/treeDefaults.js +1 -1
- package/vscode/src/vs/base/common/actions.d.ts +4 -0
- package/vscode/src/vs/base/common/actions.js +15 -1
- package/vscode/src/vs/base/common/codicons.d.ts +2 -0
- package/vscode/src/vs/base/common/codiconsLibrary.d.ts +2 -0
- package/vscode/src/vs/base/common/codiconsLibrary.js +2 -0
- package/vscode/src/vs/base/common/date.js +40 -40
- package/vscode/src/vs/base/common/defaultAccount.d.ts +5 -0
- package/vscode/src/vs/base/common/errorMessage.js +6 -6
- package/vscode/src/vs/base/common/event.d.ts +3 -2
- package/vscode/src/vs/base/common/event.js +40 -1
- package/vscode/src/vs/base/common/jsonErrorMessages.js +9 -9
- package/vscode/src/vs/base/common/keyCodes.js +4 -2
- package/vscode/src/vs/base/common/keybindingLabels.js +20 -20
- package/vscode/src/vs/base/common/layout.d.ts +67 -0
- package/vscode/src/vs/base/common/layout.js +96 -0
- package/vscode/src/vs/base/common/lifecycle.d.ts +32 -0
- package/vscode/src/vs/base/common/lifecycle.js +58 -1
- package/vscode/src/vs/base/common/mime.js +7 -5
- package/vscode/src/vs/base/common/parsers.d.ts +32 -0
- package/vscode/src/vs/base/common/parsers.js +54 -0
- package/vscode/src/vs/base/common/platform.d.ts +1 -0
- package/vscode/src/vs/base/common/product.d.ts +2 -0
- package/vscode/src/vs/base/common/strings.d.ts +0 -30
- package/vscode/src/vs/base/common/strings.js +0 -11
- package/vscode/src/vs/base/common/uri.js +5 -1
- package/vscode/src/vs/base/common/yaml.d.ts +29 -53
- package/vscode/src/vs/base/common/yaml.js +1119 -502
- package/vscode/src/vs/base/parts/ipc/common/ipc.js +3 -2
- package/vscode/src/vs/base/parts/ipc/common/ipc.net.js +2 -2
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.d.ts +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/native/nativeEditContext.js +21 -11
- package/vscode/src/vs/editor/browser/controller/editContext/native/screenReaderSupport.js +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/screenReaderUtils.js +4 -4
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContext.js +1 -1
- package/vscode/src/vs/editor/browser/controller/editContext/textArea/textAreaEditContextInput.js +1 -1
- package/vscode/src/vs/editor/browser/coreCommands.js +3 -3
- package/vscode/src/vs/editor/browser/editorExtensions.js +9 -9
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/fullFileRenderStrategy.js +3 -0
- package/vscode/src/vs/editor/browser/gpu/renderStrategy/viewportRenderStrategy.js +3 -0
- package/vscode/src/vs/editor/browser/gpu/viewGpuContext.js +1 -1
- package/vscode/src/vs/editor/browser/services/inlineCompletionsService.js +4 -4
- package/vscode/src/vs/editor/browser/view/viewController.js +29 -9
- package/vscode/src/vs/editor/browser/view.d.ts +3 -1
- package/vscode/src/vs/editor/browser/view.js +10 -7
- package/vscode/src/vs/editor/browser/viewParts/minimap/minimap.css +5 -1
- package/vscode/src/vs/editor/browser/viewParts/viewLines/viewLine.js +1 -1
- package/vscode/src/vs/editor/browser/viewParts/whitespace/whitespace.js +0 -3
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.d.ts +3 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/codeEditorWidget.js +8 -4
- package/vscode/src/vs/editor/browser/widget/codeEditor/editor.css +1 -0
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.d.ts +2 -1
- package/vscode/src/vs/editor/browser/widget/codeEditor/embeddedCodeEditorWidget.js +4 -2
- package/vscode/src/vs/editor/browser/widget/diffEditor/commands.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/accessibleDiffViewer.js +12 -12
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorEditors.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/components/diffEditorViewZones/inlineDiffDeletedCodeMargin.js +4 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffEditor.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/diffEditor/diffProviderFactoryService.js +1 -0
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/hideUnchangedRegionsFeature.js +7 -7
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/movedBlocksLinesFeature.js +4 -4
- package/vscode/src/vs/editor/browser/widget/diffEditor/features/revertButtonsFeature.js +1 -1
- package/vscode/src/vs/editor/browser/widget/diffEditor/registrations.contribution.js +5 -5
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/colors.js +3 -3
- package/vscode/src/vs/editor/browser/widget/multiDiffEditor/multiDiffEditorWidgetImpl.js +1 -1
- package/vscode/src/vs/editor/common/config/editorConfigurationSchema.js +50 -50
- package/vscode/src/vs/editor/common/config/editorOptions.d.ts +10 -3
- package/vscode/src/vs/editor/common/config/editorOptions.js +428 -385
- package/vscode/src/vs/editor/common/core/editorColorRegistry.js +72 -72
- package/vscode/src/vs/editor/common/core/edits/stringEdit.d.ts +5 -0
- package/vscode/src/vs/editor/common/core/edits/stringEdit.js +19 -21
- package/vscode/src/vs/editor/common/core/ranges/offsetRange.d.ts +4 -0
- package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.d.ts +7 -1
- package/vscode/src/vs/editor/common/cursor/cursorMoveCommands.js +93 -3
- package/vscode/src/vs/editor/common/editorContextKeys.d.ts +1 -0
- package/vscode/src/vs/editor/common/editorContextKeys.js +49 -48
- package/vscode/src/vs/editor/common/languageFeatureRegistry.d.ts +1 -0
- package/vscode/src/vs/editor/common/languageFeatureRegistry.js +8 -1
- package/vscode/src/vs/editor/common/languageSelector.d.ts +1 -0
- package/vscode/src/vs/editor/common/languageSelector.js +15 -1
- package/vscode/src/vs/editor/common/languages/modesRegistry.js +1 -1
- package/vscode/src/vs/editor/common/languages.d.ts +13 -0
- package/vscode/src/vs/editor/common/languages.js +56 -56
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsImpl.js +1 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/bracketPairsTree/bracketPairsTree.js +1 -1
- package/vscode/src/vs/editor/common/model/bracketPairsTextModelPart/colorizedBracketPairsDecorationProvider.js +1 -1
- package/vscode/src/vs/editor/common/model/editStack.js +1 -1
- package/vscode/src/vs/editor/common/model/prefixSumComputer.js +6 -1
- package/vscode/src/vs/editor/common/model/textModel.d.ts +9 -4
- package/vscode/src/vs/editor/common/model/textModel.js +99 -34
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.d.ts +3 -2
- package/vscode/src/vs/editor/common/model/tokens/abstractSyntaxTokenBackend.js +3 -0
- package/vscode/src/vs/editor/common/model/tokens/annotations.js +9 -1
- package/vscode/src/vs/editor/common/model/tokens/tokenizationFontDecorationsProvider.js +2 -2
- package/vscode/src/vs/editor/common/model.d.ts +2 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.d.ts +2 -1
- package/vscode/src/vs/editor/common/standalone/standaloneEnums.js +1 -0
- package/vscode/src/vs/editor/common/standaloneStrings.d.ts +1 -0
- package/vscode/src/vs/editor/common/standaloneStrings.js +55 -49
- package/vscode/src/vs/editor/common/textModelEvents.d.ts +25 -5
- package/vscode/src/vs/editor/common/textModelEvents.js +13 -4
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.d.ts +14 -4
- package/vscode/src/vs/editor/common/viewLayout/lineHeights.js +192 -91
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.d.ts +3 -3
- package/vscode/src/vs/editor/common/viewLayout/linesLayout.js +11 -15
- package/vscode/src/vs/editor/common/viewLayout/viewLayout.d.ts +3 -3
- package/vscode/src/vs/editor/common/viewLayout/viewLineRenderer.js +2 -2
- package/vscode/src/vs/editor/common/viewModel/inlineDecorations.d.ts +71 -7
- package/vscode/src/vs/editor/common/viewModel/inlineDecorations.js +180 -14
- package/vscode/src/vs/editor/common/viewModel/minimapTokensColorTracker.js +8 -2
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.d.ts +2 -2
- package/vscode/src/vs/editor/common/viewModel/modelLineProjection.js +31 -82
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.d.ts +2 -23
- package/vscode/src/vs/editor/common/viewModel/viewModelDecorations.js +19 -114
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.d.ts +11 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelImpl.js +174 -141
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.d.ts +1 -0
- package/vscode/src/vs/editor/common/viewModel/viewModelLines.js +16 -3
- package/vscode/src/vs/editor/common/viewModel.d.ts +6 -3
- 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 +19 -19
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionContributions.js +3 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.d.ts +9 -1
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionController.js +56 -13
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionMenu.js +8 -8
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/codeActionModel.js +23 -3
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.d.ts +2 -0
- package/vscode/src/vs/editor/contrib/codeAction/browser/lightBulbWidget.js +59 -52
- package/vscode/src/vs/editor/contrib/codelens/browser/codelensController.js +3 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerModel.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerModel.js +6 -4
- 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/colorPickerParts/colorPickerSaturationBox.js +2 -2
- package/vscode/src/vs/editor/contrib/colorPicker/browser/colorPickerParts/colorPickerStrip.js +2 -2
- 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 +5 -5
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/dropIntoEditorController.js +3 -3
- package/vscode/src/vs/editor/contrib/dropOrPasteInto/browser/postEditWidget.css +1 -1
- 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.d.ts +25 -1
- package/vscode/src/vs/editor/contrib/find/browser/findController.js +38 -20
- package/vscode/src/vs/editor/contrib/find/browser/findDecorations.js +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findModel.d.ts +5 -0
- package/vscode/src/vs/editor/contrib/find/browser/findModel.js +2 -1
- package/vscode/src/vs/editor/contrib/find/browser/findOptionsWidget.css +1 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.css +5 -7
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.d.ts +29 -1
- package/vscode/src/vs/editor/contrib/find/browser/findWidget.js +101 -33
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.css +39 -3
- package/vscode/src/vs/editor/contrib/floatingMenu/browser/floatingMenu.js +11 -7
- package/vscode/src/vs/editor/contrib/folding/browser/folding.js +20 -20
- package/vscode/src/vs/editor/contrib/folding/browser/foldingDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/folding/browser/foldingModel.js +1 -0
- package/vscode/src/vs/editor/contrib/folding/browser/hiddenRangeModel.d.ts +2 -1
- package/vscode/src/vs/editor/contrib/folding/browser/hiddenRangeModel.js +1 -0
- package/vscode/src/vs/editor/contrib/fontZoom/browser/fontZoom.js +3 -3
- package/vscode/src/vs/editor/contrib/format/browser/formatActions.js +2 -2
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoError.js +8 -8
- package/vscode/src/vs/editor/contrib/gotoError/browser/gotoErrorWidget.js +14 -13
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerSelectionStatus.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/gotoError/browser/markerSelectionStatus.js +60 -0
- package/vscode/src/vs/editor/contrib/gotoSymbol/browser/goToCommands.js +33 -33
- 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 +4 -4
- 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/contentHoverRendered.js +3 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hover.css +6 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverAccessibleViews.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActionIds.js +4 -3
- package/vscode/src/vs/editor/contrib/hover/browser/hoverActions.js +22 -22
- package/vscode/src/vs/editor/contrib/hover/browser/hoverContribution.js +6 -0
- package/vscode/src/vs/editor/contrib/hover/browser/hoverCopyButton.js +2 -2
- package/vscode/src/vs/editor/contrib/hover/browser/hoverUtils.js +8 -4
- package/vscode/src/vs/editor/contrib/hover/browser/markdownHoverParticipant.js +27 -18
- 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 +18 -18
- package/vscode/src/vs/editor/contrib/inlayHints/browser/inlayHintsHover.js +5 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/commands.js +21 -21
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/common.d.ts +4 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/common.js +11 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionContextKeys.js +13 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/controller/inlineCompletionsController.js +4 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/hoverParticipant.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/hintsWidget/inlineCompletionsHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.d.ts +6 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsModel.js +41 -13
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.d.ts +10 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineCompletionsSource.js +44 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.d.ts +18 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/inlineSuggestionItem.js +79 -37
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/provideInlineCompletions.js +53 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/renameSymbolProcessor.js +5 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/textModelValueReference.d.ts +30 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/model/textModelValueReference.js +65 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.d.ts +1 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorMenu.js +27 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.d.ts +9 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/components/gutterIndicatorView.js +30 -15
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditWithChanges.d.ts +3 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsView.js +20 -7
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViewProducer.js +4 -5
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.d.ts +3 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsSideBySideView.js +6 -3
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.d.ts +4 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/inlineEditsWordReplacementView.js +17 -9
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/inlineEditsLongDistanceHint.d.ts +7 -1
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/inlineEditsLongDistanceHint.js +74 -39
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/longDistancePreviewEditor.d.ts +6 -0
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/inlineEditsViews/longDistanceHint/longDistancePreviewEditor.js +3 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/theme.js +20 -20
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/utils/utils.js +2 -2
- package/vscode/src/vs/editor/contrib/inlineCompletions/browser/view/inlineEdits/view.css +14 -0
- package/vscode/src/vs/editor/contrib/insertFinalNewLine/browser/insertFinalNewLine.js +1 -1
- package/vscode/src/vs/editor/contrib/lineSelection/browser/lineSelection.js +1 -1
- package/vscode/src/vs/editor/contrib/linesOperations/browser/linesOperations.js +31 -31
- package/vscode/src/vs/editor/contrib/linkedEditing/browser/linkedEditing.js +2 -2
- package/vscode/src/vs/editor/contrib/links/browser/links.js +6 -6
- package/vscode/src/vs/editor/contrib/message/browser/messageController.js +1 -1
- package/vscode/src/vs/editor/contrib/multicursor/browser/multicursor.js +22 -22
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.css +2 -0
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHints.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsModel.js +1 -1
- package/vscode/src/vs/editor/contrib/parameterHints/browser/parameterHintsWidget.js +4 -4
- package/vscode/src/vs/editor/contrib/peekView/browser/media/peekViewWidget.css +4 -0
- package/vscode/src/vs/editor/contrib/peekView/browser/peekView.js +19 -18
- package/vscode/src/vs/editor/contrib/placeholderText/browser/placeholderText.contribution.js +1 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/editorNavigationQuickAccess.js +9 -1
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoLineQuickAccess.js +20 -10
- package/vscode/src/vs/editor/contrib/quickAccess/browser/gotoSymbolQuickAccess.js +32 -32
- 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.css +1 -0
- package/vscode/src/vs/editor/contrib/rename/browser/renameWidget.js +8 -8
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/semanticTokens/browser/documentSemanticTokens.js +42 -24
- package/vscode/src/vs/editor/contrib/smartSelect/browser/smartSelect.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetController2.js +4 -4
- package/vscode/src/vs/editor/contrib/snippet/browser/snippetVariables.js +4 -4
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScroll.css +1 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollActions.js +11 -11
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.d.ts +1 -0
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollController.js +5 -1
- package/vscode/src/vs/editor/contrib/stickyScroll/browser/stickyScrollWidget.js +5 -5
- package/vscode/src/vs/editor/contrib/suggest/browser/media/suggest.css +3 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggest.js +9 -9
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestController.js +11 -11
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestModel.js +3 -1
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidget.js +22 -17
- package/vscode/src/vs/editor/contrib/suggest/browser/suggestWidgetDetails.js +4 -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.css +34 -34
- package/vscode/src/vs/editor/contrib/symbolIcons/browser/symbolIcons.js +33 -33
- package/vscode/src/vs/editor/contrib/toggleTabFocusMode/browser/toggleTabFocusMode.js +4 -4
- package/vscode/src/vs/editor/contrib/tokenization/browser/tokenization.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/bannerController.js +1 -1
- package/vscode/src/vs/editor/contrib/unicodeHighlighter/browser/unicodeHighlighter.js +24 -24
- package/vscode/src/vs/editor/contrib/unusualLineTerminators/browser/unusualLineTerminators.js +5 -5
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/highlightDecorations.js +9 -9
- package/vscode/src/vs/editor/contrib/wordHighlighter/browser/wordHighlighter.js +3 -3
- package/vscode/src/vs/editor/contrib/wordOperations/browser/wordOperations.js +3 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.d.ts +3 -2
- package/vscode/src/vs/editor/standalone/browser/standaloneCodeEditor.js +10 -6
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.d.ts +3 -3
- package/vscode/src/vs/editor/standalone/browser/standaloneServices.js +71 -65
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.d.ts +7 -0
- package/vscode/src/vs/platform/accessibility/browser/accessibilityService.js +38 -4
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.d.ts +7 -1
- package/vscode/src/vs/platform/accessibility/browser/accessibleView.js +6 -0
- package/vscode/src/vs/platform/accessibility/common/accessibility.service.d.ts +2 -0
- 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.d.ts +104 -4
- package/vscode/src/vs/platform/actionWidget/browser/actionList.js +533 -56
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.css +89 -14
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.d.ts +6 -2
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.js +133 -10
- package/vscode/src/vs/platform/actionWidget/browser/actionWidget.service.d.ts +2 -2
- package/vscode/src/vs/platform/actions/browser/floatingMenu.js +1 -1
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +2 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +15 -4
- package/vscode/src/vs/platform/actions/browser/toolbar.d.ts +11 -0
- package/vscode/src/vs/platform/actions/browser/toolbar.js +27 -21
- package/vscode/src/vs/platform/actions/common/actions.d.ts +9 -1
- package/vscode/src/vs/platform/actions/common/actions.js +25 -2
- 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/configuration/common/configurationRegistry.d.ts +11 -4
- package/vscode/src/vs/platform/configuration/common/configurationRegistry.js +24 -12
- package/vscode/src/vs/platform/contextkey/browser/contextKeyService.js +1 -1
- package/vscode/src/vs/platform/contextkey/common/contextkey.js +26 -12
- package/vscode/src/vs/platform/contextkey/common/contextkeys.js +9 -9
- package/vscode/src/vs/platform/contextkey/common/scanner.js +5 -5
- package/vscode/src/vs/platform/contextview/browser/contextView.d.ts +2 -0
- package/vscode/src/vs/platform/contextview/browser/contextView.service.d.ts +2 -1
- package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.d.ts +4 -1
- package/vscode/src/vs/platform/defaultAccount/common/defaultAccount.service.d.ts +4 -1
- package/vscode/src/vs/platform/dialogs/common/dialogs.d.ts +11 -0
- package/vscode/src/vs/platform/dialogs/common/dialogs.js +9 -9
- package/vscode/src/vs/platform/dnd/browser/dnd.js +1 -1
- package/vscode/src/vs/platform/editor/common/editor.d.ts +32 -0
- 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/environment/common/environmentService.d.ts +0 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionEnablementService.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionManagement.js +14 -14
- package/vscode/src/vs/platform/extensionManagement/common/extensionNls.js +1 -1
- package/vscode/src/vs/platform/extensionManagement/common/extensionsScannerService.js +7 -7
- package/vscode/src/vs/platform/extensions/common/extensionValidator.js +21 -21
- package/vscode/src/vs/platform/extensions/common/extensions.d.ts +1 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +12 -1
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +15 -4
- 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/hover/browser/hover.css +1 -1
- package/vscode/src/vs/platform/hover/browser/hoverService.js +1 -1
- package/vscode/src/vs/platform/hover/browser/hoverWidget.js +3 -2
- package/vscode/src/vs/platform/hover/browser/updatableHoverWidget.js +1 -1
- package/vscode/src/vs/platform/keybinding/common/abstractKeybindingService.js +5 -5
- package/vscode/src/vs/platform/languagePacks/common/languagePacks.js +1 -1
- package/vscode/src/vs/platform/languagePacks/common/localizedStrings.js +3 -3
- package/vscode/src/vs/platform/list/browser/listService.js +25 -25
- 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/mcpManagement.d.ts +2 -1
- package/vscode/src/vs/platform/mcp/common/mcpManagementIpc.d.ts +42 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagementIpc.js +105 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagementService.d.ts +130 -0
- package/vscode/src/vs/platform/mcp/common/mcpManagementService.js +666 -0
- package/vscode/src/vs/platform/mcp/common/mcpPlatformTypes.d.ts +12 -0
- package/vscode/src/vs/platform/mcp/common/mcpResourceScannerService.service.d.ts +1 -0
- package/vscode/src/vs/platform/mcp/common/modelContextProtocol.d.ts +2917 -0
- package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.d.ts +1 -0
- package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.config.contribution.js +32 -0
- package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.d.ts +44 -0
- package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.js +62 -0
- package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.service.d.ts +18 -0
- package/vscode/src/vs/platform/meteredConnection/common/meteredConnection.service.js +6 -0
- package/vscode/src/vs/platform/native/common/native.d.ts +43 -5
- package/vscode/src/vs/platform/notification/common/notification.js +3 -3
- package/vscode/src/vs/platform/observable/common/platformObservableUtils.js +10 -2
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/quickinput/browser/media/quickInput.css +13 -1
- package/vscode/src/vs/platform/quickinput/browser/quickInput.js +10 -10
- package/vscode/src/vs/platform/quickinput/browser/quickInputActions.js +5 -5
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.d.ts +9 -0
- package/vscode/src/vs/platform/quickinput/browser/quickInputBox.js +15 -4
- package/vscode/src/vs/platform/quickinput/browser/quickInputController.js +77 -15
- package/vscode/src/vs/platform/quickinput/browser/quickInputList.js +6 -6
- package/vscode/src/vs/platform/quickinput/browser/quickInputUtils.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/quickPickPin.js +2 -2
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeAccessibilityProvider.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickInputTreeController.js +1 -1
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.d.ts +1 -0
- package/vscode/src/vs/platform/quickinput/browser/tree/quickTree.js +5 -1
- package/vscode/src/vs/platform/quickinput/common/quickInput.d.ts +19 -0
- package/vscode/src/vs/platform/remote/common/remoteHosts.d.ts +13 -0
- package/vscode/src/vs/platform/remote/common/remoteHosts.js +11 -1
- package/vscode/src/vs/platform/request/common/request.js +19 -19
- package/vscode/src/vs/platform/telemetry/common/telemetryUtils.js +8 -2
- package/vscode/src/vs/platform/terminal/common/terminal.d.ts +13 -2
- package/vscode/src/vs/platform/terminal/common/terminal.js +2 -0
- package/vscode/src/vs/platform/terminal/common/terminal.service.d.ts +1 -1
- package/vscode/src/vs/platform/terminal/common/terminalPlatformConfiguration.js +31 -31
- package/vscode/src/vs/platform/terminal/common/terminalProfiles.js +1 -1
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.d.ts +0 -13
- package/vscode/src/vs/platform/terminal/common/xterm/shellIntegrationAddon.js +2 -2
- package/vscode/src/vs/platform/theme/browser/defaultStyles.js +3 -3
- package/vscode/src/vs/platform/theme/common/colorUtils.js +2 -2
- package/vscode/src/vs/platform/theme/common/colors/baseColors.js +18 -18
- 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 +51 -51
- package/vscode/src/vs/platform/theme/common/colors/listColors.js +36 -36
- package/vscode/src/vs/platform/theme/common/colors/menuColors.js +8 -8
- package/vscode/src/vs/platform/theme/common/colors/minimapColors.js +11 -11
- package/vscode/src/vs/platform/theme/common/colors/miscColors.js +16 -16
- 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/theme/common/sizeRegistry.d.ts +2 -0
- package/vscode/src/vs/platform/theme/common/sizeUtils.d.ts +90 -0
- package/vscode/src/vs/platform/theme/common/sizeUtils.js +142 -0
- package/vscode/src/vs/platform/theme/common/sizes/baseSizes.d.ts +11 -0
- package/vscode/src/vs/platform/theme/common/sizes/baseSizes.js +18 -0
- package/vscode/src/vs/platform/theme/common/tokenClassificationRegistry.js +42 -42
- package/vscode/src/vs/platform/tunnel/common/tunnel.js +4 -3
- package/vscode/src/vs/platform/undoRedo/common/undoRedoService.js +20 -20
- package/vscode/src/vs/platform/update/common/update.d.ts +14 -6
- package/vscode/src/vs/platform/update/common/update.js +4 -3
- package/vscode/src/vs/platform/update/common/update.service.d.ts +5 -2
- package/vscode/src/vs/platform/userDataProfile/common/userDataProfile.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/abstractSynchronizer.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/keybindingsSync.js +2 -2
- package/vscode/src/vs/platform/userDataSync/common/settingsSync.js +1 -1
- package/vscode/src/vs/platform/userDataSync/common/userDataSync.js +5 -5
- package/vscode/src/vs/platform/userDataSync/common/userDataSyncMachines.js +1 -1
- package/vscode/src/vs/platform/userInteraction/browser/userInteractionService.d.ts +25 -0
- package/vscode/src/vs/platform/userInteraction/browser/userInteractionService.service.d.ts +28 -0
- package/vscode/src/vs/platform/userInteraction/browser/userInteractionService.service.js +6 -0
- package/vscode/src/vs/platform/userInteraction/browser/userInteractionServiceImpl.d.ts +13 -0
- package/vscode/src/vs/platform/userInteraction/browser/userInteractionServiceImpl.js +62 -0
- package/vscode/src/vs/platform/window/common/window.d.ts +1 -0
- package/vscode/src/vs/platform/workspace/common/workspace.d.ts +1 -7
- package/vscode/src/vs/platform/workspace/common/workspace.js +3 -16
- package/vscode/src/vs/platform/workspace/common/workspace.service.d.ts +4 -0
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.service.d.ts +47 -0
- package/vscode/src/vs/{workbench/services/layout/common/workbenchModeService.service.js → sessions/contrib/agentFeedback/browser/agentFeedbackService.service.js} +2 -2
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionTargetPicker.d.ts +73 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.service.d.ts +37 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.service.js +6 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.service.d.ts +47 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.service.js +6 -0
- package/vscode/src/vs/workbench/api/browser/statusBarExtensionPoint.js +12 -12
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +145 -7
- package/vscode/src/vs/workbench/api/common/extHost.common.services.js +6 -0
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +250 -12
- package/vscode/src/vs/workbench/api/common/extHost.protocol.js +17 -3
- package/vscode/src/vs/workbench/api/common/extHostAuthentication.js +6 -5
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +23 -3
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +68 -5
- package/vscode/src/vs/workbench/api/common/extHostChatContext.js +34 -13
- package/vscode/src/vs/workbench/api/common/extHostChatDebug.d.ts +22 -0
- package/vscode/src/vs/workbench/api/common/extHostChatDebug.js +287 -0
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.d.ts +4 -12
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +158 -139
- package/vscode/src/vs/workbench/api/common/extHostComments.js +1 -0
- package/vscode/src/vs/workbench/api/common/extHostDiagnostics.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDocuments.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostDocuments.js +6 -6
- package/vscode/src/vs/workbench/api/common/extHostExtensionService.js +6 -3
- package/vscode/src/vs/workbench/api/common/extHostGitExtensionService.d.ts +31 -0
- package/vscode/src/vs/workbench/api/common/extHostGitExtensionService.js +167 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostLanguageFeatures.js +41 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +0 -3
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModels.js +7 -4
- package/vscode/src/vs/workbench/api/common/extHostLogService.js +1 -1
- package/vscode/src/vs/workbench/api/common/extHostMcp.d.ts +4 -0
- package/vscode/src/vs/workbench/api/common/extHostMcp.js +15 -1
- package/vscode/src/vs/workbench/api/common/extHostMeteredConnection.d.ts +19 -0
- package/vscode/src/vs/workbench/api/common/extHostMeteredConnection.js +28 -0
- package/vscode/src/vs/workbench/api/common/extHostNotebook.js +2 -2
- package/vscode/src/vs/workbench/api/common/extHostNotebookKernels.js +6 -3
- package/vscode/src/vs/workbench/api/common/extHostPower.d.ts +45 -0
- package/vscode/src/vs/workbench/api/common/extHostPower.js +88 -0
- package/vscode/src/vs/workbench/api/common/extHostSCM.js +3 -0
- package/vscode/src/vs/workbench/api/common/extHostStatusBar.js +4 -2
- package/vscode/src/vs/workbench/api/common/extHostTelemetry.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.d.ts +1 -1
- package/vscode/src/vs/workbench/api/common/extHostTerminalService.js +46 -12
- package/vscode/src/vs/workbench/api/common/extHostTerminalShellIntegration.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostTextEditors.js +7 -7
- package/vscode/src/vs/workbench/api/common/extHostTreeViews.js +11 -24
- package/vscode/src/vs/workbench/api/common/extHostTunnelService.js +3 -3
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +11 -5
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +173 -16
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +159 -8
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +132 -7
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.d.ts +0 -1
- package/vscode/src/vs/workbench/api/common/extHostWorkspace.js +3 -10
- package/vscode/src/vs/workbench/api/common/jsonValidationExtensionPoint.js +11 -11
- package/vscode/src/vs/workbench/browser/actions/developerActions.js +32 -32
- package/vscode/src/vs/workbench/browser/actions/layoutActions.js +130 -130
- package/vscode/src/vs/workbench/browser/actions/textInputActions.js +6 -6
- package/vscode/src/vs/workbench/browser/actions/windowActions.js +29 -29
- package/vscode/src/vs/workbench/browser/actions/workspaceActions.js +21 -21
- package/vscode/src/vs/workbench/browser/actions/workspaceCommands.js +4 -4
- package/vscode/src/vs/workbench/browser/contextkeys.d.ts +2 -8
- package/vscode/src/vs/workbench/browser/contextkeys.js +8 -26
- package/vscode/src/vs/workbench/browser/editor.js +2 -2
- package/vscode/src/vs/workbench/browser/labels.js +4 -4
- package/vscode/src/vs/workbench/browser/media/style.css +14 -1
- package/vscode/src/vs/workbench/browser/panecomposite.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/panecomposite.js +3 -1
- package/vscode/src/vs/workbench/browser/part.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.d.ts +15 -4
- package/vscode/src/vs/workbench/browser/parts/activitybar/activitybarPart.js +112 -33
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activityaction.css +26 -6
- package/vscode/src/vs/workbench/browser/parts/activitybar/media/activitybarpart.css +10 -1
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarActions.js +44 -40
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.d.ts +2 -0
- package/vscode/src/vs/workbench/browser/parts/auxiliarybar/auxiliaryBarPart.js +39 -6
- package/vscode/src/vs/workbench/browser/parts/compositeBar.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositeBarActions.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/compositePart.d.ts +1 -1
- package/vscode/src/vs/workbench/browser/parts/compositePart.js +23 -17
- package/vscode/src/vs/workbench/browser/parts/dialogs/dialog.d.ts +11 -0
- package/vscode/src/vs/{platform/dialogs/browser → workbench/browser/parts/dialogs}/dialog.js +12 -10
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.d.ts +1 -0
- package/vscode/src/vs/workbench/browser/parts/editor/auxiliaryEditorPart.js +19 -7
- package/vscode/src/vs/workbench/browser/parts/editor/binaryDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/binaryEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbs.js +37 -37
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsControl.js +12 -12
- package/vscode/src/vs/workbench/browser/parts/editor/breadcrumbsPicker.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/diffEditorCommands.js +8 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editor.d.ts +3 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editor.js +2 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorActions.js +135 -135
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.d.ts +6 -0
- package/vscode/src/vs/workbench/browser/parts/editor/editorCommands.js +220 -20
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/editor/editorDropTarget.js +14 -6
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupView.js +7 -7
- package/vscode/src/vs/workbench/browser/parts/editor/editorGroupWatermark.js +13 -13
- package/vscode/src/vs/workbench/browser/parts/editor/editorPanes.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.d.ts +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorPart.js +16 -9
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.d.ts +9 -2
- package/vscode/src/vs/workbench/browser/parts/editor/editorParts.js +79 -22
- package/vscode/src/vs/workbench/browser/parts/editor/editorPlaceholder.js +10 -10
- package/vscode/src/vs/workbench/browser/parts/editor/editorQuickAccess.js +5 -5
- package/vscode/src/vs/workbench/browser/parts/editor/editorStatus.js +66 -66
- package/vscode/src/vs/workbench/browser/parts/editor/editorTabsControl.js +4 -3
- package/vscode/src/vs/workbench/browser/parts/editor/media/breadcrumbscontrol.css +4 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/editorgroupview.css +46 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/modalEditorPart.css +142 -0
- package/vscode/src/vs/workbench/browser/parts/editor/media/multieditortabscontrol.css +8 -0
- package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.d.ts +64 -0
- package/vscode/src/vs/workbench/browser/parts/editor/modalEditorPart.js +405 -0
- package/vscode/src/vs/workbench/browser/parts/editor/multiEditorTabsControl.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/sideBySideEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textCodeEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/editor/textDiffEditor.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/editor/textEditor.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/globalCompositeBar.js +21 -20
- package/vscode/src/vs/workbench/browser/parts/media/paneCompositePart.css +9 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsCenter.css +14 -2
- package/vscode/src/vs/workbench/browser/parts/notifications/media/notificationsToasts.css +19 -5
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.d.ts +12 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsActions.js +49 -18
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsAlerts.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.d.ts +10 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCenter.js +87 -28
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsCommands.js +92 -11
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsList.js +6 -6
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.d.ts +5 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsStatus.js +58 -25
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.d.ts +8 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsToasts.js +62 -20
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.d.ts +3 -1
- package/vscode/src/vs/workbench/browser/parts/notifications/notificationsViewer.js +24 -8
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.d.ts +3 -2
- package/vscode/src/vs/workbench/browser/parts/paneCompositeBar.js +9 -8
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.d.ts +13 -7
- package/vscode/src/vs/workbench/browser/parts/paneCompositePart.js +89 -68
- package/vscode/src/vs/workbench/browser/parts/panel/panelActions.js +38 -50
- package/vscode/src/vs/workbench/browser/parts/panel/panelPart.js +6 -4
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarActions.js +2 -2
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.d.ts +2 -0
- package/vscode/src/vs/workbench/browser/parts/sidebar/sidebarPart.js +44 -7
- package/vscode/src/vs/workbench/browser/parts/titlebar/menubarControl.js +21 -21
- package/vscode/src/vs/workbench/browser/parts/titlebar/titlebarActions.js +23 -14
- package/vscode/src/vs/workbench/browser/parts/titlebar/windowTitle.js +3 -3
- package/vscode/src/vs/workbench/browser/parts/views/checkbox.js +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/media/paneviewlet.css +1 -1
- package/vscode/src/vs/workbench/browser/parts/views/media/views.css +33 -2
- package/vscode/src/vs/workbench/browser/parts/views/treeView.js +8 -7
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.d.ts +19 -1
- package/vscode/src/vs/workbench/browser/parts/views/viewFilter.js +27 -4
- package/vscode/src/vs/workbench/browser/parts/views/viewPane.js +7 -5
- package/vscode/src/vs/workbench/browser/parts/views/viewPaneContainer.js +178 -174
- package/vscode/src/vs/workbench/browser/parts/visibleViewContainersTracker.d.ts +29 -0
- package/vscode/src/vs/workbench/browser/parts/visibleViewContainersTracker.js +104 -0
- package/vscode/src/vs/workbench/browser/quickaccess.js +1 -1
- package/vscode/src/vs/workbench/browser/window.js +14 -14
- package/vscode/src/vs/workbench/browser/workbench.contribution.js +317 -225
- package/vscode/src/vs/workbench/common/configuration.js +9 -9
- package/vscode/src/vs/workbench/common/contextkeys.d.ts +4 -2
- package/vscode/src/vs/workbench/common/contextkeys.js +78 -76
- package/vscode/src/vs/workbench/common/editor/diffEditorInput.js +1 -1
- package/vscode/src/vs/workbench/common/editor/sideBySideEditorInput.js +4 -1
- package/vscode/src/vs/workbench/common/editor/textEditorModel.js +1 -1
- package/vscode/src/vs/workbench/common/editor.d.ts +7 -1
- package/vscode/src/vs/workbench/common/editor.js +5 -4
- package/vscode/src/vs/workbench/common/notifications.d.ts +11 -0
- package/vscode/src/vs/workbench/common/notifications.js +19 -1
- package/vscode/src/vs/workbench/common/theme.d.ts +1 -0
- package/vscode/src/vs/workbench/common/theme.js +161 -160
- package/vscode/src/vs/workbench/common/views.d.ts +32 -5
- package/vscode/src/vs/workbench/common/views.js +16 -12
- package/vscode/src/vs/workbench/common/views.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration.js +170 -152
- package/vscode/src/vs/workbench/contrib/accessibility/browser/accessibleViewActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/accessibility/browser/editorAccessibilityHelp.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.d.ts +40 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +524 -102
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +4 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +26 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.d.ts +9 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +34 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.service.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables.js +243 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +76 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.service.d.ts +73 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileRewriter.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +30 -17
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +24 -1
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +137 -66
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.d.ts +40 -4
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.d.ts +91 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +41 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +123 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.service.d.ts +27 -13
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +11 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +36 -13
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +34 -9
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +29 -11
- package/vscode/src/vs/workbench/contrib/chat/common/contextContrib/chatContext.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/editing/chatEditingService.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/languageModelStats.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.d.ts +52 -6
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.js +253 -32
- package/vscode/src/vs/workbench/contrib/chat/common/languageModels.service.d.ts +33 -3
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +21 -6
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +104 -12
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatQuestionCarouselData.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +298 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatUri.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatUri.js +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.d.ts +17 -33
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.js +10 -73
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.service.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginRepositoryService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.service.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginInstallService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginSource.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +35 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js +20 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.d.ts +54 -76
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +221 -158
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookTypes.js +94 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.d.ts +67 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptFileAttributes.js +565 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.d.ts +21 -36
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +148 -111
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +8 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +60 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +3 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +30 -7
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptEditHelper.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptEditHelper.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptsServiceUtils.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptsServiceUtils.js +12 -1
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/requestParser/chatRequestParser.js +15 -3
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/askQuestionsTool.js +544 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/confirmationTool.js +40 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/resolveDebugEventDetailsTool.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/resolveDebugEventDetailsTool.js +205 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +3 -6
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +40 -29
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/taskCompleteTool.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/tools.js +17 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsConfirmationService.service.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +45 -25
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.d.ts +9 -11
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/tools/promptTsxTypes.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/promptTsxTypes.js +12 -1
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.service.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/widget/input/modelPickerWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/codeActions/browser/codeActionsContribution.js +11 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/dictation/editorDictation.css +1 -1
- 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/find/simpleFindWidget.css +1 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.d.ts +19 -1
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/find/simpleFindWidget.js +35 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/inspectEditorTokens/inspectEditorTokens.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/largeFileOptimizations.js +3 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/quickaccess/gotoSymbolQuickAccess.js +9 -11
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/suggestEnabledInput/suggestEnabledInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMinimap.js +2 -2
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/toggleMultiCursorModifier.js +3 -3
- 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 +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/common/languageConfigurationExtensionPoint.js +65 -65
- package/vscode/src/vs/workbench/contrib/comments/browser/commentColors.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentGlyphWidget.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/commentNode.js +5 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +7 -4
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +30 -28
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsTreeViewer.js +9 -9
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsViewActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/comments/browser/reactionsAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/comments/browser/simpleCommentEditor.js +4 -1
- package/vscode/src/vs/workbench/contrib/comments/common/commentContextKeys.js +12 -12
- package/vscode/src/vs/workbench/contrib/customEditor/browser/customEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/baseDebugView.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointEditorContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointWidget.js +14 -14
- package/vscode/src/vs/workbench/contrib/debug/browser/breakpointsView.js +75 -75
- package/vscode/src/vs/workbench/contrib/debug/browser/callStackEditorContribution.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugActionViewItems.js +14 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugColors.js +12 -12
- package/vscode/src/vs/workbench/contrib/debug/browser/debugCommands.js +38 -38
- package/vscode/src/vs/workbench/contrib/debug/browser/debugEditorContribution.js +5 -8
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +4 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/debugIcons.js +57 -57
- package/vscode/src/vs/workbench/contrib/debug/browser/debugSessionPicker.js +3 -3
- package/vscode/src/vs/workbench/contrib/debug/browser/exceptionWidget.js +4 -4
- package/vscode/src/vs/workbench/contrib/debug/browser/linkDetector.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/media/repl.css +7 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/repl.js +19 -19
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +11 -11
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +3 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +68 -68
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +7 -9
- package/vscode/src/vs/workbench/contrib/debug/common/debugSource.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/disassemblyViewInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/loadedScriptsPicker.js +2 -2
- package/vscode/src/vs/workbench/contrib/debug/common/replModel.js +1 -1
- 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/extensions/browser/abstractRuntimeExtensionsEditor.js +18 -18
- package/vscode/src/vs/workbench/contrib/extensions/browser/configBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/exeBasedRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEditor.js +49 -47
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionEnablementWorkspaceTrustTransitionParticipant.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionFeaturesTab.js +15 -15
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionRecommendationNotificationService.js +14 -14
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensions.contribution.js +159 -147
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +181 -181
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActivationProgress.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsCompletionItemsProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsDependencyChecker.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsIcons.js +29 -25
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsList.js +4 -3
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.d.ts +10 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +93 -13
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +92 -91
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +24 -6
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +58 -31
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +134 -82
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extension.css +24 -3
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionEditor.css +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/media/extensionsViewlet.css +34 -9
- package/vscode/src/vs/workbench/contrib/extensions/browser/webRecommendations.js +1 -1
- package/vscode/src/vs/workbench/contrib/extensions/browser/workspaceRecommendations.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionQuery.js +2 -1
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/extensions/common/extensions.js +3 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsFileTemplate.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/extensionsUtils.js +3 -3
- package/vscode/src/vs/workbench/contrib/extensions/common/runtimeExtensionsInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/extensions/common/searchExtensionsTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/configuration.js +4 -4
- package/vscode/src/vs/workbench/contrib/externalUriOpener/common/externalUriOpenerService.js +3 -3
- package/vscode/src/vs/workbench/contrib/files/browser/editors/binaryFileEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/files/browser/editors/textFileSaveErrorHandler.js +18 -18
- package/vscode/src/vs/workbench/contrib/files/browser/explorerViewlet.js +14 -14
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.contribution.js +39 -39
- package/vscode/src/vs/workbench/contrib/files/browser/fileActions.js +84 -84
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands._save.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/fileCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/fileConstants.js +6 -6
- package/vscode/src/vs/workbench/contrib/files/browser/fileImportExport.js +27 -27
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._configuration.js +50 -50
- package/vscode/src/vs/workbench/contrib/files/browser/files.contribution._editorPane.js +2 -2
- package/vscode/src/vs/workbench/contrib/files/browser/views/emptyView.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/views/explorerViewer.js +18 -17
- package/vscode/src/vs/workbench/contrib/files/browser/views/openEditorsView.js +7 -7
- package/vscode/src/vs/workbench/contrib/files/browser/workspaceWatcher.js +4 -4
- package/vscode/src/vs/workbench/contrib/files/common/dirtyFilesIndicator.js +1 -1
- package/vscode/src/vs/workbench/contrib/files/common/explorerModel.js +1 -0
- package/vscode/src/vs/workbench/contrib/files/common/files.js +16 -16
- 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/git/browser/gitService.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/git/browser/gitService.js +61 -0
- package/vscode/src/vs/workbench/contrib/git/common/gitService.service.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/git/common/gitService.service.js +6 -0
- 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/browser/mcpCommandsAddConfiguration.js +71 -69
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.d.ts +259 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerActions.js +1225 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.d.ts +72 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditor.js +996 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerEditorInput.js +49 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerIcons.js +12 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.d.ts +88 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpServerWidgets.js +464 -0
- package/vscode/src/vs/workbench/contrib/mcp/browser/media/mcpServerEditor.css +94 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +118 -31
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpGatewayService.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpGatewayService.service.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpGatewayService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpSandboxService.service.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpSandboxService.service.js +6 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.d.ts +15 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +155 -19
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTaskManager.js +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.d.ts +19 -3
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +15 -12
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.service.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypesUtils.js +1 -0
- package/vscode/src/vs/workbench/contrib/mcp/common/modelContextProtocol.d.ts +1 -2917
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/mergeEditorInputModel.js +23 -23
- package/vscode/src/vs/workbench/contrib/mergeEditor/browser/model/mergeEditorModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/mergeEditor/common/mergeEditor.js +8 -8
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnection.contribution.js +55 -0
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/meteredConnection/browser/meteredConnectionStatus.js +62 -0
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/icons.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/multiDiffEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/multiDiffEditor/browser/scmMultiDiffSourceResolver.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/findModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.css +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/find/notebookFindReplaceWidget.js +19 -18
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOperations.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/cellOutputActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/coreActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/foldingController.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/insertCellActions.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffComponents.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/diffElementOutputs.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookCellDiffDecorator.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditor.js +2 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/media/notebook.css +13 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditor.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookEditorWidget.js +24 -24
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookIcons.js +29 -29
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellEditorOptions.js +5 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/cellOutput.js +7 -7
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellExecutionIcon.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/codeCellRunToolbar.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/collapsedCellOutput.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/foldedCellHint.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/cellParts/markupCell.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/backLayerWebView.js +4 -4
- package/vscode/src/vs/workbench/contrib/notebook/browser/view/renderers/cellRenderer.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewModel/notebookViewModelImpl.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelQuickPickStrategy.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookKernelView.js +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/viewParts/notebookViewZones.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/common/notebookEditorInput.js +2 -2
- package/vscode/src/vs/workbench/contrib/preferences/browser/keybindingWidgets.js +4 -5
- package/vscode/src/vs/workbench/contrib/preferences/browser/media/keybindings.css +3 -0
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +11 -11
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +151 -57
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsTreeModels.js +16 -4
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +5 -6
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +18 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +84 -84
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.d.ts +15 -2
- package/vscode/src/vs/workbench/contrib/remote/browser/urlFinder.js +28 -5
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistory.js +11 -11
- package/vscode/src/vs/workbench/contrib/scm/browser/scmHistoryChatContext.js +6 -6
- package/vscode/src/vs/workbench/contrib/scm/common/quickDiff.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/anythingQuickAccess.js +9 -9
- package/vscode/src/vs/workbench/contrib/search/browser/media/searchview.css +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/notebookSearch/notebookSearchModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/patternInputWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsFind.js +12 -12
- package/vscode/src/vs/workbench/contrib/search/browser/searchActionsTopBar.js +9 -9
- package/vscode/src/vs/workbench/contrib/search/browser/searchChatContext.js +6 -6
- package/vscode/src/vs/workbench/contrib/search/browser/searchFindInput.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchIcons.js +20 -20
- package/vscode/src/vs/workbench/contrib/search/browser/searchMessage.js +2 -2
- package/vscode/src/vs/workbench/contrib/search/browser/searchResultsView.js +14 -14
- package/vscode/src/vs/workbench/contrib/search/browser/searchTreeModel/fileMatch.js +1 -1
- package/vscode/src/vs/workbench/contrib/search/browser/searchView.js +55 -55
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +33 -10
- package/vscode/src/vs/workbench/contrib/search/browser/symbolsQuickAccess.js +2 -2
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/searchEditor/browser/searchEditorSerialization.js +5 -5
- 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/problemMatcher.d.ts +433 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/problemMatcher.js +1637 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.d.ts +514 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskConfiguration.js +1796 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.d.ts +18 -14
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +30 -27
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminal.service.d.ts +6 -7
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +195 -87
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +17 -9
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalColorRegistry.js +23 -23
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalContextKey.js +17 -17
- package/vscode/src/vs/workbench/contrib/terminal/common/terminalStrings.js +26 -26
- package/vscode/src/vs/workbench/contrib/terminal/terminalContribExports.js +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/accessibility/common/terminalAccessibilityConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/autoReplies/common/terminalAutoRepliesConfiguration.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalChatAgentToolsConfiguration.js +71 -61
- package/vscode/src/vs/workbench/contrib/terminalContrib/commandGuide/common/terminalCommandGuideConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/history/common/terminal.history.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/inlineHint/common/terminalInitialHintConfiguration.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/notification/common/terminalNotificationConfiguration.js +21 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/stickyScroll/common/terminalStickyScrollConfiguration.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/suggest/common/terminalSuggestConfiguration.js +30 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/typeAhead/common/terminalTypeAheadConfiguration.js +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/zoom/common/terminal.zoom.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/constants.js +11 -11
- package/vscode/src/vs/workbench/contrib/testing/common/testResult.js +2 -2
- package/vscode/src/vs/workbench/contrib/testing/common/testTypes.js +3 -3
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomainService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/url/browser/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +6 -3
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/webview/browser/webviewFindAccessibilityHelp.js +118 -0
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +10 -4
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.d.ts +6 -2
- package/vscode/src/vs/workbench/services/accounts/browser/defaultAccount.js +193 -100
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/assignment/common/assignmentService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/authentication/browser/authenticationService.js +11 -11
- package/vscode/src/vs/workbench/services/auxiliaryWindow/browser/auxiliaryWindowService.js +5 -5
- package/vscode/src/vs/workbench/services/banner/browser/bannerService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/browserElements/browser/browserElementsService.service.d.ts +2 -0
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.d.ts +9 -0
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.js +34 -17
- package/vscode/src/vs/workbench/services/chat/common/chatEntitlementService.service.d.ts +3 -0
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverSchema.js +16 -16
- package/vscode/src/vs/workbench/services/configurationResolver/common/configurationResolverUtils.js +1 -1
- package/vscode/src/vs/workbench/services/configurationResolver/common/variableResolver.js +16 -16
- package/vscode/src/vs/workbench/services/editor/common/editorGroupColumn.js +2 -2
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.d.ts +7 -7
- package/vscode/src/vs/workbench/services/editor/common/editorGroupFinder.js +39 -20
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.d.ts +59 -3
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.js +6 -1
- package/vscode/src/vs/workbench/services/editor/common/editorGroupsService.service.d.ts +14 -1
- package/vscode/src/vs/workbench/services/editor/common/editorResolverService.js +1 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.d.ts +6 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.js +2 -1
- package/vscode/src/vs/workbench/services/editor/common/editorService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.d.ts +1 -1
- package/vscode/src/vs/workbench/services/environment/browser/environmentService.js +16 -9
- package/vscode/src/vs/workbench/services/environment/common/environmentService.service.d.ts +1 -0
- package/vscode/src/vs/workbench/services/extensionManagement/common/extensionsIcons.js +3 -3
- package/vscode/src/vs/workbench/services/extensionRecommendations/common/workspaceExtensionsConfig.js +6 -6
- package/vscode/src/vs/workbench/services/extensions/browser/extensionUrlHandler.js +10 -10
- package/vscode/src/vs/workbench/services/extensions/common/extensionHostProtocol.d.ts +1 -1
- package/vscode/src/vs/workbench/services/extensions/common/extensionsRegistry.js +90 -90
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/host/browser/host.d.ts +11 -0
- package/vscode/src/vs/workbench/services/host/browser/host.service.d.ts +11 -0
- package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.d.ts +3 -0
- package/vscode/src/vs/workbench/services/layout/browser/layoutService.js +3 -0
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.d.ts +87 -0
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.js +702 -0
- package/vscode/src/vs/workbench/services/mcp/common/mcpWorkbenchManagementService.service.d.ts +1 -1
- package/vscode/src/vs/workbench/services/panecomposite/browser/panecomposite.service.d.ts +3 -0
- package/vscode/src/vs/workbench/services/power/common/powerService.d.ts +12 -0
- package/vscode/src/vs/workbench/services/power/common/powerService.service.d.ts +25 -0
- package/vscode/src/vs/workbench/services/power/common/powerService.service.js +6 -0
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorInput.js +2 -2
- package/vscode/src/vs/workbench/services/preferences/browser/keybindingsEditorModel.js +7 -7
- package/vscode/src/vs/workbench/services/preferences/common/preferences.d.ts +1 -0
- package/vscode/src/vs/workbench/services/preferences/common/preferencesEditorInput.js +4 -4
- package/vscode/src/vs/workbench/services/remote/common/remoteExplorerService.js +8 -8
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.d.ts +1 -1
- package/vscode/src/vs/workbench/services/remote/common/tunnelModel.js +13 -13
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/search/common/textSearchManager.js +16 -14
- package/vscode/src/vs/workbench/services/textMate/common/TMGrammars.js +9 -9
- package/vscode/src/vs/workbench/services/textfile/common/textFileEditorModel.js +3 -3
- package/vscode/src/vs/workbench/services/themes/common/colorExtensionPoint.js +18 -18
- package/vscode/src/vs/workbench/services/themes/common/colorThemeData.js +8 -8
- package/vscode/src/vs/workbench/services/themes/common/iconExtensionPoint.js +13 -13
- package/vscode/src/vs/workbench/services/themes/common/tokenClassificationExtensionPoint.js +24 -24
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.d.ts +9 -9
- package/vscode/src/vs/workbench/services/themes/common/workbenchThemeService.js +10 -8
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfile.js +3 -3
- package/vscode/src/vs/workbench/services/userDataProfile/common/userDataProfileIcons.js +1 -1
- package/vscode/src/vs/workbench/services/userDataSync/common/userDataSync.js +13 -13
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.d.ts +12 -0
- package/vscode/src/vs/workbench/services/workspaces/common/workspaceEditing.service.d.ts +7 -0
- package/vscode-dts/vscode.d.ts +26 -1
- package/vscode-dts/vscode.proposed.chatContextProvider.d.ts +47 -11
- package/vscode-dts/vscode.proposed.chatDebug.d.ts +657 -0
- package/vscode-dts/vscode.proposed.chatHooks.d.ts +1 -1
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +98 -12
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +36 -6
- package/vscode-dts/vscode.proposed.chatPromptFiles.d.ts +33 -0
- package/vscode-dts/vscode.proposed.chatProvider.d.ts +16 -1
- package/vscode-dts/vscode.proposed.chatSessionsProvider.d.ts +90 -15
- package/vscode-dts/vscode.proposed.d.ts +4 -1
- package/vscode-dts/{vscode.proposed.envIsAppPortable.d.ts → vscode.proposed.envIsConnectionMetered.d.ts} +7 -7
- package/vscode-dts/vscode.proposed.environmentPower.d.ts +166 -0
- package/vscode-dts/vscode.proposed.inlineCompletionsAdditions.d.ts +17 -0
- package/vscode-dts/vscode.proposed.languageModelToolSupportsModel.d.ts +1 -1
- package/vscode-dts/vscode.proposed.mcpServerDefinitions.d.ts +28 -0
- package/vscode-dts/vscode.proposed.terminalTitle.d.ts +37 -0
- package/vscode/src/vs/platform/assignment/common/assignment.d.ts +0 -85
- package/vscode/src/vs/platform/dialogs/browser/dialog.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +0 -44
- package/vscode/src/vs/workbench/services/layout/common/workbenchModeService.d.ts +0 -16
- package/vscode/src/vs/workbench/services/layout/common/workbenchModeService.js +0 -20
- package/vscode/src/vs/workbench/services/layout/common/workbenchModeService.service.d.ts +0 -27
- package/vscode/src/vs/workbench/services/views/browser/viewsService.d.ts +0 -77
- package/vscode/src/vs/workbench/services/views/browser/viewsService.js +0 -733
- /package/vscode/src/vs/{workbench/contrib → platform}/mcp/common/modelContextProtocol.js +0 -0
- /package/vscode/src/vs/workbench/contrib/url/{browser → common}/trustedDomainService.service.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/url/{browser → common}/trustedDomainService.service.js +0 -0
|
@@ -0,0 +1,1225 @@
|
|
|
1
|
+
|
|
2
|
+
import { __decorate, __param } from '../../../../../../../external/tslib/tslib.es6.js';
|
|
3
|
+
import { getDomNodePagePosition } from '../../../../base/browser/dom.js';
|
|
4
|
+
import { ActionViewItem } from '../../../../base/browser/ui/actionbar/actionViewItems.js';
|
|
5
|
+
import { alert } from '../../../../base/browser/ui/aria/aria.js';
|
|
6
|
+
import { Action, Separator } from '../../../../base/common/actions.js';
|
|
7
|
+
import { Emitter, Event } from '../../../../base/common/event.js';
|
|
8
|
+
import { disposeIfDisposable } from '../../../../base/common/lifecycle.js';
|
|
9
|
+
import { ThemeIcon } from '../../../../base/common/themables.js';
|
|
10
|
+
import { URI } from '../../../../base/common/uri.js';
|
|
11
|
+
import { localize } from '../../../../nls.js';
|
|
12
|
+
import { ICommandService } from '../../../../platform/commands/common/commands.service.js';
|
|
13
|
+
import { IContextMenuService } from '../../../../platform/contextview/browser/contextView.service.js';
|
|
14
|
+
import { IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
|
15
|
+
import { ITelemetryService } from '../../../../platform/telemetry/common/telemetry.service.js';
|
|
16
|
+
import { IAuthenticationService } from '../../../services/authentication/common/authentication.service.js';
|
|
17
|
+
import { IAuthenticationQueryService } from '../../../services/authentication/common/authenticationQuery.service.js';
|
|
18
|
+
import { IEditorService } from '../../../services/editor/common/editorService.service.js';
|
|
19
|
+
import { manageExtensionIcon, warningIcon, errorIcon, infoIcon, trustIcon } from '../../extensions/browser/extensionsIcons.js';
|
|
20
|
+
import { McpCommandIds } from '../common/mcpCommandIds.js';
|
|
21
|
+
import { IMcpRegistry } from '../common/mcpRegistryTypes.service.js';
|
|
22
|
+
import { McpServerInstallState, McpConnectionState, McpServerEditorTab, McpCapability } from '../common/mcpTypes.js';
|
|
23
|
+
import { IMcpWorkbenchService, IMcpService, IMcpSamplingService } from '../common/mcpTypes.service.js';
|
|
24
|
+
import { startServerByFilter } from '../common/mcpTypesUtils.js';
|
|
25
|
+
import { ConfigurationTarget } from '../../../../platform/configuration/common/configuration.js';
|
|
26
|
+
import { WorkbenchState } from '../../../../platform/workspace/common/workspace.js';
|
|
27
|
+
import { IWorkspaceContextService } from '../../../../platform/workspace/common/workspace.service.js';
|
|
28
|
+
import { IQuickInputService } from '../../../../platform/quickinput/common/quickInput.service.js';
|
|
29
|
+
import { IWorkbenchEnvironmentService } from '../../../services/environment/common/environmentService.service.js';
|
|
30
|
+
import { Schemas } from '../../../../base/common/network.js';
|
|
31
|
+
import { ILabelService } from '../../../../platform/label/common/label.service.js';
|
|
32
|
+
import { LocalMcpServerScope } from '../../../services/mcp/common/mcpWorkbenchManagementService.js';
|
|
33
|
+
import { ActionWithDropdownActionViewItem } from '../../../../base/browser/ui/dropdown/dropdownActionViewItem.js';
|
|
34
|
+
import Severity$1 from '../../../../base/common/severity.js';
|
|
35
|
+
|
|
36
|
+
var InstallAction_1, InstallInWorkspaceAction_1, InstallInRemoteAction_1, UninstallAction_1, ManageMcpServerAction_1, StartServerAction_1, StopServerAction_1, RestartServerAction_1, AuthServerAction_1, ShowServerOutputAction_1, ShowServerConfigurationAction_1, ShowServerJsonConfigurationAction_1, ConfigureModelAccessAction_1, ShowSamplingRequestsAction_1, BrowseResourcesAction_1, McpServerStatusAction_1;
|
|
37
|
+
class McpServerAction extends Action {
|
|
38
|
+
constructor() {
|
|
39
|
+
super(...arguments);
|
|
40
|
+
this._onDidChange = this._register(( new Emitter()));
|
|
41
|
+
this._hidden = false;
|
|
42
|
+
this.hideOnDisabled = true;
|
|
43
|
+
this._mcpServer = null;
|
|
44
|
+
}
|
|
45
|
+
get onDidChange() {
|
|
46
|
+
return this._onDidChange.event;
|
|
47
|
+
}
|
|
48
|
+
static {
|
|
49
|
+
this.EXTENSION_ACTION_CLASS = "extension-action";
|
|
50
|
+
}
|
|
51
|
+
static {
|
|
52
|
+
this.TEXT_ACTION_CLASS = `${McpServerAction.EXTENSION_ACTION_CLASS} text`;
|
|
53
|
+
}
|
|
54
|
+
static {
|
|
55
|
+
this.LABEL_ACTION_CLASS = `${McpServerAction.EXTENSION_ACTION_CLASS} label`;
|
|
56
|
+
}
|
|
57
|
+
static {
|
|
58
|
+
this.PROMINENT_LABEL_ACTION_CLASS = `${McpServerAction.LABEL_ACTION_CLASS} prominent`;
|
|
59
|
+
}
|
|
60
|
+
static {
|
|
61
|
+
this.ICON_ACTION_CLASS = `${McpServerAction.EXTENSION_ACTION_CLASS} icon`;
|
|
62
|
+
}
|
|
63
|
+
get hidden() {
|
|
64
|
+
return this._hidden;
|
|
65
|
+
}
|
|
66
|
+
set hidden(hidden) {
|
|
67
|
+
if (this._hidden !== hidden) {
|
|
68
|
+
this._hidden = hidden;
|
|
69
|
+
this._onDidChange.fire({
|
|
70
|
+
hidden
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
_setEnabled(value) {
|
|
75
|
+
super._setEnabled(value);
|
|
76
|
+
if (this.hideOnDisabled) {
|
|
77
|
+
this.hidden = !value;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
get mcpServer() {
|
|
81
|
+
return this._mcpServer;
|
|
82
|
+
}
|
|
83
|
+
set mcpServer(mcpServer) {
|
|
84
|
+
this._mcpServer = mcpServer;
|
|
85
|
+
this.update();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
class ButtonWithDropDownExtensionAction extends McpServerAction {
|
|
89
|
+
get menuActions() {
|
|
90
|
+
return [...this._menuActions];
|
|
91
|
+
}
|
|
92
|
+
get mcpServer() {
|
|
93
|
+
return super.mcpServer;
|
|
94
|
+
}
|
|
95
|
+
set mcpServer(mcpServer) {
|
|
96
|
+
this.actions.forEach(a => a.mcpServer = mcpServer);
|
|
97
|
+
super.mcpServer = mcpServer;
|
|
98
|
+
}
|
|
99
|
+
constructor(id, clazz, actionsGroups) {
|
|
100
|
+
clazz = `${clazz} action-dropdown`;
|
|
101
|
+
super(id, undefined, clazz);
|
|
102
|
+
this.actionsGroups = actionsGroups;
|
|
103
|
+
this.menuActionClassNames = [];
|
|
104
|
+
this._menuActions = [];
|
|
105
|
+
this.menuActionClassNames = clazz.split(" ");
|
|
106
|
+
this.hideOnDisabled = false;
|
|
107
|
+
this.actions = actionsGroups.flat();
|
|
108
|
+
this.update();
|
|
109
|
+
this._register(Event.any(...( this.actions.map(a => a.onDidChange)))(() => this.update(true)));
|
|
110
|
+
this.actions.forEach(a => this._register(a));
|
|
111
|
+
}
|
|
112
|
+
update(donotUpdateActions) {
|
|
113
|
+
if (!donotUpdateActions) {
|
|
114
|
+
this.actions.forEach(a => a.update());
|
|
115
|
+
}
|
|
116
|
+
const actionsGroups = ( this.actionsGroups.map(actionsGroup => actionsGroup.filter(a => !a.hidden)));
|
|
117
|
+
let actions = [];
|
|
118
|
+
for (const visibleActions of actionsGroups) {
|
|
119
|
+
if (visibleActions.length) {
|
|
120
|
+
actions = [...actions, ...visibleActions, ( new Separator())];
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
actions = actions.length ? actions.slice(0, actions.length - 1) : actions;
|
|
124
|
+
this.primaryAction = actions[0];
|
|
125
|
+
this._menuActions = actions.length > 1 ? actions : [];
|
|
126
|
+
this._onDidChange.fire({
|
|
127
|
+
menuActions: this._menuActions
|
|
128
|
+
});
|
|
129
|
+
if (this.primaryAction) {
|
|
130
|
+
this.enabled = this.primaryAction.enabled;
|
|
131
|
+
this.label = this.getLabel(this.primaryAction);
|
|
132
|
+
this.tooltip = this.primaryAction.tooltip;
|
|
133
|
+
} else {
|
|
134
|
+
this.enabled = false;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
async run() {
|
|
138
|
+
if (this.enabled) {
|
|
139
|
+
await this.primaryAction?.run();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
getLabel(action) {
|
|
143
|
+
return action.label;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
class ButtonWithDropdownExtensionActionViewItem extends ActionWithDropdownActionViewItem {
|
|
147
|
+
constructor(action, options, contextMenuProvider) {
|
|
148
|
+
super(null, action, options, contextMenuProvider);
|
|
149
|
+
this._register(action.onDidChange(e => {
|
|
150
|
+
if (e.hidden !== undefined || e.menuActions !== undefined) {
|
|
151
|
+
this.updateClass();
|
|
152
|
+
}
|
|
153
|
+
}));
|
|
154
|
+
}
|
|
155
|
+
render(container) {
|
|
156
|
+
super.render(container);
|
|
157
|
+
this.updateClass();
|
|
158
|
+
}
|
|
159
|
+
updateClass() {
|
|
160
|
+
super.updateClass();
|
|
161
|
+
if (this.element && this.dropdownMenuActionViewItem?.element) {
|
|
162
|
+
this.element.classList.toggle("hide", this._action.hidden);
|
|
163
|
+
const isMenuEmpty = this._action.menuActions.length === 0;
|
|
164
|
+
this.element.classList.toggle("empty", isMenuEmpty);
|
|
165
|
+
this.dropdownMenuActionViewItem.element.classList.toggle("hide", isMenuEmpty);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
let DropDownAction = class DropDownAction extends McpServerAction {
|
|
170
|
+
constructor(id, label, cssClass, enabled, instantiationService) {
|
|
171
|
+
super(id, label, cssClass, enabled);
|
|
172
|
+
this.instantiationService = instantiationService;
|
|
173
|
+
this._actionViewItem = null;
|
|
174
|
+
}
|
|
175
|
+
createActionViewItem(options) {
|
|
176
|
+
this._actionViewItem = this.instantiationService.createInstance(DropDownExtensionActionViewItem, this, options);
|
|
177
|
+
return this._actionViewItem;
|
|
178
|
+
}
|
|
179
|
+
run(actionGroups) {
|
|
180
|
+
this._actionViewItem?.showMenu(actionGroups);
|
|
181
|
+
return Promise.resolve();
|
|
182
|
+
}
|
|
183
|
+
};
|
|
184
|
+
DropDownAction = ( __decorate([( __param(4, IInstantiationService))], DropDownAction));
|
|
185
|
+
let DropDownExtensionActionViewItem = class DropDownExtensionActionViewItem extends ActionViewItem {
|
|
186
|
+
constructor(action, options, contextMenuService) {
|
|
187
|
+
super(null, action, {
|
|
188
|
+
...options,
|
|
189
|
+
icon: true,
|
|
190
|
+
label: true
|
|
191
|
+
});
|
|
192
|
+
this.contextMenuService = contextMenuService;
|
|
193
|
+
}
|
|
194
|
+
showMenu(menuActionGroups) {
|
|
195
|
+
if (this.element) {
|
|
196
|
+
const actions = this.getActions(menuActionGroups);
|
|
197
|
+
const elementPosition = getDomNodePagePosition(this.element);
|
|
198
|
+
const anchor = {
|
|
199
|
+
x: elementPosition.left,
|
|
200
|
+
y: elementPosition.top + elementPosition.height + 10
|
|
201
|
+
};
|
|
202
|
+
this.contextMenuService.showContextMenu({
|
|
203
|
+
getAnchor: () => anchor,
|
|
204
|
+
getActions: () => actions,
|
|
205
|
+
actionRunner: this.actionRunner,
|
|
206
|
+
onHide: () => disposeIfDisposable(actions)
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
getActions(menuActionGroups) {
|
|
211
|
+
let actions = [];
|
|
212
|
+
for (const menuActions of menuActionGroups) {
|
|
213
|
+
actions = [...actions, ...menuActions, ( new Separator())];
|
|
214
|
+
}
|
|
215
|
+
return actions.length ? actions.slice(0, actions.length - 1) : actions;
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
DropDownExtensionActionViewItem = ( __decorate([( __param(2, IContextMenuService))], DropDownExtensionActionViewItem));
|
|
219
|
+
let InstallAction = class InstallAction extends McpServerAction {
|
|
220
|
+
static {
|
|
221
|
+
InstallAction_1 = this;
|
|
222
|
+
}
|
|
223
|
+
static {
|
|
224
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent install`;
|
|
225
|
+
}
|
|
226
|
+
static {
|
|
227
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
228
|
+
}
|
|
229
|
+
constructor(open, mcpWorkbenchService, telemetryService, mcpService) {
|
|
230
|
+
super("extensions.install", ( localize(10287, "Install")), InstallAction_1.CLASS, false);
|
|
231
|
+
this.open = open;
|
|
232
|
+
this.mcpWorkbenchService = mcpWorkbenchService;
|
|
233
|
+
this.telemetryService = telemetryService;
|
|
234
|
+
this.mcpService = mcpService;
|
|
235
|
+
this.update();
|
|
236
|
+
}
|
|
237
|
+
update() {
|
|
238
|
+
this.enabled = false;
|
|
239
|
+
this.class = InstallAction_1.HIDE;
|
|
240
|
+
if (!this.mcpServer?.gallery && !this.mcpServer?.installable) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
if (this.mcpServer.installState !== McpServerInstallState.Uninstalled) {
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
this.class = InstallAction_1.CLASS;
|
|
247
|
+
this.enabled = this.mcpWorkbenchService.canInstall(this.mcpServer) === true;
|
|
248
|
+
}
|
|
249
|
+
async run() {
|
|
250
|
+
if (!this.mcpServer) {
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
if (this.open) {
|
|
254
|
+
this.mcpWorkbenchService.open(this.mcpServer);
|
|
255
|
+
alert(( localize(
|
|
256
|
+
10288,
|
|
257
|
+
"Installing MCP Server {0} started. An editor is now open with more details on this MCP Server",
|
|
258
|
+
this.mcpServer.label
|
|
259
|
+
)));
|
|
260
|
+
}
|
|
261
|
+
this.telemetryService.publicLog2("mcp:action:install", {
|
|
262
|
+
name: this.mcpServer.gallery?.name
|
|
263
|
+
});
|
|
264
|
+
const installed = await this.mcpWorkbenchService.install(this.mcpServer);
|
|
265
|
+
await startServerByFilter(this.mcpService, s => {
|
|
266
|
+
return s.definition.label === installed.name;
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
InstallAction = InstallAction_1 = ( __decorate([( __param(1, IMcpWorkbenchService)), ( __param(2, ITelemetryService)), ( __param(3, IMcpService))], InstallAction));
|
|
271
|
+
let InstallInWorkspaceAction = class InstallInWorkspaceAction extends McpServerAction {
|
|
272
|
+
static {
|
|
273
|
+
InstallInWorkspaceAction_1 = this;
|
|
274
|
+
}
|
|
275
|
+
static {
|
|
276
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent install`;
|
|
277
|
+
}
|
|
278
|
+
static {
|
|
279
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
280
|
+
}
|
|
281
|
+
constructor(
|
|
282
|
+
open,
|
|
283
|
+
mcpWorkbenchService,
|
|
284
|
+
workspaceService,
|
|
285
|
+
quickInputService,
|
|
286
|
+
telemetryService,
|
|
287
|
+
mcpService
|
|
288
|
+
) {
|
|
289
|
+
super("extensions.installWorkspace", ( localize(10289, "Install in Workspace")), InstallAction.CLASS, false);
|
|
290
|
+
this.open = open;
|
|
291
|
+
this.mcpWorkbenchService = mcpWorkbenchService;
|
|
292
|
+
this.workspaceService = workspaceService;
|
|
293
|
+
this.quickInputService = quickInputService;
|
|
294
|
+
this.telemetryService = telemetryService;
|
|
295
|
+
this.mcpService = mcpService;
|
|
296
|
+
this.update();
|
|
297
|
+
}
|
|
298
|
+
update() {
|
|
299
|
+
this.enabled = false;
|
|
300
|
+
this.class = InstallInWorkspaceAction_1.HIDE;
|
|
301
|
+
if (this.workspaceService.getWorkbenchState() === WorkbenchState.EMPTY) {
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
if (!this.mcpServer?.gallery && !this.mcpServer?.installable) {
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
if (this.mcpServer.installState !== McpServerInstallState.Uninstalled && this.mcpServer.local?.scope === LocalMcpServerScope.Workspace) {
|
|
308
|
+
return;
|
|
309
|
+
}
|
|
310
|
+
this.class = InstallAction.CLASS;
|
|
311
|
+
this.enabled = this.mcpWorkbenchService.canInstall(this.mcpServer) === true;
|
|
312
|
+
}
|
|
313
|
+
async run() {
|
|
314
|
+
if (!this.mcpServer) {
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
if (this.open) {
|
|
318
|
+
this.mcpWorkbenchService.open(this.mcpServer, {
|
|
319
|
+
preserveFocus: true
|
|
320
|
+
});
|
|
321
|
+
alert(( localize(
|
|
322
|
+
10288,
|
|
323
|
+
"Installing MCP Server {0} started. An editor is now open with more details on this MCP Server",
|
|
324
|
+
this.mcpServer.label
|
|
325
|
+
)));
|
|
326
|
+
}
|
|
327
|
+
const target = await this.getConfigurationTarget();
|
|
328
|
+
if (!target) {
|
|
329
|
+
return;
|
|
330
|
+
}
|
|
331
|
+
this.telemetryService.publicLog2("mcp:action:install:workspace", {
|
|
332
|
+
name: this.mcpServer.gallery?.name
|
|
333
|
+
});
|
|
334
|
+
const installed = await this.mcpWorkbenchService.install(this.mcpServer, {
|
|
335
|
+
target
|
|
336
|
+
});
|
|
337
|
+
await startServerByFilter(this.mcpService, s => {
|
|
338
|
+
return s.definition.label === installed.name;
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
async getConfigurationTarget() {
|
|
342
|
+
const options = [];
|
|
343
|
+
for (const folder of this.workspaceService.getWorkspace().folders) {
|
|
344
|
+
options.push({
|
|
345
|
+
target: folder,
|
|
346
|
+
label: folder.name,
|
|
347
|
+
description: ( localize(10290, "Workspace Folder"))
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
if (this.workspaceService.getWorkbenchState() === WorkbenchState.WORKSPACE) {
|
|
351
|
+
if (options.length > 0) {
|
|
352
|
+
options.push({
|
|
353
|
+
type: "separator"
|
|
354
|
+
});
|
|
355
|
+
}
|
|
356
|
+
options.push({
|
|
357
|
+
target: ConfigurationTarget.WORKSPACE,
|
|
358
|
+
label: ( localize(10291, "Workspace"))
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
if (options.length === 1) {
|
|
362
|
+
return options[0].target;
|
|
363
|
+
}
|
|
364
|
+
const targetPick = await this.quickInputService.pick(options, {
|
|
365
|
+
title: ( localize(10292, "Choose where to install the MCP server"))
|
|
366
|
+
});
|
|
367
|
+
return targetPick?.target;
|
|
368
|
+
}
|
|
369
|
+
};
|
|
370
|
+
InstallInWorkspaceAction = InstallInWorkspaceAction_1 = ( __decorate([( __param(1, IMcpWorkbenchService)), ( __param(2, IWorkspaceContextService)), ( __param(3, IQuickInputService)), ( __param(4, ITelemetryService)), ( __param(5, IMcpService))], InstallInWorkspaceAction));
|
|
371
|
+
let InstallInRemoteAction = class InstallInRemoteAction extends McpServerAction {
|
|
372
|
+
static {
|
|
373
|
+
InstallInRemoteAction_1 = this;
|
|
374
|
+
}
|
|
375
|
+
static {
|
|
376
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent install`;
|
|
377
|
+
}
|
|
378
|
+
static {
|
|
379
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
380
|
+
}
|
|
381
|
+
constructor(
|
|
382
|
+
open,
|
|
383
|
+
mcpWorkbenchService,
|
|
384
|
+
environmentService,
|
|
385
|
+
telemetryService,
|
|
386
|
+
labelService,
|
|
387
|
+
mcpService
|
|
388
|
+
) {
|
|
389
|
+
super("extensions.installRemote", ( localize(10293, "Install (Remote)")), InstallAction.CLASS, false);
|
|
390
|
+
this.open = open;
|
|
391
|
+
this.mcpWorkbenchService = mcpWorkbenchService;
|
|
392
|
+
this.environmentService = environmentService;
|
|
393
|
+
this.telemetryService = telemetryService;
|
|
394
|
+
this.labelService = labelService;
|
|
395
|
+
this.mcpService = mcpService;
|
|
396
|
+
const remoteLabel = this.labelService.getHostLabel(Schemas.vscodeRemote, this.environmentService.remoteAuthority);
|
|
397
|
+
this.label = ( localize(10294, "Install in {0}", remoteLabel));
|
|
398
|
+
this.update();
|
|
399
|
+
}
|
|
400
|
+
update() {
|
|
401
|
+
this.enabled = false;
|
|
402
|
+
this.class = InstallInRemoteAction_1.HIDE;
|
|
403
|
+
if (!this.environmentService.remoteAuthority) {
|
|
404
|
+
return;
|
|
405
|
+
}
|
|
406
|
+
if (!this.mcpServer?.gallery && !this.mcpServer?.installable) {
|
|
407
|
+
return;
|
|
408
|
+
}
|
|
409
|
+
if (this.mcpServer.installState !== McpServerInstallState.Uninstalled) {
|
|
410
|
+
if (this.mcpServer.local?.scope === LocalMcpServerScope.RemoteUser) {
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
if (this.mcpWorkbenchService.local.find(
|
|
414
|
+
mcpServer => mcpServer.name === this.mcpServer?.name && mcpServer.local?.scope === LocalMcpServerScope.RemoteUser
|
|
415
|
+
)) {
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
this.class = InstallAction.CLASS;
|
|
420
|
+
this.enabled = this.mcpWorkbenchService.canInstall(this.mcpServer) === true;
|
|
421
|
+
}
|
|
422
|
+
async run() {
|
|
423
|
+
if (!this.mcpServer) {
|
|
424
|
+
return;
|
|
425
|
+
}
|
|
426
|
+
if (this.open) {
|
|
427
|
+
this.mcpWorkbenchService.open(this.mcpServer);
|
|
428
|
+
alert(( localize(
|
|
429
|
+
10288,
|
|
430
|
+
"Installing MCP Server {0} started. An editor is now open with more details on this MCP Server",
|
|
431
|
+
this.mcpServer.label
|
|
432
|
+
)));
|
|
433
|
+
}
|
|
434
|
+
this.telemetryService.publicLog2("mcp:action:install:remote", {
|
|
435
|
+
name: this.mcpServer.gallery?.name
|
|
436
|
+
});
|
|
437
|
+
const installed = await this.mcpWorkbenchService.install(this.mcpServer, {
|
|
438
|
+
target: ConfigurationTarget.USER_REMOTE
|
|
439
|
+
});
|
|
440
|
+
await startServerByFilter(this.mcpService, s => {
|
|
441
|
+
return s.definition.label === installed.name;
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
InstallInRemoteAction = InstallInRemoteAction_1 = ( __decorate([( __param(1, IMcpWorkbenchService)), ( __param(2, IWorkbenchEnvironmentService)), ( __param(3, ITelemetryService)), ( __param(4, ILabelService)), ( __param(5, IMcpService))], InstallInRemoteAction));
|
|
446
|
+
class InstallingLabelAction extends McpServerAction {
|
|
447
|
+
static {
|
|
448
|
+
this.LABEL = ( localize(10295, "Installing"));
|
|
449
|
+
}
|
|
450
|
+
static {
|
|
451
|
+
this.CLASS = `${McpServerAction.LABEL_ACTION_CLASS} install installing`;
|
|
452
|
+
}
|
|
453
|
+
constructor() {
|
|
454
|
+
super(
|
|
455
|
+
"extension.installing",
|
|
456
|
+
InstallingLabelAction.LABEL,
|
|
457
|
+
InstallingLabelAction.CLASS,
|
|
458
|
+
false
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
update() {
|
|
462
|
+
this.class = `${InstallingLabelAction.CLASS}${this.mcpServer && this.mcpServer.installState === McpServerInstallState.Installing ? "" : " hide"}`;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
let UninstallAction = class UninstallAction extends McpServerAction {
|
|
466
|
+
static {
|
|
467
|
+
UninstallAction_1 = this;
|
|
468
|
+
}
|
|
469
|
+
static {
|
|
470
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent uninstall`;
|
|
471
|
+
}
|
|
472
|
+
static {
|
|
473
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
474
|
+
}
|
|
475
|
+
constructor(mcpWorkbenchService) {
|
|
476
|
+
super("extensions.uninstall", ( localize(10296, "Uninstall")), UninstallAction_1.CLASS, false);
|
|
477
|
+
this.mcpWorkbenchService = mcpWorkbenchService;
|
|
478
|
+
this.update();
|
|
479
|
+
}
|
|
480
|
+
update() {
|
|
481
|
+
this.enabled = false;
|
|
482
|
+
this.class = UninstallAction_1.HIDE;
|
|
483
|
+
if (!this.mcpServer) {
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
if (!this.mcpServer.local) {
|
|
487
|
+
return;
|
|
488
|
+
}
|
|
489
|
+
if (this.mcpServer.installState !== McpServerInstallState.Installed) {
|
|
490
|
+
this.enabled = false;
|
|
491
|
+
return;
|
|
492
|
+
}
|
|
493
|
+
this.class = UninstallAction_1.CLASS;
|
|
494
|
+
this.enabled = true;
|
|
495
|
+
this.label = ( localize(10296, "Uninstall"));
|
|
496
|
+
}
|
|
497
|
+
async run() {
|
|
498
|
+
if (!this.mcpServer) {
|
|
499
|
+
return;
|
|
500
|
+
}
|
|
501
|
+
await this.mcpWorkbenchService.uninstall(this.mcpServer);
|
|
502
|
+
}
|
|
503
|
+
};
|
|
504
|
+
UninstallAction = UninstallAction_1 = ( __decorate([( __param(0, IMcpWorkbenchService))], UninstallAction));
|
|
505
|
+
function getContextMenuActions(mcpServer, isEditorAction, instantiationService) {
|
|
506
|
+
return instantiationService.invokeFunction(accessor => {
|
|
507
|
+
const workspaceService = accessor.get(IWorkspaceContextService);
|
|
508
|
+
const environmentService = accessor.get(IWorkbenchEnvironmentService);
|
|
509
|
+
const groups = [];
|
|
510
|
+
const isInstalled = mcpServer.installState === McpServerInstallState.Installed;
|
|
511
|
+
if (isInstalled) {
|
|
512
|
+
groups.push([instantiationService.createInstance(StartServerAction)]);
|
|
513
|
+
groups.push([
|
|
514
|
+
instantiationService.createInstance(StopServerAction),
|
|
515
|
+
instantiationService.createInstance(RestartServerAction)
|
|
516
|
+
]);
|
|
517
|
+
groups.push([instantiationService.createInstance(AuthServerAction)]);
|
|
518
|
+
groups.push([
|
|
519
|
+
instantiationService.createInstance(ShowServerOutputAction),
|
|
520
|
+
instantiationService.createInstance(ShowServerConfigurationAction),
|
|
521
|
+
instantiationService.createInstance(ShowServerJsonConfigurationAction)
|
|
522
|
+
]);
|
|
523
|
+
groups.push([
|
|
524
|
+
instantiationService.createInstance(ConfigureModelAccessAction),
|
|
525
|
+
instantiationService.createInstance(ShowSamplingRequestsAction)
|
|
526
|
+
]);
|
|
527
|
+
groups.push([instantiationService.createInstance(BrowseResourcesAction)]);
|
|
528
|
+
if (!isEditorAction) {
|
|
529
|
+
const installGroup = [instantiationService.createInstance(UninstallAction)];
|
|
530
|
+
if (workspaceService.getWorkbenchState() !== WorkbenchState.EMPTY) {
|
|
531
|
+
installGroup.push(instantiationService.createInstance(InstallInWorkspaceAction, false));
|
|
532
|
+
}
|
|
533
|
+
if (environmentService.remoteAuthority && mcpServer.local?.scope !== LocalMcpServerScope.RemoteUser) {
|
|
534
|
+
installGroup.push(instantiationService.createInstance(InstallInRemoteAction, false));
|
|
535
|
+
}
|
|
536
|
+
groups.push(installGroup);
|
|
537
|
+
}
|
|
538
|
+
} else {
|
|
539
|
+
const installGroup = [];
|
|
540
|
+
if (workspaceService.getWorkbenchState() !== WorkbenchState.EMPTY) {
|
|
541
|
+
installGroup.push(
|
|
542
|
+
instantiationService.createInstance(InstallInWorkspaceAction, !isEditorAction)
|
|
543
|
+
);
|
|
544
|
+
}
|
|
545
|
+
if (environmentService.remoteAuthority) {
|
|
546
|
+
installGroup.push(
|
|
547
|
+
instantiationService.createInstance(InstallInRemoteAction, !isEditorAction)
|
|
548
|
+
);
|
|
549
|
+
}
|
|
550
|
+
groups.push(installGroup);
|
|
551
|
+
}
|
|
552
|
+
groups.forEach(
|
|
553
|
+
group => group.forEach(extensionAction => extensionAction.mcpServer = mcpServer)
|
|
554
|
+
);
|
|
555
|
+
return groups;
|
|
556
|
+
});
|
|
557
|
+
}
|
|
558
|
+
let ManageMcpServerAction = class ManageMcpServerAction extends DropDownAction {
|
|
559
|
+
static {
|
|
560
|
+
ManageMcpServerAction_1 = this;
|
|
561
|
+
}
|
|
562
|
+
static {
|
|
563
|
+
this.ID = "mcpServer.manage";
|
|
564
|
+
}
|
|
565
|
+
static {
|
|
566
|
+
this.Class = `${McpServerAction.ICON_ACTION_CLASS} manage ` + ThemeIcon.asClassName(manageExtensionIcon);
|
|
567
|
+
}
|
|
568
|
+
static {
|
|
569
|
+
this.HideManageExtensionClass = `${this.Class} hide`;
|
|
570
|
+
}
|
|
571
|
+
constructor(isEditorAction, instantiationService) {
|
|
572
|
+
super(ManageMcpServerAction_1.ID, "", "", true, instantiationService);
|
|
573
|
+
this.isEditorAction = isEditorAction;
|
|
574
|
+
this.tooltip = ( localize(10297, "Manage"));
|
|
575
|
+
this.update();
|
|
576
|
+
}
|
|
577
|
+
async run() {
|
|
578
|
+
return super.run(
|
|
579
|
+
this.mcpServer ? getContextMenuActions(this.mcpServer, this.isEditorAction, this.instantiationService) : []
|
|
580
|
+
);
|
|
581
|
+
}
|
|
582
|
+
update() {
|
|
583
|
+
this.class = ManageMcpServerAction_1.HideManageExtensionClass;
|
|
584
|
+
this.enabled = false;
|
|
585
|
+
if (!this.mcpServer) {
|
|
586
|
+
return;
|
|
587
|
+
}
|
|
588
|
+
if (this.isEditorAction) {
|
|
589
|
+
this.enabled = true;
|
|
590
|
+
this.class = ManageMcpServerAction_1.Class;
|
|
591
|
+
} else {
|
|
592
|
+
this.enabled = !!this.mcpServer.local;
|
|
593
|
+
this.class = this.enabled ? ManageMcpServerAction_1.Class : ManageMcpServerAction_1.HideManageExtensionClass;
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
ManageMcpServerAction = ManageMcpServerAction_1 = ( __decorate([( __param(1, IInstantiationService))], ManageMcpServerAction));
|
|
598
|
+
let StartServerAction = class StartServerAction extends McpServerAction {
|
|
599
|
+
static {
|
|
600
|
+
StartServerAction_1 = this;
|
|
601
|
+
}
|
|
602
|
+
static {
|
|
603
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent start`;
|
|
604
|
+
}
|
|
605
|
+
static {
|
|
606
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
607
|
+
}
|
|
608
|
+
constructor(mcpService) {
|
|
609
|
+
super("extensions.start", ( localize(10298, "Start Server")), StartServerAction_1.CLASS, false);
|
|
610
|
+
this.mcpService = mcpService;
|
|
611
|
+
this.update();
|
|
612
|
+
}
|
|
613
|
+
update() {
|
|
614
|
+
this.enabled = false;
|
|
615
|
+
this.class = StartServerAction_1.HIDE;
|
|
616
|
+
const server = this.getServer();
|
|
617
|
+
if (!server) {
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
620
|
+
const serverState = server.connectionState.get();
|
|
621
|
+
if (!McpConnectionState.canBeStarted(serverState.state)) {
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
this.class = StartServerAction_1.CLASS;
|
|
625
|
+
this.enabled = true;
|
|
626
|
+
this.label = ( localize(10298, "Start Server"));
|
|
627
|
+
}
|
|
628
|
+
async run() {
|
|
629
|
+
const server = this.getServer();
|
|
630
|
+
if (!server) {
|
|
631
|
+
return;
|
|
632
|
+
}
|
|
633
|
+
await server.start({
|
|
634
|
+
promptType: "all-untrusted"
|
|
635
|
+
});
|
|
636
|
+
server.showOutput();
|
|
637
|
+
}
|
|
638
|
+
getServer() {
|
|
639
|
+
if (!this.mcpServer) {
|
|
640
|
+
return;
|
|
641
|
+
}
|
|
642
|
+
if (!this.mcpServer.local) {
|
|
643
|
+
return;
|
|
644
|
+
}
|
|
645
|
+
return this.mcpService.servers.get().find(s => s.definition.id === this.mcpServer?.id);
|
|
646
|
+
}
|
|
647
|
+
};
|
|
648
|
+
StartServerAction = StartServerAction_1 = ( __decorate([( __param(0, IMcpService))], StartServerAction));
|
|
649
|
+
let StopServerAction = class StopServerAction extends McpServerAction {
|
|
650
|
+
static {
|
|
651
|
+
StopServerAction_1 = this;
|
|
652
|
+
}
|
|
653
|
+
static {
|
|
654
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent stop`;
|
|
655
|
+
}
|
|
656
|
+
static {
|
|
657
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
658
|
+
}
|
|
659
|
+
constructor(mcpService) {
|
|
660
|
+
super("extensions.stop", ( localize(10299, "Stop Server")), StopServerAction_1.CLASS, false);
|
|
661
|
+
this.mcpService = mcpService;
|
|
662
|
+
this.update();
|
|
663
|
+
}
|
|
664
|
+
update() {
|
|
665
|
+
this.enabled = false;
|
|
666
|
+
this.class = StopServerAction_1.HIDE;
|
|
667
|
+
const server = this.getServer();
|
|
668
|
+
if (!server) {
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
const serverState = server.connectionState.get();
|
|
672
|
+
if (McpConnectionState.canBeStarted(serverState.state)) {
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
this.class = StopServerAction_1.CLASS;
|
|
676
|
+
this.enabled = true;
|
|
677
|
+
this.label = ( localize(10299, "Stop Server"));
|
|
678
|
+
}
|
|
679
|
+
async run() {
|
|
680
|
+
const server = this.getServer();
|
|
681
|
+
if (!server) {
|
|
682
|
+
return;
|
|
683
|
+
}
|
|
684
|
+
await server.stop();
|
|
685
|
+
}
|
|
686
|
+
getServer() {
|
|
687
|
+
if (!this.mcpServer) {
|
|
688
|
+
return;
|
|
689
|
+
}
|
|
690
|
+
if (!this.mcpServer.local) {
|
|
691
|
+
return;
|
|
692
|
+
}
|
|
693
|
+
return this.mcpService.servers.get().find(s => s.definition.id === this.mcpServer?.id);
|
|
694
|
+
}
|
|
695
|
+
};
|
|
696
|
+
StopServerAction = StopServerAction_1 = ( __decorate([( __param(0, IMcpService))], StopServerAction));
|
|
697
|
+
let RestartServerAction = class RestartServerAction extends McpServerAction {
|
|
698
|
+
static {
|
|
699
|
+
RestartServerAction_1 = this;
|
|
700
|
+
}
|
|
701
|
+
static {
|
|
702
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent restart`;
|
|
703
|
+
}
|
|
704
|
+
static {
|
|
705
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
706
|
+
}
|
|
707
|
+
constructor(mcpService) {
|
|
708
|
+
super("extensions.restart", ( localize(10300, "Restart Server")), RestartServerAction_1.CLASS, false);
|
|
709
|
+
this.mcpService = mcpService;
|
|
710
|
+
this.update();
|
|
711
|
+
}
|
|
712
|
+
update() {
|
|
713
|
+
this.enabled = false;
|
|
714
|
+
this.class = RestartServerAction_1.HIDE;
|
|
715
|
+
const server = this.getServer();
|
|
716
|
+
if (!server) {
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
const serverState = server.connectionState.get();
|
|
720
|
+
if (McpConnectionState.canBeStarted(serverState.state)) {
|
|
721
|
+
return;
|
|
722
|
+
}
|
|
723
|
+
this.class = RestartServerAction_1.CLASS;
|
|
724
|
+
this.enabled = true;
|
|
725
|
+
this.label = ( localize(10300, "Restart Server"));
|
|
726
|
+
}
|
|
727
|
+
async run() {
|
|
728
|
+
const server = this.getServer();
|
|
729
|
+
if (!server) {
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
await server.stop();
|
|
733
|
+
await server.start({
|
|
734
|
+
promptType: "all-untrusted"
|
|
735
|
+
});
|
|
736
|
+
server.showOutput();
|
|
737
|
+
}
|
|
738
|
+
getServer() {
|
|
739
|
+
if (!this.mcpServer) {
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
if (!this.mcpServer.local) {
|
|
743
|
+
return;
|
|
744
|
+
}
|
|
745
|
+
return this.mcpService.servers.get().find(s => s.definition.id === this.mcpServer?.id);
|
|
746
|
+
}
|
|
747
|
+
};
|
|
748
|
+
RestartServerAction = RestartServerAction_1 = ( __decorate([( __param(0, IMcpService))], RestartServerAction));
|
|
749
|
+
let AuthServerAction = class AuthServerAction extends McpServerAction {
|
|
750
|
+
static {
|
|
751
|
+
AuthServerAction_1 = this;
|
|
752
|
+
}
|
|
753
|
+
static {
|
|
754
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent account`;
|
|
755
|
+
}
|
|
756
|
+
static {
|
|
757
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
758
|
+
}
|
|
759
|
+
static {
|
|
760
|
+
this.SIGN_OUT = ( localize(10301, "Sign Out"));
|
|
761
|
+
}
|
|
762
|
+
static {
|
|
763
|
+
this.DISCONNECT = ( localize(10302, "Disconnect Account"));
|
|
764
|
+
}
|
|
765
|
+
constructor(mcpService, _authenticationQueryService, _authenticationService) {
|
|
766
|
+
super("extensions.restart", ( localize(10300, "Restart Server")), RestartServerAction.CLASS, false);
|
|
767
|
+
this.mcpService = mcpService;
|
|
768
|
+
this._authenticationQueryService = _authenticationQueryService;
|
|
769
|
+
this._authenticationService = _authenticationService;
|
|
770
|
+
this.update();
|
|
771
|
+
}
|
|
772
|
+
update() {
|
|
773
|
+
this.enabled = false;
|
|
774
|
+
this.class = AuthServerAction_1.HIDE;
|
|
775
|
+
const server = this.getServer();
|
|
776
|
+
if (!server) {
|
|
777
|
+
return;
|
|
778
|
+
}
|
|
779
|
+
const accountQuery = this.getAccountQuery();
|
|
780
|
+
if (!accountQuery) {
|
|
781
|
+
return;
|
|
782
|
+
}
|
|
783
|
+
this._accountQuery = accountQuery;
|
|
784
|
+
this.class = AuthServerAction_1.CLASS;
|
|
785
|
+
this.enabled = true;
|
|
786
|
+
let label = accountQuery.entities().getEntityCount().total > 1 ? AuthServerAction_1.DISCONNECT : AuthServerAction_1.SIGN_OUT;
|
|
787
|
+
label += ` (${accountQuery.accountName})`;
|
|
788
|
+
this.label = label;
|
|
789
|
+
}
|
|
790
|
+
async run() {
|
|
791
|
+
const server = this.getServer();
|
|
792
|
+
if (!server) {
|
|
793
|
+
return;
|
|
794
|
+
}
|
|
795
|
+
const accountQuery = this.getAccountQuery();
|
|
796
|
+
if (!accountQuery) {
|
|
797
|
+
return;
|
|
798
|
+
}
|
|
799
|
+
await server.stop();
|
|
800
|
+
const {
|
|
801
|
+
providerId,
|
|
802
|
+
accountName
|
|
803
|
+
} = accountQuery;
|
|
804
|
+
accountQuery.mcpServer(server.definition.id).setAccessAllowed(false, server.definition.label);
|
|
805
|
+
if (this.label === AuthServerAction_1.SIGN_OUT) {
|
|
806
|
+
const accounts = await this._authenticationService.getAccounts(providerId);
|
|
807
|
+
const account = accounts.find(a => a.label === accountName);
|
|
808
|
+
if (account) {
|
|
809
|
+
const sessions = await this._authenticationService.getSessions(providerId, undefined, {
|
|
810
|
+
account
|
|
811
|
+
});
|
|
812
|
+
for (const session of sessions) {
|
|
813
|
+
await this._authenticationService.removeSession(providerId, session.id);
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
}
|
|
818
|
+
getServer() {
|
|
819
|
+
if (!this.mcpServer) {
|
|
820
|
+
return;
|
|
821
|
+
}
|
|
822
|
+
if (!this.mcpServer.local) {
|
|
823
|
+
return;
|
|
824
|
+
}
|
|
825
|
+
return this.mcpService.servers.get().find(s => s.definition.id === this.mcpServer?.id);
|
|
826
|
+
}
|
|
827
|
+
getAccountQuery() {
|
|
828
|
+
const server = this.getServer();
|
|
829
|
+
if (!server) {
|
|
830
|
+
return undefined;
|
|
831
|
+
}
|
|
832
|
+
if (this._accountQuery) {
|
|
833
|
+
return this._accountQuery;
|
|
834
|
+
}
|
|
835
|
+
const serverId = server.definition.id;
|
|
836
|
+
const preferences = this._authenticationQueryService.mcpServer(serverId).getAllAccountPreferences();
|
|
837
|
+
if (!preferences.size) {
|
|
838
|
+
return undefined;
|
|
839
|
+
}
|
|
840
|
+
for (const [providerId, accountName] of preferences) {
|
|
841
|
+
const accountQuery = this._authenticationQueryService.provider(providerId).account(accountName);
|
|
842
|
+
if (!accountQuery.mcpServer(serverId).isAccessAllowed()) {
|
|
843
|
+
continue;
|
|
844
|
+
}
|
|
845
|
+
return accountQuery;
|
|
846
|
+
}
|
|
847
|
+
return undefined;
|
|
848
|
+
}
|
|
849
|
+
};
|
|
850
|
+
AuthServerAction = AuthServerAction_1 = ( __decorate([( __param(0, IMcpService)), ( __param(1, IAuthenticationQueryService)), ( __param(2, IAuthenticationService))], AuthServerAction));
|
|
851
|
+
let ShowServerOutputAction = class ShowServerOutputAction extends McpServerAction {
|
|
852
|
+
static {
|
|
853
|
+
ShowServerOutputAction_1 = this;
|
|
854
|
+
}
|
|
855
|
+
static {
|
|
856
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent output`;
|
|
857
|
+
}
|
|
858
|
+
static {
|
|
859
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
860
|
+
}
|
|
861
|
+
constructor(mcpService) {
|
|
862
|
+
super("extensions.output", ( localize(10303, "Show Output")), ShowServerOutputAction_1.CLASS, false);
|
|
863
|
+
this.mcpService = mcpService;
|
|
864
|
+
this.update();
|
|
865
|
+
}
|
|
866
|
+
update() {
|
|
867
|
+
this.enabled = false;
|
|
868
|
+
this.class = ShowServerOutputAction_1.HIDE;
|
|
869
|
+
const server = this.getServer();
|
|
870
|
+
if (!server) {
|
|
871
|
+
return;
|
|
872
|
+
}
|
|
873
|
+
this.class = ShowServerOutputAction_1.CLASS;
|
|
874
|
+
this.enabled = true;
|
|
875
|
+
this.label = ( localize(10303, "Show Output"));
|
|
876
|
+
}
|
|
877
|
+
async run() {
|
|
878
|
+
const server = this.getServer();
|
|
879
|
+
if (!server) {
|
|
880
|
+
return;
|
|
881
|
+
}
|
|
882
|
+
server.showOutput();
|
|
883
|
+
}
|
|
884
|
+
getServer() {
|
|
885
|
+
if (!this.mcpServer) {
|
|
886
|
+
return;
|
|
887
|
+
}
|
|
888
|
+
if (!this.mcpServer.local) {
|
|
889
|
+
return;
|
|
890
|
+
}
|
|
891
|
+
return this.mcpService.servers.get().find(s => s.definition.id === this.mcpServer?.id);
|
|
892
|
+
}
|
|
893
|
+
};
|
|
894
|
+
ShowServerOutputAction = ShowServerOutputAction_1 = ( __decorate([( __param(0, IMcpService))], ShowServerOutputAction));
|
|
895
|
+
let ShowServerConfigurationAction = class ShowServerConfigurationAction extends McpServerAction {
|
|
896
|
+
static {
|
|
897
|
+
ShowServerConfigurationAction_1 = this;
|
|
898
|
+
}
|
|
899
|
+
static {
|
|
900
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent config`;
|
|
901
|
+
}
|
|
902
|
+
static {
|
|
903
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
904
|
+
}
|
|
905
|
+
constructor(mcpWorkbenchService) {
|
|
906
|
+
super("extensions.config", ( localize(10304, "Show Configuration")), ShowServerConfigurationAction_1.CLASS, false);
|
|
907
|
+
this.mcpWorkbenchService = mcpWorkbenchService;
|
|
908
|
+
this.update();
|
|
909
|
+
}
|
|
910
|
+
update() {
|
|
911
|
+
this.enabled = false;
|
|
912
|
+
this.class = ShowServerConfigurationAction_1.HIDE;
|
|
913
|
+
if (!this.mcpServer?.local) {
|
|
914
|
+
return;
|
|
915
|
+
}
|
|
916
|
+
this.class = ShowServerConfigurationAction_1.CLASS;
|
|
917
|
+
this.enabled = true;
|
|
918
|
+
}
|
|
919
|
+
async run() {
|
|
920
|
+
if (!this.mcpServer?.local) {
|
|
921
|
+
return;
|
|
922
|
+
}
|
|
923
|
+
this.mcpWorkbenchService.open(this.mcpServer, {
|
|
924
|
+
tab: McpServerEditorTab.Configuration
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
};
|
|
928
|
+
ShowServerConfigurationAction = ShowServerConfigurationAction_1 = ( __decorate([( __param(0, IMcpWorkbenchService))], ShowServerConfigurationAction));
|
|
929
|
+
let ShowServerJsonConfigurationAction = class ShowServerJsonConfigurationAction extends McpServerAction {
|
|
930
|
+
static {
|
|
931
|
+
ShowServerJsonConfigurationAction_1 = this;
|
|
932
|
+
}
|
|
933
|
+
static {
|
|
934
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent config`;
|
|
935
|
+
}
|
|
936
|
+
static {
|
|
937
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
938
|
+
}
|
|
939
|
+
constructor(mcpService, mcpRegistry, editorService) {
|
|
940
|
+
super("extensions.jsonConfig", ( localize(10305, "Show Configuration (JSON)")), ShowServerJsonConfigurationAction_1.CLASS, false);
|
|
941
|
+
this.mcpService = mcpService;
|
|
942
|
+
this.mcpRegistry = mcpRegistry;
|
|
943
|
+
this.editorService = editorService;
|
|
944
|
+
this.update();
|
|
945
|
+
}
|
|
946
|
+
update() {
|
|
947
|
+
this.enabled = false;
|
|
948
|
+
this.class = ShowServerJsonConfigurationAction_1.HIDE;
|
|
949
|
+
const configurationTarget = this.getConfigurationTarget();
|
|
950
|
+
if (!configurationTarget) {
|
|
951
|
+
return;
|
|
952
|
+
}
|
|
953
|
+
this.class = ShowServerConfigurationAction.CLASS;
|
|
954
|
+
this.enabled = true;
|
|
955
|
+
}
|
|
956
|
+
async run() {
|
|
957
|
+
const configurationTarget = this.getConfigurationTarget();
|
|
958
|
+
if (!configurationTarget) {
|
|
959
|
+
return;
|
|
960
|
+
}
|
|
961
|
+
this.editorService.openEditor({
|
|
962
|
+
resource: URI.isUri(configurationTarget) ? configurationTarget : configurationTarget.uri,
|
|
963
|
+
options: {
|
|
964
|
+
selection: URI.isUri(configurationTarget) ? undefined : configurationTarget.range
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
getConfigurationTarget() {
|
|
969
|
+
if (!this.mcpServer) {
|
|
970
|
+
return;
|
|
971
|
+
}
|
|
972
|
+
if (!this.mcpServer.local) {
|
|
973
|
+
return;
|
|
974
|
+
}
|
|
975
|
+
const server = this.mcpService.servers.get().find(s => s.definition.label === this.mcpServer?.name);
|
|
976
|
+
if (!server) {
|
|
977
|
+
return;
|
|
978
|
+
}
|
|
979
|
+
const collection = this.mcpRegistry.collections.get().find(c => c.id === server.collection.id);
|
|
980
|
+
const serverDefinition = collection?.serverDefinitions.get().find(s => s.id === server.definition.id);
|
|
981
|
+
return serverDefinition?.presentation?.origin || collection?.presentation?.origin;
|
|
982
|
+
}
|
|
983
|
+
};
|
|
984
|
+
ShowServerJsonConfigurationAction = ShowServerJsonConfigurationAction_1 = ( __decorate([( __param(0, IMcpService)), ( __param(1, IMcpRegistry)), ( __param(2, IEditorService))], ShowServerJsonConfigurationAction));
|
|
985
|
+
let ConfigureModelAccessAction = class ConfigureModelAccessAction extends McpServerAction {
|
|
986
|
+
static {
|
|
987
|
+
ConfigureModelAccessAction_1 = this;
|
|
988
|
+
}
|
|
989
|
+
static {
|
|
990
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent config`;
|
|
991
|
+
}
|
|
992
|
+
static {
|
|
993
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
994
|
+
}
|
|
995
|
+
constructor(mcpService, commandService) {
|
|
996
|
+
super("extensions.config", ( localize(10306, "Configure Model Access")), ConfigureModelAccessAction_1.CLASS, false);
|
|
997
|
+
this.mcpService = mcpService;
|
|
998
|
+
this.commandService = commandService;
|
|
999
|
+
this.update();
|
|
1000
|
+
}
|
|
1001
|
+
update() {
|
|
1002
|
+
this.enabled = false;
|
|
1003
|
+
this.class = ConfigureModelAccessAction_1.HIDE;
|
|
1004
|
+
const server = this.getServer();
|
|
1005
|
+
if (!server) {
|
|
1006
|
+
return;
|
|
1007
|
+
}
|
|
1008
|
+
this.class = ConfigureModelAccessAction_1.CLASS;
|
|
1009
|
+
this.enabled = true;
|
|
1010
|
+
this.label = ( localize(10306, "Configure Model Access"));
|
|
1011
|
+
}
|
|
1012
|
+
async run() {
|
|
1013
|
+
const server = this.getServer();
|
|
1014
|
+
if (!server) {
|
|
1015
|
+
return;
|
|
1016
|
+
}
|
|
1017
|
+
this.commandService.executeCommand(McpCommandIds.ConfigureSamplingModels, server);
|
|
1018
|
+
}
|
|
1019
|
+
getServer() {
|
|
1020
|
+
if (!this.mcpServer) {
|
|
1021
|
+
return;
|
|
1022
|
+
}
|
|
1023
|
+
if (!this.mcpServer.local) {
|
|
1024
|
+
return;
|
|
1025
|
+
}
|
|
1026
|
+
return this.mcpService.servers.get().find(s => s.definition.id === this.mcpServer?.id);
|
|
1027
|
+
}
|
|
1028
|
+
};
|
|
1029
|
+
ConfigureModelAccessAction = ConfigureModelAccessAction_1 = ( __decorate([( __param(0, IMcpService)), ( __param(1, ICommandService))], ConfigureModelAccessAction));
|
|
1030
|
+
let ShowSamplingRequestsAction = class ShowSamplingRequestsAction extends McpServerAction {
|
|
1031
|
+
static {
|
|
1032
|
+
ShowSamplingRequestsAction_1 = this;
|
|
1033
|
+
}
|
|
1034
|
+
static {
|
|
1035
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent config`;
|
|
1036
|
+
}
|
|
1037
|
+
static {
|
|
1038
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
1039
|
+
}
|
|
1040
|
+
constructor(mcpService, samplingService, editorService) {
|
|
1041
|
+
super("extensions.config", ( localize(10307, "Show Sampling Requests")), ShowSamplingRequestsAction_1.CLASS, false);
|
|
1042
|
+
this.mcpService = mcpService;
|
|
1043
|
+
this.samplingService = samplingService;
|
|
1044
|
+
this.editorService = editorService;
|
|
1045
|
+
this.update();
|
|
1046
|
+
}
|
|
1047
|
+
update() {
|
|
1048
|
+
this.enabled = false;
|
|
1049
|
+
this.class = ShowSamplingRequestsAction_1.HIDE;
|
|
1050
|
+
const server = this.getServer();
|
|
1051
|
+
if (!server) {
|
|
1052
|
+
return;
|
|
1053
|
+
}
|
|
1054
|
+
if (!this.samplingService.hasLogs(server)) {
|
|
1055
|
+
return;
|
|
1056
|
+
}
|
|
1057
|
+
this.class = ShowSamplingRequestsAction_1.CLASS;
|
|
1058
|
+
this.enabled = true;
|
|
1059
|
+
}
|
|
1060
|
+
async run() {
|
|
1061
|
+
const server = this.getServer();
|
|
1062
|
+
if (!server) {
|
|
1063
|
+
return;
|
|
1064
|
+
}
|
|
1065
|
+
if (!this.samplingService.hasLogs(server)) {
|
|
1066
|
+
return;
|
|
1067
|
+
}
|
|
1068
|
+
this.editorService.openEditor({
|
|
1069
|
+
resource: undefined,
|
|
1070
|
+
contents: this.samplingService.getLogText(server),
|
|
1071
|
+
label: ( localize(10308, "MCP Sampling: {0}", server.definition.label))
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
getServer() {
|
|
1075
|
+
if (!this.mcpServer) {
|
|
1076
|
+
return;
|
|
1077
|
+
}
|
|
1078
|
+
if (!this.mcpServer.local) {
|
|
1079
|
+
return;
|
|
1080
|
+
}
|
|
1081
|
+
return this.mcpService.servers.get().find(s => s.definition.id === this.mcpServer?.id);
|
|
1082
|
+
}
|
|
1083
|
+
};
|
|
1084
|
+
ShowSamplingRequestsAction = ShowSamplingRequestsAction_1 = ( __decorate([( __param(0, IMcpService)), ( __param(1, IMcpSamplingService)), ( __param(2, IEditorService))], ShowSamplingRequestsAction));
|
|
1085
|
+
let BrowseResourcesAction = class BrowseResourcesAction extends McpServerAction {
|
|
1086
|
+
static {
|
|
1087
|
+
BrowseResourcesAction_1 = this;
|
|
1088
|
+
}
|
|
1089
|
+
static {
|
|
1090
|
+
this.CLASS = `${this.LABEL_ACTION_CLASS} prominent config`;
|
|
1091
|
+
}
|
|
1092
|
+
static {
|
|
1093
|
+
this.HIDE = `${this.CLASS} hide`;
|
|
1094
|
+
}
|
|
1095
|
+
constructor(mcpService, commandService) {
|
|
1096
|
+
super("extensions.config", ( localize(10309, "Browse Resources")), BrowseResourcesAction_1.CLASS, false);
|
|
1097
|
+
this.mcpService = mcpService;
|
|
1098
|
+
this.commandService = commandService;
|
|
1099
|
+
this.update();
|
|
1100
|
+
}
|
|
1101
|
+
update() {
|
|
1102
|
+
this.enabled = false;
|
|
1103
|
+
this.class = BrowseResourcesAction_1.HIDE;
|
|
1104
|
+
const server = this.getServer();
|
|
1105
|
+
if (!server) {
|
|
1106
|
+
return;
|
|
1107
|
+
}
|
|
1108
|
+
const capabilities = server.capabilities.get();
|
|
1109
|
+
if (capabilities !== undefined && !(capabilities & McpCapability.Resources)) {
|
|
1110
|
+
return;
|
|
1111
|
+
}
|
|
1112
|
+
this.class = BrowseResourcesAction_1.CLASS;
|
|
1113
|
+
this.enabled = true;
|
|
1114
|
+
}
|
|
1115
|
+
async run() {
|
|
1116
|
+
const server = this.getServer();
|
|
1117
|
+
if (!server) {
|
|
1118
|
+
return;
|
|
1119
|
+
}
|
|
1120
|
+
const capabilities = server.capabilities.get();
|
|
1121
|
+
if (capabilities !== undefined && !(capabilities & McpCapability.Resources)) {
|
|
1122
|
+
return;
|
|
1123
|
+
}
|
|
1124
|
+
return this.commandService.executeCommand(McpCommandIds.BrowseResources, server);
|
|
1125
|
+
}
|
|
1126
|
+
getServer() {
|
|
1127
|
+
if (!this.mcpServer) {
|
|
1128
|
+
return;
|
|
1129
|
+
}
|
|
1130
|
+
if (!this.mcpServer.local) {
|
|
1131
|
+
return;
|
|
1132
|
+
}
|
|
1133
|
+
return this.mcpService.servers.get().find(s => s.definition.id === this.mcpServer?.id);
|
|
1134
|
+
}
|
|
1135
|
+
};
|
|
1136
|
+
BrowseResourcesAction = BrowseResourcesAction_1 = ( __decorate([( __param(0, IMcpService)), ( __param(1, ICommandService))], BrowseResourcesAction));
|
|
1137
|
+
let McpServerStatusAction = class McpServerStatusAction extends McpServerAction {
|
|
1138
|
+
static {
|
|
1139
|
+
McpServerStatusAction_1 = this;
|
|
1140
|
+
}
|
|
1141
|
+
static {
|
|
1142
|
+
this.CLASS = `${McpServerAction.ICON_ACTION_CLASS} extension-status`;
|
|
1143
|
+
}
|
|
1144
|
+
get status() {
|
|
1145
|
+
return this._status;
|
|
1146
|
+
}
|
|
1147
|
+
constructor(mcpWorkbenchService, commandService) {
|
|
1148
|
+
super("extensions.status", "", `${McpServerStatusAction_1.CLASS} hide`, false);
|
|
1149
|
+
this.mcpWorkbenchService = mcpWorkbenchService;
|
|
1150
|
+
this.commandService = commandService;
|
|
1151
|
+
this._status = [];
|
|
1152
|
+
this._onDidChangeStatus = this._register(( new Emitter()));
|
|
1153
|
+
this.onDidChangeStatus = this._onDidChangeStatus.event;
|
|
1154
|
+
this.update();
|
|
1155
|
+
}
|
|
1156
|
+
update() {
|
|
1157
|
+
this.computeAndUpdateStatus();
|
|
1158
|
+
}
|
|
1159
|
+
computeAndUpdateStatus() {
|
|
1160
|
+
this.updateStatus(undefined, true);
|
|
1161
|
+
this.enabled = false;
|
|
1162
|
+
if (!this.mcpServer) {
|
|
1163
|
+
return;
|
|
1164
|
+
}
|
|
1165
|
+
if ((this.mcpServer.gallery || this.mcpServer.installable) && this.mcpServer.installState === McpServerInstallState.Uninstalled) {
|
|
1166
|
+
const result = this.mcpWorkbenchService.canInstall(this.mcpServer);
|
|
1167
|
+
if (result !== true) {
|
|
1168
|
+
this.updateStatus({
|
|
1169
|
+
icon: warningIcon,
|
|
1170
|
+
message: result
|
|
1171
|
+
}, true);
|
|
1172
|
+
return;
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
const runtimeState = this.mcpServer.runtimeStatus;
|
|
1176
|
+
if (runtimeState?.message) {
|
|
1177
|
+
this.updateStatus({
|
|
1178
|
+
icon: runtimeState.message.severity === Severity$1.Warning ? warningIcon : runtimeState.message.severity === Severity$1.Error ? errorIcon : infoIcon,
|
|
1179
|
+
message: runtimeState.message.text
|
|
1180
|
+
}, true);
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
updateStatus(status, updateClass) {
|
|
1184
|
+
if (status) {
|
|
1185
|
+
if (( this._status.some(
|
|
1186
|
+
s => s.message.value === status.message.value && s.icon?.id === status.icon?.id
|
|
1187
|
+
))) {
|
|
1188
|
+
return;
|
|
1189
|
+
}
|
|
1190
|
+
} else {
|
|
1191
|
+
if (this._status.length === 0) {
|
|
1192
|
+
return;
|
|
1193
|
+
}
|
|
1194
|
+
this._status = [];
|
|
1195
|
+
}
|
|
1196
|
+
if (status) {
|
|
1197
|
+
this._status.push(status);
|
|
1198
|
+
this._status.sort(
|
|
1199
|
+
(a, b) => b.icon === trustIcon ? -1 : a.icon === trustIcon ? 1 : b.icon === errorIcon ? -1 : a.icon === errorIcon ? 1 : b.icon === warningIcon ? -1 : a.icon === warningIcon ? 1 : b.icon === infoIcon ? -1 : a.icon === infoIcon ? 1 : 0
|
|
1200
|
+
);
|
|
1201
|
+
}
|
|
1202
|
+
if (updateClass) {
|
|
1203
|
+
if (status?.icon === errorIcon) {
|
|
1204
|
+
this.class = `${McpServerStatusAction_1.CLASS} extension-status-error ${ThemeIcon.asClassName(errorIcon)}`;
|
|
1205
|
+
} else if (status?.icon === warningIcon) {
|
|
1206
|
+
this.class = `${McpServerStatusAction_1.CLASS} extension-status-warning ${ThemeIcon.asClassName(warningIcon)}`;
|
|
1207
|
+
} else if (status?.icon === infoIcon) {
|
|
1208
|
+
this.class = `${McpServerStatusAction_1.CLASS} extension-status-info ${ThemeIcon.asClassName(infoIcon)}`;
|
|
1209
|
+
} else if (status?.icon === trustIcon) {
|
|
1210
|
+
this.class = `${McpServerStatusAction_1.CLASS} ${ThemeIcon.asClassName(trustIcon)}`;
|
|
1211
|
+
} else {
|
|
1212
|
+
this.class = `${McpServerStatusAction_1.CLASS} hide`;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
this._onDidChangeStatus.fire();
|
|
1216
|
+
}
|
|
1217
|
+
async run() {
|
|
1218
|
+
if (this._status[0]?.icon === trustIcon) {
|
|
1219
|
+
return this.commandService.executeCommand("workbench.trust.manage");
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
};
|
|
1223
|
+
McpServerStatusAction = McpServerStatusAction_1 = ( __decorate([( __param(0, IMcpWorkbenchService)), ( __param(1, ICommandService))], McpServerStatusAction));
|
|
1224
|
+
|
|
1225
|
+
export { AuthServerAction, BrowseResourcesAction, ButtonWithDropDownExtensionAction, ButtonWithDropdownExtensionActionViewItem, ConfigureModelAccessAction, DropDownAction, DropDownExtensionActionViewItem, InstallAction, InstallInRemoteAction, InstallInWorkspaceAction, InstallingLabelAction, ManageMcpServerAction, McpServerAction, McpServerStatusAction, RestartServerAction, ShowSamplingRequestsAction, ShowServerConfigurationAction, ShowServerJsonConfigurationAction, ShowServerOutputAction, StartServerAction, StopServerAction, UninstallAction, getContextMenuActions };
|