@codingame/monaco-vscode-chat-service-override 23.2.2 → 24.1.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 +13 -10
- package/package.json +5 -41
- package/vscode/src/vs/platform/domWidget/browser/domWidget.d.ts +52 -0
- package/vscode/src/vs/platform/domWidget/browser/domWidget.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +61 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +152 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +37 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +9 -9
- 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.d.ts +3 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +7 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +12 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +21 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +27 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.d.ts +6 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +44 -208
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +17 -17
- 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 +23 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +140 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +358 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +222 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +241 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.d.ts +11 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.js +67 -230
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +65 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +186 -62
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.js +140 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsview.css +2 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +115 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +389 -166
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +9 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +22 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +8 -8
- 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 +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.js +63 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimeline.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +173 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +66 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +32 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +9 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +8 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +12 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +5 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +15 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +13 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +66 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +6 -7
- 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 +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +15 -4
- 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 +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +30 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +13 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +23 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +20 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +47 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +270 -143
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +310 -170
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +12 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +42 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +35 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.d.ts +1 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.js +22 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.d.ts +18 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js +80 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.d.ts +2 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.js +48 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.d.ts +16 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +257 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatSetup.d.ts → chatSetup/chatSetupContributions.d.ts} +4 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +622 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +359 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +89 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +667 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +260 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/chatSetup.css +4 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatus.js → chatStatus/chatStatusDashboard.js} +193 -325
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatus.d.ts → chatStatus/chatStatusEntry.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +190 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatusItemService.d.ts → chatStatus/chatStatusItemService.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatStatus/media}/chatStatus.css +22 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusWidget.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusWidget.js +108 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTerminalOutputAccessibleView.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTerminalOutputAccessibleView.js +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +57 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +478 -146
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewTitleControl.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewTitleControl.js +204 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidgetService.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidgetService.js +187 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +108 -62
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.js +37 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +37 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +232 -97
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatStatusWidget.css +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewPane.css +142 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewTitleControl.css +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +51 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +19 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModelStore.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModelStore.js +100 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatResponseResourceFileSystemProvider.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +41 -15
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +208 -162
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.d.ts +15 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +61 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +60 -43
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +27 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +37 -47
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +120 -87
- 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 +49 -42
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +293 -187
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +17 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +43 -9
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +48 -29
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +8 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +36 -41
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +2 -2
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +18 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +142 -38
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +3 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +19 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +78 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +7 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +26 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +9 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +23 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +4 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +26 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +32 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +15 -29
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +10 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +38 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +32 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +5 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +4 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +4 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +128 -62
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +12 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +68 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +20 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +13 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +20 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +72 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +5 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.d.ts +0 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.js +0 -154
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +0 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.js +0 -135
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.d.ts +0 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.js +0 -216
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +0 -1617
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.d.ts +0 -44
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +0 -313
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/apple-dark.svg +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/apple-light.svg +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/github.svg +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/google.svg +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatusItemService.js → chatStatus/chatStatusItemService.js} +0 -0
|
@@ -16,10 +16,10 @@ import { Extensions, ConfigurationScope } from '@codingame/monaco-vscode-api/vsc
|
|
|
16
16
|
import { SyncDescriptor } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/descriptors';
|
|
17
17
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
18
18
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
19
|
-
import { mcpGalleryServiceUrlConfig, mcpGalleryServiceEnablementConfig, mcpAutoStartConfig, McpAutoStartValue, mcpAccessConfig, McpAccessValue } from '@codingame/monaco-vscode-
|
|
19
|
+
import { mcpGalleryServiceUrlConfig, mcpGalleryServiceEnablementConfig, mcpAutoStartConfig, McpAutoStartValue, mcpAccessConfig, McpAccessValue } from '@codingame/monaco-vscode-api/vscode/vs/platform/mcp/common/mcpManagement';
|
|
20
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
|
-
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-
|
|
22
|
+
import { EditorPaneDescriptor } from '@codingame/monaco-vscode-api/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';
|
|
@@ -28,12 +28,13 @@ import { ChatEntitlement } from '@codingame/monaco-vscode-api/vscode/vs/workbenc
|
|
|
28
28
|
import { IChatEntitlementService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service';
|
|
29
29
|
import { RegisteredEditorPriority } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService';
|
|
30
30
|
import { IEditorResolverService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorResolverService.service';
|
|
31
|
-
import { AssistedTypes, AddConfigurationType } from '@codingame/monaco-vscode-
|
|
32
|
-
import { mcpDiscoverySection, allDiscoverySources, discoverySourceSettingsLabel, mcpServerSamplingSection } from '@codingame/monaco-vscode-
|
|
33
|
-
import '@codingame/monaco-vscode-
|
|
31
|
+
import { AssistedTypes, AddConfigurationType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/browser/mcpCommandsAddConfiguration';
|
|
32
|
+
import { mcpDiscoverySection, allDiscoverySources, discoverySourceSettingsLabel, mcpServerSamplingSection } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/mcp/common/mcpConfiguration';
|
|
33
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents';
|
|
34
34
|
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
35
|
-
import '@codingame/monaco-vscode-
|
|
36
|
-
import '@codingame/monaco-vscode-
|
|
35
|
+
import '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/common/chatColors';
|
|
36
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes';
|
|
37
|
+
import { IChatModeService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes.service';
|
|
37
38
|
import { ChatResponseResourceFileSystemProvider } from '../common/chatResponseResourceFileSystemProvider.js';
|
|
38
39
|
import '../common/chatServiceImpl.js';
|
|
39
40
|
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
@@ -41,28 +42,30 @@ import '../common/chatSlashCommands.js';
|
|
|
41
42
|
import { IChatSlashCommandService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSlashCommands.service';
|
|
42
43
|
import '../common/chatTodoListService.js';
|
|
43
44
|
import '../common/chatTransferService.js';
|
|
44
|
-
import '@codingame/monaco-vscode-
|
|
45
|
+
import '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/common/chatWidgetHistoryService';
|
|
45
46
|
import { ChatConfiguration, ChatAgentLocation, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
46
47
|
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModels';
|
|
47
|
-
import '@codingame/monaco-vscode-
|
|
48
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelStats';
|
|
49
|
+
import { ILanguageModelToolsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/languageModelToolsService.service';
|
|
48
50
|
import { ChatPromptFilesExtensionPointHandler } from '../common/promptSyntax/chatPromptFilesContribution.js';
|
|
49
|
-
import { PromptsConfig } from '@codingame/monaco-vscode-
|
|
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-
|
|
51
|
+
import { PromptsConfig } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/config';
|
|
52
|
+
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-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations';
|
|
51
53
|
import { PromptLanguageFeaturesProvider } from '../common/promptSyntax/promptFileContributions.js';
|
|
52
|
-
import { AGENT_DOCUMENTATION_URL, PROMPT_DOCUMENTATION_URL, INSTRUCTIONS_DOCUMENTATION_URL } from '@codingame/monaco-vscode-
|
|
54
|
+
import { AGENT_DOCUMENTATION_URL, PROMPT_DOCUMENTATION_URL, INSTRUCTIONS_DOCUMENTATION_URL } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
|
|
53
55
|
import '../common/promptSyntax/service/promptsServiceImpl.js';
|
|
54
56
|
import { LanguageModelToolsExtensionPointHandler } from '../common/tools/languageModelToolsContribution.js';
|
|
55
57
|
import { BuiltinToolsContribution } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/tools';
|
|
56
58
|
import '../common/voiceChatService.js';
|
|
57
59
|
import { registerChatAccessibilityActions } from './actions/chatAccessibilityActions.js';
|
|
58
60
|
import { PanelChatAccessibilityHelp, QuickChatAccessibilityHelp, EditsChatAccessibilityHelp, AgentChatAccessibilityHelp } from './actions/chatAccessibilityHelp.js';
|
|
59
|
-
import { ACTION_ID_NEW_CHAT, CopilotTitleBarMenuRendering, registerChatActions } from '@codingame/monaco-vscode-
|
|
61
|
+
import { ModeOpenChatGlobalAction, ACTION_ID_NEW_CHAT, CopilotTitleBarMenuRendering, registerChatActions } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
60
62
|
import { CodeBlockActionRendering, registerChatCodeBlockActions, registerChatCodeCompareBlockActions } from './actions/chatCodeblockActions.js';
|
|
61
|
-
import { ChatContextContributions } from '@codingame/monaco-vscode-
|
|
63
|
+
import { ChatContextContributions } from '@codingame/monaco-vscode-xterm-addons-common/vscode/vs/workbench/contrib/chat/browser/actions/chatContext';
|
|
62
64
|
import { registerChatContextActions } from './actions/chatContextActions.js';
|
|
65
|
+
import { ContinueChatInSessionActionRendering } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/actions/chatContinueInAction';
|
|
63
66
|
import { registerChatCopyActions } from './actions/chatCopyActions.js';
|
|
64
67
|
import { registerChatDeveloperActions } from './actions/chatDeveloperActions.js';
|
|
65
|
-
import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-
|
|
68
|
+
import { ChatSubmitAction, registerChatExecuteActions } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
|
|
66
69
|
import { registerChatFileTreeActions } from './actions/chatFileTreeActions.js';
|
|
67
70
|
import { ChatGettingStartedContribution } from './actions/chatGettingStarted.js';
|
|
68
71
|
import { registerChatExportActions } from './actions/chatImportExport.js';
|
|
@@ -71,14 +74,17 @@ import { registerMoveActions } from './actions/chatMoveActions.js';
|
|
|
71
74
|
import { registerNewChatActions } from './actions/chatNewActions.js';
|
|
72
75
|
import { registerChatPromptNavigationActions } from './actions/chatPromptNavigationActions.js';
|
|
73
76
|
import { registerQuickChatActions } from './actions/chatQuickInputActions.js';
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
77
|
+
import { ChatAgentRecommendation } from './actions/chatAgentRecommendationActions.js';
|
|
78
|
+
import { RenameChatSessionAction, DeleteChatSessionAction, OpenChatSessionInSidebarAction, ToggleChatSessionsDescriptionDisplayAction, ToggleAgentSessionsViewLocationAction } from './actions/chatSessionActions.js';
|
|
79
|
+
import { registerChatTitleActions } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/actions/chatTitleActions';
|
|
80
|
+
import { registerChatElicitationActions } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/actions/chatElicitationActions';
|
|
76
81
|
import { registerChatToolActions } from './actions/chatToolActions.js';
|
|
77
82
|
import { ChatTransferContribution } from './actions/chatTransfer.js';
|
|
78
|
-
import './agentSessions/
|
|
83
|
+
import './agentSessions/agentSessions.contribution.js';
|
|
79
84
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
80
85
|
import './chatAccessibilityService.js';
|
|
81
|
-
import '@codingame/monaco-vscode-
|
|
86
|
+
import '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatAttachmentModel';
|
|
87
|
+
import './chatStatusWidget.js';
|
|
82
88
|
import './chatAttachmentResolveService.js';
|
|
83
89
|
import '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
84
90
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation';
|
|
@@ -94,27 +100,27 @@ import './chatEditing/chatEditingServiceImpl.js';
|
|
|
94
100
|
import { ChatEditingNotebookFileSystemProviderContrib } from './chatEditing/notebook/chatEditingNotebookFileSystemProvider.js';
|
|
95
101
|
import { SimpleBrowserOverlay } from './chatEditing/simpleBrowserEditorOverlay.js';
|
|
96
102
|
import { ChatEditor } from './chatEditor.js';
|
|
97
|
-
import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-
|
|
103
|
+
import { ChatEditorInput, ChatEditorInputSerializer } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
98
104
|
import './chatLayoutService.js';
|
|
99
105
|
import './chatManagement/chatManagement.contribution.js';
|
|
100
|
-
import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-
|
|
106
|
+
import { agentToMarkdown, agentSlashCommandToMarkdown } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatMarkdownDecorationsRenderer';
|
|
101
107
|
import './chatOutputItemRenderer.js';
|
|
102
108
|
import { ChatExtensionPointHandler, ChatCompatibilityNotifier } from './chatParticipant.contribution.js';
|
|
103
|
-
import { ChatPasteProvidersFeature } from '@codingame/monaco-vscode-
|
|
109
|
+
import { ChatPasteProvidersFeature } from '@codingame/monaco-vscode-xterm-addons-common/vscode/vs/workbench/contrib/chat/browser/chatPasteProviders';
|
|
104
110
|
import './chatQuick.js';
|
|
105
111
|
import { ChatResponseAccessibleView } from './chatResponseAccessibleView.js';
|
|
106
|
-
import {
|
|
112
|
+
import { ChatTerminalOutputAccessibleView } from './chatTerminalOutputAccessibleView.js';
|
|
107
113
|
import { ChatSessionsViewContrib, ChatSessionsView } from './chatSessions/view/chatSessionsView.js';
|
|
108
|
-
import { ChatSetupContribution, ChatTeardownContribution } from './chatSetup.js';
|
|
109
|
-
import { ChatStatusBarEntry } from './chatStatus.js';
|
|
114
|
+
import { ChatSetupContribution, ChatTeardownContribution } from './chatSetup/chatSetupContributions.js';
|
|
115
|
+
import { ChatStatusBarEntry } from './chatStatus/chatStatusEntry.js';
|
|
110
116
|
import './chatVariables.js';
|
|
111
|
-
import { ChatWidget } from '@codingame/monaco-vscode-
|
|
112
|
-
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-
|
|
113
|
-
import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-
|
|
114
|
-
import '@codingame/monaco-vscode-
|
|
117
|
+
import { ChatWidget } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
|
|
118
|
+
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/contrib/chatDynamicVariables';
|
|
119
|
+
import { ChatImplicitContextContribution } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatImplicitContext';
|
|
120
|
+
import '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputCompletions';
|
|
115
121
|
import './contrib/chatInputEditorContrib.js';
|
|
116
122
|
import './contrib/chatInputEditorHover.js';
|
|
117
|
-
import { ChatRelatedFilesContribution } from '@codingame/monaco-vscode-
|
|
123
|
+
import { ChatRelatedFilesContribution } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/contrib/chatInputRelatedFilesContrib';
|
|
118
124
|
import './languageModelToolsConfirmationService.js';
|
|
119
125
|
import { globalAutoApproveDescription } from './languageModelToolsService.js';
|
|
120
126
|
import './promptSyntax/promptCodingAgentActionContribution.js';
|
|
@@ -122,50 +128,53 @@ import './promptSyntax/promptToolsCodeLensProvider.js';
|
|
|
122
128
|
import { PromptUrlHandler } from './promptSyntax/promptUrlHandler.js';
|
|
123
129
|
import { UserToolSetsContributions, ConfigureToolSets } from './tools/toolSetsContribution.js';
|
|
124
130
|
import { ChatViewsWelcomeHandler } from './viewsWelcome/chatViewsWelcomeHandler.js';
|
|
131
|
+
import './chatWidgetService.js';
|
|
125
132
|
|
|
133
|
+
const toolReferenceNameEnumValues = [];
|
|
134
|
+
const toolReferenceNameEnumDescriptions = [];
|
|
126
135
|
const configurationRegistry = ( Registry.as(Extensions.Configuration));
|
|
127
136
|
configurationRegistry.registerConfiguration({
|
|
128
137
|
id: 'chatSidebar',
|
|
129
|
-
title: ( localize(
|
|
138
|
+
title: ( localize(4884, "Chat")),
|
|
130
139
|
type: 'object',
|
|
131
140
|
properties: {
|
|
132
141
|
'chat.fontSize': {
|
|
133
142
|
type: 'number',
|
|
134
|
-
description: ( localize(
|
|
143
|
+
description: ( localize(4885, "Controls the font size in pixels in chat messages.")),
|
|
135
144
|
default: 13,
|
|
136
145
|
minimum: 6,
|
|
137
146
|
maximum: 100
|
|
138
147
|
},
|
|
139
148
|
'chat.fontFamily': {
|
|
140
149
|
type: 'string',
|
|
141
|
-
description: ( localize(
|
|
150
|
+
description: ( localize(4886, "Controls the font family in chat messages.")),
|
|
142
151
|
default: 'default'
|
|
143
152
|
},
|
|
144
153
|
'chat.editor.fontSize': {
|
|
145
154
|
type: 'number',
|
|
146
|
-
description: ( localize(
|
|
155
|
+
description: ( localize(4887, "Controls the font size in pixels in chat codeblocks.")),
|
|
147
156
|
default: isMacintosh ? 12 : 14,
|
|
148
157
|
},
|
|
149
158
|
'chat.editor.fontFamily': {
|
|
150
159
|
type: 'string',
|
|
151
|
-
description: ( localize(
|
|
160
|
+
description: ( localize(4888, "Controls the font family in chat codeblocks.")),
|
|
152
161
|
default: 'default'
|
|
153
162
|
},
|
|
154
163
|
'chat.editor.fontWeight': {
|
|
155
164
|
type: 'string',
|
|
156
|
-
description: ( localize(
|
|
165
|
+
description: ( localize(4889, "Controls the font weight in chat codeblocks.")),
|
|
157
166
|
default: 'default'
|
|
158
167
|
},
|
|
159
168
|
'chat.editor.wordWrap': {
|
|
160
169
|
type: 'string',
|
|
161
|
-
description: ( localize(
|
|
170
|
+
description: ( localize(4890, "Controls whether lines should wrap in chat codeblocks.")),
|
|
162
171
|
default: 'off',
|
|
163
172
|
enum: ['on', 'off']
|
|
164
173
|
},
|
|
165
174
|
'chat.editor.lineHeight': {
|
|
166
175
|
type: 'number',
|
|
167
176
|
description: ( localize(
|
|
168
|
-
|
|
177
|
+
4891,
|
|
169
178
|
"Controls the line height in pixels in chat codeblocks. Use 0 to compute the line height from the font size."
|
|
170
179
|
)),
|
|
171
180
|
default: 0
|
|
@@ -173,7 +182,7 @@ configurationRegistry.registerConfiguration({
|
|
|
173
182
|
'chat.commandCenter.enabled': {
|
|
174
183
|
type: 'boolean',
|
|
175
184
|
markdownDescription: ( localize(
|
|
176
|
-
|
|
185
|
+
4892,
|
|
177
186
|
"Controls whether the command center shows a menu for actions to control chat (requires {0}).",
|
|
178
187
|
'`#window.commandCenter#`'
|
|
179
188
|
)),
|
|
@@ -181,19 +190,18 @@ configurationRegistry.registerConfiguration({
|
|
|
181
190
|
},
|
|
182
191
|
'chat.implicitContext.enabled': {
|
|
183
192
|
type: 'object',
|
|
184
|
-
tags: ['experimental'],
|
|
185
193
|
description: ( localize(
|
|
186
|
-
|
|
194
|
+
4893,
|
|
187
195
|
"Enables automatically using the active editor as chat context for specified chat locations."
|
|
188
196
|
)),
|
|
189
197
|
additionalProperties: {
|
|
190
198
|
type: 'string',
|
|
191
199
|
enum: ['never', 'first', 'always'],
|
|
192
|
-
description: ( localize(
|
|
200
|
+
description: ( localize(4894, "The value for the implicit context.")),
|
|
193
201
|
enumDescriptions: [
|
|
194
|
-
( localize(
|
|
195
|
-
( localize(
|
|
196
|
-
( localize(
|
|
202
|
+
( localize(4895, "Implicit context is never enabled.")),
|
|
203
|
+
( localize(4896, "Implicit context is enabled for the first interaction.")),
|
|
204
|
+
( localize(4897, "Implicit context is always enabled."))
|
|
197
205
|
]
|
|
198
206
|
},
|
|
199
207
|
default: {
|
|
@@ -202,9 +210,8 @@ configurationRegistry.registerConfiguration({
|
|
|
202
210
|
},
|
|
203
211
|
'chat.implicitContext.suggestedContext': {
|
|
204
212
|
type: 'boolean',
|
|
205
|
-
tags: ['experimental'],
|
|
206
213
|
markdownDescription: ( localize(
|
|
207
|
-
|
|
214
|
+
4898,
|
|
208
215
|
"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."
|
|
209
216
|
)),
|
|
210
217
|
default: true,
|
|
@@ -212,7 +219,7 @@ configurationRegistry.registerConfiguration({
|
|
|
212
219
|
'chat.editing.autoAcceptDelay': {
|
|
213
220
|
type: 'number',
|
|
214
221
|
markdownDescription: ( localize(
|
|
215
|
-
|
|
222
|
+
4899,
|
|
216
223
|
"Delay after which changes made by chat are automatically accepted. Values are in seconds, `0` means disabled and `100` seconds is the maximum."
|
|
217
224
|
)),
|
|
218
225
|
default: 0,
|
|
@@ -223,7 +230,7 @@ configurationRegistry.registerConfiguration({
|
|
|
223
230
|
type: 'boolean',
|
|
224
231
|
scope: ConfigurationScope.APPLICATION,
|
|
225
232
|
markdownDescription: ( localize(
|
|
226
|
-
|
|
233
|
+
4900,
|
|
227
234
|
"Whether to show a confirmation before removing a request and its associated edits."
|
|
228
235
|
)),
|
|
229
236
|
default: true,
|
|
@@ -232,7 +239,7 @@ configurationRegistry.registerConfiguration({
|
|
|
232
239
|
type: 'boolean',
|
|
233
240
|
scope: ConfigurationScope.APPLICATION,
|
|
234
241
|
markdownDescription: ( localize(
|
|
235
|
-
|
|
242
|
+
4901,
|
|
236
243
|
"Whether to show a confirmation before retrying a request and its associated edits."
|
|
237
244
|
)),
|
|
238
245
|
default: true,
|
|
@@ -240,21 +247,21 @@ configurationRegistry.registerConfiguration({
|
|
|
240
247
|
'chat.experimental.detectParticipant.enabled': {
|
|
241
248
|
type: 'boolean',
|
|
242
249
|
deprecationMessage: ( localize(
|
|
243
|
-
|
|
250
|
+
4902,
|
|
244
251
|
"This setting is deprecated. Please use `chat.detectParticipant.enabled` instead."
|
|
245
252
|
)),
|
|
246
|
-
description: ( localize(
|
|
253
|
+
description: ( localize(4903, "Enables chat participant autodetection for panel chat.")),
|
|
247
254
|
default: null
|
|
248
255
|
},
|
|
249
256
|
'chat.detectParticipant.enabled': {
|
|
250
257
|
type: 'boolean',
|
|
251
|
-
description: ( localize(
|
|
258
|
+
description: ( localize(4904, "Enables chat participant autodetection for panel chat.")),
|
|
252
259
|
default: true
|
|
253
260
|
},
|
|
254
261
|
'chat.renderRelatedFiles': {
|
|
255
262
|
type: 'boolean',
|
|
256
263
|
description: ( localize(
|
|
257
|
-
|
|
264
|
+
4905,
|
|
258
265
|
"Controls whether related files should be rendered in the chat input."
|
|
259
266
|
)),
|
|
260
267
|
default: false
|
|
@@ -262,7 +269,7 @@ configurationRegistry.registerConfiguration({
|
|
|
262
269
|
'chat.notifyWindowOnConfirmation': {
|
|
263
270
|
type: 'boolean',
|
|
264
271
|
description: ( localize(
|
|
265
|
-
|
|
272
|
+
4906,
|
|
266
273
|
"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."
|
|
267
274
|
)),
|
|
268
275
|
default: true,
|
|
@@ -282,7 +289,7 @@ configurationRegistry.registerConfiguration({
|
|
|
282
289
|
description: {
|
|
283
290
|
key: 'autoApprove2.description',
|
|
284
291
|
value: ( localize(
|
|
285
|
-
|
|
292
|
+
4907,
|
|
286
293
|
'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
294
|
))
|
|
288
295
|
}
|
|
@@ -298,7 +305,7 @@ configurationRegistry.registerConfiguration({
|
|
|
298
305
|
'**/*.{code-workspace,csproj,fsproj,vbproj,vcxproj,proj,targets,props}': false,
|
|
299
306
|
},
|
|
300
307
|
markdownDescription: ( localize(
|
|
301
|
-
|
|
308
|
+
4908,
|
|
302
309
|
"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."
|
|
303
310
|
)),
|
|
304
311
|
type: 'object',
|
|
@@ -306,13 +313,37 @@ configurationRegistry.registerConfiguration({
|
|
|
306
313
|
type: 'boolean',
|
|
307
314
|
}
|
|
308
315
|
},
|
|
316
|
+
[ChatConfiguration.AutoApprovedUrls]: {
|
|
317
|
+
default: {},
|
|
318
|
+
markdownDescription: ( localize(
|
|
319
|
+
4909,
|
|
320
|
+
"Controls which URLs are automatically approved when requested by chat tools. Keys are URL patterns and values can be `true` to approve both requests and responses, `false` to deny, or an object with `approveRequest` and `approveResponse` properties for granular control.\n\nExamples:\n- `\"https://example.com\": true` - Approve all requests to example.com\n- `\"https://*.example.com\": true` - Approve all requests to any subdomain of example.com\n- `\"https://example.com/api/*\": { \"approveRequest\": true, \"approveResponse\": false }` - Approve requests but not responses for example.com/api paths"
|
|
321
|
+
)),
|
|
322
|
+
type: 'object',
|
|
323
|
+
additionalProperties: {
|
|
324
|
+
oneOf: [
|
|
325
|
+
{ type: 'boolean' },
|
|
326
|
+
{
|
|
327
|
+
type: 'object',
|
|
328
|
+
properties: {
|
|
329
|
+
approveRequest: { type: 'boolean' },
|
|
330
|
+
approveResponse: { type: 'boolean' }
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
}
|
|
335
|
+
},
|
|
309
336
|
[ChatConfiguration.EligibleForAutoApproval]: {
|
|
310
337
|
default: {},
|
|
311
338
|
markdownDescription: ( localize(
|
|
312
|
-
|
|
339
|
+
4910,
|
|
313
340
|
'Controls which tools are eligible for automatic approval. Tools set to \'false\' will always present a confirmation and will never offer the option to auto-approve. The default behavior (or setting a tool to \'true\') may result in the tool offering auto-approval options.'
|
|
314
341
|
)),
|
|
315
342
|
type: 'object',
|
|
343
|
+
propertyNames: {
|
|
344
|
+
enum: toolReferenceNameEnumValues,
|
|
345
|
+
enumDescriptions: toolReferenceNameEnumDescriptions,
|
|
346
|
+
},
|
|
316
347
|
additionalProperties: {
|
|
317
348
|
type: 'boolean',
|
|
318
349
|
},
|
|
@@ -326,41 +357,50 @@ configurationRegistry.registerConfiguration({
|
|
|
326
357
|
policy: {
|
|
327
358
|
name: 'ChatToolsEligibleForAutoApproval',
|
|
328
359
|
category: PolicyCategory.InteractiveSession,
|
|
329
|
-
minimumVersion: '1.
|
|
360
|
+
minimumVersion: '1.107',
|
|
330
361
|
localization: {
|
|
331
362
|
description: {
|
|
332
363
|
key: 'chat.tools.eligibleForAutoApproval',
|
|
333
364
|
value: ( localize(
|
|
334
|
-
|
|
365
|
+
4910,
|
|
335
366
|
'Controls which tools are eligible for automatic approval. Tools set to \'false\' will always present a confirmation and will never offer the option to auto-approve. The default behavior (or setting a tool to \'true\') may result in the tool offering auto-approval options.'
|
|
336
367
|
))
|
|
337
368
|
}
|
|
338
369
|
},
|
|
339
370
|
}
|
|
340
371
|
},
|
|
372
|
+
[ChatConfiguration.SuspendThrottling]: {
|
|
373
|
+
type: 'boolean',
|
|
374
|
+
description: ( localize(
|
|
375
|
+
4911,
|
|
376
|
+
"Controls whether background throttling is suspended when a chat request is in progress, allowing the chat session to continue even when the window is not in focus."
|
|
377
|
+
)),
|
|
378
|
+
default: true,
|
|
379
|
+
tags: ['preview']
|
|
380
|
+
},
|
|
341
381
|
'chat.sendElementsToChat.enabled': {
|
|
342
382
|
default: true,
|
|
343
383
|
description: ( localize(
|
|
344
|
-
|
|
384
|
+
4912,
|
|
345
385
|
"Controls whether elements can be sent to chat from the Simple Browser."
|
|
346
386
|
)),
|
|
347
387
|
type: 'boolean',
|
|
348
|
-
tags: ['
|
|
388
|
+
tags: ['preview']
|
|
349
389
|
},
|
|
350
390
|
'chat.sendElementsToChat.attachCSS': {
|
|
351
391
|
default: true,
|
|
352
392
|
markdownDescription: ( localize(
|
|
353
|
-
|
|
393
|
+
4913,
|
|
354
394
|
"Controls whether CSS of the selected element will be added to the chat. {0} must be enabled.",
|
|
355
395
|
'`#chat.sendElementsToChat.enabled#`'
|
|
356
396
|
)),
|
|
357
397
|
type: 'boolean',
|
|
358
|
-
tags: ['
|
|
398
|
+
tags: ['preview']
|
|
359
399
|
},
|
|
360
400
|
'chat.sendElementsToChat.attachImages': {
|
|
361
401
|
default: true,
|
|
362
402
|
markdownDescription: ( localize(
|
|
363
|
-
|
|
403
|
+
4914,
|
|
364
404
|
"Controls whether a screenshot of the selected element will be added to the chat. {0} must be enabled.",
|
|
365
405
|
'`#chat.sendElementsToChat.enabled#`'
|
|
366
406
|
)),
|
|
@@ -370,32 +410,75 @@ configurationRegistry.registerConfiguration({
|
|
|
370
410
|
'chat.undoRequests.restoreInput': {
|
|
371
411
|
default: true,
|
|
372
412
|
markdownDescription: ( localize(
|
|
373
|
-
|
|
413
|
+
4915,
|
|
374
414
|
"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."
|
|
375
415
|
)),
|
|
376
416
|
type: 'boolean',
|
|
377
|
-
tags: ['experimental']
|
|
378
417
|
},
|
|
379
418
|
'chat.editRequests': {
|
|
380
419
|
markdownDescription: ( localize(
|
|
381
|
-
|
|
420
|
+
4916,
|
|
382
421
|
"Enables editing of requests in the chat. This allows you to change the request content and resubmit it to the model."
|
|
383
422
|
)),
|
|
384
423
|
type: 'string',
|
|
385
424
|
enum: ['inline', 'hover', 'input', 'none'],
|
|
386
425
|
default: 'inline',
|
|
387
426
|
},
|
|
388
|
-
[ChatConfiguration.
|
|
427
|
+
[ChatConfiguration.ChatViewWelcomeEnabled]: {
|
|
389
428
|
type: 'boolean',
|
|
390
|
-
default:
|
|
391
|
-
description: ( localize(
|
|
392
|
-
|
|
429
|
+
default: true,
|
|
430
|
+
description: ( localize(4917, "Show welcome banner when chat is empty.")),
|
|
431
|
+
},
|
|
432
|
+
[ChatConfiguration.ChatViewSessionsEnabled]: {
|
|
433
|
+
type: 'boolean',
|
|
434
|
+
default: true,
|
|
435
|
+
description: ( localize(
|
|
436
|
+
4918,
|
|
437
|
+
"Show chat agent sessions when chat is empty or to the side when chat view is wide enough."
|
|
438
|
+
)),
|
|
439
|
+
tags: ['preview', 'experimental'],
|
|
440
|
+
experiment: {
|
|
441
|
+
mode: 'auto'
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
[ChatConfiguration.ChatViewSessionsOrientation]: {
|
|
445
|
+
type: 'string',
|
|
446
|
+
enum: ['auto', 'stacked', 'sideBySide'],
|
|
447
|
+
enumDescriptions: [
|
|
448
|
+
( localize(4919, "Automatically determine the orientation based on available space.")),
|
|
449
|
+
( localize(
|
|
450
|
+
4920,
|
|
451
|
+
"Display sessions vertically stacked unless a chat session is visible."
|
|
452
|
+
)),
|
|
453
|
+
( localize(
|
|
454
|
+
4921,
|
|
455
|
+
"Display sessions side by side if space is sufficient, otherwise stacked."
|
|
456
|
+
))
|
|
457
|
+
],
|
|
458
|
+
default: 'sideBySide',
|
|
459
|
+
description: ( localize(
|
|
460
|
+
4922,
|
|
461
|
+
"Controls the orientation of the chat agent sessions view when it is shown alongside the chat."
|
|
462
|
+
)),
|
|
463
|
+
tags: ['preview', 'experimental'],
|
|
464
|
+
experiment: {
|
|
465
|
+
mode: 'auto'
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
[ChatConfiguration.ChatViewTitleEnabled]: {
|
|
469
|
+
type: 'boolean',
|
|
470
|
+
default: true,
|
|
471
|
+
description: ( localize(4923, "Show the title of the chat above the chat in the chat view.")),
|
|
472
|
+
tags: ['preview', 'experimental'],
|
|
473
|
+
experiment: {
|
|
474
|
+
mode: 'auto'
|
|
475
|
+
}
|
|
393
476
|
},
|
|
394
477
|
[ChatConfiguration.NotifyWindowOnResponseReceived]: {
|
|
395
478
|
type: 'boolean',
|
|
396
479
|
default: true,
|
|
397
480
|
description: ( localize(
|
|
398
|
-
|
|
481
|
+
4924,
|
|
399
482
|
"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."
|
|
400
483
|
)),
|
|
401
484
|
},
|
|
@@ -403,30 +486,30 @@ configurationRegistry.registerConfiguration({
|
|
|
403
486
|
type: 'boolean',
|
|
404
487
|
default: true,
|
|
405
488
|
description: ( localize(
|
|
406
|
-
|
|
489
|
+
4925,
|
|
407
490
|
"Enables checkpoints in chat. Checkpoints allow you to restore the chat to a previous state."
|
|
408
491
|
)),
|
|
409
492
|
},
|
|
410
493
|
'chat.checkpoints.showFileChanges': {
|
|
411
494
|
type: 'boolean',
|
|
412
|
-
description: ( localize(
|
|
495
|
+
description: ( localize(4926, "Controls whether to show chat checkpoint file changes.")),
|
|
413
496
|
default: false
|
|
414
497
|
},
|
|
415
498
|
[mcpAccessConfig]: {
|
|
416
499
|
type: 'string',
|
|
417
|
-
description: ( localize(
|
|
500
|
+
description: ( localize(4927, "Controls access to installed Model Context Protocol servers.")),
|
|
418
501
|
enum: [
|
|
419
502
|
McpAccessValue.None,
|
|
420
503
|
McpAccessValue.Registry,
|
|
421
504
|
McpAccessValue.All
|
|
422
505
|
],
|
|
423
506
|
enumDescriptions: [
|
|
424
|
-
( localize(
|
|
507
|
+
( localize(4928, "No access to MCP servers.")),
|
|
425
508
|
( localize(
|
|
426
|
-
|
|
509
|
+
4929,
|
|
427
510
|
"Allows access to MCP servers installed from the registry that VS Code is connected to."
|
|
428
511
|
)),
|
|
429
|
-
( localize(
|
|
512
|
+
( localize(4930, "Allow access to any installed MCP server."))
|
|
430
513
|
],
|
|
431
514
|
default: McpAccessValue.All,
|
|
432
515
|
policy: {
|
|
@@ -445,20 +528,20 @@ configurationRegistry.registerConfiguration({
|
|
|
445
528
|
localization: {
|
|
446
529
|
description: {
|
|
447
530
|
key: 'chat.mcp.access',
|
|
448
|
-
value: ( localize(
|
|
531
|
+
value: ( localize(4927, "Controls access to installed Model Context Protocol servers."))
|
|
449
532
|
},
|
|
450
533
|
enumDescriptions: [
|
|
451
534
|
{
|
|
452
|
-
key: 'chat.mcp.access.none', value: ( localize(
|
|
535
|
+
key: 'chat.mcp.access.none', value: ( localize(4928, "No access to MCP servers.")),
|
|
453
536
|
},
|
|
454
537
|
{
|
|
455
538
|
key: 'chat.mcp.access.registry', value: ( localize(
|
|
456
|
-
|
|
539
|
+
4929,
|
|
457
540
|
"Allows access to MCP servers installed from the registry that VS Code is connected to."
|
|
458
541
|
)),
|
|
459
542
|
},
|
|
460
543
|
{
|
|
461
|
-
key: 'chat.mcp.access.any', value: ( localize(
|
|
544
|
+
key: 'chat.mcp.access.any', value: ( localize(4930, "Allow access to any installed MCP server."))
|
|
462
545
|
}
|
|
463
546
|
]
|
|
464
547
|
},
|
|
@@ -467,7 +550,7 @@ configurationRegistry.registerConfiguration({
|
|
|
467
550
|
[mcpAutoStartConfig]: {
|
|
468
551
|
type: 'string',
|
|
469
552
|
description: ( localize(
|
|
470
|
-
|
|
553
|
+
4931,
|
|
471
554
|
"Controls whether MCP servers should be automatically started when the chat messages are submitted."
|
|
472
555
|
)),
|
|
473
556
|
default: McpAutoStartValue.NewAndOutdated,
|
|
@@ -477,10 +560,10 @@ configurationRegistry.registerConfiguration({
|
|
|
477
560
|
McpAutoStartValue.NewAndOutdated
|
|
478
561
|
],
|
|
479
562
|
enumDescriptions: [
|
|
480
|
-
( localize(
|
|
481
|
-
( localize(
|
|
563
|
+
( localize(4932, "Never automatically start MCP servers.")),
|
|
564
|
+
( localize(4933, "Only automatically start new MCP servers that have never been run.")),
|
|
482
565
|
( localize(
|
|
483
|
-
|
|
566
|
+
4934,
|
|
484
567
|
"Automatically start new and outdated MCP servers that are not yet running."
|
|
485
568
|
))
|
|
486
569
|
],
|
|
@@ -489,9 +572,9 @@ configurationRegistry.registerConfiguration({
|
|
|
489
572
|
[mcpServerSamplingSection]: {
|
|
490
573
|
type: 'object',
|
|
491
574
|
description: ( localize(
|
|
492
|
-
|
|
575
|
+
4935,
|
|
493
576
|
"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.",
|
|
494
|
-
'MCP: ' + ( localize(
|
|
577
|
+
'MCP: ' + ( localize(4936, 'List Servers'))
|
|
495
578
|
)),
|
|
496
579
|
scope: ConfigurationScope.RESOURCE,
|
|
497
580
|
additionalProperties: {
|
|
@@ -500,7 +583,7 @@ configurationRegistry.registerConfiguration({
|
|
|
500
583
|
allowedDuringChat: {
|
|
501
584
|
type: 'boolean',
|
|
502
585
|
description: ( localize(
|
|
503
|
-
|
|
586
|
+
4937,
|
|
504
587
|
"Whether this server is make sampling requests during its tool calls in a chat session."
|
|
505
588
|
)),
|
|
506
589
|
default: true,
|
|
@@ -508,7 +591,7 @@ configurationRegistry.registerConfiguration({
|
|
|
508
591
|
allowedOutsideChat: {
|
|
509
592
|
type: 'boolean',
|
|
510
593
|
description: ( localize(
|
|
511
|
-
|
|
594
|
+
4938,
|
|
512
595
|
"Whether this server is allowed to make sampling requests outside of a chat session."
|
|
513
596
|
)),
|
|
514
597
|
default: false,
|
|
@@ -517,7 +600,7 @@ configurationRegistry.registerConfiguration({
|
|
|
517
600
|
type: 'array',
|
|
518
601
|
items: {
|
|
519
602
|
type: 'string',
|
|
520
|
-
description: ( localize(
|
|
603
|
+
description: ( localize(4939, "A model the MCP server has access to.")),
|
|
521
604
|
},
|
|
522
605
|
}
|
|
523
606
|
}
|
|
@@ -526,7 +609,7 @@ configurationRegistry.registerConfiguration({
|
|
|
526
609
|
[AssistedTypes[AddConfigurationType.NuGetPackage].enabledConfigKey]: {
|
|
527
610
|
type: 'boolean',
|
|
528
611
|
description: ( localize(
|
|
529
|
-
|
|
612
|
+
4940,
|
|
530
613
|
"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)."
|
|
531
614
|
)),
|
|
532
615
|
default: false,
|
|
@@ -538,14 +621,14 @@ configurationRegistry.registerConfiguration({
|
|
|
538
621
|
[ChatConfiguration.Edits2Enabled]: {
|
|
539
622
|
type: 'boolean',
|
|
540
623
|
description: ( localize(
|
|
541
|
-
|
|
624
|
+
4941,
|
|
542
625
|
"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."
|
|
543
626
|
)),
|
|
544
627
|
default: false,
|
|
545
628
|
},
|
|
546
629
|
[ChatConfiguration.ExtensionToolsEnabled]: {
|
|
547
630
|
type: 'boolean',
|
|
548
|
-
description: ( localize(
|
|
631
|
+
description: ( localize(4942, "Enable using tools contributed by third-party extensions.")),
|
|
549
632
|
default: true,
|
|
550
633
|
policy: {
|
|
551
634
|
name: 'ChatAgentExtensionTools',
|
|
@@ -554,7 +637,7 @@ configurationRegistry.registerConfiguration({
|
|
|
554
637
|
localization: {
|
|
555
638
|
description: {
|
|
556
639
|
key: 'chat.extensionToolsEnabled',
|
|
557
|
-
value: ( localize(
|
|
640
|
+
value: ( localize(4942, "Enable using tools contributed by third-party extensions."))
|
|
558
641
|
}
|
|
559
642
|
},
|
|
560
643
|
}
|
|
@@ -562,8 +645,8 @@ configurationRegistry.registerConfiguration({
|
|
|
562
645
|
[ChatConfiguration.AgentEnabled]: {
|
|
563
646
|
type: 'boolean',
|
|
564
647
|
description: ( localize(
|
|
565
|
-
|
|
566
|
-
"
|
|
648
|
+
4943,
|
|
649
|
+
"When enabled, agent mode can be activated from chat and tools in agentic contexts with side effects can be used."
|
|
567
650
|
)),
|
|
568
651
|
default: true,
|
|
569
652
|
policy: {
|
|
@@ -575,8 +658,8 @@ configurationRegistry.registerConfiguration({
|
|
|
575
658
|
description: {
|
|
576
659
|
key: 'chat.agent.enabled.description',
|
|
577
660
|
value: ( localize(
|
|
578
|
-
|
|
579
|
-
"
|
|
661
|
+
4943,
|
|
662
|
+
"When enabled, agent mode can be activated from chat and tools in agentic contexts with side effects can be used."
|
|
580
663
|
)),
|
|
581
664
|
}
|
|
582
665
|
}
|
|
@@ -584,16 +667,42 @@ configurationRegistry.registerConfiguration({
|
|
|
584
667
|
},
|
|
585
668
|
[ChatConfiguration.EnableMath]: {
|
|
586
669
|
type: 'boolean',
|
|
587
|
-
description: ( localize(
|
|
670
|
+
description: ( localize(4944, "Enable math rendering in chat responses using KaTeX.")),
|
|
588
671
|
default: true,
|
|
589
672
|
tags: ['preview'],
|
|
590
673
|
},
|
|
674
|
+
[ChatConfiguration.ShowCodeBlockProgressAnimation]: {
|
|
675
|
+
type: 'boolean',
|
|
676
|
+
description: ( localize(
|
|
677
|
+
4945,
|
|
678
|
+
"When applying edits, show a progress animation in the code block pill. If disabled, shows the progress percentage instead."
|
|
679
|
+
)),
|
|
680
|
+
default: true,
|
|
681
|
+
tags: ['experimental'],
|
|
682
|
+
},
|
|
683
|
+
['chat.statusWidget.sku']: {
|
|
684
|
+
type: 'string',
|
|
685
|
+
enum: ['free', 'anonymous'],
|
|
686
|
+
enumDescriptions: [
|
|
687
|
+
( localize(4946, "Show status widget for free tier users.")),
|
|
688
|
+
( localize(4947, "Show status widget for anonymous users."))
|
|
689
|
+
],
|
|
690
|
+
description: ( localize(
|
|
691
|
+
4948,
|
|
692
|
+
"Controls which user type should see the status widget in new chat sessions when quota is exceeded."
|
|
693
|
+
)),
|
|
694
|
+
default: undefined,
|
|
695
|
+
tags: ['experimental', 'advanced'],
|
|
696
|
+
experiment: {
|
|
697
|
+
mode: 'auto'
|
|
698
|
+
}
|
|
699
|
+
},
|
|
591
700
|
[ChatConfiguration.AgentSessionsViewLocation]: {
|
|
592
701
|
type: 'string',
|
|
593
702
|
enum: ['disabled', 'view', 'single-view'],
|
|
594
|
-
description: ( localize(
|
|
595
|
-
default: '
|
|
596
|
-
tags: ['experimental'],
|
|
703
|
+
description: ( localize(4949, "Controls where to show the agent sessions menu.")),
|
|
704
|
+
default: 'disabled',
|
|
705
|
+
tags: ['preview', 'experimental'],
|
|
597
706
|
experiment: {
|
|
598
707
|
mode: 'auto'
|
|
599
708
|
}
|
|
@@ -606,7 +715,7 @@ configurationRegistry.registerConfiguration({
|
|
|
606
715
|
additionalProperties: false,
|
|
607
716
|
default: Object.fromEntries(( allDiscoverySources.map(k => [k, false]))),
|
|
608
717
|
markdownDescription: ( localize(
|
|
609
|
-
|
|
718
|
+
4950,
|
|
610
719
|
"Configures discovery of Model Context Protocol servers from configuration from various other applications."
|
|
611
720
|
)),
|
|
612
721
|
},
|
|
@@ -615,14 +724,14 @@ configurationRegistry.registerConfiguration({
|
|
|
615
724
|
default: false,
|
|
616
725
|
tags: ['preview'],
|
|
617
726
|
description: ( localize(
|
|
618
|
-
|
|
727
|
+
4951,
|
|
619
728
|
"Enables the default Marketplace for Model Context Protocol (MCP) servers."
|
|
620
729
|
)),
|
|
621
730
|
included: product.quality === 'stable'
|
|
622
731
|
},
|
|
623
732
|
[mcpGalleryServiceUrlConfig]: {
|
|
624
733
|
type: 'string',
|
|
625
|
-
description: ( localize(
|
|
734
|
+
description: ( localize(4952, "Configure the MCP Gallery service URL to connect to")),
|
|
626
735
|
default: '',
|
|
627
736
|
scope: ConfigurationScope.APPLICATION,
|
|
628
737
|
tags: ['usesOnlineServices', 'advanced'],
|
|
@@ -635,16 +744,16 @@ configurationRegistry.registerConfiguration({
|
|
|
635
744
|
localization: {
|
|
636
745
|
description: {
|
|
637
746
|
key: 'mcp.gallery.serviceUrl',
|
|
638
|
-
value: ( localize(
|
|
747
|
+
value: ( localize(4952, "Configure the MCP Gallery service URL to connect to")),
|
|
639
748
|
}
|
|
640
749
|
}
|
|
641
750
|
},
|
|
642
751
|
},
|
|
643
752
|
[PromptsConfig.INSTRUCTIONS_LOCATION_KEY]: {
|
|
644
753
|
type: 'object',
|
|
645
|
-
title: ( localize(
|
|
754
|
+
title: ( localize(4953, "Instructions File Locations")),
|
|
646
755
|
markdownDescription: ( localize(
|
|
647
|
-
|
|
756
|
+
4954,
|
|
648
757
|
"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.",
|
|
649
758
|
INSTRUCTION_FILE_EXTENSION,
|
|
650
759
|
INSTRUCTIONS_DOCUMENTATION_URL
|
|
@@ -667,9 +776,9 @@ configurationRegistry.registerConfiguration({
|
|
|
667
776
|
},
|
|
668
777
|
[PromptsConfig.PROMPT_LOCATIONS_KEY]: {
|
|
669
778
|
type: 'object',
|
|
670
|
-
title: ( localize(
|
|
779
|
+
title: ( localize(4955, "Prompt File Locations")),
|
|
671
780
|
markdownDescription: ( localize(
|
|
672
|
-
|
|
781
|
+
4956,
|
|
673
782
|
"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.",
|
|
674
783
|
PROMPT_FILE_EXTENSION,
|
|
675
784
|
PROMPT_DOCUMENTATION_URL
|
|
@@ -693,9 +802,9 @@ configurationRegistry.registerConfiguration({
|
|
|
693
802
|
},
|
|
694
803
|
[PromptsConfig.MODE_LOCATION_KEY]: {
|
|
695
804
|
type: 'object',
|
|
696
|
-
title: ( localize(
|
|
805
|
+
title: ( localize(4957, "Mode File Locations")),
|
|
697
806
|
markdownDescription: ( localize(
|
|
698
|
-
|
|
807
|
+
4958,
|
|
699
808
|
"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.",
|
|
700
809
|
LEGACY_MODE_FILE_EXTENSION,
|
|
701
810
|
AGENT_DOCUMENTATION_URL
|
|
@@ -704,7 +813,7 @@ configurationRegistry.registerConfiguration({
|
|
|
704
813
|
[LEGACY_MODE_DEFAULT_SOURCE_FOLDER]: true,
|
|
705
814
|
},
|
|
706
815
|
deprecationMessage: ( localize(
|
|
707
|
-
|
|
816
|
+
4959,
|
|
708
817
|
"This setting is deprecated and will be removed in future releases. Chat modes are now called custom agents and are located in `.github/agents`"
|
|
709
818
|
)),
|
|
710
819
|
additionalProperties: { type: 'boolean' },
|
|
@@ -723,10 +832,10 @@ configurationRegistry.registerConfiguration({
|
|
|
723
832
|
},
|
|
724
833
|
[PromptsConfig.USE_AGENT_MD]: {
|
|
725
834
|
type: 'boolean',
|
|
726
|
-
title: ( localize(
|
|
835
|
+
title: ( localize(4960, "Use AGENTS.MD file")),
|
|
727
836
|
markdownDescription: ( localize(
|
|
728
|
-
|
|
729
|
-
"Controls whether instructions from `AGENTS.MD` file found in a workspace roots are
|
|
837
|
+
4961,
|
|
838
|
+
"Controls whether instructions from `AGENTS.MD` file found in a workspace roots are attached to all chat requests."
|
|
730
839
|
)),
|
|
731
840
|
default: true,
|
|
732
841
|
restricted: true,
|
|
@@ -735,10 +844,22 @@ configurationRegistry.registerConfiguration({
|
|
|
735
844
|
},
|
|
736
845
|
[PromptsConfig.USE_NESTED_AGENT_MD]: {
|
|
737
846
|
type: 'boolean',
|
|
738
|
-
title: ( localize(
|
|
847
|
+
title: ( localize(4962, "Use nested AGENTS.MD files")),
|
|
739
848
|
markdownDescription: ( localize(
|
|
740
|
-
|
|
741
|
-
"Controls whether instructions `AGENTS.MD` files found in the workspace are listed in all chat requests."
|
|
849
|
+
4963,
|
|
850
|
+
"Controls whether instructions from nested `AGENTS.MD` files found in the workspace are listed in all chat requests. The language model can load these skills on-demand if the `read` tool is available."
|
|
851
|
+
)),
|
|
852
|
+
default: false,
|
|
853
|
+
restricted: true,
|
|
854
|
+
disallowConfigurationDefault: true,
|
|
855
|
+
tags: ['experimental', 'prompts', 'reusable prompts', 'prompt snippets', 'instructions']
|
|
856
|
+
},
|
|
857
|
+
[PromptsConfig.USE_CLAUDE_SKILLS]: {
|
|
858
|
+
type: 'boolean',
|
|
859
|
+
title: ( localize(4964, "Use Claude skills")),
|
|
860
|
+
markdownDescription: ( localize(
|
|
861
|
+
4965,
|
|
862
|
+
"Controls whether Claude skills found in the workspace and user home directories under `.claude/skills` are listed in all chat requests. The language model can load these skills on-demand if the `read` tool is available."
|
|
742
863
|
)),
|
|
743
864
|
default: false,
|
|
744
865
|
restricted: true,
|
|
@@ -748,9 +869,9 @@ configurationRegistry.registerConfiguration({
|
|
|
748
869
|
[PromptsConfig.PROMPT_FILES_SUGGEST_KEY]: {
|
|
749
870
|
type: 'object',
|
|
750
871
|
scope: ConfigurationScope.RESOURCE,
|
|
751
|
-
title: ( localize(
|
|
872
|
+
title: ( localize(4966, "Prompt File Recommendations")),
|
|
752
873
|
markdownDescription: ( localize(
|
|
753
|
-
|
|
874
|
+
4967,
|
|
754
875
|
"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`."
|
|
755
876
|
)),
|
|
756
877
|
default: {},
|
|
@@ -773,7 +894,7 @@ configurationRegistry.registerConfiguration({
|
|
|
773
894
|
type: 'boolean',
|
|
774
895
|
default: true,
|
|
775
896
|
description: ( localize(
|
|
776
|
-
|
|
897
|
+
4968,
|
|
777
898
|
"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."
|
|
778
899
|
)),
|
|
779
900
|
tags: ['experimental'],
|
|
@@ -785,7 +906,7 @@ configurationRegistry.registerConfiguration({
|
|
|
785
906
|
type: 'boolean',
|
|
786
907
|
default: false,
|
|
787
908
|
description: ( localize(
|
|
788
|
-
|
|
909
|
+
4969,
|
|
789
910
|
"When enabled, the todo tool operates in write-only mode, requiring the agent to remember todos in context."
|
|
790
911
|
)),
|
|
791
912
|
tags: ['experimental'],
|
|
@@ -797,7 +918,7 @@ configurationRegistry.registerConfiguration({
|
|
|
797
918
|
type: 'boolean',
|
|
798
919
|
default: true,
|
|
799
920
|
description: ( localize(
|
|
800
|
-
|
|
921
|
+
4970,
|
|
801
922
|
"When enabled, todo items include detailed descriptions for implementation context. This provides more information but uses additional tokens and may slow down responses."
|
|
802
923
|
)),
|
|
803
924
|
tags: ['experimental'],
|
|
@@ -810,85 +931,100 @@ configurationRegistry.registerConfiguration({
|
|
|
810
931
|
default: 'fixedScrolling',
|
|
811
932
|
enum: ['collapsed', 'collapsedPreview', 'fixedScrolling'],
|
|
812
933
|
enumDescriptions: [
|
|
813
|
-
( localize(
|
|
934
|
+
( localize(4971, "Thinking parts will be collapsed by default.")),
|
|
814
935
|
( localize(
|
|
815
|
-
|
|
936
|
+
4972,
|
|
816
937
|
"Thinking parts will be expanded first, then collapse once we reach a part that is not thinking."
|
|
817
938
|
)),
|
|
818
939
|
( localize(
|
|
819
|
-
|
|
940
|
+
4973,
|
|
820
941
|
"Show thinking in a fixed-height streaming panel that auto-scrolls; click header to expand to full height."
|
|
821
942
|
)),
|
|
822
943
|
],
|
|
823
|
-
description: ( localize(
|
|
944
|
+
description: ( localize(4974, "Controls how thinking is rendered.")),
|
|
945
|
+
tags: ['experimental'],
|
|
946
|
+
},
|
|
947
|
+
[ChatConfiguration.ThinkingGenerateTitles]: {
|
|
948
|
+
type: 'boolean',
|
|
949
|
+
default: true,
|
|
950
|
+
description: ( localize(
|
|
951
|
+
4975,
|
|
952
|
+
"Controls whether to use an LLM to generate summary titles for thinking sections."
|
|
953
|
+
)),
|
|
824
954
|
tags: ['experimental'],
|
|
825
955
|
},
|
|
826
956
|
'chat.agent.thinking.collapsedTools': {
|
|
827
957
|
type: 'string',
|
|
828
|
-
default: '
|
|
829
|
-
enum: ['
|
|
958
|
+
default: 'always',
|
|
959
|
+
enum: ['off', 'withThinking', 'always'],
|
|
830
960
|
enumDescriptions: [
|
|
831
|
-
( localize(
|
|
832
|
-
( localize(4928, "All tool calls are added into the collapsible thinking section.")),
|
|
961
|
+
( localize(4976, "Tool calls are shown separately, not collapsed into thinking.")),
|
|
833
962
|
( localize(
|
|
834
|
-
|
|
835
|
-
"
|
|
963
|
+
4977,
|
|
964
|
+
"Tool calls are collapsed into thinking sections when thinking is present."
|
|
836
965
|
)),
|
|
966
|
+
( localize(4978, "Tool calls are always collapsed, even without thinking.")),
|
|
837
967
|
],
|
|
838
968
|
markdownDescription: ( localize(
|
|
839
|
-
|
|
840
|
-
"
|
|
969
|
+
4979,
|
|
970
|
+
"Controls how tool calls are displayed in relation to thinking sections."
|
|
841
971
|
)),
|
|
842
972
|
tags: ['experimental'],
|
|
843
973
|
},
|
|
844
974
|
'chat.disableAIFeatures': {
|
|
845
975
|
type: 'boolean',
|
|
846
976
|
description: ( localize(
|
|
847
|
-
|
|
977
|
+
4980,
|
|
848
978
|
"Disable and hide built-in AI features provided by GitHub Copilot, including chat and inline suggestions."
|
|
849
979
|
)),
|
|
850
980
|
default: false,
|
|
851
981
|
scope: ConfigurationScope.WINDOW
|
|
852
982
|
},
|
|
853
|
-
[ChatConfiguration.UseCloudButtonV2]: {
|
|
854
|
-
type: 'boolean',
|
|
855
|
-
description: ( localize(4932, "Experimental implementation of 'cloud button'")),
|
|
856
|
-
default: true,
|
|
857
|
-
tags: ['experimental'],
|
|
858
|
-
},
|
|
859
983
|
[ChatConfiguration.ShowAgentSessionsViewDescription]: {
|
|
860
984
|
type: 'boolean',
|
|
861
985
|
description: ( localize(
|
|
862
|
-
|
|
986
|
+
4981,
|
|
863
987
|
"Controls whether session descriptions are displayed on a second row in the Chat Sessions view."
|
|
864
988
|
)),
|
|
865
989
|
default: true,
|
|
866
990
|
},
|
|
867
991
|
'chat.allowAnonymousAccess': {
|
|
868
992
|
type: 'boolean',
|
|
869
|
-
description: ( localize(
|
|
993
|
+
description: ( localize(4982, "Controls whether anonymous access is allowed in chat.")),
|
|
870
994
|
default: false,
|
|
871
995
|
tags: ['experimental'],
|
|
872
996
|
experiment: {
|
|
873
997
|
mode: 'auto'
|
|
874
998
|
}
|
|
875
999
|
},
|
|
876
|
-
|
|
1000
|
+
[ChatConfiguration.RestoreLastPanelSession]: {
|
|
877
1001
|
type: 'boolean',
|
|
878
|
-
description: ( localize(
|
|
879
|
-
|
|
1002
|
+
description: ( localize(
|
|
1003
|
+
4983,
|
|
1004
|
+
"Controls whether the last session is restored in panel after restart."
|
|
1005
|
+
)),
|
|
1006
|
+
default: true,
|
|
880
1007
|
tags: ['experimental'],
|
|
881
1008
|
experiment: {
|
|
882
1009
|
mode: 'auto'
|
|
883
1010
|
}
|
|
884
1011
|
},
|
|
1012
|
+
[ChatConfiguration.ExitAfterDelegation]: {
|
|
1013
|
+
type: 'boolean',
|
|
1014
|
+
description: ( localize(
|
|
1015
|
+
4984,
|
|
1016
|
+
"Controls whether the chat panel automatically exits after delegating a request to another session."
|
|
1017
|
+
)),
|
|
1018
|
+
default: true,
|
|
1019
|
+
tags: ['preview'],
|
|
1020
|
+
},
|
|
885
1021
|
'chat.extensionUnification.enabled': {
|
|
886
1022
|
type: 'boolean',
|
|
887
1023
|
description: ( localize(
|
|
888
|
-
|
|
1024
|
+
4985,
|
|
889
1025
|
"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."
|
|
890
1026
|
)),
|
|
891
|
-
default:
|
|
1027
|
+
default: true,
|
|
892
1028
|
tags: ['experimental'],
|
|
893
1029
|
experiment: {
|
|
894
1030
|
mode: 'auto'
|
|
@@ -897,7 +1033,7 @@ configurationRegistry.registerConfiguration({
|
|
|
897
1033
|
[ChatConfiguration.SubagentToolCustomAgents]: {
|
|
898
1034
|
type: 'boolean',
|
|
899
1035
|
description: ( localize(
|
|
900
|
-
|
|
1036
|
+
4986,
|
|
901
1037
|
"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."
|
|
902
1038
|
)),
|
|
903
1039
|
default: false,
|
|
@@ -905,7 +1041,7 @@ configurationRegistry.registerConfiguration({
|
|
|
905
1041
|
}
|
|
906
1042
|
}
|
|
907
1043
|
});
|
|
908
|
-
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(
|
|
1044
|
+
( Registry.as(EditorExtensions.EditorPane)).registerEditorPane(EditorPaneDescriptor.create(ChatEditor, ChatEditorInput.EditorID, ( localize(4987, "Chat"))), [
|
|
909
1045
|
( new SyncDescriptor(ChatEditorInput))
|
|
910
1046
|
]);
|
|
911
1047
|
( Registry.as(Extensions$1.ConfigurationMigration)).registerConfigurationMigrations([
|
|
@@ -950,7 +1086,7 @@ let ChatResolverContribution = class ChatResolverContribution extends Disposable
|
|
|
950
1086
|
_registerEditor(scheme) {
|
|
951
1087
|
this._editorRegistrations.set(scheme, this.editorResolverService.registerEditor(`${scheme}:**/**`, {
|
|
952
1088
|
id: ChatEditorInput.EditorID,
|
|
953
|
-
label: ( localize(
|
|
1089
|
+
label: ( localize(4987, "Chat")),
|
|
954
1090
|
priority: RegisteredEditorPriority.builtin
|
|
955
1091
|
}, {
|
|
956
1092
|
singlePerResource: true,
|
|
@@ -984,20 +1120,24 @@ let ChatAgentSettingContribution = class ChatAgentSettingContribution extends Di
|
|
|
984
1120
|
const treatmentId = this.entitlementService.entitlement === ChatEntitlement.Free ?
|
|
985
1121
|
'chatAgentMaxRequestsFree' :
|
|
986
1122
|
'chatAgentMaxRequestsPro';
|
|
987
|
-
|
|
1123
|
+
Promise.all([
|
|
1124
|
+
this.experimentService.getTreatment(treatmentId),
|
|
1125
|
+
this.experimentService.getTreatment('chatAgentMaxRequestsLimit')
|
|
1126
|
+
]).then(([value, maxLimit]) => {
|
|
988
1127
|
const defaultValue = value ?? (this.entitlementService.entitlement === ChatEntitlement.Free ? 25 : 25);
|
|
989
1128
|
const node = {
|
|
990
1129
|
id: 'chatSidebar',
|
|
991
|
-
title: ( localize(
|
|
1130
|
+
title: ( localize(4884, "Chat")),
|
|
992
1131
|
type: 'object',
|
|
993
1132
|
properties: {
|
|
994
1133
|
'chat.agent.maxRequests': {
|
|
995
1134
|
type: 'number',
|
|
996
1135
|
markdownDescription: ( localize(
|
|
997
|
-
|
|
1136
|
+
4988,
|
|
998
1137
|
"The maximum number of requests to allow per-turn when using an agent. When the limit is reached, will ask to confirm to continue."
|
|
999
1138
|
)),
|
|
1000
1139
|
default: defaultValue,
|
|
1140
|
+
maximum: maxLimit,
|
|
1001
1141
|
},
|
|
1002
1142
|
}
|
|
1003
1143
|
};
|
|
@@ -1012,6 +1152,88 @@ ChatAgentSettingContribution = ( __decorate([
|
|
|
1012
1152
|
( __param(0, IWorkbenchAssignmentService)),
|
|
1013
1153
|
( __param(1, IChatEntitlementService))
|
|
1014
1154
|
], ChatAgentSettingContribution));
|
|
1155
|
+
let ChatAgentActionsContribution = class ChatAgentActionsContribution extends Disposable {
|
|
1156
|
+
static { this.ID = 'workbench.contrib.chatAgentActions'; }
|
|
1157
|
+
constructor(chatModeService) {
|
|
1158
|
+
super();
|
|
1159
|
+
this.chatModeService = chatModeService;
|
|
1160
|
+
this._modeActionDisposables = ( new DisposableMap());
|
|
1161
|
+
this._store.add(this._modeActionDisposables);
|
|
1162
|
+
const { custom } = this.chatModeService.getModes();
|
|
1163
|
+
for (const mode of custom) {
|
|
1164
|
+
this._registerModeAction(mode);
|
|
1165
|
+
}
|
|
1166
|
+
this._register(this.chatModeService.onDidChangeChatModes(() => {
|
|
1167
|
+
const { custom } = this.chatModeService.getModes();
|
|
1168
|
+
const currentModeIds = ( new Set());
|
|
1169
|
+
const currentModeNames = ( new Map());
|
|
1170
|
+
for (const mode of custom) {
|
|
1171
|
+
const modeName = mode.name.get();
|
|
1172
|
+
if (( currentModeNames.has(modeName))) {
|
|
1173
|
+
currentModeIds.delete(currentModeNames.get(modeName));
|
|
1174
|
+
}
|
|
1175
|
+
currentModeNames.set(modeName, mode.id);
|
|
1176
|
+
currentModeIds.add(mode.id);
|
|
1177
|
+
}
|
|
1178
|
+
for (const modeId of ( this._modeActionDisposables.keys())) {
|
|
1179
|
+
if (!( currentModeIds.has(modeId))) {
|
|
1180
|
+
this._modeActionDisposables.deleteAndDispose(modeId);
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
for (const mode of custom) {
|
|
1184
|
+
if (( currentModeIds.has(mode.id)) && !( this._modeActionDisposables.has(mode.id))) {
|
|
1185
|
+
this._registerModeAction(mode);
|
|
1186
|
+
}
|
|
1187
|
+
}
|
|
1188
|
+
}));
|
|
1189
|
+
}
|
|
1190
|
+
_registerModeAction(mode) {
|
|
1191
|
+
const actionClass = class extends ModeOpenChatGlobalAction {
|
|
1192
|
+
constructor() {
|
|
1193
|
+
super(mode);
|
|
1194
|
+
}
|
|
1195
|
+
};
|
|
1196
|
+
this._modeActionDisposables.set(mode.id, registerAction2(actionClass));
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1199
|
+
ChatAgentActionsContribution = ( __decorate([
|
|
1200
|
+
( __param(0, IChatModeService))
|
|
1201
|
+
], ChatAgentActionsContribution));
|
|
1202
|
+
let ToolReferenceNamesContribution = class ToolReferenceNamesContribution extends Disposable {
|
|
1203
|
+
static { this.ID = 'workbench.contrib.toolReferenceNames'; }
|
|
1204
|
+
constructor(_languageModelToolsService) {
|
|
1205
|
+
super();
|
|
1206
|
+
this._languageModelToolsService = _languageModelToolsService;
|
|
1207
|
+
this._updateToolReferenceNames();
|
|
1208
|
+
this._register(this._languageModelToolsService.onDidChangeTools(() => this._updateToolReferenceNames()));
|
|
1209
|
+
}
|
|
1210
|
+
_updateToolReferenceNames() {
|
|
1211
|
+
const tools = Array.from(this._languageModelToolsService.getTools())
|
|
1212
|
+
.filter((tool) => typeof tool.toolReferenceName === 'string')
|
|
1213
|
+
.sort((a, b) => a.toolReferenceName.localeCompare(b.toolReferenceName));
|
|
1214
|
+
toolReferenceNameEnumValues.length = 0;
|
|
1215
|
+
toolReferenceNameEnumDescriptions.length = 0;
|
|
1216
|
+
for (const tool of tools) {
|
|
1217
|
+
toolReferenceNameEnumValues.push(tool.toolReferenceName);
|
|
1218
|
+
toolReferenceNameEnumDescriptions.push(( localize(
|
|
1219
|
+
4989,
|
|
1220
|
+
"{0} - {1}",
|
|
1221
|
+
tool.toolReferenceName,
|
|
1222
|
+
tool.userDescription || tool.displayName
|
|
1223
|
+
)));
|
|
1224
|
+
}
|
|
1225
|
+
configurationRegistry.notifyConfigurationSchemaUpdated({
|
|
1226
|
+
id: 'chatSidebar',
|
|
1227
|
+
properties: {
|
|
1228
|
+
[ChatConfiguration.EligibleForAutoApproval]: {}
|
|
1229
|
+
}
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
};
|
|
1233
|
+
ToolReferenceNamesContribution = ( __decorate([
|
|
1234
|
+
( __param(0, ILanguageModelToolsService))
|
|
1235
|
+
], ToolReferenceNamesContribution));
|
|
1236
|
+
AccessibleViewRegistry.register(( new ChatTerminalOutputAccessibleView()));
|
|
1015
1237
|
AccessibleViewRegistry.register(( new ChatResponseAccessibleView()));
|
|
1016
1238
|
AccessibleViewRegistry.register(( new PanelChatAccessibilityHelp()));
|
|
1017
1239
|
AccessibleViewRegistry.register(( new QuickChatAccessibilityHelp()));
|
|
@@ -1024,7 +1246,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
1024
1246
|
super();
|
|
1025
1247
|
this._store.add(slashCommandService.registerSlashCommand({
|
|
1026
1248
|
command: 'clear',
|
|
1027
|
-
detail: ( localize(
|
|
1249
|
+
detail: ( localize(4990, "Start a new chat")),
|
|
1028
1250
|
sortText: 'z2_clear',
|
|
1029
1251
|
executeImmediately: true,
|
|
1030
1252
|
locations: [ChatAgentLocation.Chat]
|
|
@@ -1038,7 +1260,7 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
1038
1260
|
executeImmediately: true,
|
|
1039
1261
|
locations: [ChatAgentLocation.Chat],
|
|
1040
1262
|
modes: [ChatModeKind.Ask]
|
|
1041
|
-
}, async (prompt, progress) => {
|
|
1263
|
+
}, async (prompt, progress, _history, _location, sessionResource) => {
|
|
1042
1264
|
const defaultAgent = chatAgentService.getDefaultAgent(ChatAgentLocation.Chat);
|
|
1043
1265
|
const agents = chatAgentService.getAgents();
|
|
1044
1266
|
if (defaultAgent?.metadata.helpTextPrefix) {
|
|
@@ -1055,11 +1277,11 @@ let ChatSlashStaticSlashCommandsContribution = class ChatSlashStaticSlashCommand
|
|
|
1055
1277
|
.filter(a => a.locations.includes(ChatAgentLocation.Chat))
|
|
1056
1278
|
.map(async (a) => {
|
|
1057
1279
|
const description = a.description ? `- ${a.description}` : '';
|
|
1058
|
-
const agentMarkdown = instantiationService.invokeFunction(accessor => agentToMarkdown(a, true, accessor));
|
|
1280
|
+
const agentMarkdown = instantiationService.invokeFunction(accessor => agentToMarkdown(a, sessionResource, true, accessor));
|
|
1059
1281
|
const agentLine = `- ${agentMarkdown} ${description}`;
|
|
1060
1282
|
const commandText = ( a.slashCommands.map(c => {
|
|
1061
1283
|
const description = c.description ? `- ${c.description}` : '';
|
|
1062
|
-
return `\t* ${agentSlashCommandToMarkdown(a, c)} ${description}`;
|
|
1284
|
+
return `\t* ${agentSlashCommandToMarkdown(a, c, sessionResource)} ${description}`;
|
|
1063
1285
|
})).join('\n');
|
|
1064
1286
|
return (agentLine + '\n' + commandText).trim();
|
|
1065
1287
|
})))).join('\n');
|
|
@@ -1093,6 +1315,7 @@ registerWorkbenchContribution2(ChatPromptFilesExtensionPointHandler.ID, ChatProm
|
|
|
1093
1315
|
registerWorkbenchContribution2(ChatCompatibilityNotifier.ID, ChatCompatibilityNotifier, WorkbenchPhase.Eventually);
|
|
1094
1316
|
registerWorkbenchContribution2(CopilotTitleBarMenuRendering.ID, CopilotTitleBarMenuRendering, WorkbenchPhase.BlockRestore);
|
|
1095
1317
|
registerWorkbenchContribution2(CodeBlockActionRendering.ID, CodeBlockActionRendering, WorkbenchPhase.BlockRestore);
|
|
1318
|
+
registerWorkbenchContribution2(ContinueChatInSessionActionRendering.ID, ContinueChatInSessionActionRendering, WorkbenchPhase.BlockRestore);
|
|
1096
1319
|
registerWorkbenchContribution2(ChatImplicitContextContribution.ID, ChatImplicitContextContribution, WorkbenchPhase.Eventually);
|
|
1097
1320
|
registerWorkbenchContribution2(ChatRelatedFilesContribution.ID, ChatRelatedFilesContribution, WorkbenchPhase.Eventually);
|
|
1098
1321
|
registerWorkbenchContribution2(ChatViewsWelcomeHandler.ID, ChatViewsWelcomeHandler, WorkbenchPhase.BlockStartup);
|
|
@@ -1102,6 +1325,9 @@ registerWorkbenchContribution2(ChatTeardownContribution.ID, ChatTeardownContribu
|
|
|
1102
1325
|
registerWorkbenchContribution2(ChatStatusBarEntry.ID, ChatStatusBarEntry, WorkbenchPhase.BlockRestore);
|
|
1103
1326
|
registerWorkbenchContribution2(BuiltinToolsContribution.ID, BuiltinToolsContribution, WorkbenchPhase.Eventually);
|
|
1104
1327
|
registerWorkbenchContribution2(ChatAgentSettingContribution.ID, ChatAgentSettingContribution, WorkbenchPhase.AfterRestored);
|
|
1328
|
+
registerWorkbenchContribution2(ChatAgentActionsContribution.ID, ChatAgentActionsContribution, WorkbenchPhase.Eventually);
|
|
1329
|
+
registerWorkbenchContribution2(ToolReferenceNamesContribution.ID, ToolReferenceNamesContribution, WorkbenchPhase.AfterRestored);
|
|
1330
|
+
registerWorkbenchContribution2(ChatAgentRecommendation.ID, ChatAgentRecommendation, WorkbenchPhase.Eventually);
|
|
1105
1331
|
registerWorkbenchContribution2(ChatEditingEditorAccessibility.ID, ChatEditingEditorAccessibility, WorkbenchPhase.AfterRestored);
|
|
1106
1332
|
registerWorkbenchContribution2(ChatEditingEditorOverlay.ID, ChatEditingEditorOverlay, WorkbenchPhase.AfterRestored);
|
|
1107
1333
|
registerWorkbenchContribution2(SimpleBrowserOverlay.ID, SimpleBrowserOverlay, WorkbenchPhase.AfterRestored);
|
|
@@ -1110,7 +1336,6 @@ registerWorkbenchContribution2(ChatTransferContribution.ID, ChatTransferContribu
|
|
|
1110
1336
|
registerWorkbenchContribution2(ChatContextContributions.ID, ChatContextContributions, WorkbenchPhase.AfterRestored);
|
|
1111
1337
|
registerWorkbenchContribution2(ChatResponseResourceFileSystemProvider.ID, ChatResponseResourceFileSystemProvider, WorkbenchPhase.AfterRestored);
|
|
1112
1338
|
registerWorkbenchContribution2(PromptUrlHandler.ID, PromptUrlHandler, WorkbenchPhase.BlockRestore);
|
|
1113
|
-
registerWorkbenchContribution2(LocalChatSessionsProvider.ID, LocalChatSessionsProvider, WorkbenchPhase.AfterRestored);
|
|
1114
1339
|
registerWorkbenchContribution2(ChatSessionsViewContrib.ID, ChatSessionsViewContrib, WorkbenchPhase.AfterRestored);
|
|
1115
1340
|
registerWorkbenchContribution2(ChatSessionsView.ID, ChatSessionsView, WorkbenchPhase.BlockRestore);
|
|
1116
1341
|
registerWorkbenchContribution2(ChatEditingNotebookFileSystemProviderContrib.ID, ChatEditingNotebookFileSystemProviderContrib, WorkbenchPhase.BlockStartup);
|
|
@@ -1132,16 +1357,14 @@ registerNewChatActions();
|
|
|
1132
1357
|
registerChatContextActions();
|
|
1133
1358
|
registerChatDeveloperActions();
|
|
1134
1359
|
registerChatEditorActions();
|
|
1360
|
+
registerChatElicitationActions();
|
|
1135
1361
|
registerChatToolActions();
|
|
1136
1362
|
registerLanguageModelActions();
|
|
1137
1363
|
registerEditorFeature(ChatPasteProvidersFeature);
|
|
1138
1364
|
registerAction2(ConfigureToolSets);
|
|
1139
1365
|
registerAction2(RenameChatSessionAction);
|
|
1140
1366
|
registerAction2(DeleteChatSessionAction);
|
|
1141
|
-
registerAction2(OpenChatSessionInNewWindowAction);
|
|
1142
|
-
registerAction2(OpenChatSessionInNewEditorGroupAction);
|
|
1143
1367
|
registerAction2(OpenChatSessionInSidebarAction);
|
|
1144
1368
|
registerAction2(ToggleChatSessionsDescriptionDisplayAction);
|
|
1145
|
-
registerAction2(ChatSessionsGettingStartedAction);
|
|
1146
1369
|
registerAction2(ToggleAgentSessionsViewLocationAction);
|
|
1147
1370
|
ChatWidget.CONTRIBS.push(ChatDynamicVariableModel);
|