@codingame/monaco-vscode-chat-service-override 22.1.8 → 23.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 +16 -7
- package/package.json +43 -41
- package/vscode/src/vs/editor/common/diff/documentDiffProvider.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +57 -48
- 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 +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +26 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +51 -5
- 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 +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +19 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/{chatClearActions.d.ts → chatNewActions.d.ts} +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/{chatClearActions.js → chatNewActions.js} +32 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.d.ts +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +101 -98
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +35 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +43 -25
- 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 +33 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.js +154 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.js +347 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +250 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsview.css +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +97 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +290 -231
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +7 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.d.ts +24 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.js +113 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimeline.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +102 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +646 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +46 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +17 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +44 -34
- 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 +25 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +46 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +45 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +30 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +60 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.d.ts +117 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +60 -55
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +29 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +365 -143
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.d.ts +2 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +3 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +58 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +6 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.d.ts +1 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.js +7 -11
- 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 +13 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +38 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +11 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +83 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +91 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +370 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +61 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +349 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +787 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +109 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +122 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +211 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatUsageWidget.css +69 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +21 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +54 -54
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +31 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +16 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.d.ts +6 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.js +29 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.js +37 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.d.ts +15 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.js +96 -131
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.d.ts +12 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js +66 -34
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.js +77 -71
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.d.ts +91 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +458 -138
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +212 -150
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus.js +96 -89
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +15 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +33 -17
- 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/languageModelToolsConfirmationService.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.js +688 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +15 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +126 -135
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditingEditorOverlay.css +6 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatEditorController.css +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSessions.css +38 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/media/simpleBrowserOverlay.css +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +28 -26
- 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/promptFileActions.js +9 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +24 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +15 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +25 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.d.ts +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +89 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +30 -29
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +10 -19
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +61 -43
- package/vscode/src/vs/workbench/contrib/chat/common/chatResponseResourceFileSystemProvider.js +7 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +28 -28
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +254 -165
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +4 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.d.ts +10 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.js +20 -12
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +13 -17
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +9 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +51 -21
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +74 -20
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +11 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +83 -53
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +136 -78
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptLinkProvider.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +18 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +357 -157
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +55 -28
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +235 -108
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +12 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +50 -4
- 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/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/editTelemetry/browser/telemetry/aiEditTelemetry/aiEditTelemetryServiceImpl.js +11 -7
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +12 -14
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +18 -30
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +62 -139
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +16 -15
- 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/terminal.chat.contribution.js +3 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +119 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +6 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +47 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +192 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +7 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +21 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.js +8 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +18 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +4 -25
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +18 -27
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +31 -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 +24 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalToolTelemetry.js +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +33 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +42 -13
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +14 -21
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +227 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +133 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineCdPrefixRewriter.js +36 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePwshChainOperatorRewriter.js +33 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLineRewriter.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +75 -37
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +71 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +28 -15
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +366 -363
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +18 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +9 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +123 -0
- package/vscode/src/vs/base/common/yaml.d.ts +0 -74
- package/vscode/src/vs/base/common/yaml.js +0 -597
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContext.js +0 -239
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.d.ts +0 -102
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTimeline.js +0 -435
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookDiff.d.ts +0 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookDiff.js +0 -67
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.d.ts +0 -49
- package/vscode/src/vs/workbench/contrib/chat/browser/chatPasteProviders.js +0 -380
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.d.ts +0 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/common.js +0 -137
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/attachInstructionsAction.d.ts +0 -44
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/attachInstructionsAction.js +0 -176
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/newPromptFileActions.d.ts +0 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/newPromptFileActions.js +0 -206
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptName.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptName.js +0 -79
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptSourceFolder.d.ts +0 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/askForPromptSourceFolder.js +0 -145
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.d.ts +0 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/pickers/promptFilePickers.js +0 -306
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveToPromptAction.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveToPromptAction.js +0 -102
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/newPromptsParser.d.ts +0 -97
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/newPromptsParser.js +0 -247
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.d.ts +0 -118
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.js +0 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandSimplifier.d.ts +0 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandSimplifier.js +0 -55
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/subCommands.js +0 -66
|
@@ -3,11 +3,10 @@ import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib
|
|
|
3
3
|
import { timeout } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
4
4
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
5
5
|
import { isMarkdownString, MarkdownString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/htmlContent';
|
|
6
|
-
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
6
|
+
import { Disposable, DisposableMap } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
7
7
|
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
8
8
|
import { isMacintosh } from '@codingame/monaco-vscode-api/vscode/vs/base/common/platform';
|
|
9
|
-
import {
|
|
10
|
-
import product from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/product';
|
|
9
|
+
import { PolicyCategory } from '@codingame/monaco-vscode-api/vscode/vs/base/common/policy';
|
|
11
10
|
import { registerEditorFeature } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/editorFeatures';
|
|
12
11
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
13
12
|
import { AccessibleViewRegistry } from '@codingame/monaco-vscode-api/vscode/vs/platform/accessibility/browser/accessibleViewRegistry';
|
|
@@ -18,70 +17,74 @@ import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
18
17
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
19
18
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
20
19
|
import { mcpGalleryServiceUrlConfig, mcpGalleryServiceEnablementConfig, mcpAutoStartConfig, McpAutoStartValue, mcpAccessConfig, McpAccessValue } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/platform/mcp/common/mcpManagement';
|
|
20
|
+
import product from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/product';
|
|
21
21
|
import { Registry } from '@codingame/monaco-vscode-api/vscode/vs/platform/registry/common/platform';
|
|
22
22
|
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-60014c9d-b815-501d-83a9-4b08725c2ec2-common/vscode/vs/workbench/browser/editor';
|
|
23
23
|
import { Extensions as Extensions$1 } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/configuration';
|
|
24
24
|
import { registerWorkbenchContribution2, WorkbenchPhase } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions';
|
|
25
25
|
import { EditorExtensions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor';
|
|
26
26
|
import { IWorkbenchAssignmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/assignment/common/assignmentService.service';
|
|
27
|
+
import { ChatEntitlement } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService';
|
|
28
|
+
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
|
|
27
29
|
import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
28
30
|
import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
|
|
29
31
|
import { AssistedTypes, AddConfigurationType } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration';
|
|
30
32
|
import { mcpDiscoverySection, allDiscoverySources, discoverySourceSettingsLabel, mcpServerSamplingSection } from '@codingame/monaco-vscode-dc3fa21d-a483-5b99-a7ab-173235644a34-common/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration';
|
|
31
|
-
import '@codingame/monaco-vscode-
|
|
33
|
+
import '@codingame/monaco-vscode-aac7027b-326c-513a-95a9-e4eedd151b38-common/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
32
34
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
33
|
-
import '@codingame/monaco-vscode-
|
|
34
|
-
import
|
|
35
|
-
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
|
|
36
|
-
import '@codingame/monaco-vscode-c2deffc4-ad68-5e63-8f95-9b89e0fc6898-common/vscode/vs/workbench/contrib/chat/common/chatModes';
|
|
35
|
+
import '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/common/chatColors';
|
|
36
|
+
import '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/common/chatModes';
|
|
37
37
|
import { ChatResponseResourceFileSystemProvider } from '../common/chatResponseResourceFileSystemProvider.js';
|
|
38
38
|
import '../common/chatServiceImpl.js';
|
|
39
|
+
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
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/chatTodoListService.js';
|
|
42
43
|
import '../common/chatTransferService.js';
|
|
43
|
-
import '@codingame/monaco-vscode-
|
|
44
|
+
import '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/common/chatWidgetHistoryService';
|
|
44
45
|
import { ChatConfiguration, ChatAgentLocation, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
45
46
|
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels';
|
|
46
|
-
import '@codingame/monaco-vscode-
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
47
|
+
import '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/common/languageModelStats';
|
|
48
|
+
import { ChatPromptFilesExtensionPointHandler } from '../common/promptSyntax/chatPromptFilesContribution.js';
|
|
49
|
+
import { PromptsConfig } from '@codingame/monaco-vscode-8d4ef243-d8c1-540d-9f11-38df46f54c9f-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/config';
|
|
50
|
+
import { LEGACY_MODE_DEFAULT_SOURCE_FOLDER, LEGACY_MODE_FILE_EXTENSION, PROMPT_DEFAULT_SOURCE_FOLDER, PROMPT_FILE_EXTENSION, INSTRUCTIONS_DEFAULT_SOURCE_FOLDER, INSTRUCTION_FILE_EXTENSION } from '@codingame/monaco-vscode-8d4ef243-d8c1-540d-9f11-38df46f54c9f-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations';
|
|
49
51
|
import { PromptLanguageFeaturesProvider } from '../common/promptSyntax/promptFileContributions.js';
|
|
50
|
-
import {
|
|
52
|
+
import { AGENT_DOCUMENTATION_URL, PROMPT_DOCUMENTATION_URL, INSTRUCTIONS_DOCUMENTATION_URL } from '@codingame/monaco-vscode-8d4ef243-d8c1-540d-9f11-38df46f54c9f-common/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
|
|
51
53
|
import '../common/promptSyntax/service/promptsServiceImpl.js';
|
|
52
54
|
import { LanguageModelToolsExtensionPointHandler } from '../common/tools/languageModelToolsContribution.js';
|
|
53
|
-
import { ChatPromptFilesExtensionPointHandler } from '../common/promptSyntax/chatPromptFilesContribution.js';
|
|
54
55
|
import { BuiltinToolsContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/tools';
|
|
55
56
|
import '../common/voiceChatService.js';
|
|
56
57
|
import { registerChatAccessibilityActions } from './actions/chatAccessibilityActions.js';
|
|
57
58
|
import { PanelChatAccessibilityHelp, QuickChatAccessibilityHelp, EditsChatAccessibilityHelp, AgentChatAccessibilityHelp } from './actions/chatAccessibilityHelp.js';
|
|
58
|
-
import { ACTION_ID_NEW_CHAT, CopilotTitleBarMenuRendering, registerChatActions } from '@codingame/monaco-vscode-
|
|
59
|
-
import { registerNewChatActions } from './actions/chatClearActions.js';
|
|
59
|
+
import { ACTION_ID_NEW_CHAT, CopilotTitleBarMenuRendering, registerChatActions } from '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
60
60
|
import { CodeBlockActionRendering, registerChatCodeBlockActions, registerChatCodeCompareBlockActions } from './actions/chatCodeblockActions.js';
|
|
61
|
-
import { ChatContextContributions } from '
|
|
61
|
+
import { ChatContextContributions } from '@codingame/monaco-vscode-88141f48-1af9-57ef-a278-f4b2ff6128fa-common/vscode/vs/workbench/contrib/chat/browser/actions/chatContext';
|
|
62
62
|
import { registerChatContextActions } from './actions/chatContextActions.js';
|
|
63
63
|
import { registerChatCopyActions } from './actions/chatCopyActions.js';
|
|
64
64
|
import { registerChatDeveloperActions } from './actions/chatDeveloperActions.js';
|
|
65
|
-
import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-
|
|
65
|
+
import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
|
|
66
66
|
import { registerChatFileTreeActions } from './actions/chatFileTreeActions.js';
|
|
67
67
|
import { ChatGettingStartedContribution } from './actions/chatGettingStarted.js';
|
|
68
|
-
import { registerChatPromptNavigationActions } from './actions/chatPromptNavigationActions.js';
|
|
69
68
|
import { registerChatExportActions } from './actions/chatImportExport.js';
|
|
70
69
|
import { registerLanguageModelActions } from './actions/chatLanguageModelActions.js';
|
|
71
70
|
import { registerMoveActions } from './actions/chatMoveActions.js';
|
|
71
|
+
import { registerNewChatActions } from './actions/chatNewActions.js';
|
|
72
|
+
import { registerChatPromptNavigationActions } from './actions/chatPromptNavigationActions.js';
|
|
72
73
|
import { registerQuickChatActions } from './actions/chatQuickInputActions.js';
|
|
73
|
-
import { RenameChatSessionAction, DeleteChatSessionAction, OpenChatSessionInNewWindowAction, OpenChatSessionInNewEditorGroupAction, OpenChatSessionInSidebarAction, ToggleChatSessionsDescriptionDisplayAction, ChatSessionsGettingStartedAction } from './actions/chatSessionActions.js';
|
|
74
|
-
import { registerChatTitleActions } from '@codingame/monaco-vscode-
|
|
74
|
+
import { RenameChatSessionAction, DeleteChatSessionAction, OpenChatSessionInNewWindowAction, OpenChatSessionInNewEditorGroupAction, OpenChatSessionInSidebarAction, ToggleChatSessionsDescriptionDisplayAction, ChatSessionsGettingStartedAction, ToggleAgentSessionsViewLocationAction } from './actions/chatSessionActions.js';
|
|
75
|
+
import { registerChatTitleActions } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
|
|
75
76
|
import { registerChatToolActions } from './actions/chatToolActions.js';
|
|
76
77
|
import { ChatTransferContribution } from './actions/chatTransfer.js';
|
|
78
|
+
import './agentSessions/agentSessionsView.js';
|
|
77
79
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
78
80
|
import './chatAccessibilityService.js';
|
|
79
|
-
import '@codingame/monaco-vscode-
|
|
81
|
+
import '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/chatAttachmentModel';
|
|
80
82
|
import './chatAttachmentResolveService.js';
|
|
81
83
|
import '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
82
84
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
83
85
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
84
86
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/strings';
|
|
87
|
+
import '@codingame/monaco-vscode-api/vscode/vs/base/common/errors';
|
|
85
88
|
import { ChatInputBoxContentProvider } from './chatEdinputInputContentProvider.js';
|
|
86
89
|
import { ChatEditingEditorAccessibility } from './chatEditing/chatEditingEditorAccessibility.js';
|
|
87
90
|
import { registerChatEditorActions } from './chatEditing/chatEditingEditorActions.js';
|
|
@@ -91,76 +94,78 @@ import './chatEditing/chatEditingServiceImpl.js';
|
|
|
91
94
|
import { ChatEditingNotebookFileSystemProviderContrib } from './chatEditing/notebook/chatEditingNotebookFileSystemProvider.js';
|
|
92
95
|
import { SimpleBrowserOverlay } from './chatEditing/simpleBrowserEditorOverlay.js';
|
|
93
96
|
import { ChatEditor } from './chatEditor.js';
|
|
94
|
-
import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-
|
|
97
|
+
import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-aac7027b-326c-513a-95a9-e4eedd151b38-common/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
95
98
|
import './chatLayoutService.js';
|
|
96
|
-
import
|
|
99
|
+
import './chatManagement/chatManagement.contribution.js';
|
|
100
|
+
import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
|
|
97
101
|
import './chatOutputItemRenderer.js';
|
|
98
102
|
import { ChatExtensionPointHandler, ChatCompatibilityNotifier } from './chatParticipant.contribution.js';
|
|
99
|
-
import { ChatPasteProvidersFeature } from '
|
|
103
|
+
import { ChatPasteProvidersFeature } from '@codingame/monaco-vscode-88141f48-1af9-57ef-a278-f4b2ff6128fa-common/vscode/vs/workbench/contrib/chat/browser/chatPasteProviders';
|
|
100
104
|
import './chatQuick.js';
|
|
101
105
|
import { ChatResponseAccessibleView } from './chatResponseAccessibleView.js';
|
|
106
|
+
import { LocalChatSessionsProvider } from './chatSessions/localChatSessionsProvider.js';
|
|
107
|
+
import { ChatSessionsViewContrib, ChatSessionsView } from './chatSessions/view/chatSessionsView.js';
|
|
102
108
|
import { ChatSetupContribution, ChatTeardownContribution } from './chatSetup.js';
|
|
103
109
|
import { ChatStatusBarEntry } from './chatStatus.js';
|
|
104
110
|
import './chatVariables.js';
|
|
105
|
-
import { ChatWidget } from '@codingame/monaco-vscode-
|
|
106
|
-
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-
|
|
107
|
-
import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-
|
|
111
|
+
import { ChatWidget } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
|
|
112
|
+
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-9d2c06d1-1f89-51a5-9964-aa01fe50c198-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
|
|
113
|
+
import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext';
|
|
108
114
|
import '@codingame/monaco-vscode-e4d0fd26-1b26-5583-b3f7-582e08d7b389-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
|
|
109
115
|
import './contrib/chatInputEditorContrib.js';
|
|
110
116
|
import './contrib/chatInputEditorHover.js';
|
|
111
|
-
import { ChatRelatedFilesContribution } from '@codingame/monaco-vscode-
|
|
117
|
+
import { ChatRelatedFilesContribution } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib';
|
|
118
|
+
import './languageModelToolsConfirmationService.js';
|
|
112
119
|
import { globalAutoApproveDescription } from './languageModelToolsService.js';
|
|
113
120
|
import './promptSyntax/promptCodingAgentActionContribution.js';
|
|
114
121
|
import './promptSyntax/promptToolsCodeLensProvider.js';
|
|
115
122
|
import { PromptUrlHandler } from './promptSyntax/promptUrlHandler.js';
|
|
116
|
-
import { SAVE_TO_PROMPT_SLASH_COMMAND_NAME, SAVE_TO_PROMPT_ACTION_ID } from './promptSyntax/saveToPromptAction.js';
|
|
117
123
|
import { UserToolSetsContributions, ConfigureToolSets } from './tools/toolSetsContribution.js';
|
|
118
124
|
import { ChatViewsWelcomeHandler } from './viewsWelcome/chatViewsWelcomeHandler.js';
|
|
119
|
-
import { ChatSessionsView } from './chatSessions/view/chatSessionsView.js';
|
|
120
125
|
|
|
121
126
|
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
122
127
|
configurationRegistry.registerConfiguration({
|
|
123
128
|
id: 'chatSidebar',
|
|
124
|
-
title: ( localize(
|
|
129
|
+
title: ( localize(4831, "Chat")),
|
|
125
130
|
type: 'object',
|
|
126
131
|
properties: {
|
|
127
132
|
'chat.fontSize': {
|
|
128
133
|
type: 'number',
|
|
129
|
-
description: ( localize(
|
|
134
|
+
description: ( localize(4832, "Controls the font size in pixels in chat messages.")),
|
|
130
135
|
default: 13,
|
|
131
136
|
minimum: 6,
|
|
132
137
|
maximum: 100
|
|
133
138
|
},
|
|
134
139
|
'chat.fontFamily': {
|
|
135
140
|
type: 'string',
|
|
136
|
-
description: ( localize(
|
|
141
|
+
description: ( localize(4833, "Controls the font family in chat messages.")),
|
|
137
142
|
default: 'default'
|
|
138
143
|
},
|
|
139
144
|
'chat.editor.fontSize': {
|
|
140
145
|
type: 'number',
|
|
141
|
-
description: ( localize(
|
|
146
|
+
description: ( localize(4834, "Controls the font size in pixels in chat codeblocks.")),
|
|
142
147
|
default: isMacintosh ? 12 : 14,
|
|
143
148
|
},
|
|
144
149
|
'chat.editor.fontFamily': {
|
|
145
150
|
type: 'string',
|
|
146
|
-
description: ( localize(
|
|
151
|
+
description: ( localize(4835, "Controls the font family in chat codeblocks.")),
|
|
147
152
|
default: 'default'
|
|
148
153
|
},
|
|
149
154
|
'chat.editor.fontWeight': {
|
|
150
155
|
type: 'string',
|
|
151
|
-
description: ( localize(
|
|
156
|
+
description: ( localize(4836, "Controls the font weight in chat codeblocks.")),
|
|
152
157
|
default: 'default'
|
|
153
158
|
},
|
|
154
159
|
'chat.editor.wordWrap': {
|
|
155
160
|
type: 'string',
|
|
156
|
-
description: ( localize(
|
|
161
|
+
description: ( localize(4837, "Controls whether lines should wrap in chat codeblocks.")),
|
|
157
162
|
default: 'off',
|
|
158
163
|
enum: ['on', 'off']
|
|
159
164
|
},
|
|
160
165
|
'chat.editor.lineHeight': {
|
|
161
166
|
type: 'number',
|
|
162
167
|
description: ( localize(
|
|
163
|
-
|
|
168
|
+
4838,
|
|
164
169
|
"Controls the line height in pixels in chat codeblocks. Use 0 to compute the line height from the font size."
|
|
165
170
|
)),
|
|
166
171
|
default: 0
|
|
@@ -168,7 +173,7 @@ configurationRegistry.registerConfiguration({
|
|
|
168
173
|
'chat.commandCenter.enabled': {
|
|
169
174
|
type: 'boolean',
|
|
170
175
|
markdownDescription: ( localize(
|
|
171
|
-
|
|
176
|
+
4839,
|
|
172
177
|
"Controls whether the command center shows a menu for actions to control chat (requires {0}).",
|
|
173
178
|
'`#window.commandCenter#`'
|
|
174
179
|
)),
|
|
@@ -178,17 +183,17 @@ configurationRegistry.registerConfiguration({
|
|
|
178
183
|
type: 'object',
|
|
179
184
|
tags: ['experimental'],
|
|
180
185
|
description: ( localize(
|
|
181
|
-
|
|
186
|
+
4840,
|
|
182
187
|
"Enables automatically using the active editor as chat context for specified chat locations."
|
|
183
188
|
)),
|
|
184
189
|
additionalProperties: {
|
|
185
190
|
type: 'string',
|
|
186
191
|
enum: ['never', 'first', 'always'],
|
|
187
|
-
description: ( localize(
|
|
192
|
+
description: ( localize(4841, "The value for the implicit context.")),
|
|
188
193
|
enumDescriptions: [
|
|
189
|
-
( localize(
|
|
190
|
-
( localize(
|
|
191
|
-
( localize(
|
|
194
|
+
( localize(4842, "Implicit context is never enabled.")),
|
|
195
|
+
( localize(4843, "Implicit context is enabled for the first interaction.")),
|
|
196
|
+
( localize(4844, "Implicit context is always enabled."))
|
|
192
197
|
]
|
|
193
198
|
},
|
|
194
199
|
default: {
|
|
@@ -199,15 +204,15 @@ configurationRegistry.registerConfiguration({
|
|
|
199
204
|
type: 'boolean',
|
|
200
205
|
tags: ['experimental'],
|
|
201
206
|
markdownDescription: ( localize(
|
|
202
|
-
|
|
203
|
-
"Controls whether the new implicit context flow is shown. In Ask and Edit modes, the context will automatically be included.
|
|
207
|
+
4845,
|
|
208
|
+
"Controls whether the new implicit context flow is shown. In Ask and Edit modes, the context will automatically be included. When using an agent, context will be suggested as an attachment. Selections are always included as context."
|
|
204
209
|
)),
|
|
205
210
|
default: true,
|
|
206
211
|
},
|
|
207
212
|
'chat.editing.autoAcceptDelay': {
|
|
208
213
|
type: 'number',
|
|
209
214
|
markdownDescription: ( localize(
|
|
210
|
-
|
|
215
|
+
4846,
|
|
211
216
|
"Delay after which changes made by chat are automatically accepted. Values are in seconds, `0` means disabled and `100` seconds is the maximum."
|
|
212
217
|
)),
|
|
213
218
|
default: 0,
|
|
@@ -218,7 +223,7 @@ configurationRegistry.registerConfiguration({
|
|
|
218
223
|
type: 'boolean',
|
|
219
224
|
scope: ConfigurationScope.APPLICATION,
|
|
220
225
|
markdownDescription: ( localize(
|
|
221
|
-
|
|
226
|
+
4847,
|
|
222
227
|
"Whether to show a confirmation before removing a request and its associated edits."
|
|
223
228
|
)),
|
|
224
229
|
default: true,
|
|
@@ -227,7 +232,7 @@ configurationRegistry.registerConfiguration({
|
|
|
227
232
|
type: 'boolean',
|
|
228
233
|
scope: ConfigurationScope.APPLICATION,
|
|
229
234
|
markdownDescription: ( localize(
|
|
230
|
-
|
|
235
|
+
4848,
|
|
231
236
|
"Whether to show a confirmation before retrying a request and its associated edits."
|
|
232
237
|
)),
|
|
233
238
|
default: true,
|
|
@@ -235,21 +240,21 @@ configurationRegistry.registerConfiguration({
|
|
|
235
240
|
'chat.experimental.detectParticipant.enabled': {
|
|
236
241
|
type: 'boolean',
|
|
237
242
|
deprecationMessage: ( localize(
|
|
238
|
-
|
|
243
|
+
4849,
|
|
239
244
|
"This setting is deprecated. Please use `chat.detectParticipant.enabled` instead."
|
|
240
245
|
)),
|
|
241
|
-
description: ( localize(
|
|
246
|
+
description: ( localize(4850, "Enables chat participant autodetection for panel chat.")),
|
|
242
247
|
default: null
|
|
243
248
|
},
|
|
244
249
|
'chat.detectParticipant.enabled': {
|
|
245
250
|
type: 'boolean',
|
|
246
|
-
description: ( localize(
|
|
251
|
+
description: ( localize(4851, "Enables chat participant autodetection for panel chat.")),
|
|
247
252
|
default: true
|
|
248
253
|
},
|
|
249
254
|
'chat.renderRelatedFiles': {
|
|
250
255
|
type: 'boolean',
|
|
251
256
|
description: ( localize(
|
|
252
|
-
|
|
257
|
+
4852,
|
|
253
258
|
"Controls whether related files should be rendered in the chat input."
|
|
254
259
|
)),
|
|
255
260
|
default: false
|
|
@@ -257,25 +262,31 @@ configurationRegistry.registerConfiguration({
|
|
|
257
262
|
'chat.notifyWindowOnConfirmation': {
|
|
258
263
|
type: 'boolean',
|
|
259
264
|
description: ( localize(
|
|
260
|
-
|
|
265
|
+
4853,
|
|
261
266
|
"Controls whether a chat session should present the user with an OS notification when a confirmation is needed while the window is not in focus. This includes a window badge as well as notification toast."
|
|
262
267
|
)),
|
|
263
268
|
default: true,
|
|
264
269
|
},
|
|
265
270
|
[ChatConfiguration.GlobalAutoApprove]: {
|
|
266
271
|
default: false,
|
|
267
|
-
description: ( localize(
|
|
268
|
-
4805,
|
|
269
|
-
'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.'
|
|
270
|
-
)),
|
|
271
272
|
markdownDescription: globalAutoApproveDescription.value,
|
|
272
273
|
type: 'boolean',
|
|
273
274
|
scope: ConfigurationScope.APPLICATION_MACHINE,
|
|
274
275
|
tags: ['experimental'],
|
|
275
276
|
policy: {
|
|
276
277
|
name: 'ChatToolsAutoApprove',
|
|
278
|
+
category: PolicyCategory.InteractiveSession,
|
|
277
279
|
minimumVersion: '1.99',
|
|
278
280
|
value: (account) => account.chat_preview_features_enabled === false ? false : undefined,
|
|
281
|
+
localization: {
|
|
282
|
+
description: {
|
|
283
|
+
key: 'autoApprove2.description',
|
|
284
|
+
value: ( localize(
|
|
285
|
+
4854,
|
|
286
|
+
'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.'
|
|
287
|
+
))
|
|
288
|
+
}
|
|
289
|
+
},
|
|
279
290
|
}
|
|
280
291
|
},
|
|
281
292
|
[ChatConfiguration.AutoApproveEdits]: {
|
|
@@ -284,10 +295,10 @@ configurationRegistry.registerConfiguration({
|
|
|
284
295
|
'**/.vscode/*.json': false,
|
|
285
296
|
'**/.git/**': false,
|
|
286
297
|
'**/{package.json,package-lock.json,server.xml,build.rs,web.config,.gitattributes,.env}': false,
|
|
287
|
-
'**/*.{csproj,fsproj,vbproj}': false,
|
|
298
|
+
'**/*.{csproj,fsproj,vbproj,vcxproj,proj,targets,props}': false,
|
|
288
299
|
},
|
|
289
300
|
markdownDescription: ( localize(
|
|
290
|
-
|
|
301
|
+
4855,
|
|
291
302
|
"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\nSet to `true` to automatically approve edits to matching files, `false` to always require explicit approval. The last pattern matching a given file will determine whether the edit is automatically approved."
|
|
292
303
|
)),
|
|
293
304
|
type: 'object',
|
|
@@ -298,7 +309,7 @@ configurationRegistry.registerConfiguration({
|
|
|
298
309
|
'chat.sendElementsToChat.enabled': {
|
|
299
310
|
default: true,
|
|
300
311
|
description: ( localize(
|
|
301
|
-
|
|
312
|
+
4856,
|
|
302
313
|
"Controls whether elements can be sent to chat from the Simple Browser."
|
|
303
314
|
)),
|
|
304
315
|
type: 'boolean',
|
|
@@ -307,7 +318,7 @@ configurationRegistry.registerConfiguration({
|
|
|
307
318
|
'chat.sendElementsToChat.attachCSS': {
|
|
308
319
|
default: true,
|
|
309
320
|
markdownDescription: ( localize(
|
|
310
|
-
|
|
321
|
+
4857,
|
|
311
322
|
"Controls whether CSS of the selected element will be added to the chat. {0} must be enabled.",
|
|
312
323
|
'`#chat.sendElementsToChat.enabled#`'
|
|
313
324
|
)),
|
|
@@ -317,7 +328,7 @@ configurationRegistry.registerConfiguration({
|
|
|
317
328
|
'chat.sendElementsToChat.attachImages': {
|
|
318
329
|
default: true,
|
|
319
330
|
markdownDescription: ( localize(
|
|
320
|
-
|
|
331
|
+
4858,
|
|
321
332
|
"Controls whether a screenshot of the selected element will be added to the chat. {0} must be enabled.",
|
|
322
333
|
'`#chat.sendElementsToChat.enabled#`'
|
|
323
334
|
)),
|
|
@@ -327,7 +338,7 @@ configurationRegistry.registerConfiguration({
|
|
|
327
338
|
'chat.undoRequests.restoreInput': {
|
|
328
339
|
default: true,
|
|
329
340
|
markdownDescription: ( localize(
|
|
330
|
-
|
|
341
|
+
4859,
|
|
331
342
|
"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."
|
|
332
343
|
)),
|
|
333
344
|
type: 'boolean',
|
|
@@ -335,36 +346,24 @@ configurationRegistry.registerConfiguration({
|
|
|
335
346
|
},
|
|
336
347
|
'chat.editRequests': {
|
|
337
348
|
markdownDescription: ( localize(
|
|
338
|
-
|
|
349
|
+
4860,
|
|
339
350
|
"Enables editing of requests in the chat. This allows you to change the request content and resubmit it to the model."
|
|
340
351
|
)),
|
|
341
352
|
type: 'string',
|
|
342
353
|
enum: ['inline', 'hover', 'input', 'none'],
|
|
343
354
|
default: 'inline',
|
|
344
355
|
},
|
|
345
|
-
'chat.emptyChatState.enabled': {
|
|
346
|
-
type: 'boolean',
|
|
347
|
-
default: true,
|
|
348
|
-
description: ( localize(
|
|
349
|
-
4812,
|
|
350
|
-
"Shows a modified empty chat state with hints in the input placeholder text."
|
|
351
|
-
)),
|
|
352
|
-
tags: ['experimental'],
|
|
353
|
-
experiment: {
|
|
354
|
-
mode: 'startup'
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
356
|
[ChatConfiguration.EmptyStateHistoryEnabled]: {
|
|
358
357
|
type: 'boolean',
|
|
359
358
|
default: product.quality === 'insiders',
|
|
360
|
-
description: ( localize(
|
|
359
|
+
description: ( localize(4861, "Show recent chat history on the empty chat state.")),
|
|
361
360
|
tags: ['experimental']
|
|
362
361
|
},
|
|
363
362
|
[ChatConfiguration.NotifyWindowOnResponseReceived]: {
|
|
364
363
|
type: 'boolean',
|
|
365
364
|
default: true,
|
|
366
365
|
description: ( localize(
|
|
367
|
-
|
|
366
|
+
4862,
|
|
368
367
|
"Controls whether a chat session should present the user with an OS notification when a response is received while the window is not in focus. This includes a window badge as well as notification toast."
|
|
369
368
|
)),
|
|
370
369
|
},
|
|
@@ -372,34 +371,35 @@ configurationRegistry.registerConfiguration({
|
|
|
372
371
|
type: 'boolean',
|
|
373
372
|
default: true,
|
|
374
373
|
description: ( localize(
|
|
375
|
-
|
|
374
|
+
4863,
|
|
376
375
|
"Enables checkpoints in chat. Checkpoints allow you to restore the chat to a previous state."
|
|
377
376
|
)),
|
|
378
377
|
},
|
|
379
378
|
'chat.checkpoints.showFileChanges': {
|
|
380
379
|
type: 'boolean',
|
|
381
|
-
description: ( localize(
|
|
380
|
+
description: ( localize(4864, "Controls whether to show chat checkpoint file changes.")),
|
|
382
381
|
default: false
|
|
383
382
|
},
|
|
384
383
|
[mcpAccessConfig]: {
|
|
385
384
|
type: 'string',
|
|
386
|
-
description: ( localize(
|
|
385
|
+
description: ( localize(4865, "Controls access to installed Model Context Protocol servers.")),
|
|
387
386
|
enum: [
|
|
388
387
|
McpAccessValue.None,
|
|
389
388
|
McpAccessValue.Registry,
|
|
390
389
|
McpAccessValue.All
|
|
391
390
|
],
|
|
392
391
|
enumDescriptions: [
|
|
393
|
-
( localize(
|
|
392
|
+
( localize(4866, "No access to MCP servers.")),
|
|
394
393
|
( localize(
|
|
395
|
-
|
|
394
|
+
4867,
|
|
396
395
|
"Allows access to MCP servers installed from the registry that VS Code is connected to."
|
|
397
396
|
)),
|
|
398
|
-
( localize(
|
|
397
|
+
( localize(4868, "Allow access to any installed MCP server."))
|
|
399
398
|
],
|
|
400
399
|
default: McpAccessValue.All,
|
|
401
400
|
policy: {
|
|
402
401
|
name: 'ChatMCP',
|
|
402
|
+
category: PolicyCategory.InteractiveSession,
|
|
403
403
|
minimumVersion: '1.99',
|
|
404
404
|
value: (account) => {
|
|
405
405
|
if (account.mcp === false) {
|
|
@@ -410,12 +410,32 @@ configurationRegistry.registerConfiguration({
|
|
|
410
410
|
}
|
|
411
411
|
return undefined;
|
|
412
412
|
},
|
|
413
|
+
localization: {
|
|
414
|
+
description: {
|
|
415
|
+
key: 'chat.mcp.access',
|
|
416
|
+
value: ( localize(4865, "Controls access to installed Model Context Protocol servers."))
|
|
417
|
+
},
|
|
418
|
+
enumDescriptions: [
|
|
419
|
+
{
|
|
420
|
+
key: 'chat.mcp.access.none', value: ( localize(4866, "No access to MCP servers.")),
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
key: 'chat.mcp.access.registry', value: ( localize(
|
|
424
|
+
4867,
|
|
425
|
+
"Allows access to MCP servers installed from the registry that VS Code is connected to."
|
|
426
|
+
)),
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
key: 'chat.mcp.access.any', value: ( localize(4868, "Allow access to any installed MCP server."))
|
|
430
|
+
}
|
|
431
|
+
]
|
|
432
|
+
},
|
|
413
433
|
}
|
|
414
434
|
},
|
|
415
435
|
[mcpAutoStartConfig]: {
|
|
416
436
|
type: 'string',
|
|
417
437
|
description: ( localize(
|
|
418
|
-
|
|
438
|
+
4869,
|
|
419
439
|
"Controls whether MCP servers should be automatically started when the chat messages are submitted."
|
|
420
440
|
)),
|
|
421
441
|
default: McpAutoStartValue.NewAndOutdated,
|
|
@@ -425,10 +445,10 @@ configurationRegistry.registerConfiguration({
|
|
|
425
445
|
McpAutoStartValue.NewAndOutdated
|
|
426
446
|
],
|
|
427
447
|
enumDescriptions: [
|
|
428
|
-
( localize(
|
|
429
|
-
( localize(
|
|
448
|
+
( localize(4870, "Never automatically start MCP servers.")),
|
|
449
|
+
( localize(4871, "Only automatically start new MCP servers that have never been run.")),
|
|
430
450
|
( localize(
|
|
431
|
-
|
|
451
|
+
4872,
|
|
432
452
|
"Automatically start new and outdated MCP servers that are not yet running."
|
|
433
453
|
))
|
|
434
454
|
],
|
|
@@ -437,9 +457,9 @@ configurationRegistry.registerConfiguration({
|
|
|
437
457
|
[mcpServerSamplingSection]: {
|
|
438
458
|
type: 'object',
|
|
439
459
|
description: ( localize(
|
|
440
|
-
|
|
460
|
+
4873,
|
|
441
461
|
"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.",
|
|
442
|
-
'MCP: ' + ( localize(
|
|
462
|
+
'MCP: ' + ( localize(4874, 'List Servers'))
|
|
443
463
|
)),
|
|
444
464
|
scope: ConfigurationScope.RESOURCE,
|
|
445
465
|
additionalProperties: {
|
|
@@ -448,7 +468,7 @@ configurationRegistry.registerConfiguration({
|
|
|
448
468
|
allowedDuringChat: {
|
|
449
469
|
type: 'boolean',
|
|
450
470
|
description: ( localize(
|
|
451
|
-
|
|
471
|
+
4875,
|
|
452
472
|
"Whether this server is make sampling requests during its tool calls in a chat session."
|
|
453
473
|
)),
|
|
454
474
|
default: true,
|
|
@@ -456,7 +476,7 @@ configurationRegistry.registerConfiguration({
|
|
|
456
476
|
allowedOutsideChat: {
|
|
457
477
|
type: 'boolean',
|
|
458
478
|
description: ( localize(
|
|
459
|
-
|
|
479
|
+
4876,
|
|
460
480
|
"Whether this server is allowed to make sampling requests outside of a chat session."
|
|
461
481
|
)),
|
|
462
482
|
default: false,
|
|
@@ -465,7 +485,7 @@ configurationRegistry.registerConfiguration({
|
|
|
465
485
|
type: 'array',
|
|
466
486
|
items: {
|
|
467
487
|
type: 'string',
|
|
468
|
-
description: ( localize(
|
|
488
|
+
description: ( localize(4877, "A model the MCP server has access to.")),
|
|
469
489
|
},
|
|
470
490
|
}
|
|
471
491
|
}
|
|
@@ -474,7 +494,7 @@ configurationRegistry.registerConfiguration({
|
|
|
474
494
|
[AssistedTypes[AddConfigurationType.NuGetPackage].enabledConfigKey]: {
|
|
475
495
|
type: 'boolean',
|
|
476
496
|
description: ( localize(
|
|
477
|
-
|
|
497
|
+
4878,
|
|
478
498
|
"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)."
|
|
479
499
|
)),
|
|
480
500
|
default: false,
|
|
@@ -486,45 +506,61 @@ configurationRegistry.registerConfiguration({
|
|
|
486
506
|
[ChatConfiguration.Edits2Enabled]: {
|
|
487
507
|
type: 'boolean',
|
|
488
508
|
description: ( localize(
|
|
489
|
-
|
|
509
|
+
4879,
|
|
490
510
|
"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."
|
|
491
511
|
)),
|
|
492
512
|
default: false,
|
|
493
513
|
},
|
|
494
514
|
[ChatConfiguration.ExtensionToolsEnabled]: {
|
|
495
515
|
type: 'boolean',
|
|
496
|
-
description: ( localize(
|
|
516
|
+
description: ( localize(4880, "Enable using tools contributed by third-party extensions.")),
|
|
497
517
|
default: true,
|
|
498
518
|
policy: {
|
|
499
519
|
name: 'ChatAgentExtensionTools',
|
|
520
|
+
category: PolicyCategory.InteractiveSession,
|
|
500
521
|
minimumVersion: '1.99',
|
|
501
|
-
|
|
522
|
+
localization: {
|
|
523
|
+
description: {
|
|
524
|
+
key: 'chat.extensionToolsEnabled',
|
|
525
|
+
value: ( localize(4880, "Enable using tools contributed by third-party extensions."))
|
|
526
|
+
}
|
|
527
|
+
},
|
|
502
528
|
}
|
|
503
529
|
},
|
|
504
530
|
[ChatConfiguration.AgentEnabled]: {
|
|
505
531
|
type: 'boolean',
|
|
506
532
|
description: ( localize(
|
|
507
|
-
|
|
533
|
+
4881,
|
|
508
534
|
"Enable agent mode for chat. When this is enabled, agent mode can be activated via the dropdown in the view."
|
|
509
535
|
)),
|
|
510
536
|
default: true,
|
|
511
537
|
policy: {
|
|
512
538
|
name: 'ChatAgentMode',
|
|
539
|
+
category: PolicyCategory.InteractiveSession,
|
|
513
540
|
minimumVersion: '1.99',
|
|
514
541
|
value: (account) => account.chat_agent_enabled === false ? false : undefined,
|
|
542
|
+
localization: {
|
|
543
|
+
description: {
|
|
544
|
+
key: 'chat.agent.enabled.description',
|
|
545
|
+
value: ( localize(
|
|
546
|
+
4881,
|
|
547
|
+
"Enable agent mode for chat. When this is enabled, agent mode can be activated via the dropdown in the view."
|
|
548
|
+
)),
|
|
549
|
+
}
|
|
550
|
+
}
|
|
515
551
|
}
|
|
516
552
|
},
|
|
517
553
|
[ChatConfiguration.EnableMath]: {
|
|
518
554
|
type: 'boolean',
|
|
519
|
-
description: ( localize(
|
|
555
|
+
description: ( localize(4882, "Enable math rendering in chat responses using KaTeX.")),
|
|
520
556
|
default: true,
|
|
521
557
|
tags: ['preview'],
|
|
522
558
|
},
|
|
523
559
|
[ChatConfiguration.AgentSessionsViewLocation]: {
|
|
524
560
|
type: 'string',
|
|
525
|
-
enum: ['disabled', 'view'],
|
|
526
|
-
description: ( localize(
|
|
527
|
-
default: '
|
|
561
|
+
enum: ['disabled', 'view', 'single-view'],
|
|
562
|
+
description: ( localize(4883, "Controls where to show the agent sessions menu.")),
|
|
563
|
+
default: 'view',
|
|
528
564
|
tags: ['experimental'],
|
|
529
565
|
experiment: {
|
|
530
566
|
mode: 'auto'
|
|
@@ -538,7 +574,7 @@ configurationRegistry.registerConfiguration({
|
|
|
538
574
|
additionalProperties: false,
|
|
539
575
|
default: Object.fromEntries(( allDiscoverySources.map(k => [k, false]))),
|
|
540
576
|
markdownDescription: ( localize(
|
|
541
|
-
|
|
577
|
+
4884,
|
|
542
578
|
"Configures discovery of Model Context Protocol servers from configuration from various other applications."
|
|
543
579
|
)),
|
|
544
580
|
},
|
|
@@ -547,49 +583,36 @@ configurationRegistry.registerConfiguration({
|
|
|
547
583
|
default: false,
|
|
548
584
|
tags: ['preview'],
|
|
549
585
|
description: ( localize(
|
|
550
|
-
|
|
586
|
+
4885,
|
|
551
587
|
"Enables the default Marketplace for Model Context Protocol (MCP) servers."
|
|
552
588
|
)),
|
|
553
589
|
included: product.quality === 'stable'
|
|
554
590
|
},
|
|
555
591
|
[mcpGalleryServiceUrlConfig]: {
|
|
556
592
|
type: 'string',
|
|
557
|
-
description: ( localize(
|
|
593
|
+
description: ( localize(4886, "Configure the MCP Gallery service URL to connect to")),
|
|
558
594
|
default: '',
|
|
559
595
|
scope: ConfigurationScope.APPLICATION,
|
|
560
|
-
tags: ['usesOnlineServices'],
|
|
596
|
+
tags: ['usesOnlineServices', 'advanced'],
|
|
561
597
|
included: false,
|
|
562
598
|
policy: {
|
|
563
599
|
name: 'McpGalleryServiceUrl',
|
|
600
|
+
category: PolicyCategory.InteractiveSession,
|
|
564
601
|
minimumVersion: '1.101',
|
|
565
|
-
value: (account) => account.mcpRegistryUrl
|
|
602
|
+
value: (account) => account.mcpRegistryUrl,
|
|
603
|
+
localization: {
|
|
604
|
+
description: {
|
|
605
|
+
key: 'mcp.gallery.serviceUrl',
|
|
606
|
+
value: ( localize(4886, "Configure the MCP Gallery service URL to connect to")),
|
|
607
|
+
}
|
|
608
|
+
}
|
|
566
609
|
},
|
|
567
610
|
},
|
|
568
|
-
[PromptsConfig.KEY]: {
|
|
569
|
-
type: 'boolean',
|
|
570
|
-
title: ( localize(4840, "Prompt Files")),
|
|
571
|
-
markdownDescription: ( localize(
|
|
572
|
-
4841,
|
|
573
|
-
"Enable reusable prompt (`*{0}`) and instruction files (`*{1}`) in Chat sessions. [Learn More]({2}).",
|
|
574
|
-
PROMPT_FILE_EXTENSION,
|
|
575
|
-
INSTRUCTION_FILE_EXTENSION,
|
|
576
|
-
PROMPT_DOCUMENTATION_URL
|
|
577
|
-
)),
|
|
578
|
-
default: true,
|
|
579
|
-
restricted: true,
|
|
580
|
-
disallowConfigurationDefault: true,
|
|
581
|
-
tags: ['experimental', 'prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
|
|
582
|
-
policy: {
|
|
583
|
-
name: 'ChatPromptFiles',
|
|
584
|
-
minimumVersion: '1.99',
|
|
585
|
-
description: ( localize(4842, "Enables reusable prompt and instruction files in Chat sessions."))
|
|
586
|
-
}
|
|
587
|
-
},
|
|
588
611
|
[PromptsConfig.INSTRUCTIONS_LOCATION_KEY]: {
|
|
589
612
|
type: 'object',
|
|
590
|
-
title: ( localize(
|
|
613
|
+
title: ( localize(4887, "Instructions File Locations")),
|
|
591
614
|
markdownDescription: ( localize(
|
|
592
|
-
|
|
615
|
+
4888,
|
|
593
616
|
"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.",
|
|
594
617
|
INSTRUCTION_FILE_EXTENSION,
|
|
595
618
|
INSTRUCTIONS_DOCUMENTATION_URL
|
|
@@ -599,7 +622,7 @@ configurationRegistry.registerConfiguration({
|
|
|
599
622
|
},
|
|
600
623
|
additionalProperties: { type: 'boolean' },
|
|
601
624
|
restricted: true,
|
|
602
|
-
tags: ['
|
|
625
|
+
tags: ['prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
|
|
603
626
|
examples: [
|
|
604
627
|
{
|
|
605
628
|
[INSTRUCTIONS_DEFAULT_SOURCE_FOLDER]: true,
|
|
@@ -612,9 +635,9 @@ configurationRegistry.registerConfiguration({
|
|
|
612
635
|
},
|
|
613
636
|
[PromptsConfig.PROMPT_LOCATIONS_KEY]: {
|
|
614
637
|
type: 'object',
|
|
615
|
-
title: ( localize(
|
|
638
|
+
title: ( localize(4889, "Prompt File Locations")),
|
|
616
639
|
markdownDescription: ( localize(
|
|
617
|
-
|
|
640
|
+
4890,
|
|
618
641
|
"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.",
|
|
619
642
|
PROMPT_FILE_EXTENSION,
|
|
620
643
|
PROMPT_DOCUMENTATION_URL
|
|
@@ -625,7 +648,7 @@ configurationRegistry.registerConfiguration({
|
|
|
625
648
|
additionalProperties: { type: 'boolean' },
|
|
626
649
|
unevaluatedProperties: { type: 'boolean' },
|
|
627
650
|
restricted: true,
|
|
628
|
-
tags: ['
|
|
651
|
+
tags: ['prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
|
|
629
652
|
examples: [
|
|
630
653
|
{
|
|
631
654
|
[PROMPT_DEFAULT_SOURCE_FOLDER]: true,
|
|
@@ -638,35 +661,39 @@ configurationRegistry.registerConfiguration({
|
|
|
638
661
|
},
|
|
639
662
|
[PromptsConfig.MODE_LOCATION_KEY]: {
|
|
640
663
|
type: 'object',
|
|
641
|
-
title: ( localize(
|
|
664
|
+
title: ( localize(4891, "Mode File Locations")),
|
|
642
665
|
markdownDescription: ( localize(
|
|
643
|
-
|
|
666
|
+
4892,
|
|
644
667
|
"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.",
|
|
645
|
-
|
|
646
|
-
|
|
668
|
+
LEGACY_MODE_FILE_EXTENSION,
|
|
669
|
+
AGENT_DOCUMENTATION_URL
|
|
647
670
|
)),
|
|
648
671
|
default: {
|
|
649
|
-
[
|
|
672
|
+
[LEGACY_MODE_DEFAULT_SOURCE_FOLDER]: true,
|
|
650
673
|
},
|
|
674
|
+
deprecationMessage: ( localize(
|
|
675
|
+
4893,
|
|
676
|
+
"This setting is deprecated and will be removed in future releases. Chat modes are now called custom agents and are located in `.github/agents`"
|
|
677
|
+
)),
|
|
651
678
|
additionalProperties: { type: 'boolean' },
|
|
652
679
|
unevaluatedProperties: { type: 'boolean' },
|
|
653
680
|
restricted: true,
|
|
654
681
|
tags: ['experimental', 'prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
|
|
655
682
|
examples: [
|
|
656
683
|
{
|
|
657
|
-
[
|
|
684
|
+
[LEGACY_MODE_DEFAULT_SOURCE_FOLDER]: true,
|
|
658
685
|
},
|
|
659
686
|
{
|
|
660
|
-
[
|
|
687
|
+
[LEGACY_MODE_DEFAULT_SOURCE_FOLDER]: true,
|
|
661
688
|
'/Users/vscode/repos/chatmodes': true,
|
|
662
689
|
},
|
|
663
690
|
],
|
|
664
691
|
},
|
|
665
692
|
[PromptsConfig.USE_AGENT_MD]: {
|
|
666
693
|
type: 'boolean',
|
|
667
|
-
title: ( localize(
|
|
694
|
+
title: ( localize(4894, "Use AGENTS.MD file")),
|
|
668
695
|
markdownDescription: ( localize(
|
|
669
|
-
|
|
696
|
+
4895,
|
|
670
697
|
"Controls whether instructions from `AGENTS.MD` file found in a workspace roots are added to all chat requests."
|
|
671
698
|
)),
|
|
672
699
|
default: true,
|
|
@@ -676,9 +703,9 @@ configurationRegistry.registerConfiguration({
|
|
|
676
703
|
},
|
|
677
704
|
[PromptsConfig.USE_NESTED_AGENT_MD]: {
|
|
678
705
|
type: 'boolean',
|
|
679
|
-
title: ( localize(
|
|
706
|
+
title: ( localize(4896, "Use nested AGENTS.MD files")),
|
|
680
707
|
markdownDescription: ( localize(
|
|
681
|
-
|
|
708
|
+
4897,
|
|
682
709
|
"Controls whether instructions `AGENTS.MD` files found in the workspace are listed in all chat requests."
|
|
683
710
|
)),
|
|
684
711
|
default: false,
|
|
@@ -689,9 +716,9 @@ configurationRegistry.registerConfiguration({
|
|
|
689
716
|
[PromptsConfig.PROMPT_FILES_SUGGEST_KEY]: {
|
|
690
717
|
type: 'object',
|
|
691
718
|
scope: ConfigurationScope.RESOURCE,
|
|
692
|
-
title: ( localize(
|
|
719
|
+
title: ( localize(4898, "Prompt File Recommendations")),
|
|
693
720
|
markdownDescription: ( localize(
|
|
694
|
-
|
|
721
|
+
4899,
|
|
695
722
|
"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`."
|
|
696
723
|
)),
|
|
697
724
|
default: {},
|
|
@@ -701,7 +728,7 @@ configurationRegistry.registerConfiguration({
|
|
|
701
728
|
{ type: 'string' }
|
|
702
729
|
]
|
|
703
730
|
},
|
|
704
|
-
tags: ['
|
|
731
|
+
tags: ['prompts', 'reusable prompts', 'prompt snippets', 'instructions'],
|
|
705
732
|
examples: [
|
|
706
733
|
{
|
|
707
734
|
'plan': true,
|
|
@@ -710,41 +737,13 @@ configurationRegistry.registerConfiguration({
|
|
|
710
737
|
}
|
|
711
738
|
],
|
|
712
739
|
},
|
|
713
|
-
|
|
714
|
-
type: '
|
|
715
|
-
|
|
716
|
-
description: ( localize(
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
mode: 'auto'
|
|
721
|
-
}
|
|
722
|
-
},
|
|
723
|
-
[ChatConfiguration.TodoList]: {
|
|
724
|
-
type: 'object',
|
|
725
|
-
description: ( localize(4856, "Configures the todo list widget in chat.")),
|
|
726
|
-
properties: {
|
|
727
|
-
position: {
|
|
728
|
-
type: 'string',
|
|
729
|
-
default: 'default',
|
|
730
|
-
enum: ['default', 'off', 'chat-input'],
|
|
731
|
-
enumDescriptions: [
|
|
732
|
-
( localize(4857, "Show todo list in the top of the chat panel.")),
|
|
733
|
-
( localize(
|
|
734
|
-
4858,
|
|
735
|
-
"Hide the todo list (still shows the tool calls for tracking todo progress)."
|
|
736
|
-
)),
|
|
737
|
-
( localize(4859, "Show todo list above the chat input."))
|
|
738
|
-
],
|
|
739
|
-
description: ( localize(
|
|
740
|
-
4860,
|
|
741
|
-
"Controls the position of the todo list in the chat view, which opens when the agent has created todo items and updates as it makes progress."
|
|
742
|
-
))
|
|
743
|
-
}
|
|
744
|
-
},
|
|
745
|
-
default: {
|
|
746
|
-
position: 'default'
|
|
747
|
-
},
|
|
740
|
+
[ChatConfiguration.TodosShowWidget]: {
|
|
741
|
+
type: 'boolean',
|
|
742
|
+
default: true,
|
|
743
|
+
description: ( localize(
|
|
744
|
+
4900,
|
|
745
|
+
"Controls whether to show the todo list widget above the chat input. When enabled, the widget displays todo items created by the agent and updates as progress is made."
|
|
746
|
+
)),
|
|
748
747
|
tags: ['experimental'],
|
|
749
748
|
experiment: {
|
|
750
749
|
mode: 'auto'
|
|
@@ -754,79 +753,127 @@ configurationRegistry.registerConfiguration({
|
|
|
754
753
|
type: 'boolean',
|
|
755
754
|
default: false,
|
|
756
755
|
description: ( localize(
|
|
757
|
-
|
|
756
|
+
4901,
|
|
758
757
|
"When enabled, the todo tool operates in write-only mode, requiring the agent to remember todos in context."
|
|
759
758
|
)),
|
|
760
|
-
tags: ['experimental']
|
|
759
|
+
tags: ['experimental'],
|
|
760
|
+
experiment: {
|
|
761
|
+
mode: 'auto'
|
|
762
|
+
}
|
|
761
763
|
},
|
|
762
764
|
'chat.todoListTool.descriptionField': {
|
|
763
765
|
type: 'boolean',
|
|
764
766
|
default: true,
|
|
765
767
|
description: ( localize(
|
|
766
|
-
|
|
768
|
+
4902,
|
|
767
769
|
"When enabled, todo items include detailed descriptions for implementation context. This provides more information but uses additional tokens and may slow down responses."
|
|
768
770
|
)),
|
|
769
|
-
tags: ['experimental']
|
|
771
|
+
tags: ['experimental'],
|
|
772
|
+
experiment: {
|
|
773
|
+
mode: 'auto'
|
|
774
|
+
}
|
|
770
775
|
},
|
|
771
776
|
[ChatConfiguration.ThinkingStyle]: {
|
|
772
777
|
type: 'string',
|
|
773
|
-
default:
|
|
774
|
-
enum: ['collapsed', 'collapsedPreview', '
|
|
778
|
+
default: 'fixedScrolling',
|
|
779
|
+
enum: ['collapsed', 'collapsedPreview', 'fixedScrolling'],
|
|
775
780
|
enumDescriptions: [
|
|
776
|
-
( localize(
|
|
781
|
+
( localize(4903, "Thinking parts will be collapsed by default.")),
|
|
777
782
|
( localize(
|
|
778
|
-
|
|
783
|
+
4904,
|
|
779
784
|
"Thinking parts will be expanded first, then collapse once we reach a part that is not thinking."
|
|
780
785
|
)),
|
|
781
|
-
( localize(4865, "Thinking parts will be expanded by default.")),
|
|
782
|
-
( localize(4866, "Do not show the thinking")),
|
|
783
786
|
( localize(
|
|
784
|
-
|
|
785
|
-
"
|
|
787
|
+
4905,
|
|
788
|
+
"Show thinking in a fixed-height streaming panel that auto-scrolls; click header to expand to full height."
|
|
786
789
|
)),
|
|
790
|
+
],
|
|
791
|
+
description: ( localize(4906, "Controls how thinking is rendered.")),
|
|
792
|
+
tags: ['experimental'],
|
|
793
|
+
},
|
|
794
|
+
'chat.agent.thinking.collapsedTools': {
|
|
795
|
+
type: 'string',
|
|
796
|
+
default: 'readOnly',
|
|
797
|
+
enum: ['none', 'all', 'readOnly'],
|
|
798
|
+
enumDescriptions: [
|
|
799
|
+
( localize(4907, "No tool calls are added into the collapsible thinking section.")),
|
|
800
|
+
( localize(4908, "All tool calls are added into the collapsible thinking section.")),
|
|
787
801
|
( localize(
|
|
788
|
-
|
|
789
|
-
"
|
|
802
|
+
4909,
|
|
803
|
+
"Only read-only tool calls are added into the collapsible thinking section."
|
|
790
804
|
)),
|
|
791
805
|
],
|
|
792
|
-
|
|
806
|
+
markdownDescription: ( localize(
|
|
807
|
+
4910,
|
|
808
|
+
"When enabled, tool calls are added into the collapsible thinking section according to the selected mode."
|
|
809
|
+
)),
|
|
793
810
|
tags: ['experimental'],
|
|
794
811
|
},
|
|
795
812
|
'chat.disableAIFeatures': {
|
|
796
813
|
type: 'boolean',
|
|
797
814
|
description: ( localize(
|
|
798
|
-
|
|
799
|
-
"Disable and hide built-in AI features provided by GitHub Copilot, including chat
|
|
815
|
+
4911,
|
|
816
|
+
"Disable and hide built-in AI features provided by GitHub Copilot, including chat and inline suggestions."
|
|
800
817
|
)),
|
|
801
818
|
default: false,
|
|
802
819
|
scope: ConfigurationScope.WINDOW
|
|
803
820
|
},
|
|
804
821
|
[ChatConfiguration.UseCloudButtonV2]: {
|
|
805
822
|
type: 'boolean',
|
|
806
|
-
description: ( localize(
|
|
807
|
-
default:
|
|
823
|
+
description: ( localize(4912, "Experimental implementation of 'cloud button'")),
|
|
824
|
+
default: true,
|
|
808
825
|
tags: ['experimental'],
|
|
809
826
|
},
|
|
810
827
|
[ChatConfiguration.ShowAgentSessionsViewDescription]: {
|
|
811
828
|
type: 'boolean',
|
|
812
829
|
description: ( localize(
|
|
813
|
-
|
|
830
|
+
4913,
|
|
814
831
|
"Controls whether session descriptions are displayed on a second row in the Chat Sessions view."
|
|
815
832
|
)),
|
|
816
833
|
default: true,
|
|
817
834
|
},
|
|
818
835
|
'chat.allowAnonymousAccess': {
|
|
819
836
|
type: 'boolean',
|
|
820
|
-
description: ( localize(
|
|
837
|
+
description: ( localize(4914, "Controls whether anonymous access is allowed in chat.")),
|
|
838
|
+
default: false,
|
|
839
|
+
tags: ['experimental'],
|
|
840
|
+
experiment: {
|
|
841
|
+
mode: 'auto'
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
'chat.signInWithAlternateScopes': {
|
|
845
|
+
type: 'boolean',
|
|
846
|
+
description: ( localize(4915, "Controls whether sign-in with alternate scopes is used.")),
|
|
847
|
+
default: false,
|
|
848
|
+
tags: ['experimental'],
|
|
849
|
+
experiment: {
|
|
850
|
+
mode: 'auto'
|
|
851
|
+
}
|
|
852
|
+
},
|
|
853
|
+
'chat.extensionUnification.enabled': {
|
|
854
|
+
type: 'boolean',
|
|
855
|
+
description: ( localize(
|
|
856
|
+
4916,
|
|
857
|
+
"Enables the unification of GitHub Copilot extensions. When enabled, all GitHub Copilot functionality is served from the GitHub Copilot Chat extension. When disabled, the GitHub Copilot and GitHub Copilot Chat extensions operate independently."
|
|
858
|
+
)),
|
|
821
859
|
default: false,
|
|
822
860
|
tags: ['experimental'],
|
|
823
861
|
experiment: {
|
|
824
862
|
mode: 'auto'
|
|
825
863
|
}
|
|
826
864
|
},
|
|
865
|
+
[ChatConfiguration.SubagentToolCustomAgents]: {
|
|
866
|
+
type: 'boolean',
|
|
867
|
+
description: ( localize(
|
|
868
|
+
4917,
|
|
869
|
+
"Whether the runSubagent tool is able to use custom agents. When enabled, the tool can take the name of a custom agent, but it must be given the exact name of the agent."
|
|
870
|
+
)),
|
|
871
|
+
default: false,
|
|
872
|
+
tags: ['experimental'],
|
|
873
|
+
}
|
|
827
874
|
}
|
|
828
875
|
});
|
|
829
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(
|
|
876
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4918, "Chat"))), [
|
|
830
877
|
( new SyncDescriptor(ChatEditorInput))
|
|
831
878
|
]);
|
|
832
879
|
( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([
|
|
@@ -849,25 +896,47 @@ configurationRegistry.registerConfiguration({
|
|
|
849
896
|
]);
|
|
850
897
|
let ChatResolverContribution = class ChatResolverContribution extends Disposable {
|
|
851
898
|
static { this.ID = 'workbench.contrib.chatResolver'; }
|
|
852
|
-
constructor(editorResolverService, instantiationService) {
|
|
899
|
+
constructor(chatSessionsService, editorResolverService, instantiationService) {
|
|
853
900
|
super();
|
|
854
|
-
this.
|
|
901
|
+
this.editorResolverService = editorResolverService;
|
|
902
|
+
this.instantiationService = instantiationService;
|
|
903
|
+
this._editorRegistrations = this._register(( new DisposableMap()));
|
|
904
|
+
this._registerEditor(Schemas.vscodeChatEditor);
|
|
905
|
+
this._registerEditor(Schemas.vscodeLocalChatSession);
|
|
906
|
+
this._register(chatSessionsService.onDidChangeContentProviderSchemes((e) => {
|
|
907
|
+
for (const scheme of e.added) {
|
|
908
|
+
this._registerEditor(scheme);
|
|
909
|
+
}
|
|
910
|
+
for (const scheme of e.removed) {
|
|
911
|
+
this._editorRegistrations.deleteAndDispose(scheme);
|
|
912
|
+
}
|
|
913
|
+
}));
|
|
914
|
+
for (const scheme of chatSessionsService.getContentProviderSchemes()) {
|
|
915
|
+
this._registerEditor(scheme);
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
_registerEditor(scheme) {
|
|
919
|
+
this._editorRegistrations.set(scheme, this.editorResolverService.registerEditor(`${scheme}:**/**`, {
|
|
855
920
|
id: ChatEditorInput.EditorID,
|
|
856
|
-
label: ( localize(
|
|
921
|
+
label: ( localize(4918, "Chat")),
|
|
857
922
|
priority: RegisteredEditorPriority.builtin
|
|
858
923
|
}, {
|
|
859
924
|
singlePerResource: true,
|
|
860
|
-
canSupportResource: resource => resource.scheme ===
|
|
925
|
+
canSupportResource: resource => resource.scheme === scheme,
|
|
861
926
|
}, {
|
|
862
927
|
createEditorInput: ({ resource, options }) => {
|
|
863
|
-
return {
|
|
928
|
+
return {
|
|
929
|
+
editor: this.instantiationService.createInstance(ChatEditorInput, resource, options),
|
|
930
|
+
options
|
|
931
|
+
};
|
|
864
932
|
}
|
|
865
933
|
}));
|
|
866
934
|
}
|
|
867
935
|
};
|
|
868
936
|
ChatResolverContribution = ( __decorate([
|
|
869
|
-
( __param(0,
|
|
870
|
-
( __param(1,
|
|
937
|
+
( __param(0, IChatSessionsService)),
|
|
938
|
+
( __param(1, IEditorResolverService)),
|
|
939
|
+
( __param(2, IInstantiationService))
|
|
871
940
|
], ChatResolverContribution));
|
|
872
941
|
let ChatAgentSettingContribution = class ChatAgentSettingContribution extends Disposable {
|
|
873
942
|
static { this.ID = 'workbench.contrib.chatAgentSetting'; }
|
|
@@ -887,14 +956,14 @@ let ChatAgentSettingContribution = class ChatAgentSettingContribution extends Di
|
|
|
887
956
|
const defaultValue = value ?? (this.entitlementService.entitlement === ChatEntitlement.Free ? 25 : 25);
|
|
888
957
|
const node = {
|
|
889
958
|
id: 'chatSidebar',
|
|
890
|
-
title: ( localize(
|
|
959
|
+
title: ( localize(4831, "Chat")),
|
|
891
960
|
type: 'object',
|
|
892
961
|
properties: {
|
|
893
962
|
'chat.agent.maxRequests': {
|
|
894
963
|
type: 'number',
|
|
895
964
|
markdownDescription: ( localize(
|
|
896
|
-
|
|
897
|
-
"The maximum number of requests to allow per-turn
|
|
965
|
+
4919,
|
|
966
|
+
"The maximum number of requests to allow per-turn when using an agent. When the limit is reached, will ask to confirm to continue."
|
|
898
967
|
)),
|
|
899
968
|
default: defaultValue,
|
|
900
969
|
},
|
|
@@ -923,26 +992,13 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
923
992
|
super();
|
|
924
993
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
925
994
|
command: 'clear',
|
|
926
|
-
detail: ( localize(
|
|
995
|
+
detail: ( localize(4920, "Start a new chat")),
|
|
927
996
|
sortText: 'z2_clear',
|
|
928
997
|
executeImmediately: true,
|
|
929
998
|
locations: [ChatAgentLocation.Chat]
|
|
930
999
|
}, async () => {
|
|
931
1000
|
commandService.executeCommand(ACTION_ID_NEW_CHAT);
|
|
932
1001
|
}));
|
|
933
|
-
this._store.add(slashCommandService.registerSlashCommand({
|
|
934
|
-
command: SAVE_TO_PROMPT_SLASH_COMMAND_NAME,
|
|
935
|
-
detail: ( localize(4877, "Save chat to a prompt file")),
|
|
936
|
-
sortText: `z3_${SAVE_TO_PROMPT_SLASH_COMMAND_NAME}`,
|
|
937
|
-
executeImmediately: true,
|
|
938
|
-
silent: true,
|
|
939
|
-
locations: [ChatAgentLocation.Chat]
|
|
940
|
-
}, async () => {
|
|
941
|
-
const { lastFocusedWidget } = chatWidgetService;
|
|
942
|
-
assertDefined(lastFocusedWidget, 'No currently active chat widget found.');
|
|
943
|
-
const options = { chat: lastFocusedWidget };
|
|
944
|
-
return commandService.executeCommand(SAVE_TO_PROMPT_ACTION_ID, options);
|
|
945
|
-
}));
|
|
946
1002
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
947
1003
|
command: 'help',
|
|
948
1004
|
detail: '',
|
|
@@ -1022,7 +1078,9 @@ registerWorkbenchContribution2(ChatTransferContribution.ID, ChatTransferContribu
|
|
|
1022
1078
|
registerWorkbenchContribution2(ChatContextContributions.ID, ChatContextContributions, WorkbenchPhase.AfterRestored);
|
|
1023
1079
|
registerWorkbenchContribution2(ChatResponseResourceFileSystemProvider.ID, ChatResponseResourceFileSystemProvider, WorkbenchPhase.AfterRestored);
|
|
1024
1080
|
registerWorkbenchContribution2(PromptUrlHandler.ID, PromptUrlHandler, WorkbenchPhase.BlockRestore);
|
|
1025
|
-
registerWorkbenchContribution2(
|
|
1081
|
+
registerWorkbenchContribution2(LocalChatSessionsProvider.ID, LocalChatSessionsProvider, WorkbenchPhase.AfterRestored);
|
|
1082
|
+
registerWorkbenchContribution2(ChatSessionsViewContrib.ID, ChatSessionsViewContrib, WorkbenchPhase.AfterRestored);
|
|
1083
|
+
registerWorkbenchContribution2(ChatSessionsView.ID, ChatSessionsView, WorkbenchPhase.BlockRestore);
|
|
1026
1084
|
registerWorkbenchContribution2(ChatEditingNotebookFileSystemProviderContrib.ID, ChatEditingNotebookFileSystemProviderContrib, WorkbenchPhase.BlockStartup);
|
|
1027
1085
|
registerWorkbenchContribution2(UserToolSetsContributions.ID, UserToolSetsContributions, WorkbenchPhase.Eventually);
|
|
1028
1086
|
registerWorkbenchContribution2(PromptLanguageFeaturesProvider.ID, PromptLanguageFeaturesProvider, WorkbenchPhase.Eventually);
|
|
@@ -1053,4 +1111,5 @@ registerAction2(OpenChatSessionInNewEditorGroupAction);
|
|
|
1053
1111
|
registerAction2(OpenChatSessionInSidebarAction);
|
|
1054
1112
|
registerAction2(ToggleChatSessionsDescriptionDisplayAction);
|
|
1055
1113
|
registerAction2(ChatSessionsGettingStartedAction);
|
|
1114
|
+
registerAction2(ToggleAgentSessionsViewLocationAction);
|
|
1056
1115
|
ChatWidget.CONTRIBS.push(ChatDynamicVariableModel);
|