@codingame/monaco-vscode-chat-service-override 19.1.3 → 20.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/index.js +20 -8
- package/package.json +36 -31
- package/vscode/src/vs/base/common/policy.d.ts +14 -0
- package/vscode/src/vs/base/common/policy.js +11 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +53 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +54 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +37 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +23 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +83 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +421 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +215 -104
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +18 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +9 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +11 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +16 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +7 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +58 -326
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +33 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +12 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +39 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.js +380 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/notebookCellChanges.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +22 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +9 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +44 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +145 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +34 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +36 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +407 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.js +738 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +142 -151
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +54 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +23 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +13 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/media/apple-dark.svg +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/apple-light.svg +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSessions.css +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSetup.css +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/attachInstructionsAction.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/attachInstructionsAction.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/newPromptFileActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptName.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptName.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptSourceFolder.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptSourceFolder.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveToPromptAction.d.ts +1 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveToPromptAction.js +52 -90
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +15 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatResponseResourceFileSystemProvider.js +9 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +11 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +137 -30
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.js +8 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.js +44 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/config/configMigration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/filePromptContentsProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/promptContentsProviderBase.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/contentProviders/promptContentsProviderBase.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderDiagnosticsProvider.js +3 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderHovers.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkDiagnosticsProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptPathAutocompletion.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/providerInstanceManagerBase.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/basePromptParser.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/headerBase.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/instructionsHeader.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/applyTo.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/base/enum.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/base/string.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/tools.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/modeHeader.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/promptHeader.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/promptHeader.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/topError.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +27 -27
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +9 -9
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +104 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +667 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +14 -14
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +2 -2
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css +56 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +111 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +52 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +262 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +129 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatControllerHolder.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatControllerHolder.js +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +30 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +72 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +411 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +59 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/bufferOutputPolling.d.ts +51 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/bufferOutputPolling.js +163 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.js +164 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +101 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +16 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +52 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +71 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +94 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/getTerminalOutputTool.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/getTerminalOutputTool.js +44 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +18 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +13 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalTool.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalTool.js +603 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.js +113 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/createAndRunTaskTool.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/createAndRunTaskTool.js +227 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/getTaskOutputTool.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/getTaskOutputTool.js +88 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/runTaskTool.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/runTaskTool.js +140 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/taskHelpers.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/taskHelpers.js +80 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task.chatAgentTools.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task.chatAgentTools.contribution.js +40 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +36 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +114 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/google-mono-dark.svg +0 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/media/google-mono-light.svg +0 -3
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
+
import { PolicyTag } from '../../../../base/common/policy.js';
|
|
3
4
|
import './promptSyntax/promptToolsCodeLensProvider.js';
|
|
4
5
|
import './promptSyntax/promptCodingAgentActionContribution.js';
|
|
5
6
|
import { timeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
@@ -7,7 +8,7 @@ import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event'
|
|
|
7
8
|
import { isMarkdownString, MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
8
9
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
9
10
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
10
|
-
import {
|
|
11
|
+
import { isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
11
12
|
import { assertDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/common/types';
|
|
12
13
|
import { registerEditorFeature } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorFeatures';
|
|
13
14
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
@@ -17,9 +18,9 @@ import { Extensions, ConfigurationScope } from '@codingame/monaco-vscode-api/vsc
|
|
|
17
18
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
18
19
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
19
20
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
20
|
-
import { mcpGalleryServiceUrlConfig } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/platform/mcp/common/mcpManagement';
|
|
21
|
-
import { PromptsConfig } from '@codingame/monaco-vscode-
|
|
22
|
-
import { MODE_DEFAULT_SOURCE_FOLDER, MODE_FILE_EXTENSION, PROMPT_DEFAULT_SOURCE_FOLDER, PROMPT_FILE_EXTENSION, INSTRUCTIONS_DEFAULT_SOURCE_FOLDER, INSTRUCTION_FILE_EXTENSION } from '@codingame/monaco-vscode-
|
|
21
|
+
import { mcpGalleryServiceUrlConfig, mcpAutoStartConfig, McpAutoStartValue, mcpEnabledConfig } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/platform/mcp/common/mcpManagement';
|
|
22
|
+
import { PromptsConfig } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/config';
|
|
23
|
+
import { MODE_DEFAULT_SOURCE_FOLDER, MODE_FILE_EXTENSION, PROMPT_DEFAULT_SOURCE_FOLDER, PROMPT_FILE_EXTENSION, INSTRUCTIONS_DEFAULT_SOURCE_FOLDER, INSTRUCTION_FILE_EXTENSION } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations';
|
|
23
24
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
24
25
|
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/editor';
|
|
25
26
|
import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
|
|
@@ -28,22 +29,22 @@ import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workben
|
|
|
28
29
|
import { IWorkbenchAssignmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/assignment/common/assignmentService.service';
|
|
29
30
|
import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
30
31
|
import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
|
|
31
|
-
import { mcpDiscoverySection, allDiscoverySources, discoverySourceLabel, mcpServerSamplingSection
|
|
32
|
-
import '@codingame/monaco-vscode-
|
|
32
|
+
import { mcpDiscoverySection, allDiscoverySources, discoverySourceLabel, mcpServerSamplingSection } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration';
|
|
33
|
+
import '@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
33
34
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
34
|
-
import '@codingame/monaco-vscode-
|
|
35
|
-
import { ChatEntitlement } from '@codingame/monaco-vscode-
|
|
35
|
+
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/chatColors';
|
|
36
|
+
import { ChatEntitlement } from '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatEntitlementService';
|
|
36
37
|
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEntitlementService.service';
|
|
37
|
-
import { chatVariableLeader } from '@codingame/monaco-vscode-
|
|
38
|
+
import { chatVariableLeader } from '@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatParserTypes';
|
|
38
39
|
import '../common/chatServiceImpl.js';
|
|
39
40
|
import '../common/chatSlashCommands.js';
|
|
40
41
|
import { IChatSlashCommandService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service';
|
|
41
42
|
import '../common/chatTransferService.js';
|
|
42
|
-
import '@codingame/monaco-vscode-
|
|
43
|
+
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/chatWidgetHistoryService';
|
|
43
44
|
import { ChatConfiguration, ChatAgentLocation, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
44
45
|
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels';
|
|
45
|
-
import '@codingame/monaco-vscode-
|
|
46
|
-
import { MODE_DOCUMENTATION_URL, PROMPT_DOCUMENTATION_URL, INSTRUCTIONS_DOCUMENTATION_URL } from '@codingame/monaco-vscode-
|
|
46
|
+
import '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/languageModelStats';
|
|
47
|
+
import { MODE_DOCUMENTATION_URL, PROMPT_DOCUMENTATION_URL, INSTRUCTIONS_DOCUMENTATION_URL } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
|
|
47
48
|
import { registerPromptFileContributions } from '../common/promptSyntax/promptFileContributions.js';
|
|
48
49
|
import '../common/promptSyntax/service/promptsServiceImpl.js';
|
|
49
50
|
import { LanguageModelToolsExtensionPointHandler } from '../common/tools/languageModelToolsContribution.js';
|
|
@@ -51,25 +52,25 @@ import { BuiltinToolsContribution } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
51
52
|
import { UserToolSetsContributions, ConfigureToolSets } from './tools/toolSetsContribution.js';
|
|
52
53
|
import '../common/voiceChatService.js';
|
|
53
54
|
import { PanelChatAccessibilityHelp, QuickChatAccessibilityHelp, EditsChatAccessibilityHelp, AgentChatAccessibilityHelp } from './actions/chatAccessibilityHelp.js';
|
|
54
|
-
import { ACTION_ID_NEW_CHAT, CopilotTitleBarMenuRendering, registerChatActions } from '@codingame/monaco-vscode-
|
|
55
|
+
import { ACTION_ID_NEW_CHAT, CopilotTitleBarMenuRendering, registerChatActions } from '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
55
56
|
import { registerNewChatActions } from './actions/chatClearActions.js';
|
|
56
57
|
import { CodeBlockActionRendering, registerChatCodeBlockActions, registerChatCodeCompareBlockActions } from './actions/chatCodeblockActions.js';
|
|
57
58
|
import { ChatContextContributions } from './actions/chatContext.js';
|
|
58
59
|
import { registerChatContextActions } from './actions/chatContextActions.js';
|
|
59
60
|
import { registerChatCopyActions } from './actions/chatCopyActions.js';
|
|
60
61
|
import { registerChatDeveloperActions } from './actions/chatDeveloperActions.js';
|
|
61
|
-
import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-
|
|
62
|
+
import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
|
|
62
63
|
import { registerChatFileTreeActions } from './actions/chatFileTreeActions.js';
|
|
63
64
|
import { ChatGettingStartedContribution } from './actions/chatGettingStarted.js';
|
|
64
65
|
import { registerChatExportActions } from './actions/chatImportExport.js';
|
|
65
66
|
import { registerMoveActions } from './actions/chatMoveActions.js';
|
|
66
67
|
import { registerQuickChatActions } from './actions/chatQuickInputActions.js';
|
|
67
|
-
import { registerChatTitleActions } from '@codingame/monaco-vscode-
|
|
68
|
+
import { registerChatTitleActions } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
|
|
68
69
|
import { registerChatToolActions } from './actions/chatToolActions.js';
|
|
69
70
|
import { ChatTransferContribution } from './actions/chatTransfer.js';
|
|
70
71
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
71
72
|
import './chatAccessibilityService.js';
|
|
72
|
-
import '@codingame/monaco-vscode-
|
|
73
|
+
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/chatAttachmentModel';
|
|
73
74
|
import '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
74
75
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
75
76
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
@@ -83,8 +84,8 @@ import './chatEditing/chatEditingServiceImpl.js';
|
|
|
83
84
|
import { ChatEditingNotebookFileSystemProviderContrib } from './chatEditing/notebook/chatEditingNotebookFileSystemProvider.js';
|
|
84
85
|
import { SimpleBrowserOverlay } from './chatEditing/simpleBrowserEditorOverlay.js';
|
|
85
86
|
import { ChatEditor } from './chatEditor.js';
|
|
86
|
-
import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-
|
|
87
|
-
import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-
|
|
87
|
+
import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
88
|
+
import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
|
|
88
89
|
import { ChatExtensionPointHandler, ChatCompatibilityNotifier } from './chatParticipant.contribution.js';
|
|
89
90
|
import { ChatPasteProvidersFeature } from './chatPasteProviders.js';
|
|
90
91
|
import './chatQuick.js';
|
|
@@ -92,54 +93,58 @@ import { ChatResponseAccessibleView } from './chatResponseAccessibleView.js';
|
|
|
92
93
|
import { ChatSetupContribution } from './chatSetup.js';
|
|
93
94
|
import { ChatStatusBarEntry } from './chatStatus.js';
|
|
94
95
|
import './chatVariables.js';
|
|
95
|
-
import { ChatWidget } from '@codingame/monaco-vscode-
|
|
96
|
-
import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-
|
|
96
|
+
import { ChatWidget } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
|
|
97
|
+
import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext';
|
|
97
98
|
import '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
|
|
98
99
|
import './contrib/chatInputEditorContrib.js';
|
|
99
100
|
import './contrib/chatInputEditorHover.js';
|
|
100
|
-
import { ChatRelatedFilesContribution } from '@codingame/monaco-vscode-
|
|
101
|
+
import { ChatRelatedFilesContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib';
|
|
101
102
|
import './languageModelToolsService.js';
|
|
102
103
|
import { ChatViewsWelcomeHandler } from './viewsWelcome/chatViewsWelcomeHandler.js';
|
|
103
104
|
import { registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
104
|
-
import '@codingame/monaco-vscode-
|
|
105
|
+
import '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModes';
|
|
105
106
|
import { ChatResponseResourceFileSystemProvider } from '../common/chatResponseResourceFileSystemProvider.js';
|
|
106
|
-
import { SAVE_TO_PROMPT_SLASH_COMMAND_NAME,
|
|
107
|
+
import { SAVE_TO_PROMPT_SLASH_COMMAND_NAME, SAVE_TO_PROMPT_ACTION_ID } from './promptSyntax/saveToPromptAction.js';
|
|
107
108
|
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
|
|
108
109
|
import './chatAttachmentResolveService.js';
|
|
109
110
|
import { registerLanguageModelActions } from './actions/chatLanguageModelActions.js';
|
|
110
111
|
import { PromptUrlHandler } from './promptSyntax/promptUrlHandler.js';
|
|
112
|
+
import '../common/chatTodoListService.js';
|
|
113
|
+
import './chatOutputItemRenderer.js';
|
|
114
|
+
import { AssistedTypes, AddConfigurationType } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration';
|
|
115
|
+
import { ChatSessionsView } from './chatSessions.js';
|
|
111
116
|
|
|
112
117
|
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
113
118
|
configurationRegistry.registerConfiguration({
|
|
114
119
|
id: 'chatSidebar',
|
|
115
|
-
title: ( localize(
|
|
120
|
+
title: ( localize(4703, "Chat")),
|
|
116
121
|
type: 'object',
|
|
117
122
|
properties: {
|
|
118
123
|
'chat.editor.fontSize': {
|
|
119
124
|
type: 'number',
|
|
120
|
-
description: ( localize(
|
|
125
|
+
description: ( localize(4704, "Controls the font size in pixels in chat codeblocks.")),
|
|
121
126
|
default: isMacintosh ? 12 : 14,
|
|
122
127
|
},
|
|
123
128
|
'chat.editor.fontFamily': {
|
|
124
129
|
type: 'string',
|
|
125
|
-
description: ( localize(
|
|
130
|
+
description: ( localize(4705, "Controls the font family in chat codeblocks.")),
|
|
126
131
|
default: 'default'
|
|
127
132
|
},
|
|
128
133
|
'chat.editor.fontWeight': {
|
|
129
134
|
type: 'string',
|
|
130
|
-
description: ( localize(
|
|
135
|
+
description: ( localize(4706, "Controls the font weight in chat codeblocks.")),
|
|
131
136
|
default: 'default'
|
|
132
137
|
},
|
|
133
138
|
'chat.editor.wordWrap': {
|
|
134
139
|
type: 'string',
|
|
135
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(4707, "Controls whether lines should wrap in chat codeblocks.")),
|
|
136
141
|
default: 'off',
|
|
137
142
|
enum: ['on', 'off']
|
|
138
143
|
},
|
|
139
144
|
'chat.editor.lineHeight': {
|
|
140
145
|
type: 'number',
|
|
141
146
|
description: ( localize(
|
|
142
|
-
|
|
147
|
+
4708,
|
|
143
148
|
"Controls the line height in pixels in chat codeblocks. Use 0 to compute the line height from the font size."
|
|
144
149
|
)),
|
|
145
150
|
default: 0
|
|
@@ -147,7 +152,7 @@ configurationRegistry.registerConfiguration({
|
|
|
147
152
|
'chat.commandCenter.enabled': {
|
|
148
153
|
type: 'boolean',
|
|
149
154
|
markdownDescription: ( localize(
|
|
150
|
-
|
|
155
|
+
4709,
|
|
151
156
|
"Controls whether the command center shows a menu for actions to control Copilot (requires {0}).",
|
|
152
157
|
'`#window.commandCenter#`'
|
|
153
158
|
)),
|
|
@@ -157,27 +162,36 @@ configurationRegistry.registerConfiguration({
|
|
|
157
162
|
type: 'object',
|
|
158
163
|
tags: ['experimental'],
|
|
159
164
|
description: ( localize(
|
|
160
|
-
|
|
165
|
+
4710,
|
|
161
166
|
"Enables automatically using the active editor as chat context for specified chat locations."
|
|
162
167
|
)),
|
|
163
168
|
additionalProperties: {
|
|
164
169
|
type: 'string',
|
|
165
170
|
enum: ['never', 'first', 'always'],
|
|
166
|
-
description: ( localize(
|
|
171
|
+
description: ( localize(4711, "The value for the implicit context.")),
|
|
167
172
|
enumDescriptions: [
|
|
168
|
-
( localize(
|
|
169
|
-
( localize(
|
|
170
|
-
( localize(
|
|
173
|
+
( localize(4712, "Implicit context is never enabled.")),
|
|
174
|
+
( localize(4713, "Implicit context is enabled for the first interaction.")),
|
|
175
|
+
( localize(4714, "Implicit context is always enabled."))
|
|
171
176
|
]
|
|
172
177
|
},
|
|
173
178
|
default: {
|
|
174
179
|
'panel': 'always',
|
|
175
180
|
}
|
|
176
181
|
},
|
|
182
|
+
'chat.implicitContext.suggestedContext': {
|
|
183
|
+
type: 'boolean',
|
|
184
|
+
tags: ['experimental'],
|
|
185
|
+
markdownDescription: ( localize(
|
|
186
|
+
4715,
|
|
187
|
+
"Controls whether the new implicit context flow is shown. In Ask and Edit modes, the context will automatically be included. In Agent mode context will be suggested as an attachment. Selections are always included as context."
|
|
188
|
+
)),
|
|
189
|
+
default: true,
|
|
190
|
+
},
|
|
177
191
|
'chat.editing.autoAcceptDelay': {
|
|
178
192
|
type: 'number',
|
|
179
193
|
markdownDescription: ( localize(
|
|
180
|
-
|
|
194
|
+
4716,
|
|
181
195
|
"Delay after which changes made by chat are automatically accepted. Values are in seconds, `0` means disabled and `100` seconds is the maximum."
|
|
182
196
|
)),
|
|
183
197
|
default: 0,
|
|
@@ -188,7 +202,7 @@ configurationRegistry.registerConfiguration({
|
|
|
188
202
|
type: 'boolean',
|
|
189
203
|
scope: ConfigurationScope.APPLICATION,
|
|
190
204
|
markdownDescription: ( localize(
|
|
191
|
-
|
|
205
|
+
4717,
|
|
192
206
|
"Whether to show a confirmation before removing a request and its associated edits."
|
|
193
207
|
)),
|
|
194
208
|
default: true,
|
|
@@ -197,7 +211,7 @@ configurationRegistry.registerConfiguration({
|
|
|
197
211
|
type: 'boolean',
|
|
198
212
|
scope: ConfigurationScope.APPLICATION,
|
|
199
213
|
markdownDescription: ( localize(
|
|
200
|
-
|
|
214
|
+
4718,
|
|
201
215
|
"Whether to show a confirmation before retrying a request and its associated edits."
|
|
202
216
|
)),
|
|
203
217
|
default: true,
|
|
@@ -205,57 +219,57 @@ configurationRegistry.registerConfiguration({
|
|
|
205
219
|
'chat.experimental.detectParticipant.enabled': {
|
|
206
220
|
type: 'boolean',
|
|
207
221
|
deprecationMessage: ( localize(
|
|
208
|
-
|
|
222
|
+
4719,
|
|
209
223
|
"This setting is deprecated. Please use `chat.detectParticipant.enabled` instead."
|
|
210
224
|
)),
|
|
211
|
-
description: ( localize(
|
|
225
|
+
description: ( localize(4720, "Enables chat participant autodetection for panel chat.")),
|
|
212
226
|
default: null
|
|
213
227
|
},
|
|
214
228
|
'chat.detectParticipant.enabled': {
|
|
215
229
|
type: 'boolean',
|
|
216
|
-
description: ( localize(
|
|
230
|
+
description: ( localize(4721, "Enables chat participant autodetection for panel chat.")),
|
|
217
231
|
default: true
|
|
218
232
|
},
|
|
219
233
|
'chat.renderRelatedFiles': {
|
|
220
234
|
type: 'boolean',
|
|
221
235
|
description: ( localize(
|
|
222
|
-
|
|
236
|
+
4722,
|
|
223
237
|
"Controls whether related files should be rendered in the chat input."
|
|
224
238
|
)),
|
|
225
239
|
default: false
|
|
226
240
|
},
|
|
227
241
|
'chat.notifyWindowOnConfirmation': {
|
|
228
242
|
type: 'boolean',
|
|
229
|
-
included: !isLinux,
|
|
230
243
|
description: ( localize(
|
|
231
|
-
|
|
232
|
-
"Controls whether the Copilot window should notify the user when a confirmation is needed."
|
|
244
|
+
4723,
|
|
245
|
+
"Controls whether the Copilot window should notify the user when a confirmation is needed while the window is not in focus. This includes a window badge as well as notification toast."
|
|
233
246
|
)),
|
|
234
247
|
default: true,
|
|
235
248
|
},
|
|
236
249
|
'chat.tools.autoApprove': {
|
|
237
250
|
default: false,
|
|
238
251
|
description: ( localize(
|
|
239
|
-
|
|
252
|
+
4724,
|
|
240
253
|
"Controls whether tool use should be automatically approved. Allow all tools to run automatically without user confirmation, overriding any tool-specific settings such as terminal auto-approval. Use with caution: carefully review selected tools and be extra wary of possible sources of prompt injection!"
|
|
241
254
|
)),
|
|
242
255
|
markdownDescription: ( localize(
|
|
243
|
-
|
|
256
|
+
4725,
|
|
244
257
|
"Controls whether tool use should be automatically approved.\n\nAllows _all_ tools to run automatically without user confirmation, overriding any tool-specific settings such as terminal auto-approval.\n\nUse with caution: carefully review selected tools and be extra wary of possible sources of prompt injection!"
|
|
245
258
|
)),
|
|
246
259
|
type: 'boolean',
|
|
260
|
+
scope: ConfigurationScope.APPLICATION_MACHINE,
|
|
247
261
|
tags: ['experimental'],
|
|
248
262
|
policy: {
|
|
249
263
|
name: 'ChatToolsAutoApprove',
|
|
250
264
|
minimumVersion: '1.99',
|
|
251
|
-
|
|
252
|
-
|
|
265
|
+
defaultValue: false,
|
|
266
|
+
tags: [PolicyTag.Account, PolicyTag.Preview]
|
|
253
267
|
}
|
|
254
268
|
},
|
|
255
269
|
'chat.sendElementsToChat.enabled': {
|
|
256
270
|
default: true,
|
|
257
271
|
description: ( localize(
|
|
258
|
-
|
|
272
|
+
4726,
|
|
259
273
|
"Controls whether elements can be sent to chat from the Simple Browser."
|
|
260
274
|
)),
|
|
261
275
|
type: 'boolean',
|
|
@@ -264,7 +278,7 @@ configurationRegistry.registerConfiguration({
|
|
|
264
278
|
'chat.sendElementsToChat.attachCSS': {
|
|
265
279
|
default: true,
|
|
266
280
|
markdownDescription: ( localize(
|
|
267
|
-
|
|
281
|
+
4727,
|
|
268
282
|
"Controls whether CSS of the selected element will be added to the chat. {0} must be enabled.",
|
|
269
283
|
'`#chat.sendElementsToChat.enabled#`'
|
|
270
284
|
)),
|
|
@@ -274,7 +288,7 @@ configurationRegistry.registerConfiguration({
|
|
|
274
288
|
'chat.sendElementsToChat.attachImages': {
|
|
275
289
|
default: true,
|
|
276
290
|
markdownDescription: ( localize(
|
|
277
|
-
|
|
291
|
+
4728,
|
|
278
292
|
"Controls whether a screenshot of the selected element will be added to the chat. {0} must be enabled.",
|
|
279
293
|
'`#chat.sendElementsToChat.enabled#`'
|
|
280
294
|
)),
|
|
@@ -284,7 +298,7 @@ configurationRegistry.registerConfiguration({
|
|
|
284
298
|
'chat.undoRequests.restoreInput': {
|
|
285
299
|
default: true,
|
|
286
300
|
markdownDescription: ( localize(
|
|
287
|
-
|
|
301
|
+
4729,
|
|
288
302
|
"Controls whether the input of the chat should be restored when an undo request is made. The input will be filled with the text of the request that was restored."
|
|
289
303
|
)),
|
|
290
304
|
type: 'boolean',
|
|
@@ -292,32 +306,80 @@ configurationRegistry.registerConfiguration({
|
|
|
292
306
|
},
|
|
293
307
|
'chat.editRequests': {
|
|
294
308
|
markdownDescription: ( localize(
|
|
295
|
-
|
|
309
|
+
4730,
|
|
296
310
|
"Enables editing of requests in the chat. This allows you to change the request content and resubmit it to the model."
|
|
297
311
|
)),
|
|
298
312
|
type: 'string',
|
|
299
313
|
enum: ['inline', 'hover', 'input', 'none'],
|
|
300
314
|
default: 'inline',
|
|
301
|
-
tags: ['experimental', 'onExp'],
|
|
302
315
|
},
|
|
303
|
-
|
|
316
|
+
'chat.emptyChatState.enabled': {
|
|
304
317
|
type: 'boolean',
|
|
318
|
+
default: true,
|
|
305
319
|
description: ( localize(
|
|
306
|
-
|
|
320
|
+
4731,
|
|
321
|
+
"Shows a modified empty chat state with hints in the input placeholder text."
|
|
322
|
+
)),
|
|
323
|
+
tags: ['experimental'],
|
|
324
|
+
experiment: {
|
|
325
|
+
mode: 'startup'
|
|
326
|
+
}
|
|
327
|
+
},
|
|
328
|
+
'chat.checkpoints.enabled': {
|
|
329
|
+
type: 'boolean',
|
|
330
|
+
default: true,
|
|
331
|
+
description: ( localize(
|
|
332
|
+
4732,
|
|
333
|
+
"Enables checkpoints in chat. Checkpoints allow you to restore the chat to a previous state."
|
|
334
|
+
)),
|
|
335
|
+
tags: ['preview'],
|
|
336
|
+
},
|
|
337
|
+
'chat.checkpoints.showFileChanges': {
|
|
338
|
+
type: 'boolean',
|
|
339
|
+
description: ( localize(4733, "Controls whether to show chat checkpoint file changes.")),
|
|
340
|
+
default: false
|
|
341
|
+
},
|
|
342
|
+
[mcpEnabledConfig]: {
|
|
343
|
+
type: 'boolean',
|
|
344
|
+
description: ( localize(
|
|
345
|
+
4734,
|
|
307
346
|
"Enables integration with Model Context Protocol servers to provide additional tools and functionality."
|
|
308
347
|
)),
|
|
309
348
|
default: true,
|
|
310
349
|
policy: {
|
|
311
350
|
name: 'ChatMCP',
|
|
312
351
|
minimumVersion: '1.99',
|
|
352
|
+
tags: [PolicyTag.Account, PolicyTag.MCP]
|
|
313
353
|
}
|
|
314
354
|
},
|
|
355
|
+
[mcpAutoStartConfig]: {
|
|
356
|
+
type: 'string',
|
|
357
|
+
description: ( localize(
|
|
358
|
+
4735,
|
|
359
|
+
"Controls whether MCP servers should be automatically started when the chat messages are submitted."
|
|
360
|
+
)),
|
|
361
|
+
default: McpAutoStartValue.Never,
|
|
362
|
+
enum: [
|
|
363
|
+
McpAutoStartValue.Never,
|
|
364
|
+
McpAutoStartValue.OnlyNew,
|
|
365
|
+
McpAutoStartValue.NewAndOutdated
|
|
366
|
+
],
|
|
367
|
+
enumDescriptions: [
|
|
368
|
+
( localize(4736, "Never automatically start MCP servers.")),
|
|
369
|
+
( localize(4737, "Only automatically start new MCP servers that have never been run.")),
|
|
370
|
+
( localize(
|
|
371
|
+
4738,
|
|
372
|
+
"Automatically start new and outdated MCP servers that are not yet running."
|
|
373
|
+
))
|
|
374
|
+
],
|
|
375
|
+
tags: ['experimental'],
|
|
376
|
+
},
|
|
315
377
|
[mcpServerSamplingSection]: {
|
|
316
378
|
type: 'object',
|
|
317
379
|
description: ( localize(
|
|
318
|
-
|
|
380
|
+
4739,
|
|
319
381
|
"Configures which models are exposed to MCP servers for sampling (making model requests in the background). This setting can be edited in a graphical way under the `{0}` command.",
|
|
320
|
-
'MCP: ' + ( localize(
|
|
382
|
+
'MCP: ' + ( localize(4740, 'List Servers'))
|
|
321
383
|
)),
|
|
322
384
|
scope: ConfigurationScope.RESOURCE,
|
|
323
385
|
additionalProperties: {
|
|
@@ -326,7 +388,7 @@ configurationRegistry.registerConfiguration({
|
|
|
326
388
|
allowedDuringChat: {
|
|
327
389
|
type: 'boolean',
|
|
328
390
|
description: ( localize(
|
|
329
|
-
|
|
391
|
+
4741,
|
|
330
392
|
"Whether this server is make sampling requests during its tool calls in a chat session."
|
|
331
393
|
)),
|
|
332
394
|
default: true,
|
|
@@ -334,7 +396,7 @@ configurationRegistry.registerConfiguration({
|
|
|
334
396
|
allowedOutsideChat: {
|
|
335
397
|
type: 'boolean',
|
|
336
398
|
description: ( localize(
|
|
337
|
-
|
|
399
|
+
4742,
|
|
338
400
|
"Whether this server is allowed to make sampling requests outside of a chat session."
|
|
339
401
|
)),
|
|
340
402
|
default: false,
|
|
@@ -343,16 +405,28 @@ configurationRegistry.registerConfiguration({
|
|
|
343
405
|
type: 'array',
|
|
344
406
|
items: {
|
|
345
407
|
type: 'string',
|
|
346
|
-
description: ( localize(
|
|
408
|
+
description: ( localize(4743, "A model the MCP server has access to.")),
|
|
347
409
|
},
|
|
348
410
|
}
|
|
349
411
|
}
|
|
350
412
|
},
|
|
351
413
|
},
|
|
414
|
+
[AssistedTypes[AddConfigurationType.NuGetPackage].enabledConfigKey]: {
|
|
415
|
+
type: 'boolean',
|
|
416
|
+
description: ( localize(
|
|
417
|
+
4744,
|
|
418
|
+
"Enables NuGet packages for AI-assisted MCP server installation. Used to install MCP servers by name from the central registry for .NET packages (NuGet.org)."
|
|
419
|
+
)),
|
|
420
|
+
default: false,
|
|
421
|
+
tags: ['experimental'],
|
|
422
|
+
experiment: {
|
|
423
|
+
mode: 'startup'
|
|
424
|
+
}
|
|
425
|
+
},
|
|
352
426
|
[ChatConfiguration.UseFileStorage]: {
|
|
353
427
|
type: 'boolean',
|
|
354
428
|
description: ( localize(
|
|
355
|
-
|
|
429
|
+
4745,
|
|
356
430
|
"Enables storing chat sessions on disk instead of in the storage service. Enabling this does a one-time per-workspace migration of existing sessions to the new format."
|
|
357
431
|
)),
|
|
358
432
|
default: true,
|
|
@@ -361,38 +435,54 @@ configurationRegistry.registerConfiguration({
|
|
|
361
435
|
[ChatConfiguration.Edits2Enabled]: {
|
|
362
436
|
type: 'boolean',
|
|
363
437
|
description: ( localize(
|
|
364
|
-
|
|
438
|
+
4746,
|
|
365
439
|
"Enable the new Edits mode that is based on tool-calling. When this is enabled, models that don't support tool-calling are unavailable for Edits mode."
|
|
366
440
|
)),
|
|
367
441
|
default: true,
|
|
368
|
-
|
|
442
|
+
experiment: {
|
|
443
|
+
mode: 'startup'
|
|
444
|
+
}
|
|
369
445
|
},
|
|
370
446
|
[ChatConfiguration.ExtensionToolsEnabled]: {
|
|
371
447
|
type: 'boolean',
|
|
372
|
-
description: ( localize(
|
|
448
|
+
description: ( localize(4747, "Enable using tools contributed by third-party extensions.")),
|
|
373
449
|
default: true,
|
|
374
450
|
policy: {
|
|
375
451
|
name: 'ChatAgentExtensionTools',
|
|
376
452
|
minimumVersion: '1.99',
|
|
377
|
-
description: ( localize(
|
|
453
|
+
description: ( localize(4748, "Enable using tools contributed by third-party extensions.")),
|
|
378
454
|
}
|
|
379
455
|
},
|
|
380
456
|
[ChatConfiguration.AgentEnabled]: {
|
|
381
457
|
type: 'boolean',
|
|
382
458
|
description: ( localize(
|
|
383
|
-
|
|
459
|
+
4749,
|
|
384
460
|
"Enable agent mode for {0}. When this is enabled, agent mode can be activated via the dropdown in the view.",
|
|
385
461
|
'Copilot Chat'
|
|
386
462
|
)),
|
|
387
463
|
default: true,
|
|
388
|
-
|
|
464
|
+
experiment: {
|
|
465
|
+
mode: 'startup'
|
|
466
|
+
},
|
|
389
467
|
policy: {
|
|
390
468
|
name: 'ChatAgentMode',
|
|
391
469
|
minimumVersion: '1.99',
|
|
392
|
-
|
|
393
|
-
defaultValue: false
|
|
470
|
+
tags: [PolicyTag.Account, PolicyTag.Agent]
|
|
394
471
|
}
|
|
395
472
|
},
|
|
473
|
+
[ChatConfiguration.EnableMath]: {
|
|
474
|
+
type: 'boolean',
|
|
475
|
+
description: ( localize(4750, "Enable math rendering in chat responses using Katex.")),
|
|
476
|
+
default: false,
|
|
477
|
+
tags: ['preview'],
|
|
478
|
+
},
|
|
479
|
+
[ChatConfiguration.AgentSessionsViewLocation]: {
|
|
480
|
+
type: 'string',
|
|
481
|
+
enum: ['disabled', 'showChatsMenu', 'view'],
|
|
482
|
+
description: ( localize(4751, "Controls where to show the agent sessions menu.")),
|
|
483
|
+
default: 'disabled',
|
|
484
|
+
tags: ['experimental'],
|
|
485
|
+
},
|
|
396
486
|
[mcpDiscoverySection]: {
|
|
397
487
|
oneOf: [
|
|
398
488
|
{ type: 'boolean' },
|
|
@@ -401,19 +491,19 @@ configurationRegistry.registerConfiguration({
|
|
|
401
491
|
default: Object.fromEntries(( allDiscoverySources.map(k => [k, true]))),
|
|
402
492
|
properties: Object.fromEntries(( allDiscoverySources.map(k => [
|
|
403
493
|
k,
|
|
404
|
-
{ type: 'boolean', description: ( localize(
|
|
494
|
+
{ type: 'boolean', description: ( localize(4752, "Enables discovery of {0} servers", discoverySourceLabel[k])) }
|
|
405
495
|
]))),
|
|
406
496
|
}
|
|
407
497
|
],
|
|
408
498
|
default: true,
|
|
409
499
|
markdownDescription: ( localize(
|
|
410
|
-
|
|
500
|
+
4753,
|
|
411
501
|
"Configures discovery of Model Context Protocol servers on the machine. It may be set to `true` or `false` to disable or enable all sources, and an mapping sources you wish to enable."
|
|
412
502
|
)),
|
|
413
503
|
},
|
|
414
504
|
[mcpGalleryServiceUrlConfig]: {
|
|
415
505
|
type: 'string',
|
|
416
|
-
description: ( localize(
|
|
506
|
+
description: ( localize(4754, "Configure the MCP Gallery service URL to connect to")),
|
|
417
507
|
default: '',
|
|
418
508
|
scope: ConfigurationScope.APPLICATION,
|
|
419
509
|
tags: ['usesOnlineServices'],
|
|
@@ -425,10 +515,10 @@ configurationRegistry.registerConfiguration({
|
|
|
425
515
|
},
|
|
426
516
|
[PromptsConfig.KEY]: {
|
|
427
517
|
type: 'boolean',
|
|
428
|
-
title: ( localize(
|
|
518
|
+
title: ( localize(4755, "Prompt Files")),
|
|
429
519
|
markdownDescription: ( localize(
|
|
430
|
-
|
|
431
|
-
"Enable reusable prompt (`*{0}`) and instruction files in Chat
|
|
520
|
+
4756,
|
|
521
|
+
"Enable reusable prompt (`*{0}`) and instruction files (`*{1}`) in Chat sessions. [Learn More]({2}).",
|
|
432
522
|
PROMPT_FILE_EXTENSION,
|
|
433
523
|
INSTRUCTION_FILE_EXTENSION,
|
|
434
524
|
PROMPT_DOCUMENTATION_URL
|
|
@@ -440,20 +530,15 @@ configurationRegistry.registerConfiguration({
|
|
|
440
530
|
policy: {
|
|
441
531
|
name: 'ChatPromptFiles',
|
|
442
532
|
minimumVersion: '1.99',
|
|
443
|
-
description: ( localize(
|
|
444
|
-
4691,
|
|
445
|
-
"Enables reusable prompt and instruction files in Chat, Edits, and Inline Chat sessions."
|
|
446
|
-
)),
|
|
447
|
-
previewFeature: false,
|
|
448
|
-
defaultValue: false
|
|
533
|
+
description: ( localize(4757, "Enables reusable prompt and instruction files in Chat sessions."))
|
|
449
534
|
}
|
|
450
535
|
},
|
|
451
536
|
[PromptsConfig.INSTRUCTIONS_LOCATION_KEY]: {
|
|
452
537
|
type: 'object',
|
|
453
|
-
title: ( localize(
|
|
538
|
+
title: ( localize(4758, "Instructions File Locations")),
|
|
454
539
|
markdownDescription: ( localize(
|
|
455
|
-
|
|
456
|
-
"Specify location(s) of instructions files (`*{0}`) that can be attached in Chat
|
|
540
|
+
4759,
|
|
541
|
+
"Specify location(s) of instructions files (`*{0}`) that can be attached in Chat sessions. [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
|
|
457
542
|
INSTRUCTION_FILE_EXTENSION,
|
|
458
543
|
INSTRUCTIONS_DOCUMENTATION_URL
|
|
459
544
|
)),
|
|
@@ -475,10 +560,10 @@ configurationRegistry.registerConfiguration({
|
|
|
475
560
|
},
|
|
476
561
|
[PromptsConfig.PROMPT_LOCATIONS_KEY]: {
|
|
477
562
|
type: 'object',
|
|
478
|
-
title: ( localize(
|
|
563
|
+
title: ( localize(4760, "Prompt File Locations")),
|
|
479
564
|
markdownDescription: ( localize(
|
|
480
|
-
|
|
481
|
-
"Specify location(s) of reusable prompt files (`*{0}`) that can be run in Chat
|
|
565
|
+
4761,
|
|
566
|
+
"Specify location(s) of reusable prompt files (`*{0}`) that can be run in Chat sessions. [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
|
|
482
567
|
PROMPT_FILE_EXTENSION,
|
|
483
568
|
PROMPT_DOCUMENTATION_URL
|
|
484
569
|
)),
|
|
@@ -501,9 +586,9 @@ configurationRegistry.registerConfiguration({
|
|
|
501
586
|
},
|
|
502
587
|
[PromptsConfig.MODE_LOCATION_KEY]: {
|
|
503
588
|
type: 'object',
|
|
504
|
-
title: ( localize(
|
|
589
|
+
title: ( localize(4762, "Mode File Locations")),
|
|
505
590
|
markdownDescription: ( localize(
|
|
506
|
-
|
|
591
|
+
4763,
|
|
507
592
|
"Specify location(s) of custom chat mode files (`*{0}`). [Learn More]({1}).\n\nRelative paths are resolved from the root folder(s) of your workspace.",
|
|
508
593
|
MODE_FILE_EXTENSION,
|
|
509
594
|
MODE_DOCUMENTATION_URL
|
|
@@ -527,14 +612,38 @@ configurationRegistry.registerConfiguration({
|
|
|
527
612
|
},
|
|
528
613
|
'chat.setup.signInDialogVariant': {
|
|
529
614
|
type: 'string',
|
|
530
|
-
enum: ['default', '
|
|
531
|
-
description: ( localize(
|
|
615
|
+
enum: ['default', 'google'],
|
|
616
|
+
description: ( localize(4764, "Control variations of the sign-in dialog.")),
|
|
532
617
|
default: 'default',
|
|
533
|
-
tags: ['
|
|
618
|
+
tags: ['experimental'],
|
|
619
|
+
experiment: {
|
|
620
|
+
mode: 'auto'
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
'chat.todoListTool.enabled': {
|
|
624
|
+
type: 'boolean',
|
|
625
|
+
default: false,
|
|
626
|
+
description: ( localize(
|
|
627
|
+
4765,
|
|
628
|
+
"Enables todo lists in chat. This tool allows you to use todo lists in chat."
|
|
629
|
+
)),
|
|
630
|
+
tags: ['experimental'],
|
|
631
|
+
experiment: {
|
|
632
|
+
mode: 'startup'
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
'chat.tools.useTreePicker': {
|
|
636
|
+
type: 'boolean',
|
|
637
|
+
default: true,
|
|
638
|
+
description: ( localize(
|
|
639
|
+
4766,
|
|
640
|
+
"Use the new Quick Tree-based tools picker instead of the Quick Pick-based one. Provides better hierarchical organization of tools and tool sets with collapsible sections, improved visual hierarchy, and native tree interactions."
|
|
641
|
+
)),
|
|
642
|
+
tags: ['experimental'],
|
|
534
643
|
}
|
|
535
644
|
}
|
|
536
645
|
});
|
|
537
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(
|
|
646
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4767, "Chat"))), [
|
|
538
647
|
( new SyncDescriptor(ChatEditorInput))
|
|
539
648
|
]);
|
|
540
649
|
( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([
|
|
@@ -550,13 +659,13 @@ let ChatResolverContribution = class ChatResolverContribution extends Disposable
|
|
|
550
659
|
static { this.ID = 'workbench.contrib.chatResolver'; }
|
|
551
660
|
constructor(editorResolverService, instantiationService) {
|
|
552
661
|
super();
|
|
553
|
-
this._register(editorResolverService.registerEditor(
|
|
662
|
+
this._register(editorResolverService.registerEditor(`{${Schemas.vscodeChatEditor},${Schemas.vscodeChatSession}}:**/**`, {
|
|
554
663
|
id: ChatEditorInput.EditorID,
|
|
555
|
-
label: ( localize(
|
|
664
|
+
label: ( localize(4767, "Chat")),
|
|
556
665
|
priority: RegisteredEditorPriority.builtin
|
|
557
666
|
}, {
|
|
558
667
|
singlePerResource: true,
|
|
559
|
-
canSupportResource: resource => resource.scheme === Schemas.
|
|
668
|
+
canSupportResource: resource => resource.scheme === Schemas.vscodeChatEditor || resource.scheme === Schemas.vscodeChatSession,
|
|
560
669
|
}, {
|
|
561
670
|
createEditorInput: ({ resource, options }) => {
|
|
562
671
|
return { editor: instantiationService.createInstance(ChatEditorInput, resource, options), options };
|
|
@@ -586,13 +695,13 @@ let ChatAgentSettingContribution = class ChatAgentSettingContribution extends Di
|
|
|
586
695
|
const defaultValue = value ?? (this.entitlementService.entitlement === ChatEntitlement.Free ? 25 : 25);
|
|
587
696
|
const node = {
|
|
588
697
|
id: 'chatSidebar',
|
|
589
|
-
title: ( localize(
|
|
698
|
+
title: ( localize(4703, "Chat")),
|
|
590
699
|
type: 'object',
|
|
591
700
|
properties: {
|
|
592
701
|
'chat.agent.maxRequests': {
|
|
593
702
|
type: 'number',
|
|
594
703
|
markdownDescription: ( localize(
|
|
595
|
-
|
|
704
|
+
4768,
|
|
596
705
|
"The maximum number of requests to allow Copilot to use per-turn in agent mode. When the limit is reached, Copilot will ask the user to confirm that it should continue."
|
|
597
706
|
)),
|
|
598
707
|
default: defaultValue,
|
|
@@ -622,7 +731,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
622
731
|
super();
|
|
623
732
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
624
733
|
command: 'clear',
|
|
625
|
-
detail: ( localize(
|
|
734
|
+
detail: ( localize(4769, "Start a new chat")),
|
|
626
735
|
sortText: 'z2_clear',
|
|
627
736
|
executeImmediately: true,
|
|
628
737
|
locations: [ChatAgentLocation.Panel]
|
|
@@ -631,7 +740,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
631
740
|
}));
|
|
632
741
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
633
742
|
command: SAVE_TO_PROMPT_SLASH_COMMAND_NAME,
|
|
634
|
-
detail: ( localize(
|
|
743
|
+
detail: ( localize(4770, "Save chat to a prompt file")),
|
|
635
744
|
sortText: `z3_${SAVE_TO_PROMPT_SLASH_COMMAND_NAME}`,
|
|
636
745
|
executeImmediately: true,
|
|
637
746
|
silent: true,
|
|
@@ -639,7 +748,8 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
639
748
|
}, async () => {
|
|
640
749
|
const { lastFocusedWidget } = chatWidgetService;
|
|
641
750
|
assertDefined(lastFocusedWidget, 'No currently active chat widget found.');
|
|
642
|
-
|
|
751
|
+
const options = { chat: lastFocusedWidget };
|
|
752
|
+
return commandService.executeCommand(SAVE_TO_PROMPT_ACTION_ID, options);
|
|
643
753
|
}));
|
|
644
754
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
645
755
|
command: 'help',
|
|
@@ -683,7 +793,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
683
793
|
progress.report({ content: ( new MarkdownString(defaultAgent.metadata.helpTextVariablesPrefix)), kind: 'markdownContent' });
|
|
684
794
|
}
|
|
685
795
|
const variables = [
|
|
686
|
-
{ name: 'file', description: ( localize(
|
|
796
|
+
{ name: 'file', description: ( localize(4771, "Choose a file in the workspace")) }
|
|
687
797
|
];
|
|
688
798
|
const variableText = ( variables
|
|
689
799
|
.map(v => `* \`${chatVariableLeader}${v.name}\` - ${v.description}`))
|
|
@@ -734,6 +844,7 @@ registerWorkbenchContribution2(ChatTransferContribution.ID, ChatTransferContribu
|
|
|
734
844
|
registerWorkbenchContribution2(ChatContextContributions.ID, ChatContextContributions, WorkbenchPhase.AfterRestored);
|
|
735
845
|
registerWorkbenchContribution2(ChatResponseResourceFileSystemProvider.ID, ChatResponseResourceFileSystemProvider, WorkbenchPhase.AfterRestored);
|
|
736
846
|
registerWorkbenchContribution2(PromptUrlHandler.ID, PromptUrlHandler, WorkbenchPhase.BlockRestore);
|
|
847
|
+
registerWorkbenchContribution2(ChatSessionsView.ID, ChatSessionsView, WorkbenchPhase.AfterRestored);
|
|
737
848
|
registerChatActions();
|
|
738
849
|
registerChatCopyActions();
|
|
739
850
|
registerChatCodeBlockActions();
|