@codingame/monaco-vscode-chat-service-override 20.4.1 → 21.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 +15 -7
- package/package.json +38 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +60 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +56 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClearActions.js +18 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +52 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.js +28 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +19 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +15 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.d.ts +68 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +433 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +205 -551
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +52 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +277 -163
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +20 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +11 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +32 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +22 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +22 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +6 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +47 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +12 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +8 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +33 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.js +74 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +23 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatLayoutService.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatLayoutService.js +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +36 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.d.ts +37 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +238 -52
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +23 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +257 -148
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +126 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +3 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +55 -45
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +13 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +130 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/media/apple-dark.svg +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/apple-light.svg +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditingEditorOverlay.css +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatStatus.css +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/attachInstructionsAction.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/newPromptFileActions.js +39 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptName.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptSourceFolder.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveToPromptAction.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +5 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +7 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +4 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +153 -168
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +127 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.js +111 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.js +6 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.d.ts +20 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +66 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +143 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +12 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderDiagnosticsProvider.d.ts +8 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderDiagnosticsProvider.js +41 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderHovers.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderHovers.js +55 -22
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkDiagnosticsProvider.js +1 -1
- 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/metadata/applyTo.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/base/string.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/base/string.js +5 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/mode.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/mode.js +3 -4
- 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/promptHeader.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/promptHeader.js +8 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/topError.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +4 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +11 -5
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +28 -28
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +54 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +33 -31
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +9 -9
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +9 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +20 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +11 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.js +1 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.d.ts +16 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.js +84 -25
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandSimplifier.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandSimplifier.js +55 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +8 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +15 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +72 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +8 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +19 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +7 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +12 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +85 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.d.ts +35 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +448 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.js +30 -77
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +174 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +75 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +15 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +81 -38
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +106 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{getTerminalOutputTool.js → tools/getTerminalOutputTool.js} +5 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.d.ts +11 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +59 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +452 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.js +23 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.js +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{runInTerminalTool.d.ts → tools/runInTerminalTool.d.ts} +11 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{runInTerminalTool.js → tools/runInTerminalTool.js} +282 -133
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{task → tools/task}/createAndRunTaskTool.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{task → tools/task}/createAndRunTaskTool.js +51 -50
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{task → tools/task}/getTaskOutputTool.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +117 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{task → tools/task}/runTaskTool.d.ts +3 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{task → tools/task}/runTaskTool.js +54 -50
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +36 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminal.chatAgentTools.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminal.chatAgentTools.js +8 -0
- package/vscode/src/vs/base/common/policy.d.ts +0 -41
- package/vscode/src/vs/base/common/policy.js +0 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.js +0 -738
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSessions.css +0 -42
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptPathAutocompletion.d.ts +0 -67
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptPathAutocompletion.js +0 -167
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/base/enum.d.ts +0 -23
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/parsers/promptHeader/metadata/base/enum.js +0 -63
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/bufferOutputPolling.d.ts +0 -55
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/bufferOutputPolling.js +0 -163
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/getTaskOutputTool.js +0 -88
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/taskHelpers.d.ts +0 -35
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task/taskHelpers.js +0 -80
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task.chatAgentTools.contribution.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/task.chatAgentTools.contribution.js +0 -40
- /package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{getTerminalOutputTool.d.ts → tools/getTerminalOutputTool.d.ts} +0 -0
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import { PolicyTag } from '../../../../base/common/policy.js';
|
|
4
|
-
import './promptSyntax/promptToolsCodeLensProvider.js';
|
|
5
|
-
import './promptSyntax/promptCodingAgentActionContribution.js';
|
|
6
3
|
import { timeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
7
4
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
8
5
|
import { isMarkdownString, MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
@@ -13,45 +10,49 @@ import { assertDefined } from '@codingame/monaco-vscode-api/vscode/vs/base/commo
|
|
|
13
10
|
import { registerEditorFeature } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorFeatures';
|
|
14
11
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
15
12
|
import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
13
|
+
import { registerAction2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
16
14
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
17
15
|
import { Extensions, ConfigurationScope } from '@codingame/monaco-vscode-api/vscode/vs/platform/configuration/common/configurationRegistry';
|
|
18
16
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
19
17
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
20
18
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
21
|
-
import { mcpGalleryServiceUrlConfig, mcpAutoStartConfig, McpAutoStartValue,
|
|
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';
|
|
19
|
+
import { mcpGalleryServiceUrlConfig, mcpAutoStartConfig, McpAutoStartValue, mcpAccessConfig, McpAccessValue } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/platform/mcp/common/mcpManagement';
|
|
24
20
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
25
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
21
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-5e2c24a1-3217-55e8-bc90-521eaf7df5a6-common/vscode/vs/workbench/browser/editor';
|
|
26
22
|
import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
|
|
27
23
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
28
24
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
29
25
|
import { IWorkbenchAssignmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/assignment/common/assignmentService.service';
|
|
30
26
|
import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
31
27
|
import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
|
|
32
|
-
import {
|
|
28
|
+
import { AssistedTypes, AddConfigurationType } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration';
|
|
29
|
+
import { mcpDiscoverySection, allDiscoverySources, discoverySourceSettingsLabel, mcpServerSamplingSection } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration';
|
|
33
30
|
import '@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
34
31
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
35
32
|
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/chatColors';
|
|
36
33
|
import { ChatEntitlement } from '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatEntitlementService';
|
|
37
34
|
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatEntitlementService.service';
|
|
38
|
-
import
|
|
35
|
+
import '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModes';
|
|
36
|
+
import { ChatResponseResourceFileSystemProvider } from '../common/chatResponseResourceFileSystemProvider.js';
|
|
39
37
|
import '../common/chatServiceImpl.js';
|
|
40
38
|
import '../common/chatSlashCommands.js';
|
|
41
39
|
import { IChatSlashCommandService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service';
|
|
40
|
+
import '../common/chatTodoListService.js';
|
|
42
41
|
import '../common/chatTransferService.js';
|
|
43
42
|
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/chatWidgetHistoryService';
|
|
44
43
|
import { ChatConfiguration, ChatAgentLocation, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
45
44
|
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels';
|
|
46
45
|
import '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/languageModelStats';
|
|
47
|
-
import {
|
|
46
|
+
import { PromptsConfig } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/config';
|
|
47
|
+
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';
|
|
48
48
|
import { registerPromptFileContributions } from '../common/promptSyntax/promptFileContributions.js';
|
|
49
|
+
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';
|
|
49
50
|
import '../common/promptSyntax/service/promptsServiceImpl.js';
|
|
50
51
|
import { LanguageModelToolsExtensionPointHandler } from '../common/tools/languageModelToolsContribution.js';
|
|
51
52
|
import { BuiltinToolsContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/tools';
|
|
52
|
-
import { UserToolSetsContributions, ConfigureToolSets } from './tools/toolSetsContribution.js';
|
|
53
53
|
import '../common/voiceChatService.js';
|
|
54
54
|
import { PanelChatAccessibilityHelp, QuickChatAccessibilityHelp, EditsChatAccessibilityHelp, AgentChatAccessibilityHelp } from './actions/chatAccessibilityHelp.js';
|
|
55
|
+
import { registerChatAccessibilityActions } from './actions/chatAccessibilityActions.js';
|
|
55
56
|
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';
|
|
56
57
|
import { registerNewChatActions } from './actions/chatClearActions.js';
|
|
57
58
|
import { CodeBlockActionRendering, registerChatCodeBlockActions, registerChatCodeCompareBlockActions } from './actions/chatCodeblockActions.js';
|
|
@@ -63,6 +64,7 @@ import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-
|
|
|
63
64
|
import { registerChatFileTreeActions } from './actions/chatFileTreeActions.js';
|
|
64
65
|
import { ChatGettingStartedContribution } from './actions/chatGettingStarted.js';
|
|
65
66
|
import { registerChatExportActions } from './actions/chatImportExport.js';
|
|
67
|
+
import { registerLanguageModelActions } from './actions/chatLanguageModelActions.js';
|
|
66
68
|
import { registerMoveActions } from './actions/chatMoveActions.js';
|
|
67
69
|
import { registerQuickChatActions } from './actions/chatQuickInputActions.js';
|
|
68
70
|
import { registerChatTitleActions } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
|
|
@@ -71,6 +73,7 @@ import { ChatTransferContribution } from './actions/chatTransfer.js';
|
|
|
71
73
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
72
74
|
import './chatAccessibilityService.js';
|
|
73
75
|
import '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/chatAttachmentModel';
|
|
76
|
+
import './chatAttachmentResolveService.js';
|
|
74
77
|
import '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
75
78
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
76
79
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
@@ -86,65 +89,75 @@ import { SimpleBrowserOverlay } from './chatEditing/simpleBrowserEditorOverlay.j
|
|
|
86
89
|
import { ChatEditor } from './chatEditor.js';
|
|
87
90
|
import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-b994942c-360d-5b68-8a33-77d4bde6b714-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
88
91
|
import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
|
|
92
|
+
import './chatOutputItemRenderer.js';
|
|
89
93
|
import { ChatExtensionPointHandler, ChatCompatibilityNotifier } from './chatParticipant.contribution.js';
|
|
90
94
|
import { ChatPasteProvidersFeature } from './chatPasteProviders.js';
|
|
91
95
|
import './chatQuick.js';
|
|
92
96
|
import { ChatResponseAccessibleView } from './chatResponseAccessibleView.js';
|
|
93
|
-
import {
|
|
97
|
+
import { ChatSessionsView } from '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/browser/chatSessions';
|
|
98
|
+
import { ChatSetupContribution, ChatTeardownContribution } from './chatSetup.js';
|
|
94
99
|
import { ChatStatusBarEntry } from './chatStatus.js';
|
|
95
100
|
import './chatVariables.js';
|
|
96
101
|
import { ChatWidget } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
|
|
102
|
+
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
|
|
97
103
|
import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext';
|
|
98
104
|
import '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
|
|
99
105
|
import './contrib/chatInputEditorContrib.js';
|
|
100
106
|
import './contrib/chatInputEditorHover.js';
|
|
101
107
|
import { ChatRelatedFilesContribution } from '@codingame/monaco-vscode-e28ac690-06d5-5ee9-92d1-02df70296354-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib';
|
|
102
|
-
import './languageModelToolsService.js';
|
|
103
|
-
import
|
|
104
|
-
import
|
|
105
|
-
import '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModes';
|
|
106
|
-
import { ChatResponseResourceFileSystemProvider } from '../common/chatResponseResourceFileSystemProvider.js';
|
|
107
|
-
import { SAVE_TO_PROMPT_SLASH_COMMAND_NAME, SAVE_TO_PROMPT_ACTION_ID } from './promptSyntax/saveToPromptAction.js';
|
|
108
|
-
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
|
|
109
|
-
import './chatAttachmentResolveService.js';
|
|
110
|
-
import { registerLanguageModelActions } from './actions/chatLanguageModelActions.js';
|
|
108
|
+
import { globalAutoApproveDescription } from './languageModelToolsService.js';
|
|
109
|
+
import './promptSyntax/promptCodingAgentActionContribution.js';
|
|
110
|
+
import './promptSyntax/promptToolsCodeLensProvider.js';
|
|
111
111
|
import { PromptUrlHandler } from './promptSyntax/promptUrlHandler.js';
|
|
112
|
-
import '
|
|
113
|
-
import './
|
|
114
|
-
import {
|
|
115
|
-
import {
|
|
112
|
+
import { SAVE_TO_PROMPT_SLASH_COMMAND_NAME, SAVE_TO_PROMPT_ACTION_ID } from './promptSyntax/saveToPromptAction.js';
|
|
113
|
+
import { UserToolSetsContributions, ConfigureToolSets } from './tools/toolSetsContribution.js';
|
|
114
|
+
import { ChatViewsWelcomeHandler } from './viewsWelcome/chatViewsWelcomeHandler.js';
|
|
115
|
+
import { RenameChatSessionAction, DeleteChatSessionAction, OpenChatSessionInNewEditorGroupAction, OpenChatSessionInSidebarAction, ToggleChatSessionsDescriptionDisplayAction } from './actions/chatSessionActions.js';
|
|
116
|
+
import './chatLayoutService.js';
|
|
116
117
|
|
|
117
118
|
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
118
119
|
configurationRegistry.registerConfiguration({
|
|
119
120
|
id: 'chatSidebar',
|
|
120
|
-
title: ( localize(
|
|
121
|
+
title: ( localize(4752, "Chat")),
|
|
121
122
|
type: 'object',
|
|
122
123
|
properties: {
|
|
124
|
+
'chat.fontSize': {
|
|
125
|
+
type: 'number',
|
|
126
|
+
description: ( localize(4753, "Controls the font size in pixels in chat messages.")),
|
|
127
|
+
default: 13,
|
|
128
|
+
minimum: 6,
|
|
129
|
+
maximum: 100
|
|
130
|
+
},
|
|
131
|
+
'chat.fontFamily': {
|
|
132
|
+
type: 'string',
|
|
133
|
+
description: ( localize(4754, "Controls the font family in chat messages.")),
|
|
134
|
+
default: 'default'
|
|
135
|
+
},
|
|
123
136
|
'chat.editor.fontSize': {
|
|
124
137
|
type: 'number',
|
|
125
|
-
description: ( localize(
|
|
138
|
+
description: ( localize(4755, "Controls the font size in pixels in chat codeblocks.")),
|
|
126
139
|
default: isMacintosh ? 12 : 14,
|
|
127
140
|
},
|
|
128
141
|
'chat.editor.fontFamily': {
|
|
129
142
|
type: 'string',
|
|
130
|
-
description: ( localize(
|
|
143
|
+
description: ( localize(4756, "Controls the font family in chat codeblocks.")),
|
|
131
144
|
default: 'default'
|
|
132
145
|
},
|
|
133
146
|
'chat.editor.fontWeight': {
|
|
134
147
|
type: 'string',
|
|
135
|
-
description: ( localize(
|
|
148
|
+
description: ( localize(4757, "Controls the font weight in chat codeblocks.")),
|
|
136
149
|
default: 'default'
|
|
137
150
|
},
|
|
138
151
|
'chat.editor.wordWrap': {
|
|
139
152
|
type: 'string',
|
|
140
|
-
description: ( localize(
|
|
153
|
+
description: ( localize(4758, "Controls whether lines should wrap in chat codeblocks.")),
|
|
141
154
|
default: 'off',
|
|
142
155
|
enum: ['on', 'off']
|
|
143
156
|
},
|
|
144
157
|
'chat.editor.lineHeight': {
|
|
145
158
|
type: 'number',
|
|
146
159
|
description: ( localize(
|
|
147
|
-
|
|
160
|
+
4759,
|
|
148
161
|
"Controls the line height in pixels in chat codeblocks. Use 0 to compute the line height from the font size."
|
|
149
162
|
)),
|
|
150
163
|
default: 0
|
|
@@ -152,8 +165,8 @@ configurationRegistry.registerConfiguration({
|
|
|
152
165
|
'chat.commandCenter.enabled': {
|
|
153
166
|
type: 'boolean',
|
|
154
167
|
markdownDescription: ( localize(
|
|
155
|
-
|
|
156
|
-
"Controls whether the command center shows a menu for actions to control
|
|
168
|
+
4760,
|
|
169
|
+
"Controls whether the command center shows a menu for actions to control chat (requires {0}).",
|
|
157
170
|
'`#window.commandCenter#`'
|
|
158
171
|
)),
|
|
159
172
|
default: true
|
|
@@ -162,17 +175,17 @@ configurationRegistry.registerConfiguration({
|
|
|
162
175
|
type: 'object',
|
|
163
176
|
tags: ['experimental'],
|
|
164
177
|
description: ( localize(
|
|
165
|
-
|
|
178
|
+
4761,
|
|
166
179
|
"Enables automatically using the active editor as chat context for specified chat locations."
|
|
167
180
|
)),
|
|
168
181
|
additionalProperties: {
|
|
169
182
|
type: 'string',
|
|
170
183
|
enum: ['never', 'first', 'always'],
|
|
171
|
-
description: ( localize(
|
|
184
|
+
description: ( localize(4762, "The value for the implicit context.")),
|
|
172
185
|
enumDescriptions: [
|
|
173
|
-
( localize(
|
|
174
|
-
( localize(
|
|
175
|
-
( localize(
|
|
186
|
+
( localize(4763, "Implicit context is never enabled.")),
|
|
187
|
+
( localize(4764, "Implicit context is enabled for the first interaction.")),
|
|
188
|
+
( localize(4765, "Implicit context is always enabled."))
|
|
176
189
|
]
|
|
177
190
|
},
|
|
178
191
|
default: {
|
|
@@ -183,7 +196,7 @@ configurationRegistry.registerConfiguration({
|
|
|
183
196
|
type: 'boolean',
|
|
184
197
|
tags: ['experimental'],
|
|
185
198
|
markdownDescription: ( localize(
|
|
186
|
-
|
|
199
|
+
4766,
|
|
187
200
|
"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
201
|
)),
|
|
189
202
|
default: true,
|
|
@@ -191,7 +204,7 @@ configurationRegistry.registerConfiguration({
|
|
|
191
204
|
'chat.editing.autoAcceptDelay': {
|
|
192
205
|
type: 'number',
|
|
193
206
|
markdownDescription: ( localize(
|
|
194
|
-
|
|
207
|
+
4767,
|
|
195
208
|
"Delay after which changes made by chat are automatically accepted. Values are in seconds, `0` means disabled and `100` seconds is the maximum."
|
|
196
209
|
)),
|
|
197
210
|
default: 0,
|
|
@@ -202,7 +215,7 @@ configurationRegistry.registerConfiguration({
|
|
|
202
215
|
type: 'boolean',
|
|
203
216
|
scope: ConfigurationScope.APPLICATION,
|
|
204
217
|
markdownDescription: ( localize(
|
|
205
|
-
|
|
218
|
+
4768,
|
|
206
219
|
"Whether to show a confirmation before removing a request and its associated edits."
|
|
207
220
|
)),
|
|
208
221
|
default: true,
|
|
@@ -211,7 +224,7 @@ configurationRegistry.registerConfiguration({
|
|
|
211
224
|
type: 'boolean',
|
|
212
225
|
scope: ConfigurationScope.APPLICATION,
|
|
213
226
|
markdownDescription: ( localize(
|
|
214
|
-
|
|
227
|
+
4769,
|
|
215
228
|
"Whether to show a confirmation before retrying a request and its associated edits."
|
|
216
229
|
)),
|
|
217
230
|
default: true,
|
|
@@ -219,21 +232,21 @@ configurationRegistry.registerConfiguration({
|
|
|
219
232
|
'chat.experimental.detectParticipant.enabled': {
|
|
220
233
|
type: 'boolean',
|
|
221
234
|
deprecationMessage: ( localize(
|
|
222
|
-
|
|
235
|
+
4770,
|
|
223
236
|
"This setting is deprecated. Please use `chat.detectParticipant.enabled` instead."
|
|
224
237
|
)),
|
|
225
|
-
description: ( localize(
|
|
238
|
+
description: ( localize(4771, "Enables chat participant autodetection for panel chat.")),
|
|
226
239
|
default: null
|
|
227
240
|
},
|
|
228
241
|
'chat.detectParticipant.enabled': {
|
|
229
242
|
type: 'boolean',
|
|
230
|
-
description: ( localize(
|
|
243
|
+
description: ( localize(4772, "Enables chat participant autodetection for panel chat.")),
|
|
231
244
|
default: true
|
|
232
245
|
},
|
|
233
246
|
'chat.renderRelatedFiles': {
|
|
234
247
|
type: 'boolean',
|
|
235
248
|
description: ( localize(
|
|
236
|
-
|
|
249
|
+
4773,
|
|
237
250
|
"Controls whether related files should be rendered in the chat input."
|
|
238
251
|
)),
|
|
239
252
|
default: false
|
|
@@ -241,35 +254,48 @@ configurationRegistry.registerConfiguration({
|
|
|
241
254
|
'chat.notifyWindowOnConfirmation': {
|
|
242
255
|
type: 'boolean',
|
|
243
256
|
description: ( localize(
|
|
244
|
-
|
|
245
|
-
"Controls whether
|
|
257
|
+
4774,
|
|
258
|
+
"Controls whether a chat session 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."
|
|
246
259
|
)),
|
|
247
260
|
default: true,
|
|
248
261
|
},
|
|
249
|
-
|
|
262
|
+
[ChatConfiguration.GlobalAutoApprove]: {
|
|
250
263
|
default: false,
|
|
251
264
|
description: ( localize(
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
)),
|
|
255
|
-
markdownDescription: ( localize(
|
|
256
|
-
4725,
|
|
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!"
|
|
265
|
+
4775,
|
|
266
|
+
'Global auto approve also known as "YOLO mode" disables manual approval completely for all tools in all workspaces, allowing the agent to act fully autonomously. This is extremely dangerous and is *never* recommended, even containerized environments like Codespaces and Dev Containers have user keys forwarded into the container that could be compromised.\n\nThis feature disables critical security protections and makes it much easier for an attacker to compromise the machine.'
|
|
258
267
|
)),
|
|
268
|
+
markdownDescription: globalAutoApproveDescription.value,
|
|
259
269
|
type: 'boolean',
|
|
260
270
|
scope: ConfigurationScope.APPLICATION_MACHINE,
|
|
261
271
|
tags: ['experimental'],
|
|
262
272
|
policy: {
|
|
263
273
|
name: 'ChatToolsAutoApprove',
|
|
264
274
|
minimumVersion: '1.99',
|
|
265
|
-
|
|
266
|
-
|
|
275
|
+
value: (account) => account.chat_preview_features_enabled === false ? false : undefined,
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
[ChatConfiguration.AutoApproveEdits]: {
|
|
279
|
+
default: {
|
|
280
|
+
'**/*': true,
|
|
281
|
+
'**/.vscode/*.json': false,
|
|
282
|
+
'**/.git/**': false,
|
|
283
|
+
'**/{package.json,package-lock.json,server.xml,build.rs,web.config,.gitattributes,.env}': false,
|
|
284
|
+
'**/*.{csproj,fsproj,vbproj}': false,
|
|
285
|
+
},
|
|
286
|
+
markdownDescription: ( localize(
|
|
287
|
+
4776,
|
|
288
|
+
"Controls whether edits made by chat are automatically approved. The default is to approve all edits except those made to certain files which have the potential to cause immediate unintended side-effects, such as `**/.vscode/*.json`.\n\nFiles are matched against the glob patterns in the order they are specified."
|
|
289
|
+
)),
|
|
290
|
+
type: 'object',
|
|
291
|
+
additionalProperties: {
|
|
292
|
+
type: 'boolean',
|
|
267
293
|
}
|
|
268
294
|
},
|
|
269
295
|
'chat.sendElementsToChat.enabled': {
|
|
270
296
|
default: true,
|
|
271
297
|
description: ( localize(
|
|
272
|
-
|
|
298
|
+
4777,
|
|
273
299
|
"Controls whether elements can be sent to chat from the Simple Browser."
|
|
274
300
|
)),
|
|
275
301
|
type: 'boolean',
|
|
@@ -278,7 +304,7 @@ configurationRegistry.registerConfiguration({
|
|
|
278
304
|
'chat.sendElementsToChat.attachCSS': {
|
|
279
305
|
default: true,
|
|
280
306
|
markdownDescription: ( localize(
|
|
281
|
-
|
|
307
|
+
4778,
|
|
282
308
|
"Controls whether CSS of the selected element will be added to the chat. {0} must be enabled.",
|
|
283
309
|
'`#chat.sendElementsToChat.enabled#`'
|
|
284
310
|
)),
|
|
@@ -288,7 +314,7 @@ configurationRegistry.registerConfiguration({
|
|
|
288
314
|
'chat.sendElementsToChat.attachImages': {
|
|
289
315
|
default: true,
|
|
290
316
|
markdownDescription: ( localize(
|
|
291
|
-
|
|
317
|
+
4779,
|
|
292
318
|
"Controls whether a screenshot of the selected element will be added to the chat. {0} must be enabled.",
|
|
293
319
|
'`#chat.sendElementsToChat.enabled#`'
|
|
294
320
|
)),
|
|
@@ -298,7 +324,7 @@ configurationRegistry.registerConfiguration({
|
|
|
298
324
|
'chat.undoRequests.restoreInput': {
|
|
299
325
|
default: true,
|
|
300
326
|
markdownDescription: ( localize(
|
|
301
|
-
|
|
327
|
+
4780,
|
|
302
328
|
"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."
|
|
303
329
|
)),
|
|
304
330
|
type: 'boolean',
|
|
@@ -306,7 +332,7 @@ configurationRegistry.registerConfiguration({
|
|
|
306
332
|
},
|
|
307
333
|
'chat.editRequests': {
|
|
308
334
|
markdownDescription: ( localize(
|
|
309
|
-
|
|
335
|
+
4781,
|
|
310
336
|
"Enables editing of requests in the chat. This allows you to change the request content and resubmit it to the model."
|
|
311
337
|
)),
|
|
312
338
|
type: 'string',
|
|
@@ -317,7 +343,7 @@ configurationRegistry.registerConfiguration({
|
|
|
317
343
|
type: 'boolean',
|
|
318
344
|
default: true,
|
|
319
345
|
description: ( localize(
|
|
320
|
-
|
|
346
|
+
4782,
|
|
321
347
|
"Shows a modified empty chat state with hints in the input placeholder text."
|
|
322
348
|
)),
|
|
323
349
|
tags: ['experimental'],
|
|
@@ -325,37 +351,57 @@ configurationRegistry.registerConfiguration({
|
|
|
325
351
|
mode: 'startup'
|
|
326
352
|
}
|
|
327
353
|
},
|
|
354
|
+
[ChatConfiguration.EmptyStateHistoryEnabled]: {
|
|
355
|
+
type: 'boolean',
|
|
356
|
+
default: false,
|
|
357
|
+
description: ( localize(4783, "Show recent chat history on the empty chat state.")),
|
|
358
|
+
tags: ['experimental']
|
|
359
|
+
},
|
|
328
360
|
'chat.checkpoints.enabled': {
|
|
329
361
|
type: 'boolean',
|
|
330
362
|
default: true,
|
|
331
363
|
description: ( localize(
|
|
332
|
-
|
|
364
|
+
4784,
|
|
333
365
|
"Enables checkpoints in chat. Checkpoints allow you to restore the chat to a previous state."
|
|
334
366
|
)),
|
|
335
|
-
tags: ['preview'],
|
|
336
367
|
},
|
|
337
368
|
'chat.checkpoints.showFileChanges': {
|
|
338
369
|
type: 'boolean',
|
|
339
|
-
description: ( localize(
|
|
370
|
+
description: ( localize(4785, "Controls whether to show chat checkpoint file changes.")),
|
|
340
371
|
default: false
|
|
341
372
|
},
|
|
342
|
-
[
|
|
343
|
-
type: '
|
|
344
|
-
description: ( localize(
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
373
|
+
[mcpAccessConfig]: {
|
|
374
|
+
type: 'string',
|
|
375
|
+
description: ( localize(4786, "Controls access to Model Context Protocol servers.")),
|
|
376
|
+
enum: [
|
|
377
|
+
McpAccessValue.None,
|
|
378
|
+
McpAccessValue.Registry,
|
|
379
|
+
McpAccessValue.All
|
|
380
|
+
],
|
|
381
|
+
enumDescriptions: [
|
|
382
|
+
( localize(4787, "No access to MCP servers.")),
|
|
383
|
+
( localize(4788, "Only allow access to MCP servers from the registry.")),
|
|
384
|
+
( localize(4789, "Allow access to any MCP server."))
|
|
385
|
+
],
|
|
386
|
+
default: McpAccessValue.All,
|
|
349
387
|
policy: {
|
|
350
388
|
name: 'ChatMCP',
|
|
351
389
|
minimumVersion: '1.99',
|
|
352
|
-
|
|
390
|
+
value: (account) => {
|
|
391
|
+
if (account.mcp === false) {
|
|
392
|
+
return McpAccessValue.None;
|
|
393
|
+
}
|
|
394
|
+
if (account.mcpAccess === 'registry_only') {
|
|
395
|
+
return McpAccessValue.Registry;
|
|
396
|
+
}
|
|
397
|
+
return undefined;
|
|
398
|
+
},
|
|
353
399
|
}
|
|
354
400
|
},
|
|
355
401
|
[mcpAutoStartConfig]: {
|
|
356
402
|
type: 'string',
|
|
357
403
|
description: ( localize(
|
|
358
|
-
|
|
404
|
+
4790,
|
|
359
405
|
"Controls whether MCP servers should be automatically started when the chat messages are submitted."
|
|
360
406
|
)),
|
|
361
407
|
default: McpAutoStartValue.Never,
|
|
@@ -365,10 +411,10 @@ configurationRegistry.registerConfiguration({
|
|
|
365
411
|
McpAutoStartValue.NewAndOutdated
|
|
366
412
|
],
|
|
367
413
|
enumDescriptions: [
|
|
368
|
-
( localize(
|
|
369
|
-
( localize(
|
|
414
|
+
( localize(4791, "Never automatically start MCP servers.")),
|
|
415
|
+
( localize(4792, "Only automatically start new MCP servers that have never been run.")),
|
|
370
416
|
( localize(
|
|
371
|
-
|
|
417
|
+
4793,
|
|
372
418
|
"Automatically start new and outdated MCP servers that are not yet running."
|
|
373
419
|
))
|
|
374
420
|
],
|
|
@@ -377,9 +423,9 @@ configurationRegistry.registerConfiguration({
|
|
|
377
423
|
[mcpServerSamplingSection]: {
|
|
378
424
|
type: 'object',
|
|
379
425
|
description: ( localize(
|
|
380
|
-
|
|
426
|
+
4794,
|
|
381
427
|
"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.",
|
|
382
|
-
'MCP: ' + ( localize(
|
|
428
|
+
'MCP: ' + ( localize(4795, 'List Servers'))
|
|
383
429
|
)),
|
|
384
430
|
scope: ConfigurationScope.RESOURCE,
|
|
385
431
|
additionalProperties: {
|
|
@@ -388,7 +434,7 @@ configurationRegistry.registerConfiguration({
|
|
|
388
434
|
allowedDuringChat: {
|
|
389
435
|
type: 'boolean',
|
|
390
436
|
description: ( localize(
|
|
391
|
-
|
|
437
|
+
4796,
|
|
392
438
|
"Whether this server is make sampling requests during its tool calls in a chat session."
|
|
393
439
|
)),
|
|
394
440
|
default: true,
|
|
@@ -396,7 +442,7 @@ configurationRegistry.registerConfiguration({
|
|
|
396
442
|
allowedOutsideChat: {
|
|
397
443
|
type: 'boolean',
|
|
398
444
|
description: ( localize(
|
|
399
|
-
|
|
445
|
+
4797,
|
|
400
446
|
"Whether this server is allowed to make sampling requests outside of a chat session."
|
|
401
447
|
)),
|
|
402
448
|
default: false,
|
|
@@ -405,7 +451,7 @@ configurationRegistry.registerConfiguration({
|
|
|
405
451
|
type: 'array',
|
|
406
452
|
items: {
|
|
407
453
|
type: 'string',
|
|
408
|
-
description: ( localize(
|
|
454
|
+
description: ( localize(4798, "A model the MCP server has access to.")),
|
|
409
455
|
},
|
|
410
456
|
}
|
|
411
457
|
}
|
|
@@ -414,7 +460,7 @@ configurationRegistry.registerConfiguration({
|
|
|
414
460
|
[AssistedTypes[AddConfigurationType.NuGetPackage].enabledConfigKey]: {
|
|
415
461
|
type: 'boolean',
|
|
416
462
|
description: ( localize(
|
|
417
|
-
|
|
463
|
+
4799,
|
|
418
464
|
"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
465
|
)),
|
|
420
466
|
default: false,
|
|
@@ -426,7 +472,7 @@ configurationRegistry.registerConfiguration({
|
|
|
426
472
|
[ChatConfiguration.UseFileStorage]: {
|
|
427
473
|
type: 'boolean',
|
|
428
474
|
description: ( localize(
|
|
429
|
-
|
|
475
|
+
4800,
|
|
430
476
|
"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."
|
|
431
477
|
)),
|
|
432
478
|
default: true,
|
|
@@ -435,75 +481,65 @@ configurationRegistry.registerConfiguration({
|
|
|
435
481
|
[ChatConfiguration.Edits2Enabled]: {
|
|
436
482
|
type: 'boolean',
|
|
437
483
|
description: ( localize(
|
|
438
|
-
|
|
484
|
+
4801,
|
|
439
485
|
"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."
|
|
440
486
|
)),
|
|
441
|
-
default:
|
|
442
|
-
experiment: {
|
|
443
|
-
mode: 'startup'
|
|
444
|
-
}
|
|
487
|
+
default: false,
|
|
445
488
|
},
|
|
446
489
|
[ChatConfiguration.ExtensionToolsEnabled]: {
|
|
447
490
|
type: 'boolean',
|
|
448
|
-
description: ( localize(
|
|
491
|
+
description: ( localize(4802, "Enable using tools contributed by third-party extensions.")),
|
|
449
492
|
default: true,
|
|
450
493
|
policy: {
|
|
451
494
|
name: 'ChatAgentExtensionTools',
|
|
452
495
|
minimumVersion: '1.99',
|
|
453
|
-
description: ( localize(
|
|
496
|
+
description: ( localize(4803, "Enable using tools contributed by third-party extensions.")),
|
|
454
497
|
}
|
|
455
498
|
},
|
|
456
499
|
[ChatConfiguration.AgentEnabled]: {
|
|
457
500
|
type: 'boolean',
|
|
458
501
|
description: ( localize(
|
|
459
|
-
|
|
460
|
-
"Enable agent mode for
|
|
461
|
-
'Copilot Chat'
|
|
502
|
+
4804,
|
|
503
|
+
"Enable agent mode for chat. When this is enabled, agent mode can be activated via the dropdown in the view."
|
|
462
504
|
)),
|
|
463
505
|
default: true,
|
|
464
|
-
experiment: {
|
|
465
|
-
mode: 'startup'
|
|
466
|
-
},
|
|
467
506
|
policy: {
|
|
468
507
|
name: 'ChatAgentMode',
|
|
469
508
|
minimumVersion: '1.99',
|
|
470
|
-
|
|
509
|
+
value: (account) => account.chat_agent_enabled === false ? false : undefined,
|
|
471
510
|
}
|
|
472
511
|
},
|
|
473
512
|
[ChatConfiguration.EnableMath]: {
|
|
474
513
|
type: 'boolean',
|
|
475
|
-
description: ( localize(
|
|
476
|
-
default:
|
|
514
|
+
description: ( localize(4805, "Enable math rendering in chat responses using KaTeX.")),
|
|
515
|
+
default: true,
|
|
477
516
|
tags: ['preview'],
|
|
478
517
|
},
|
|
479
518
|
[ChatConfiguration.AgentSessionsViewLocation]: {
|
|
480
519
|
type: 'string',
|
|
481
|
-
enum: ['disabled', '
|
|
482
|
-
description: ( localize(
|
|
520
|
+
enum: ['disabled', 'view'],
|
|
521
|
+
description: ( localize(4806, "Controls where to show the agent sessions menu.")),
|
|
483
522
|
default: 'disabled',
|
|
484
523
|
tags: ['experimental'],
|
|
524
|
+
experiment: {
|
|
525
|
+
mode: 'auto'
|
|
526
|
+
}
|
|
485
527
|
},
|
|
486
528
|
[mcpDiscoverySection]: {
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
{
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
k,
|
|
494
|
-
{ type: 'boolean', description: ( localize(4752, "Enables discovery of {0} servers", discoverySourceLabel[k])) }
|
|
495
|
-
]))),
|
|
496
|
-
}
|
|
497
|
-
],
|
|
498
|
-
default: true,
|
|
529
|
+
type: 'object',
|
|
530
|
+
properties: Object.fromEntries(( allDiscoverySources.map(
|
|
531
|
+
k => [k, { type: 'boolean', description: discoverySourceSettingsLabel[k] }]
|
|
532
|
+
))),
|
|
533
|
+
additionalProperties: false,
|
|
534
|
+
default: Object.fromEntries(( allDiscoverySources.map(k => [k, false]))),
|
|
499
535
|
markdownDescription: ( localize(
|
|
500
|
-
|
|
501
|
-
"Configures discovery of Model Context Protocol servers
|
|
536
|
+
4807,
|
|
537
|
+
"Configures discovery of Model Context Protocol servers from configuration from various other applications."
|
|
502
538
|
)),
|
|
503
539
|
},
|
|
504
540
|
[mcpGalleryServiceUrlConfig]: {
|
|
505
541
|
type: 'string',
|
|
506
|
-
description: ( localize(
|
|
542
|
+
description: ( localize(4808, "Configure the MCP Gallery service URL to connect to")),
|
|
507
543
|
default: '',
|
|
508
544
|
scope: ConfigurationScope.APPLICATION,
|
|
509
545
|
tags: ['usesOnlineServices'],
|
|
@@ -511,13 +547,14 @@ configurationRegistry.registerConfiguration({
|
|
|
511
547
|
policy: {
|
|
512
548
|
name: 'McpGalleryServiceUrl',
|
|
513
549
|
minimumVersion: '1.101',
|
|
550
|
+
value: (account) => account.mcpRegistryUrl
|
|
514
551
|
},
|
|
515
552
|
},
|
|
516
553
|
[PromptsConfig.KEY]: {
|
|
517
554
|
type: 'boolean',
|
|
518
|
-
title: ( localize(
|
|
555
|
+
title: ( localize(4809, "Prompt Files")),
|
|
519
556
|
markdownDescription: ( localize(
|
|
520
|
-
|
|
557
|
+
4810,
|
|
521
558
|
"Enable reusable prompt (`*{0}`) and instruction files (`*{1}`) in Chat sessions. [Learn More]({2}).",
|
|
522
559
|
PROMPT_FILE_EXTENSION,
|
|
523
560
|
INSTRUCTION_FILE_EXTENSION,
|
|
@@ -530,14 +567,14 @@ configurationRegistry.registerConfiguration({
|
|
|
530
567
|
policy: {
|
|
531
568
|
name: 'ChatPromptFiles',
|
|
532
569
|
minimumVersion: '1.99',
|
|
533
|
-
description: ( localize(
|
|
570
|
+
description: ( localize(4811, "Enables reusable prompt and instruction files in Chat sessions."))
|
|
534
571
|
}
|
|
535
572
|
},
|
|
536
573
|
[PromptsConfig.INSTRUCTIONS_LOCATION_KEY]: {
|
|
537
574
|
type: 'object',
|
|
538
|
-
title: ( localize(
|
|
575
|
+
title: ( localize(4812, "Instructions File Locations")),
|
|
539
576
|
markdownDescription: ( localize(
|
|
540
|
-
|
|
577
|
+
4813,
|
|
541
578
|
"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.",
|
|
542
579
|
INSTRUCTION_FILE_EXTENSION,
|
|
543
580
|
INSTRUCTIONS_DOCUMENTATION_URL
|
|
@@ -560,9 +597,9 @@ configurationRegistry.registerConfiguration({
|
|
|
560
597
|
},
|
|
561
598
|
[PromptsConfig.PROMPT_LOCATIONS_KEY]: {
|
|
562
599
|
type: 'object',
|
|
563
|
-
title: ( localize(
|
|
600
|
+
title: ( localize(4814, "Prompt File Locations")),
|
|
564
601
|
markdownDescription: ( localize(
|
|
565
|
-
|
|
602
|
+
4815,
|
|
566
603
|
"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.",
|
|
567
604
|
PROMPT_FILE_EXTENSION,
|
|
568
605
|
PROMPT_DOCUMENTATION_URL
|
|
@@ -586,9 +623,9 @@ configurationRegistry.registerConfiguration({
|
|
|
586
623
|
},
|
|
587
624
|
[PromptsConfig.MODE_LOCATION_KEY]: {
|
|
588
625
|
type: 'object',
|
|
589
|
-
title: ( localize(
|
|
626
|
+
title: ( localize(4816, "Mode File Locations")),
|
|
590
627
|
markdownDescription: ( localize(
|
|
591
|
-
|
|
628
|
+
4817,
|
|
592
629
|
"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.",
|
|
593
630
|
MODE_FILE_EXTENSION,
|
|
594
631
|
MODE_DOCUMENTATION_URL
|
|
@@ -610,10 +647,45 @@ configurationRegistry.registerConfiguration({
|
|
|
610
647
|
},
|
|
611
648
|
],
|
|
612
649
|
},
|
|
650
|
+
[PromptsConfig.USE_AGENT_MD]: {
|
|
651
|
+
type: 'boolean',
|
|
652
|
+
title: ( localize(4818, "Use AGENTS.MD file")),
|
|
653
|
+
markdownDescription: ( localize(
|
|
654
|
+
4819,
|
|
655
|
+
"Controls whether instructions from `AGENTS.MD` file found in a workspace roots are added to all chat requests."
|
|
656
|
+
)),
|
|
657
|
+
default: true,
|
|
658
|
+
restricted: true,
|
|
659
|
+
disallowConfigurationDefault: true,
|
|
660
|
+
tags: ['experimental', 'prompts', 'reusable prompts', 'prompt snippets', 'instructions']
|
|
661
|
+
},
|
|
662
|
+
[PromptsConfig.PROMPT_FILES_SUGGEST_KEY]: {
|
|
663
|
+
type: 'object',
|
|
664
|
+
title: ( localize(4820, "Prompt File Recommendations")),
|
|
665
|
+
markdownDescription: ( localize(
|
|
666
|
+
4821,
|
|
667
|
+
"Configure which prompt files to recommend in the chat welcome view. Each key is a prompt file name, and the value can be `true` to always recommend, `false` to never recommend, or a [when clause](https://aka.ms/vscode-when-clause) expression like `resourceExtname == .js` or `resourceLangId == markdown`."
|
|
668
|
+
)),
|
|
669
|
+
default: {},
|
|
670
|
+
additionalProperties: {
|
|
671
|
+
oneOf: [
|
|
672
|
+
{ type: 'boolean' },
|
|
673
|
+
{ type: 'string' }
|
|
674
|
+
]
|
|
675
|
+
},
|
|
676
|
+
tags: ['experimental'],
|
|
677
|
+
examples: [
|
|
678
|
+
{
|
|
679
|
+
'plan': true,
|
|
680
|
+
'a11y-audit': 'resourceExtname == .html',
|
|
681
|
+
'document': 'resourceLangId == markdown'
|
|
682
|
+
}
|
|
683
|
+
],
|
|
684
|
+
},
|
|
613
685
|
'chat.setup.signInDialogVariant': {
|
|
614
686
|
type: 'string',
|
|
615
|
-
enum: ['default', '
|
|
616
|
-
description: ( localize(
|
|
687
|
+
enum: ['default', 'apple'],
|
|
688
|
+
description: ( localize(4822, "Control variations of the sign-in dialog.")),
|
|
617
689
|
default: 'default',
|
|
618
690
|
tags: ['experimental'],
|
|
619
691
|
experiment: {
|
|
@@ -624,26 +696,68 @@ configurationRegistry.registerConfiguration({
|
|
|
624
696
|
type: 'boolean',
|
|
625
697
|
default: false,
|
|
626
698
|
description: ( localize(
|
|
627
|
-
|
|
628
|
-
"Enables todo lists in chat
|
|
699
|
+
4823,
|
|
700
|
+
"Enables todo lists in chat, which the agent uses as a tool for planning, progress tracking, and context management for complex development workflows."
|
|
629
701
|
)),
|
|
630
702
|
tags: ['experimental'],
|
|
631
703
|
experiment: {
|
|
632
|
-
mode: '
|
|
704
|
+
mode: 'auto'
|
|
633
705
|
}
|
|
634
706
|
},
|
|
635
|
-
'chat.
|
|
707
|
+
'chat.todoListTool.writeOnly': {
|
|
636
708
|
type: 'boolean',
|
|
637
|
-
default:
|
|
709
|
+
default: false,
|
|
638
710
|
description: ( localize(
|
|
639
|
-
|
|
640
|
-
"
|
|
711
|
+
4824,
|
|
712
|
+
"When enabled, the todo tool operates in write-only mode, requiring the agent to remember todos in context."
|
|
713
|
+
)),
|
|
714
|
+
tags: ['experimental']
|
|
715
|
+
},
|
|
716
|
+
[ChatConfiguration.ThinkingStyle]: {
|
|
717
|
+
type: 'string',
|
|
718
|
+
default: 'collapsedPreview',
|
|
719
|
+
enum: ['collapsed', 'collapsedPreview', 'expanded', 'none'],
|
|
720
|
+
enumDescriptions: [
|
|
721
|
+
( localize(4825, "Thinking parts will be collapsed by default.")),
|
|
722
|
+
( localize(
|
|
723
|
+
4826,
|
|
724
|
+
"Thinking parts will be expanded first, then collapse once we reach a part that is not thinking."
|
|
641
725
|
)),
|
|
726
|
+
( localize(4827, "Thinking parts will be expanded by default.")),
|
|
727
|
+
( localize(4828, "Do not show the thinking")),
|
|
728
|
+
],
|
|
729
|
+
description: ( localize(4829, "Controls how thinking is rendered.")),
|
|
730
|
+
tags: ['experimental'],
|
|
731
|
+
},
|
|
732
|
+
'chat.disableAIFeatures': {
|
|
733
|
+
type: 'boolean',
|
|
734
|
+
description: ( localize(
|
|
735
|
+
4830,
|
|
736
|
+
"Disable and hide built-in AI features provided by GitHub Copilot, including chat, code completions and next edit suggestions."
|
|
737
|
+
)),
|
|
738
|
+
default: false,
|
|
739
|
+
scope: ConfigurationScope.WINDOW
|
|
740
|
+
},
|
|
741
|
+
[ChatConfiguration.UseChatSessionsForCloudButton]: {
|
|
742
|
+
type: 'boolean',
|
|
743
|
+
description: ( localize(
|
|
744
|
+
4831,
|
|
745
|
+
"Controls whether the 'Delegate to coding agent' button uses the new chat sessions API."
|
|
746
|
+
)),
|
|
747
|
+
default: false,
|
|
642
748
|
tags: ['experimental'],
|
|
749
|
+
},
|
|
750
|
+
[ChatConfiguration.ShowAgentSessionsViewDescription]: {
|
|
751
|
+
type: 'boolean',
|
|
752
|
+
description: ( localize(
|
|
753
|
+
4832,
|
|
754
|
+
"Controls whether session descriptions are displayed on a second row in the Chat Sessions view."
|
|
755
|
+
)),
|
|
756
|
+
default: true,
|
|
643
757
|
}
|
|
644
758
|
}
|
|
645
759
|
});
|
|
646
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(
|
|
760
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4833, "Chat"))), [
|
|
647
761
|
( new SyncDescriptor(ChatEditorInput))
|
|
648
762
|
]);
|
|
649
763
|
( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([
|
|
@@ -653,7 +767,16 @@ configurationRegistry.registerConfiguration({
|
|
|
653
767
|
['chat.experimental.detectParticipant.enabled', { value: undefined }],
|
|
654
768
|
['chat.detectParticipant.enabled', { value: value !== false }]
|
|
655
769
|
])
|
|
656
|
-
}
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
key: mcpDiscoverySection,
|
|
773
|
+
migrateFn: (value) => {
|
|
774
|
+
if (typeof value === 'boolean') {
|
|
775
|
+
return { value: Object.fromEntries(( allDiscoverySources.map(k => [k, value]))) };
|
|
776
|
+
}
|
|
777
|
+
return { value };
|
|
778
|
+
}
|
|
779
|
+
},
|
|
657
780
|
]);
|
|
658
781
|
let ChatResolverContribution = class ChatResolverContribution extends Disposable {
|
|
659
782
|
static { this.ID = 'workbench.contrib.chatResolver'; }
|
|
@@ -661,7 +784,7 @@ let ChatResolverContribution = class ChatResolverContribution extends Disposable
|
|
|
661
784
|
super();
|
|
662
785
|
this._register(editorResolverService.registerEditor(`{${Schemas.vscodeChatEditor},${Schemas.vscodeChatSession}}:**/**`, {
|
|
663
786
|
id: ChatEditorInput.EditorID,
|
|
664
|
-
label: ( localize(
|
|
787
|
+
label: ( localize(4833, "Chat")),
|
|
665
788
|
priority: RegisteredEditorPriority.builtin
|
|
666
789
|
}, {
|
|
667
790
|
singlePerResource: true,
|
|
@@ -695,14 +818,14 @@ let ChatAgentSettingContribution = class ChatAgentSettingContribution extends Di
|
|
|
695
818
|
const defaultValue = value ?? (this.entitlementService.entitlement === ChatEntitlement.Free ? 25 : 25);
|
|
696
819
|
const node = {
|
|
697
820
|
id: 'chatSidebar',
|
|
698
|
-
title: ( localize(
|
|
821
|
+
title: ( localize(4752, "Chat")),
|
|
699
822
|
type: 'object',
|
|
700
823
|
properties: {
|
|
701
824
|
'chat.agent.maxRequests': {
|
|
702
825
|
type: 'number',
|
|
703
826
|
markdownDescription: ( localize(
|
|
704
|
-
|
|
705
|
-
"The maximum number of requests to allow
|
|
827
|
+
4834,
|
|
828
|
+
"The maximum number of requests to allow per-turn in agent mode. When the limit is reached, will ask to confirm to continue."
|
|
706
829
|
)),
|
|
707
830
|
default: defaultValue,
|
|
708
831
|
},
|
|
@@ -731,7 +854,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
731
854
|
super();
|
|
732
855
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
733
856
|
command: 'clear',
|
|
734
|
-
detail: ( localize(
|
|
857
|
+
detail: ( localize(4835, "Start a new chat")),
|
|
735
858
|
sortText: 'z2_clear',
|
|
736
859
|
executeImmediately: true,
|
|
737
860
|
locations: [ChatAgentLocation.Panel]
|
|
@@ -740,7 +863,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
740
863
|
}));
|
|
741
864
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
742
865
|
command: SAVE_TO_PROMPT_SLASH_COMMAND_NAME,
|
|
743
|
-
detail: ( localize(
|
|
866
|
+
detail: ( localize(4836, "Save chat to a prompt file")),
|
|
744
867
|
sortText: `z3_${SAVE_TO_PROMPT_SLASH_COMMAND_NAME}`,
|
|
745
868
|
executeImmediately: true,
|
|
746
869
|
silent: true,
|
|
@@ -771,7 +894,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
771
894
|
progress.report({ content: ( new MarkdownString('\n\n')), kind: 'markdownContent' });
|
|
772
895
|
}
|
|
773
896
|
const agentText = (await Promise.all(( agents
|
|
774
|
-
.filter(a => a.
|
|
897
|
+
.filter(a => !a.isDefault && !a.isCore)
|
|
775
898
|
.filter(a => a.locations.includes(ChatAgentLocation.Panel))
|
|
776
899
|
.map(async (a) => {
|
|
777
900
|
const description = a.description ? `- ${a.description}` : '';
|
|
@@ -784,22 +907,6 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
784
907
|
return (agentLine + '\n' + commandText).trim();
|
|
785
908
|
})))).join('\n');
|
|
786
909
|
progress.report({ content: ( new MarkdownString(agentText, { isTrusted: { enabledCommands: [ChatSubmitAction.ID] } })), kind: 'markdownContent' });
|
|
787
|
-
if (defaultAgent?.metadata.helpTextVariablesPrefix) {
|
|
788
|
-
progress.report({ content: ( new MarkdownString('\n\n')), kind: 'markdownContent' });
|
|
789
|
-
if (isMarkdownString(defaultAgent.metadata.helpTextVariablesPrefix)) {
|
|
790
|
-
progress.report({ content: defaultAgent.metadata.helpTextVariablesPrefix, kind: 'markdownContent' });
|
|
791
|
-
}
|
|
792
|
-
else {
|
|
793
|
-
progress.report({ content: ( new MarkdownString(defaultAgent.metadata.helpTextVariablesPrefix)), kind: 'markdownContent' });
|
|
794
|
-
}
|
|
795
|
-
const variables = [
|
|
796
|
-
{ name: 'file', description: ( localize(4771, "Choose a file in the workspace")) }
|
|
797
|
-
];
|
|
798
|
-
const variableText = ( variables
|
|
799
|
-
.map(v => `* \`${chatVariableLeader}${v.name}\` - ${v.description}`))
|
|
800
|
-
.join('\n');
|
|
801
|
-
progress.report({ content: ( new MarkdownString('\n' + variableText)), kind: 'markdownContent' });
|
|
802
|
-
}
|
|
803
910
|
if (defaultAgent?.metadata.helpTextPostfix) {
|
|
804
911
|
progress.report({ content: ( new MarkdownString('\n\n')), kind: 'markdownContent' });
|
|
805
912
|
if (isMarkdownString(defaultAgent.metadata.helpTextPostfix)) {
|
|
@@ -833,6 +940,7 @@ registerWorkbenchContribution2(ChatRelatedFilesContribution.ID, ChatRelatedFiles
|
|
|
833
940
|
registerWorkbenchContribution2(ChatViewsWelcomeHandler.ID, ChatViewsWelcomeHandler, WorkbenchPhase.BlockStartup);
|
|
834
941
|
registerWorkbenchContribution2(ChatGettingStartedContribution.ID, ChatGettingStartedContribution, WorkbenchPhase.Eventually);
|
|
835
942
|
registerWorkbenchContribution2(ChatSetupContribution.ID, ChatSetupContribution, WorkbenchPhase.BlockRestore);
|
|
943
|
+
registerWorkbenchContribution2(ChatTeardownContribution.ID, ChatTeardownContribution, WorkbenchPhase.AfterRestored);
|
|
836
944
|
registerWorkbenchContribution2(ChatStatusBarEntry.ID, ChatStatusBarEntry, WorkbenchPhase.BlockRestore);
|
|
837
945
|
registerWorkbenchContribution2(BuiltinToolsContribution.ID, BuiltinToolsContribution, WorkbenchPhase.Eventually);
|
|
838
946
|
registerWorkbenchContribution2(ChatAgentSettingContribution.ID, ChatAgentSettingContribution, WorkbenchPhase.AfterRestored);
|
|
@@ -845,7 +953,10 @@ registerWorkbenchContribution2(ChatContextContributions.ID, ChatContextContribut
|
|
|
845
953
|
registerWorkbenchContribution2(ChatResponseResourceFileSystemProvider.ID, ChatResponseResourceFileSystemProvider, WorkbenchPhase.AfterRestored);
|
|
846
954
|
registerWorkbenchContribution2(PromptUrlHandler.ID, PromptUrlHandler, WorkbenchPhase.BlockRestore);
|
|
847
955
|
registerWorkbenchContribution2(ChatSessionsView.ID, ChatSessionsView, WorkbenchPhase.AfterRestored);
|
|
956
|
+
registerWorkbenchContribution2(ChatEditingNotebookFileSystemProviderContrib.ID, ChatEditingNotebookFileSystemProviderContrib, WorkbenchPhase.BlockStartup);
|
|
957
|
+
registerWorkbenchContribution2(UserToolSetsContributions.ID, UserToolSetsContributions, WorkbenchPhase.Eventually);
|
|
848
958
|
registerChatActions();
|
|
959
|
+
registerChatAccessibilityActions();
|
|
849
960
|
registerChatCopyActions();
|
|
850
961
|
registerChatCodeBlockActions();
|
|
851
962
|
registerChatCodeCompareBlockActions();
|
|
@@ -862,8 +973,11 @@ registerChatEditorActions();
|
|
|
862
973
|
registerChatToolActions();
|
|
863
974
|
registerLanguageModelActions();
|
|
864
975
|
registerEditorFeature(ChatPasteProvidersFeature);
|
|
865
|
-
registerWorkbenchContribution2(ChatEditingNotebookFileSystemProviderContrib.ID, ChatEditingNotebookFileSystemProviderContrib, WorkbenchPhase.BlockStartup);
|
|
866
976
|
registerPromptFileContributions();
|
|
867
|
-
registerWorkbenchContribution2(UserToolSetsContributions.ID, UserToolSetsContributions, WorkbenchPhase.Eventually);
|
|
868
977
|
registerAction2(ConfigureToolSets);
|
|
978
|
+
registerAction2(RenameChatSessionAction);
|
|
979
|
+
registerAction2(DeleteChatSessionAction);
|
|
980
|
+
registerAction2(OpenChatSessionInNewEditorGroupAction);
|
|
981
|
+
registerAction2(OpenChatSessionInSidebarAction);
|
|
982
|
+
registerAction2(ToggleChatSessionsDescriptionDisplayAction);
|
|
869
983
|
ChatWidget.CONTRIBS.push(ChatDynamicVariableModel);
|