@codingame/monaco-vscode-api 26.1.1 → 26.2.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 +26 -5
- package/package.json +8 -8
- package/services.js +3 -3
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.css +9 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.d.ts +2 -0
- package/vscode/src/vs/platform/actions/browser/menuEntryActionViewItem.js +12 -5
- package/vscode/src/vs/platform/actions/common/actions.d.ts +1 -0
- package/vscode/src/vs/platform/actions/common/actions.js +3 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.d.ts +4 -0
- package/vscode/src/vs/platform/extensions/common/extensionsApiProposals.js +5 -1
- package/vscode/src/vs/platform/product/common/product.js +3 -3
- package/vscode/src/vs/platform/window/common/window.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHost.api.impl.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHost.protocol.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.d.ts +1 -0
- package/vscode/src/vs/workbench/api/common/extHostChatAgents2.js +31 -8
- package/vscode/src/vs/workbench/api/common/extHostChatSessions.js +2 -1
- package/vscode/src/vs/workbench/api/common/extHostLanguageModelTools.js +7 -2
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.d.ts +12 -1
- package/vscode/src/vs/workbench/api/common/extHostTypeConverters.js +67 -3
- package/vscode/src/vs/workbench/api/common/extHostTypes.d.ts +12 -0
- package/vscode/src/vs/workbench/api/common/extHostTypes.js +9 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatActions.js +1 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +15 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatScreenshotContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.d.ts +8 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorContextKeys.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileRewriter.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileRewriter.js +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatContentParts.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/common/actions/chatContextKeys.js +80 -62
- package/vscode/src/vs/workbench/contrib/chat/common/attachments/chatVariableEntries.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatModes.js +8 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.d.ts +70 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.js +27 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatService.service.d.ts +27 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionsService.service.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/constants.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/constants.js +2 -0
- 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.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.d.ts +84 -5
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModel.js +176 -70
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.d.ts +18 -5
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatViewModel.js +46 -4
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.js +10 -0
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatAgents.service.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/computeAutomaticInstructions.js +68 -54
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/config.js +6 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations.js +64 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.d.ts +159 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookSchema.js +387 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.d.ts +21 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileParser.js +82 -26
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptTypes.js +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +51 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +14 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service.d.ts +11 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptEditHelper.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptEditHelper.js +22 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/manageTodoListTool.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.d.ts +14 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/builtinTools/runSubagentTool.js +98 -25
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsService.service.d.ts +1 -2
- 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.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.js +9 -9
- 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.js +6 -6
- package/vscode/src/vs/workbench/contrib/codeEditor/browser/saveParticipants.js +4 -4
- 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 +5 -5
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/comments/browser/commentReply.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadBody.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadHeader.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentThreadZoneWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsAccessibility.js +12 -12
- package/vscode/src/vs/workbench/contrib/comments/browser/commentsController.js +7 -7
- 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/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 +6 -6
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/debug/browser/debugHover.js +3 -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/repl.js +18 -18
- package/vscode/src/vs/workbench/contrib/debug/browser/replViewer.js +5 -5
- package/vscode/src/vs/workbench/contrib/debug/browser/variablesView.js +9 -9
- package/vscode/src/vs/workbench/contrib/debug/common/abstractDebugAdapter.js +1 -1
- package/vscode/src/vs/workbench/contrib/debug/common/debug.js +65 -65
- package/vscode/src/vs/workbench/contrib/debug/common/debugModel.js +6 -6
- 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 +1 -1
- 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 +41 -41
- 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 +147 -147
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsActions.js +170 -170
- 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.js +24 -24
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsQuickAccess.js +4 -4
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewer.js +7 -7
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViewlet.js +48 -48
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsViews.js +5 -5
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWidgets.js +29 -29
- package/vscode/src/vs/workbench/contrib/extensions/browser/extensionsWorkbenchService.js +74 -74
- package/vscode/src/vs/workbench/contrib/extensions/browser/fileBasedRecommendations.js +2 -2
- 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/extensions.js +1 -1
- 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 +17 -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/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/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 +66 -66
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpConfiguration.js +31 -31
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpServer.js +9 -9
- package/vscode/src/vs/workbench/contrib/mcp/common/mcpTypes.js +4 -4
- 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/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/notebookFindReplaceWidget.js +17 -17
- 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/notebookDiffEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffEditorBrowser.js +8 -5
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/notebookDiffList.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/notebookAccessibilityProvider.js +3 -3
- 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/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 +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/preferences/browser/preferencesWidgets.js +10 -10
- package/vscode/src/vs/workbench/contrib/preferences/browser/settingsLayout.js +50 -50
- package/vscode/src/vs/workbench/contrib/preferences/common/preferences.js +3 -3
- package/vscode/src/vs/workbench/contrib/preferences/common/settingsEditorColorRegistry.js +21 -21
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteExplorer.js +15 -15
- package/vscode/src/vs/workbench/contrib/remote/browser/remoteIcons.js +17 -17
- package/vscode/src/vs/workbench/contrib/remote/browser/tunnelView.js +59 -59
- 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/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 +5 -5
- 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/searchView.js +55 -55
- package/vscode/src/vs/workbench/contrib/search/browser/searchWidget.js +8 -8
- 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/taskDefinitionRegistry.js +5 -5
- package/vscode/src/vs/workbench/contrib/tasks/common/taskService.js +6 -6
- package/vscode/src/vs/workbench/contrib/tasks/common/tasks.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalEditorInput.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalIcons.js +13 -13
- package/vscode/src/vs/workbench/contrib/terminal/browser/terminalMenus.js +40 -40
- package/vscode/src/vs/workbench/contrib/terminal/browser/xterm/decorationStyles.js +15 -15
- package/vscode/src/vs/workbench/contrib/terminal/common/terminal.js +9 -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/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 +54 -54
- 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/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/trustedDomains.js +6 -6
- package/vscode/src/vs/workbench/contrib/webview/browser/webview.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/webviewPanel/browser/webviewEditor.js +1 -1
- package/vscode/src/vs/workbench/contrib/workspace/common/workspace.js +2 -2
- 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/chat/common/chatEntitlementService.js +14 -14
- 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/editorResolverService.js +1 -1
- 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/extensionsRegistry.js +88 -88
- package/vscode/src/vs/workbench/services/filesConfiguration/common/filesConfigurationService.js +5 -5
- package/vscode/src/vs/workbench/services/language/common/languageService.js +24 -24
- package/vscode/src/vs/workbench/services/log/common/logConstants.js +1 -1
- 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/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.js +6 -6
- package/vscode/src/vs/workbench/services/search/common/queryBuilder.js +1 -1
- package/vscode/src/vs/workbench/services/storage/browser/storageService.d.ts +5 -1
- package/vscode/src/vs/workbench/services/storage/browser/storageService.js +32 -16
- 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/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/views/browser/viewsService.js +9 -9
- package/vscode/src/vs/workbench/services/workingCopy/common/storedFileWorkingCopy.js +16 -16
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaces.d.ts +2 -2
- package/vscode/src/vs/workbench/services/workspaces/browser/workspaces.js +4 -4
- package/vscode-dts/vscode.proposed.chatHooks.d.ts +126 -0
- package/vscode-dts/vscode.proposed.chatParticipantAdditions.d.ts +25 -1
- package/vscode-dts/vscode.proposed.chatParticipantPrivate.d.ts +35 -1
- package/vscode-dts/vscode.proposed.d.ts +1 -0
- package/workbench.js +2 -2
|
@@ -21,15 +21,15 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
23
|
const column = await this._quickInputService.pick(items, {
|
|
24
|
-
placeHolder: ( localize(
|
|
24
|
+
placeHolder: ( localize(9022, "Select the column to resize, type to filter."))
|
|
25
25
|
});
|
|
26
26
|
if (!column) {
|
|
27
27
|
return;
|
|
28
28
|
}
|
|
29
29
|
const value = await this._quickInputService.input({
|
|
30
|
-
placeHolder: ( localize(
|
|
30
|
+
placeHolder: ( localize(9023, "i.e. 20, 60, 100...")),
|
|
31
31
|
prompt: ( localize(
|
|
32
|
-
|
|
32
|
+
9024,
|
|
33
33
|
"Please enter a width in percentage for the '{0}' column.",
|
|
34
34
|
column.label
|
|
35
35
|
)),
|
|
@@ -44,10 +44,10 @@ let TableColumnResizeQuickPick = class TableColumnResizeQuickPick extends Dispos
|
|
|
44
44
|
async _validateColumnResizeValue(input) {
|
|
45
45
|
const percentage = Number.parseInt(input);
|
|
46
46
|
if (input && !Number.isInteger(percentage)) {
|
|
47
|
-
return localize(
|
|
47
|
+
return localize(9025, "Please enter an integer.");
|
|
48
48
|
} else if (percentage < 0 || percentage > 100) {
|
|
49
49
|
return localize(
|
|
50
|
-
|
|
50
|
+
9026,
|
|
51
51
|
"Please enter a number greater than 0 and less than or equal to 100."
|
|
52
52
|
);
|
|
53
53
|
}
|
|
@@ -47,31 +47,31 @@ var AddConfigurationType;
|
|
|
47
47
|
})(AddConfigurationType || (AddConfigurationType = {}));
|
|
48
48
|
const AssistedTypes = {
|
|
49
49
|
[AddConfigurationType.NpmPackage]: {
|
|
50
|
-
title: ( localize(
|
|
51
|
-
placeholder: ( localize(
|
|
52
|
-
pickLabel: ( localize(
|
|
53
|
-
pickDescription: ( localize(
|
|
50
|
+
title: ( localize(9274, "Enter NPM Package Name")),
|
|
51
|
+
placeholder: ( localize(9275, "Package name (e.g., @org/package)")),
|
|
52
|
+
pickLabel: ( localize(9276, "NPM Package")),
|
|
53
|
+
pickDescription: ( localize(9277, "Install from an NPM package name")),
|
|
54
54
|
enabledConfigKey: null
|
|
55
55
|
},
|
|
56
56
|
[AddConfigurationType.PipPackage]: {
|
|
57
|
-
title: ( localize(
|
|
58
|
-
placeholder: ( localize(
|
|
59
|
-
pickLabel: ( localize(
|
|
60
|
-
pickDescription: ( localize(
|
|
57
|
+
title: ( localize(9278, "Enter Pip Package Name")),
|
|
58
|
+
placeholder: ( localize(9279, "Package name (e.g., package-name)")),
|
|
59
|
+
pickLabel: ( localize(9280, "Pip Package")),
|
|
60
|
+
pickDescription: ( localize(9281, "Install from a Pip package name")),
|
|
61
61
|
enabledConfigKey: null
|
|
62
62
|
},
|
|
63
63
|
[AddConfigurationType.NuGetPackage]: {
|
|
64
|
-
title: ( localize(
|
|
65
|
-
placeholder: ( localize(
|
|
66
|
-
pickLabel: ( localize(
|
|
67
|
-
pickDescription: ( localize(
|
|
64
|
+
title: ( localize(9282, "Enter NuGet Package Name")),
|
|
65
|
+
placeholder: ( localize(9283, "Package name (e.g., Package.Name)")),
|
|
66
|
+
pickLabel: ( localize(9284, "NuGet Package")),
|
|
67
|
+
pickDescription: ( localize(9285, "Install from a NuGet package name")),
|
|
68
68
|
enabledConfigKey: "chat.mcp.assisted.nuget.enabled"
|
|
69
69
|
},
|
|
70
70
|
[AddConfigurationType.DockerImage]: {
|
|
71
|
-
title: ( localize(
|
|
72
|
-
placeholder: ( localize(
|
|
73
|
-
pickLabel: ( localize(
|
|
74
|
-
pickDescription: ( localize(
|
|
71
|
+
title: ( localize(9286, "Enter Docker Image Name")),
|
|
72
|
+
placeholder: ( localize(9287, "Image name (e.g., mcp/imagename)")),
|
|
73
|
+
pickLabel: ( localize(9288, "Docker Image")),
|
|
74
|
+
pickDescription: ( localize(9289, "Install from a Docker image")),
|
|
75
75
|
enabledConfigKey: null
|
|
76
76
|
}
|
|
77
77
|
};
|
|
@@ -118,12 +118,12 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
118
118
|
async getServerType() {
|
|
119
119
|
const items = [{
|
|
120
120
|
kind: AddConfigurationType.Stdio,
|
|
121
|
-
label: ( localize(
|
|
122
|
-
description: ( localize(
|
|
121
|
+
label: ( localize(9290, "Command (stdio)")),
|
|
122
|
+
description: ( localize(9291, "Run a local command that implements the MCP protocol"))
|
|
123
123
|
}, {
|
|
124
124
|
kind: AddConfigurationType.HTTP,
|
|
125
|
-
label: ( localize(
|
|
126
|
-
description: ( localize(
|
|
125
|
+
label: ( localize(9292, "HTTP (HTTP or Server-Sent Events)")),
|
|
126
|
+
description: ( localize(9293, "Connect to a remote HTTP server that implements the MCP protocol"))
|
|
127
127
|
}];
|
|
128
128
|
let aiSupported;
|
|
129
129
|
try {
|
|
@@ -132,7 +132,7 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
132
132
|
if (aiSupported) {
|
|
133
133
|
items.unshift({
|
|
134
134
|
type: "separator",
|
|
135
|
-
label: ( localize(
|
|
135
|
+
label: ( localize(9294, "Manual Install"))
|
|
136
136
|
});
|
|
137
137
|
const elligableTypes = ( Object.entries(AssistedTypes).map((
|
|
138
138
|
[type, {
|
|
@@ -155,7 +155,7 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
155
155
|
})).filter(x => !!x);
|
|
156
156
|
items.push({
|
|
157
157
|
type: "separator",
|
|
158
|
-
label: ( localize(
|
|
158
|
+
label: ( localize(9295, "Model-Assisted"))
|
|
159
159
|
}, ...elligableTypes);
|
|
160
160
|
}
|
|
161
161
|
items.push({
|
|
@@ -165,15 +165,15 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
165
165
|
if (discovery && typeof discovery === "object" && ( allDiscoverySources.some(d => !discovery[d]))) {
|
|
166
166
|
items.push({
|
|
167
167
|
kind: "discovery",
|
|
168
|
-
label: ( localize(
|
|
168
|
+
label: ( localize(9296, "Add from another application..."))
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
items.push({
|
|
172
172
|
kind: "browse",
|
|
173
|
-
label: ( localize(
|
|
173
|
+
label: ( localize(9297, "Browse MCP Servers..."))
|
|
174
174
|
});
|
|
175
175
|
const result = await this._quickInputService.pick(items, {
|
|
176
|
-
placeHolder: ( localize(
|
|
176
|
+
placeHolder: ( localize(9298, "Choose the type of MCP server to add"))
|
|
177
177
|
});
|
|
178
178
|
if (result?.kind === "browse") {
|
|
179
179
|
this._commandService.executeCommand(McpCommandIds.Browse);
|
|
@@ -187,8 +187,8 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
187
187
|
}
|
|
188
188
|
async getStdioConfig() {
|
|
189
189
|
const command = await this._quickInputService.input({
|
|
190
|
-
title: ( localize(
|
|
191
|
-
placeHolder: ( localize(
|
|
190
|
+
title: ( localize(9299, "Enter Command")),
|
|
191
|
+
placeHolder: ( localize(9300, "Command to run (with optional arguments)")),
|
|
192
192
|
ignoreFocusLost: true
|
|
193
193
|
});
|
|
194
194
|
if (!command) {
|
|
@@ -206,8 +206,8 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
206
206
|
}
|
|
207
207
|
async getSSEConfig() {
|
|
208
208
|
const url = await this._quickInputService.input({
|
|
209
|
-
title: ( localize(
|
|
210
|
-
placeHolder: ( localize(
|
|
209
|
+
title: ( localize(9301, "Enter Server URL")),
|
|
210
|
+
placeHolder: ( localize(9302, "URL of the MCP server (e.g., http://localhost:3000)")),
|
|
211
211
|
ignoreFocusLost: true
|
|
212
212
|
});
|
|
213
213
|
if (!url) {
|
|
@@ -223,8 +223,8 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
223
223
|
}
|
|
224
224
|
async getServerId(suggestion = `my-mcp-server-${generateUuid().split("-")[0]}`) {
|
|
225
225
|
const id = await this._quickInputService.input({
|
|
226
|
-
title: ( localize(
|
|
227
|
-
placeHolder: ( localize(
|
|
226
|
+
title: ( localize(9303, "Enter Server ID")),
|
|
227
|
+
placeHolder: ( localize(9304, "Unique identifier for this server")),
|
|
228
228
|
value: suggestion,
|
|
229
229
|
ignoreFocusLost: true
|
|
230
230
|
});
|
|
@@ -233,15 +233,15 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
233
233
|
async getConfigurationTarget() {
|
|
234
234
|
const options = [{
|
|
235
235
|
target: ConfigurationTarget.USER_LOCAL,
|
|
236
|
-
label: ( localize(
|
|
237
|
-
description: ( localize(
|
|
236
|
+
label: ( localize(9305, "Global")),
|
|
237
|
+
description: ( localize(9306, "Available in all workspaces, runs locally"))
|
|
238
238
|
}];
|
|
239
239
|
const raLabel = this._environmentService.remoteAuthority && this._label.getHostLabel(Schemas.vscodeRemote, this._environmentService.remoteAuthority);
|
|
240
240
|
if (raLabel) {
|
|
241
241
|
options.push({
|
|
242
242
|
target: ConfigurationTarget.USER_REMOTE,
|
|
243
|
-
label: ( localize(
|
|
244
|
-
description: ( localize(
|
|
243
|
+
label: ( localize(9307, "Remote")),
|
|
244
|
+
description: ( localize(9308, "Available on this remote machine, runs on {0}", raLabel))
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
const workbenchState = this._workspaceService.getWorkbenchState();
|
|
@@ -250,14 +250,14 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
250
250
|
if (this._environmentService.remoteAuthority) {
|
|
251
251
|
options.push({
|
|
252
252
|
target,
|
|
253
|
-
label: ( localize(
|
|
254
|
-
description: ( localize(
|
|
253
|
+
label: ( localize(9309, "Workspace")),
|
|
254
|
+
description: ( localize(9310, "Available in this workspace, runs on {0}", raLabel))
|
|
255
255
|
});
|
|
256
256
|
} else {
|
|
257
257
|
options.push({
|
|
258
258
|
target,
|
|
259
|
-
label: ( localize(
|
|
260
|
-
description: ( localize(
|
|
259
|
+
label: ( localize(9309, "Workspace")),
|
|
260
|
+
description: ( localize(9311, "Available in this workspace, runs locally"))
|
|
261
261
|
});
|
|
262
262
|
}
|
|
263
263
|
}
|
|
@@ -265,8 +265,8 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
265
265
|
return options[0].target;
|
|
266
266
|
}
|
|
267
267
|
const targetPick = await this._quickInputService.pick(options, {
|
|
268
|
-
title: ( localize(
|
|
269
|
-
placeHolder: ( localize(
|
|
268
|
+
title: ( localize(9312, "Add MCP Server")),
|
|
269
|
+
placeHolder: ( localize(9313, "Select the configuration target"))
|
|
270
270
|
});
|
|
271
271
|
return targetPick?.target;
|
|
272
272
|
}
|
|
@@ -288,7 +288,7 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
288
288
|
})(LoadAction || (LoadAction = {}));
|
|
289
289
|
const loadingQuickPickStore = ( new DisposableStore());
|
|
290
290
|
const loadingQuickPick = loadingQuickPickStore.add(this._quickInputService.createQuickPick());
|
|
291
|
-
loadingQuickPick.title = ( localize(
|
|
291
|
+
loadingQuickPick.title = ( localize(9314, "Loading package details..."));
|
|
292
292
|
loadingQuickPick.busy = true;
|
|
293
293
|
loadingQuickPick.ignoreFocusOut = true;
|
|
294
294
|
const packageType = this.getPackageType(type);
|
|
@@ -316,21 +316,21 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
316
316
|
if (result?.helpUri) {
|
|
317
317
|
items.push({
|
|
318
318
|
id: LoadAction.OpenUri,
|
|
319
|
-
label: result.helpUriLabel ?? ( localize(
|
|
319
|
+
label: result.helpUriLabel ?? ( localize(9315, "Open help URL")),
|
|
320
320
|
helpUri: ( URI.parse(result.helpUri))
|
|
321
321
|
});
|
|
322
322
|
}
|
|
323
323
|
items.push({
|
|
324
324
|
id: LoadAction.Retry,
|
|
325
|
-
label: ( localize(
|
|
325
|
+
label: ( localize(9316, "Try a different package"))
|
|
326
326
|
}, {
|
|
327
327
|
id: LoadAction.Cancel,
|
|
328
|
-
label: ( localize(
|
|
328
|
+
label: ( localize(9317, "Cancel"))
|
|
329
329
|
});
|
|
330
330
|
loadingQuickPick.items = items;
|
|
331
331
|
} else {
|
|
332
332
|
loadingQuickPick.title = ( localize(
|
|
333
|
-
|
|
333
|
+
9318,
|
|
334
334
|
"Install {0}{1} from {2}?",
|
|
335
335
|
result.name ?? packageName,
|
|
336
336
|
result.version ? `@${result.version}` : "",
|
|
@@ -338,10 +338,10 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
338
338
|
));
|
|
339
339
|
loadingQuickPick.items = [{
|
|
340
340
|
id: LoadAction.Allow,
|
|
341
|
-
label: ( localize(
|
|
341
|
+
label: ( localize(9319, "Allow"))
|
|
342
342
|
}, {
|
|
343
343
|
id: LoadAction.Cancel,
|
|
344
|
-
label: ( localize(
|
|
344
|
+
label: ( localize(9317, "Cancel"))
|
|
345
345
|
}];
|
|
346
346
|
}
|
|
347
347
|
loadingQuickPick.busy = false;
|
|
@@ -494,19 +494,19 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
494
494
|
}
|
|
495
495
|
async pickForUrlHandler(resource, showIsPrimary = false) {
|
|
496
496
|
const name = decodeURIComponent(basename(resource)).replace(/\.json$/, "");
|
|
497
|
-
const placeHolder = ( localize(
|
|
497
|
+
const placeHolder = ( localize(9320, "Install MCP server {0}", name));
|
|
498
498
|
const items = [{
|
|
499
499
|
id: "install",
|
|
500
|
-
label: ( localize(
|
|
500
|
+
label: ( localize(9321, "Install Server"))
|
|
501
501
|
}, {
|
|
502
502
|
id: "show",
|
|
503
|
-
label: ( localize(
|
|
503
|
+
label: ( localize(9322, "Show Configuration", name))
|
|
504
504
|
}, {
|
|
505
505
|
id: "rename",
|
|
506
|
-
label: ( localize(
|
|
506
|
+
label: ( localize(9323, "Rename \"{0}\"", name))
|
|
507
507
|
}, {
|
|
508
508
|
id: "cancel",
|
|
509
|
-
label: ( localize(
|
|
509
|
+
label: ( localize(9317, "Cancel"))
|
|
510
510
|
}];
|
|
511
511
|
if (showIsPrimary) {
|
|
512
512
|
[items[0], items[1]] = [items[1], items[0]];
|
|
@@ -538,7 +538,7 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
538
538
|
this._editorService.closeEditors(getEditors());
|
|
539
539
|
this.showOnceDiscovered(name);
|
|
540
540
|
} catch (e) {
|
|
541
|
-
this._notificationService.error(( localize(
|
|
541
|
+
this._notificationService.error(( localize(9324, "Error installing MCP server {0}: {1}", name, e.message)));
|
|
542
542
|
await this._editorService.openEditor({
|
|
543
543
|
resource
|
|
544
544
|
});
|
|
@@ -547,7 +547,7 @@ let McpAddConfigurationCommand = class McpAddConfigurationCommand {
|
|
|
547
547
|
case "rename":
|
|
548
548
|
{
|
|
549
549
|
const newName = await this._quickInputService.input({
|
|
550
|
-
placeHolder: ( localize(
|
|
550
|
+
placeHolder: ( localize(9325, "Enter new name")),
|
|
551
551
|
value: name
|
|
552
552
|
});
|
|
553
553
|
if (newName) {
|
|
@@ -600,14 +600,14 @@ let McpInstallFromManifestCommand = class McpInstallFromManifestCommand {
|
|
|
600
600
|
}
|
|
601
601
|
async run() {
|
|
602
602
|
const result = await this._fileDialogService.showOpenDialog({
|
|
603
|
-
title: ( localize(
|
|
603
|
+
title: ( localize(9326, "Select MCP Server Manifest")),
|
|
604
604
|
filters: [{
|
|
605
|
-
name: ( localize(
|
|
605
|
+
name: ( localize(9327, "MCP Manifest")),
|
|
606
606
|
extensions: ["json"]
|
|
607
607
|
}],
|
|
608
608
|
canSelectFiles: true,
|
|
609
609
|
canSelectMany: false,
|
|
610
|
-
openLabel: ( localize(
|
|
610
|
+
openLabel: ( localize(9328, "&&Install"))
|
|
611
611
|
});
|
|
612
612
|
if (!result?.[0]) {
|
|
613
613
|
return;
|
|
@@ -618,11 +618,11 @@ let McpInstallFromManifestCommand = class McpInstallFromManifestCommand {
|
|
|
618
618
|
const contents = await this._fileService.readFile(manifestUri);
|
|
619
619
|
manifest = parse(( contents.value.toString()));
|
|
620
620
|
} catch (e) {
|
|
621
|
-
this._notificationService.error(( localize(
|
|
621
|
+
this._notificationService.error(( localize(9329, "Failed to read manifest file: {0}", e.message)));
|
|
622
622
|
return;
|
|
623
623
|
}
|
|
624
624
|
if (!manifest || typeof manifest !== "object") {
|
|
625
|
-
this._notificationService.error(( localize(
|
|
625
|
+
this._notificationService.error(( localize(9330, "Invalid manifest file: expected a JSON object")));
|
|
626
626
|
return;
|
|
627
627
|
}
|
|
628
628
|
const galleryManifest = manifest;
|
|
@@ -633,7 +633,7 @@ let McpInstallFromManifestCommand = class McpInstallFromManifestCommand {
|
|
|
633
633
|
packageType = RegistryType.REMOTE;
|
|
634
634
|
} else {
|
|
635
635
|
this._notificationService.error(( localize(
|
|
636
|
-
|
|
636
|
+
9331,
|
|
637
637
|
"Invalid manifest: expected 'packages' or 'remotes' with at least one entry"
|
|
638
638
|
)));
|
|
639
639
|
return;
|
|
@@ -654,14 +654,14 @@ let McpInstallFromManifestCommand = class McpInstallFromManifestCommand {
|
|
|
654
654
|
);
|
|
655
655
|
}
|
|
656
656
|
} catch (e) {
|
|
657
|
-
this._notificationService.error(( localize(
|
|
657
|
+
this._notificationService.error(( localize(9332, "Failed to parse manifest: {0}", e.message)));
|
|
658
658
|
return;
|
|
659
659
|
}
|
|
660
660
|
let name = galleryManifest.name;
|
|
661
661
|
if (!name) {
|
|
662
662
|
name = await this._quickInputService.input({
|
|
663
|
-
title: ( localize(
|
|
664
|
-
placeHolder: ( localize(
|
|
663
|
+
title: ( localize(9333, "Enter Server ID")),
|
|
664
|
+
placeHolder: ( localize(9334, "Unique identifier for this server")),
|
|
665
665
|
value: basename(manifestUri).replace(/\.json$/i, ""),
|
|
666
666
|
ignoreFocusLost: true
|
|
667
667
|
});
|
|
@@ -675,9 +675,9 @@ let McpInstallFromManifestCommand = class McpInstallFromManifestCommand {
|
|
|
675
675
|
config,
|
|
676
676
|
inputs
|
|
677
677
|
});
|
|
678
|
-
this._notificationService.info(( localize(
|
|
678
|
+
this._notificationService.info(( localize(9335, "MCP server '{0}' installed successfully", name)));
|
|
679
679
|
} catch (e) {
|
|
680
|
-
this._notificationService.error(( localize(
|
|
680
|
+
this._notificationService.error(( localize(9336, "Failed to install MCP server: {0}", e.message)));
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
683
|
};
|
|
@@ -24,16 +24,16 @@ const allDiscoverySources = ( Object.keys({
|
|
|
24
24
|
[DiscoverySource.CursorWorkspace]: true
|
|
25
25
|
}));
|
|
26
26
|
const discoverySourceLabel = {
|
|
27
|
-
[DiscoverySource.ClaudeDesktop]: ( localize(
|
|
28
|
-
[DiscoverySource.Windsurf]: ( localize(
|
|
29
|
-
[DiscoverySource.CursorGlobal]: ( localize(
|
|
30
|
-
[DiscoverySource.CursorWorkspace]: ( localize(
|
|
27
|
+
[DiscoverySource.ClaudeDesktop]: ( localize(9498, "Claude Desktop")),
|
|
28
|
+
[DiscoverySource.Windsurf]: ( localize(9499, "Windsurf")),
|
|
29
|
+
[DiscoverySource.CursorGlobal]: ( localize(9500, "Cursor (Global)")),
|
|
30
|
+
[DiscoverySource.CursorWorkspace]: ( localize(9501, "Cursor (Workspace)"))
|
|
31
31
|
};
|
|
32
32
|
const discoverySourceSettingsLabel = {
|
|
33
|
-
[DiscoverySource.ClaudeDesktop]: ( localize(
|
|
34
|
-
[DiscoverySource.Windsurf]: ( localize(
|
|
35
|
-
[DiscoverySource.CursorGlobal]: ( localize(
|
|
36
|
-
[DiscoverySource.CursorWorkspace]: ( localize(
|
|
33
|
+
[DiscoverySource.ClaudeDesktop]: ( localize(9502, "Claude Desktop configuration (`claude_desktop_config.json`)")),
|
|
34
|
+
[DiscoverySource.Windsurf]: ( localize(9503, "Windsurf configurations (`~/.codeium/windsurf/mcp_config.json`)")),
|
|
35
|
+
[DiscoverySource.CursorGlobal]: ( localize(9504, "Cursor global configuration (`~/.cursor/mcp.json`)")),
|
|
36
|
+
[DiscoverySource.CursorWorkspace]: ( localize(9505, "Cursor workspace configuration (`.cursor/mcp.json`)"))
|
|
37
37
|
};
|
|
38
38
|
const mcpConfigurationSection = "mcp";
|
|
39
39
|
const mcpDiscoverySection = "chat.mcp.discovery.enabled";
|
|
@@ -55,7 +55,7 @@ const mcpDevModeProps = stdio => ({
|
|
|
55
55
|
dev: {
|
|
56
56
|
type: "object",
|
|
57
57
|
markdownDescription: ( localize(
|
|
58
|
-
|
|
58
|
+
9506,
|
|
59
59
|
"Enabled development mode for the server. When present, the server will be started eagerly and output will be included in its output. Properties inside the `dev` object can configure additional behavior."
|
|
60
60
|
)),
|
|
61
61
|
examples: [{
|
|
@@ -67,7 +67,7 @@ const mcpDevModeProps = stdio => ({
|
|
|
67
67
|
properties: {
|
|
68
68
|
watch: {
|
|
69
69
|
description: ( localize(
|
|
70
|
-
|
|
70
|
+
9507,
|
|
71
71
|
"A glob pattern or list of glob patterns relative to the workspace folder to watch. The MCP server will be restarted when these files change."
|
|
72
72
|
)),
|
|
73
73
|
examples: ["src/**/*.ts"],
|
|
@@ -83,7 +83,7 @@ const mcpDevModeProps = stdio => ({
|
|
|
83
83
|
...(stdio && {
|
|
84
84
|
debug: {
|
|
85
85
|
markdownDescription: ( localize(
|
|
86
|
-
|
|
86
|
+
9508,
|
|
87
87
|
"If set, debugs the MCP server using the given runtime as it's started."
|
|
88
88
|
)),
|
|
89
89
|
oneOf: [{
|
|
@@ -93,7 +93,7 @@ const mcpDevModeProps = stdio => ({
|
|
|
93
93
|
type: {
|
|
94
94
|
type: "string",
|
|
95
95
|
enum: ["node"],
|
|
96
|
-
description: ( localize(
|
|
96
|
+
description: ( localize(9509, "Debug the MCP server using Node.js."))
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
additionalProperties: false
|
|
@@ -104,11 +104,11 @@ const mcpDevModeProps = stdio => ({
|
|
|
104
104
|
type: {
|
|
105
105
|
type: "string",
|
|
106
106
|
enum: ["debugpy"],
|
|
107
|
-
description: ( localize(
|
|
107
|
+
description: ( localize(9510, "Debug the MCP server using Python and debugpy."))
|
|
108
108
|
},
|
|
109
109
|
debugpyPath: {
|
|
110
110
|
type: "string",
|
|
111
|
-
description: ( localize(
|
|
111
|
+
description: ( localize(9511, "Path to the debugpy executable."))
|
|
112
112
|
}
|
|
113
113
|
},
|
|
114
114
|
additionalProperties: false
|
|
@@ -126,34 +126,34 @@ const mcpStdioServerSchema = {
|
|
|
126
126
|
type: {
|
|
127
127
|
type: "string",
|
|
128
128
|
enum: ["stdio"],
|
|
129
|
-
description: ( localize(
|
|
129
|
+
description: ( localize(9512, "The type of the server."))
|
|
130
130
|
},
|
|
131
131
|
command: {
|
|
132
132
|
type: "string",
|
|
133
|
-
description: ( localize(
|
|
133
|
+
description: ( localize(9513, "The command to run the server."))
|
|
134
134
|
},
|
|
135
135
|
cwd: {
|
|
136
136
|
type: "string",
|
|
137
137
|
description: ( localize(
|
|
138
|
-
|
|
138
|
+
9514,
|
|
139
139
|
"The working directory for the server command. Defaults to the workspace folder when run in a workspace."
|
|
140
140
|
)),
|
|
141
141
|
examples: ["${workspaceFolder}"]
|
|
142
142
|
},
|
|
143
143
|
args: {
|
|
144
144
|
type: "array",
|
|
145
|
-
description: ( localize(
|
|
145
|
+
description: ( localize(9515, "Arguments passed to the server.")),
|
|
146
146
|
items: {
|
|
147
147
|
type: "string"
|
|
148
148
|
}
|
|
149
149
|
},
|
|
150
150
|
envFile: {
|
|
151
151
|
type: "string",
|
|
152
|
-
description: ( localize(
|
|
152
|
+
description: ( localize(9516, "Path to a file containing environment variables for the server.")),
|
|
153
153
|
examples: ["${workspaceFolder}/.env"]
|
|
154
154
|
},
|
|
155
155
|
env: {
|
|
156
|
-
description: ( localize(
|
|
156
|
+
description: ( localize(9517, "Environment variables passed to the server.")),
|
|
157
157
|
additionalProperties: {
|
|
158
158
|
anyOf: [{
|
|
159
159
|
type: "null"
|
|
@@ -170,7 +170,7 @@ const mcpStdioServerSchema = {
|
|
|
170
170
|
const mcpServerSchema = {
|
|
171
171
|
id: mcpSchemaId,
|
|
172
172
|
type: "object",
|
|
173
|
-
title: ( localize(
|
|
173
|
+
title: ( localize(9518, "Model Context Protocol Servers")),
|
|
174
174
|
allowTrailingCommas: true,
|
|
175
175
|
allowComments: true,
|
|
176
176
|
additionalProperties: false,
|
|
@@ -187,18 +187,18 @@ const mcpServerSchema = {
|
|
|
187
187
|
type: {
|
|
188
188
|
type: "string",
|
|
189
189
|
enum: ["http", "sse"],
|
|
190
|
-
description: ( localize(
|
|
190
|
+
description: ( localize(9512, "The type of the server."))
|
|
191
191
|
},
|
|
192
192
|
url: {
|
|
193
193
|
type: "string",
|
|
194
194
|
format: "uri",
|
|
195
195
|
pattern: "^https?:\\/\\/.+",
|
|
196
|
-
patternErrorMessage: ( localize(
|
|
197
|
-
description: ( localize(
|
|
196
|
+
patternErrorMessage: ( localize(9519, "The URL must start with 'http://' or 'https://'.")),
|
|
197
|
+
description: ( localize(9520, "The URL of the Streamable HTTP or SSE endpoint."))
|
|
198
198
|
},
|
|
199
199
|
headers: {
|
|
200
200
|
type: "object",
|
|
201
|
-
description: ( localize(
|
|
201
|
+
description: ( localize(9521, "Additional headers sent to the server.")),
|
|
202
202
|
additionalProperties: {
|
|
203
203
|
type: "string"
|
|
204
204
|
}
|
|
@@ -222,7 +222,7 @@ const mcpContributionPoint = {
|
|
|
222
222
|
},
|
|
223
223
|
jsonSchema: {
|
|
224
224
|
description: ( localize(
|
|
225
|
-
|
|
225
|
+
9522,
|
|
226
226
|
"Contributes Model Context Protocol servers. Users of this should also use `vscode.lm.registerMcpServerDefinitionProvider`."
|
|
227
227
|
)),
|
|
228
228
|
type: "array",
|
|
@@ -243,15 +243,15 @@ const mcpContributionPoint = {
|
|
|
243
243
|
}],
|
|
244
244
|
properties: {
|
|
245
245
|
id: {
|
|
246
|
-
description: ( localize(
|
|
246
|
+
description: ( localize(9523, "Unique ID for the collection.")),
|
|
247
247
|
type: "string"
|
|
248
248
|
},
|
|
249
249
|
label: {
|
|
250
|
-
description: ( localize(
|
|
250
|
+
description: ( localize(9524, "Display name for the collection.")),
|
|
251
251
|
type: "string"
|
|
252
252
|
},
|
|
253
253
|
when: {
|
|
254
|
-
description: ( localize(
|
|
254
|
+
description: ( localize(9525, "Condition which must be true to enable this collection.")),
|
|
255
255
|
type: "string"
|
|
256
256
|
}
|
|
257
257
|
}
|
|
@@ -268,7 +268,7 @@ class McpServerDefinitionsProviderRenderer extends Disposable {
|
|
|
268
268
|
}
|
|
269
269
|
render(manifest) {
|
|
270
270
|
const mcpServerDefinitionProviders = manifest.contributes?.mcpServerDefinitionProviders ?? [];
|
|
271
|
-
const headers = [( localize(
|
|
271
|
+
const headers = [( localize(9526, "ID")), ( localize(9527, "Name"))];
|
|
272
272
|
const rows = ( mcpServerDefinitionProviders.map(mcpServerDefinitionProvider => {
|
|
273
273
|
return [( new MarkdownString()).appendMarkdown(`\`${mcpServerDefinitionProvider.id}\``), mcpServerDefinitionProvider.label];
|
|
274
274
|
}));
|
|
@@ -283,7 +283,7 @@ class McpServerDefinitionsProviderRenderer extends Disposable {
|
|
|
283
283
|
}
|
|
284
284
|
( Registry.as(Extensions.ExtensionFeaturesRegistry)).registerExtensionFeature({
|
|
285
285
|
id: mcpConfigurationSection,
|
|
286
|
-
label: ( localize(
|
|
286
|
+
label: ( localize(9528, "MCP Servers")),
|
|
287
287
|
access: {
|
|
288
288
|
canToggle: false
|
|
289
289
|
},
|
|
@@ -520,36 +520,36 @@ let McpServer = McpServer_1 = class McpServer extends Disposable {
|
|
|
520
520
|
break;
|
|
521
521
|
}
|
|
522
522
|
const options = [{
|
|
523
|
-
label: ( localize(
|
|
523
|
+
label: ( localize(9562, "Show Output")),
|
|
524
524
|
run: () => this.showOutput()
|
|
525
525
|
}];
|
|
526
526
|
if (cnx.definition.devMode?.debug?.type === "debugpy" && debug) {
|
|
527
527
|
this._notificationService.prompt(Severity$1.Error, ( localize(
|
|
528
|
-
|
|
528
|
+
9563,
|
|
529
529
|
"The command \"{0}\" was not found. You can specify the path to debugpy in the `dev.debug.debugpyPath` option.",
|
|
530
530
|
cnx.launchDefinition.command,
|
|
531
531
|
cnx.definition.label
|
|
532
532
|
)), [...options, {
|
|
533
|
-
label: ( localize(
|
|
533
|
+
label: ( localize(9564, "View Docs")),
|
|
534
534
|
run: () => this._openerService.open(( URI.parse("https://aka.ms/vscode-mcp-install/debugpy")))
|
|
535
535
|
}]);
|
|
536
536
|
return;
|
|
537
537
|
}
|
|
538
538
|
if (docsLink) {
|
|
539
539
|
options.push({
|
|
540
|
-
label: ( localize(
|
|
540
|
+
label: ( localize(9565, "Install {0}", cnx.launchDefinition.command)),
|
|
541
541
|
run: () => this._openerService.open(( URI.parse(docsLink)))
|
|
542
542
|
});
|
|
543
543
|
}
|
|
544
544
|
this._notificationService.prompt(Severity$1.Error, ( localize(
|
|
545
|
-
|
|
545
|
+
9566,
|
|
546
546
|
"The command \"{0}\" needed to run {1} was not found.",
|
|
547
547
|
cnx.launchDefinition.command,
|
|
548
548
|
cnx.definition.label
|
|
549
549
|
)), options);
|
|
550
550
|
} else {
|
|
551
551
|
this._notificationService.warn(( localize(
|
|
552
|
-
|
|
552
|
+
9567,
|
|
553
553
|
"The MCP server {0} could not be started: {1}",
|
|
554
554
|
cnx.definition.label,
|
|
555
555
|
error.message
|
|
@@ -632,7 +632,7 @@ let McpServer = McpServer_1 = class McpServer extends Disposable {
|
|
|
632
632
|
const validated = [];
|
|
633
633
|
for (const [i, result] of validations.entries()) {
|
|
634
634
|
if ("error" in result) {
|
|
635
|
-
error += ( localize(
|
|
635
|
+
error += ( localize(9568, "Tool `{0}` has invalid JSON parameters:", tools[i].name)) + "\n";
|
|
636
636
|
for (const message of result.error) {
|
|
637
637
|
error += `\t- ${message}\n`;
|
|
638
638
|
}
|
|
@@ -957,7 +957,7 @@ function warnInvalidTools(instaService, serverName, errorText) {
|
|
|
957
957
|
notificationService.notify({
|
|
958
958
|
severity: Severity$1.Warning,
|
|
959
959
|
message: ( localize(
|
|
960
|
-
|
|
960
|
+
9569,
|
|
961
961
|
"MCP server `{0}` has tools with invalid parameters which will be omitted.",
|
|
962
962
|
serverName
|
|
963
963
|
)),
|
|
@@ -967,7 +967,7 @@ function warnInvalidTools(instaService, serverName, errorText) {
|
|
|
967
967
|
enabled: true,
|
|
968
968
|
id: "mcpBadSchema.show",
|
|
969
969
|
tooltip: "",
|
|
970
|
-
label: ( localize(
|
|
970
|
+
label: ( localize(9570, "Show")),
|
|
971
971
|
run: () => {
|
|
972
972
|
editorService.openEditor({
|
|
973
973
|
resource: undefined,
|
|
@@ -179,13 +179,13 @@ var McpConnectionState;
|
|
|
179
179
|
McpConnectionState.toString = s => {
|
|
180
180
|
switch (s.state) {
|
|
181
181
|
case Kind.Stopped:
|
|
182
|
-
return localize(
|
|
182
|
+
return localize(9574, "Stopped");
|
|
183
183
|
case Kind.Starting:
|
|
184
|
-
return localize(
|
|
184
|
+
return localize(9575, "Starting");
|
|
185
185
|
case Kind.Running:
|
|
186
|
-
return localize(
|
|
186
|
+
return localize(9576, "Running");
|
|
187
187
|
case Kind.Error:
|
|
188
|
-
return localize(
|
|
188
|
+
return localize(9577, "Error {0}", s.message);
|
|
189
189
|
default:
|
|
190
190
|
assertNever();
|
|
191
191
|
}
|