@codingame/monaco-vscode-chat-service-override 24.3.0 → 25.0.1
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 +35 -35
- package/package.json +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityService.d.ts → accessibility/chatAccessibilityService.d.ts} +10 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAccessibilityService.js → accessibility/chatAccessibilityService.js} +23 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatResponseAccessibleView.d.ts → accessibility/chatResponseAccessibleView.d.ts} +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatResponseAccessibleView.js → accessibility/chatResponseAccessibleView.js} +38 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatTerminalOutputAccessibleView.js → accessibility/chatTerminalOutputAccessibleView.js} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +69 -60
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +2 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatClear.js +25 -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 +24 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +48 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +16 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +35 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +22 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatTransfer.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +31 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +61 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +482 -125
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +16 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +84 -93
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +10 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.d.ts +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsOpener.js +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +137 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +92 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +81 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +335 -102
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.js +47 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +80 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentResolveService.d.ts → attachments/chatAttachmentResolveService.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatAttachmentResolveService.js → attachments/chatAttachmentResolveService.js} +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatVariables.d.ts → attachments/chatVariables.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatVariables.js → attachments/chatVariables.js} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatEditing → attachments}/simpleBrowserEditorOverlay.js +21 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +171 -206
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditing.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimeline.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorAccessibility.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +20 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +10 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +1 -1
- 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 +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookFileSystemProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +41 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +35 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatSessions.contribution.d.ts → chatSessions/chatSessions.contribution.d.ts} +7 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatSessions.contribution.js → chatSessions/chatSessions.contribution.js} +53 -106
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +18 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +29 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +64 -64
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +90 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContextService.d.ts → contextContrib/chatContextService.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContextService.js → contextContrib/chatContextService.js} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{languageModelToolsConfirmationService.d.ts → tools/languageModelToolsConfirmationService.d.ts} +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{languageModelToolsConfirmationService.js → tools/languageModelToolsConfirmationService.js} +47 -58
- package/vscode/src/vs/workbench/contrib/chat/browser/{languageModelToolsService.d.ts → tools/languageModelToolsService.d.ts} +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{languageModelToolsService.js → tools/languageModelToolsService.js} +21 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownAnchorService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatLayoutService.d.ts → widget/chatLayoutService.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidgetService.d.ts → widget/chatWidgetService.d.ts} +6 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatWidgetService.js → widget/chatWidgetService.js} +27 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatusWidget.d.ts → widget/input/chatStatusWidget.d.ts} +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatusWidget.js → widget/input/chatStatusWidget.js} +17 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputEditorContrib.js +12 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputEditorHover.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputEditorHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatQuick.d.ts → widgetHosts/chatQuick.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatQuick.js → widgetHosts/chatQuick.js} +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatEditor.d.ts → widgetHosts/editor/chatEditor.d.ts} +4 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatEditor.js → widgetHosts/editor/chatEditor.js} +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatViewPane.d.ts → widgetHosts/viewPane/chatViewPane.d.ts} +46 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatViewPane.js → widgetHosts/viewPane/chatViewPane.js} +258 -154
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatViewTitleControl.d.ts → widgetHosts/viewPane/chatViewTitleControl.d.ts} +5 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatViewTitleControl.js → widgetHosts/viewPane/chatViewTitleControl.js} +97 -85
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +176 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +89 -0
- package/vscode/src/vs/workbench/contrib/chat/common/{chatServiceImpl.d.ts → chatService/chatServiceImpl.d.ts} +16 -20
- package/vscode/src/vs/workbench/contrib/chat/common/{chatServiceImpl.js → chatService/chatServiceImpl.js} +97 -151
- package/vscode/src/vs/workbench/contrib/chat/common/{chatServiceTelemetry.d.ts → chatService/chatServiceTelemetry.d.ts} +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/{chatServiceTelemetry.js → chatService/chatServiceTelemetry.js} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{chatCodeMapperService.d.ts → editing/chatCodeMapperService.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/{chatModelStore.d.ts → model/chatModelStore.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{chatProgressTypes → model/chatProgressTypes}/chatToolInvocation.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/{chatProgressTypes → model/chatProgressTypes}/chatToolInvocation.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/common/{chatSessionStore.d.ts → model/chatSessionStore.d.ts} +14 -7
- package/vscode/src/vs/workbench/contrib/chat/common/{chatSessionStore.js → model/chatSessionStore.js} +164 -39
- package/vscode/src/vs/workbench/contrib/chat/common/{chatTransferService.d.ts → model/chatTransferService.d.ts} +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/{chatTransferService.js → model/chatTransferService.js} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/{chatSlashCommands.d.ts → participants/chatSlashCommands.d.ts} +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +25 -49
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +29 -29
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +54 -54
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +11 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +83 -18
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +11 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +27 -10
- package/vscode/src/vs/workbench/contrib/chat/common/{chatTodoListService.d.ts → tools/chatTodoListService.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/{chatTodoListService.js → tools/chatTodoListService.js} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +29 -29
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/{chatResponseResourceFileSystemProvider.d.ts → widget/chatResponseResourceFileSystemProvider.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/{chatResponseResourceFileSystemProvider.js → widget/chatResponseResourceFileSystemProvider.js} +4 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +5 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +23 -23
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/common/remoteCodingAgentsService.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +47 -30
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.d.ts +1 -1
- 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 +15 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +33 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +4 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +6 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/alternativeRecommendation.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +12 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/noneExecuteStrategy.js +17 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.js +12 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/strategyHelpers.js +22 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +100 -23
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +19 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{commandLineAutoApprover.d.ts → tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.d.ts} +11 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/{commandLineAutoApprover.js → tools/commandLineAnalyzer/autoApprove/commandLineAutoApprover.js} +83 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +156 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +17 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.js +10 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +64 -26
- 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 +16 -8
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineRewriter/commandLinePreventHistoryRewriter.js +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +4 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +55 -23
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +85 -46
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +9 -9
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +9 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.d.ts +0 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +0 -248
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.d.ts +0 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.js +0 -184
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsview.css +0 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.d.ts +0 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.js +0 -229
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.d.ts +0 -102
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js +0 -495
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.d.ts +0 -64
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.js +0 -386
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatSessions.css +0 -299
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewPane.css +0 -142
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewTitleControl.css +0 -39
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatTerminalOutputAccessibleView.d.ts → accessibility/chatTerminalOutputAccessibleView.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → attachments/media}/simpleBrowserOverlay.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatEditing → attachments}/simpleBrowserEditorOverlay.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatEditing/media}/chatEditingEditorOverlay.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatEditing/media}/chatEditorController.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatContentParts → widget/chatContentParts}/chatMarkdownAnchorService.js +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatLayoutService.js → widget/chatLayoutService.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatEdinputInputContentProvider.d.ts → widget/input/editor/chatEditorInputContentProvider.d.ts} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatEdinputInputContentProvider.js → widget/input/editor/chatEditorInputContentProvider.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/chatInputEditorContrib.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/editorHoverWrapper.d.ts +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/editorHoverWrapper.js +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{contrib → widget/input/editor}/media/editorHoverWrapper.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → widget/input/media}/chatStatusWidget.css +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/common/{chatCodeMapperService.js → editing/chatCodeMapperService.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/common/{chatModelStore.js → model/chatModelStore.js} +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/common/{chatSlashCommands.js → participants/chatSlashCommands.js} +0 -0
|
@@ -8,14 +8,13 @@ import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
8
8
|
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
9
9
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
10
10
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
11
|
-
import { IEditableData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/views";
|
|
12
11
|
import { IExtensionService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service";
|
|
13
|
-
import { IChatAgentAttachmentCapabilities } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents";
|
|
14
|
-
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service";
|
|
15
|
-
import {
|
|
12
|
+
import { IChatAgentAttachmentCapabilities } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents";
|
|
13
|
+
import { IChatAgentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service";
|
|
14
|
+
import { IChatSession, IChatSessionContentProvider, IChatSessionItem, IChatSessionItemProvider, IChatSessionProviderOptionGroup, IChatSessionProviderOptionItem, IChatSessionsExtensionPoint, SessionOptionsChangedCallback } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
|
|
16
15
|
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
17
|
-
import { IChatModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel";
|
|
18
|
-
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
16
|
+
import { IChatModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
17
|
+
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
19
18
|
export declare class ChatSessionsService extends Disposable implements IChatSessionsService {
|
|
20
19
|
private readonly _logService;
|
|
21
20
|
private readonly _chatAgentService;
|
|
@@ -56,7 +55,7 @@ export declare class ChatSessionsService extends Disposable implements IChatSess
|
|
|
56
55
|
private readonly _sessionTypeWelcomeTips;
|
|
57
56
|
private readonly _sessionTypeInputPlaceholders;
|
|
58
57
|
private readonly _sessions;
|
|
59
|
-
private readonly
|
|
58
|
+
private readonly _hasCanDelegateProvidersKey;
|
|
60
59
|
constructor(_logService: ILogService, _chatAgentService: IChatAgentService, _extensionService: IExtensionService, _contextKeyService: IContextKeyService, _menuService: IMenuService, _themeService: IThemeService, _labelService: ILabelService);
|
|
61
60
|
reportInProgress(chatSessionType: string, count: number): void;
|
|
62
61
|
getInProgress(): {
|
|
@@ -79,6 +78,7 @@ export declare class ChatSessionsService extends Disposable implements IChatSess
|
|
|
79
78
|
private _disposeSessionsForContribution;
|
|
80
79
|
private _registerAgent;
|
|
81
80
|
getAllChatSessionContributions(): IChatSessionsExtensionPoint[];
|
|
81
|
+
private _updateHasCanDelegateProvidersContextKey;
|
|
82
82
|
getChatSessionContribution(chatSessionType: string): IChatSessionsExtensionPoint | undefined;
|
|
83
83
|
getAllChatSessionItemProviders(): IChatSessionItemProvider[];
|
|
84
84
|
activateChatSessionItemProvider(chatViewType: string): Promise<IChatSessionItemProvider | undefined>;
|
|
@@ -96,9 +96,6 @@ export declare class ChatSessionsService extends Disposable implements IChatSess
|
|
|
96
96
|
hasAnySessionOptions(sessionResource: URI): boolean;
|
|
97
97
|
getSessionOption(sessionResource: URI, optionId: string): string | IChatSessionProviderOptionItem | undefined;
|
|
98
98
|
setSessionOption(sessionResource: URI, optionId: string, value: string | IChatSessionProviderOptionItem): boolean;
|
|
99
|
-
setEditableSession(sessionResource: URI, data: IEditableData | null): Promise<void>;
|
|
100
|
-
getEditableData(sessionResource: URI): IEditableData | undefined;
|
|
101
|
-
isEditable(sessionResource: URI): boolean;
|
|
102
99
|
notifySessionItemsChanged(chatSessionType: string): void;
|
|
103
100
|
/**
|
|
104
101
|
* Store option groups for a session type
|
|
@@ -141,5 +138,4 @@ export declare class ChatSessionsService extends Disposable implements IChatSess
|
|
|
141
138
|
*/
|
|
142
139
|
getCapabilitiesForSessionType(chatSessionType: string): IChatAgentAttachmentCapabilities | undefined;
|
|
143
140
|
getContentProviderSchemes(): string[];
|
|
144
|
-
isChatSessionInProgressStatus(state: ChatSessionStatus): boolean;
|
|
145
141
|
}
|
|
@@ -26,16 +26,15 @@ import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench
|
|
|
26
26
|
import { isProposedApiEnabled } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions';
|
|
27
27
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
28
28
|
import { ExtensionsRegistry } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensionsRegistry';
|
|
29
|
-
import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
30
|
-
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatAgents.service';
|
|
31
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
32
|
-
import { localChatSessionType,
|
|
29
|
+
import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput';
|
|
30
|
+
import { IChatAgentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatAgents.service';
|
|
31
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
32
|
+
import { localChatSessionType, isSessionInProgressStatus } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
33
33
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
34
|
-
import {
|
|
34
|
+
import { ChatAgentLocation, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
35
35
|
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
36
|
+
import { IChatToolInvocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
37
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
39
38
|
import '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/index';
|
|
40
39
|
import { renderAsPlaintext } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/markdownRenderer';
|
|
41
40
|
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
@@ -46,39 +45,39 @@ import { observableSignalFromEvent } from '@codingame/monaco-vscode-api/vscode/v
|
|
|
46
45
|
const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
47
46
|
extensionPoint: 'chatSessions',
|
|
48
47
|
jsonSchema: {
|
|
49
|
-
description: ( localize(
|
|
48
|
+
description: ( localize(5293, 'Contributes chat session integrations to the chat widget.')),
|
|
50
49
|
type: 'array',
|
|
51
50
|
items: {
|
|
52
51
|
type: 'object',
|
|
53
52
|
additionalProperties: false,
|
|
54
53
|
properties: {
|
|
55
54
|
type: {
|
|
56
|
-
description: ( localize(
|
|
55
|
+
description: ( localize(5294, 'Unique identifier for the type of chat session.')),
|
|
57
56
|
type: 'string',
|
|
58
57
|
},
|
|
59
58
|
name: {
|
|
60
59
|
description: ( localize(
|
|
61
|
-
|
|
60
|
+
5295,
|
|
62
61
|
'Name of the dynamically registered chat participant (eg: @agent). Must not contain whitespace.'
|
|
63
62
|
)),
|
|
64
63
|
type: 'string',
|
|
65
64
|
pattern: '^[\\w-]+$'
|
|
66
65
|
},
|
|
67
66
|
displayName: {
|
|
68
|
-
description: ( localize(
|
|
67
|
+
description: ( localize(5296, 'A longer name for this item which is used for display in menus.')),
|
|
69
68
|
type: 'string',
|
|
70
69
|
},
|
|
71
70
|
description: {
|
|
72
|
-
description: ( localize(
|
|
71
|
+
description: ( localize(5297, 'Description of the chat session for use in menus and tooltips.')),
|
|
73
72
|
type: 'string'
|
|
74
73
|
},
|
|
75
74
|
when: {
|
|
76
|
-
description: ( localize(
|
|
75
|
+
description: ( localize(5298, 'Condition which must be true to show this item.')),
|
|
77
76
|
type: 'string'
|
|
78
77
|
},
|
|
79
78
|
icon: {
|
|
80
79
|
description: ( localize(
|
|
81
|
-
|
|
80
|
+
5299,
|
|
82
81
|
'Icon identifier (codicon ID) for the chat session editor tab. For example, "$(github)" or "$(cloud)".'
|
|
83
82
|
)),
|
|
84
83
|
anyOf: [{
|
|
@@ -88,22 +87,22 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
88
87
|
type: 'object',
|
|
89
88
|
properties: {
|
|
90
89
|
light: {
|
|
91
|
-
description: ( localize(
|
|
90
|
+
description: ( localize(5300, 'Icon path when a light theme is used')),
|
|
92
91
|
type: 'string'
|
|
93
92
|
},
|
|
94
93
|
dark: {
|
|
95
|
-
description: ( localize(
|
|
94
|
+
description: ( localize(5301, 'Icon path when a dark theme is used')),
|
|
96
95
|
type: 'string'
|
|
97
96
|
}
|
|
98
97
|
}
|
|
99
98
|
}]
|
|
100
99
|
},
|
|
101
100
|
order: {
|
|
102
|
-
description: ( localize(
|
|
101
|
+
description: ( localize(5302, 'Order in which this item should be displayed.')),
|
|
103
102
|
type: 'integer'
|
|
104
103
|
},
|
|
105
104
|
alternativeIds: {
|
|
106
|
-
description: ( localize(
|
|
105
|
+
description: ( localize(5303, 'Alternative identifiers for backward compatibility.')),
|
|
107
106
|
type: 'array',
|
|
108
107
|
items: {
|
|
109
108
|
type: 'string'
|
|
@@ -111,87 +110,87 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
111
110
|
},
|
|
112
111
|
welcomeTitle: {
|
|
113
112
|
description: ( localize(
|
|
114
|
-
|
|
113
|
+
5304,
|
|
115
114
|
'Title text to display in the chat welcome view for this session type.'
|
|
116
115
|
)),
|
|
117
116
|
type: 'string'
|
|
118
117
|
},
|
|
119
118
|
welcomeMessage: {
|
|
120
119
|
description: ( localize(
|
|
121
|
-
|
|
120
|
+
5305,
|
|
122
121
|
'Message text (supports markdown) to display in the chat welcome view for this session type.'
|
|
123
122
|
)),
|
|
124
123
|
type: 'string'
|
|
125
124
|
},
|
|
126
125
|
welcomeTips: {
|
|
127
126
|
description: ( localize(
|
|
128
|
-
|
|
127
|
+
5306,
|
|
129
128
|
'Tips text (supports markdown and theme icons) to display in the chat welcome view for this session type.'
|
|
130
129
|
)),
|
|
131
130
|
type: 'string'
|
|
132
131
|
},
|
|
133
132
|
inputPlaceholder: {
|
|
134
133
|
description: ( localize(
|
|
135
|
-
|
|
134
|
+
5307,
|
|
136
135
|
'Placeholder text to display in the chat input box for this session type.'
|
|
137
136
|
)),
|
|
138
137
|
type: 'string'
|
|
139
138
|
},
|
|
140
139
|
capabilities: {
|
|
141
|
-
description: ( localize(
|
|
140
|
+
description: ( localize(5308, 'Optional capabilities for this chat session.')),
|
|
142
141
|
type: 'object',
|
|
143
142
|
additionalProperties: false,
|
|
144
143
|
properties: {
|
|
145
144
|
supportsFileAttachments: {
|
|
146
145
|
description: ( localize(
|
|
147
|
-
|
|
146
|
+
5309,
|
|
148
147
|
'Whether this chat session supports attaching files or file references.'
|
|
149
148
|
)),
|
|
150
149
|
type: 'boolean'
|
|
151
150
|
},
|
|
152
151
|
supportsToolAttachments: {
|
|
153
152
|
description: ( localize(
|
|
154
|
-
|
|
153
|
+
5310,
|
|
155
154
|
'Whether this chat session supports attaching tools or tool references.'
|
|
156
155
|
)),
|
|
157
156
|
type: 'boolean'
|
|
158
157
|
},
|
|
159
158
|
supportsMCPAttachments: {
|
|
160
|
-
description: ( localize(
|
|
159
|
+
description: ( localize(5311, 'Whether this chat session supports attaching MCP resources.')),
|
|
161
160
|
type: 'boolean'
|
|
162
161
|
},
|
|
163
162
|
supportsImageAttachments: {
|
|
164
|
-
description: ( localize(
|
|
163
|
+
description: ( localize(5312, 'Whether this chat session supports attaching images.')),
|
|
165
164
|
type: 'boolean'
|
|
166
165
|
},
|
|
167
166
|
supportsSearchResultAttachments: {
|
|
168
|
-
description: ( localize(
|
|
167
|
+
description: ( localize(5313, 'Whether this chat session supports attaching search results.')),
|
|
169
168
|
type: 'boolean'
|
|
170
169
|
},
|
|
171
170
|
supportsInstructionAttachments: {
|
|
172
|
-
description: ( localize(
|
|
171
|
+
description: ( localize(5314, 'Whether this chat session supports attaching instructions.')),
|
|
173
172
|
type: 'boolean'
|
|
174
173
|
},
|
|
175
174
|
supportsSourceControlAttachments: {
|
|
176
175
|
description: ( localize(
|
|
177
|
-
|
|
176
|
+
5315,
|
|
178
177
|
'Whether this chat session supports attaching source control changes.'
|
|
179
178
|
)),
|
|
180
179
|
type: 'boolean'
|
|
181
180
|
},
|
|
182
181
|
supportsProblemAttachments: {
|
|
183
|
-
description: ( localize(
|
|
182
|
+
description: ( localize(5316, 'Whether this chat session supports attaching problems.')),
|
|
184
183
|
type: 'boolean'
|
|
185
184
|
},
|
|
186
185
|
supportsSymbolAttachments: {
|
|
187
|
-
description: ( localize(
|
|
186
|
+
description: ( localize(5317, 'Whether this chat session supports attaching symbols.')),
|
|
188
187
|
type: 'boolean'
|
|
189
188
|
}
|
|
190
189
|
}
|
|
191
190
|
},
|
|
192
191
|
commands: {
|
|
193
192
|
markdownDescription: ( localize(
|
|
194
|
-
|
|
193
|
+
5318,
|
|
195
194
|
"Commands available for this chat session, which the user can invoke with a `/`."
|
|
196
195
|
)),
|
|
197
196
|
type: 'array',
|
|
@@ -203,17 +202,17 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
203
202
|
properties: {
|
|
204
203
|
name: {
|
|
205
204
|
description: ( localize(
|
|
206
|
-
|
|
205
|
+
5319,
|
|
207
206
|
"A short name by which this command is referred to in the UI, e.g. `fix` or `explain` for commands that fix an issue or explain code. The name should be unique among the commands provided by this participant."
|
|
208
207
|
)),
|
|
209
208
|
type: 'string'
|
|
210
209
|
},
|
|
211
210
|
description: {
|
|
212
|
-
description: ( localize(
|
|
211
|
+
description: ( localize(5320, "A description of this command.")),
|
|
213
212
|
type: 'string'
|
|
214
213
|
},
|
|
215
214
|
when: {
|
|
216
|
-
description: ( localize(
|
|
215
|
+
description: ( localize(5321, "A condition which must be true to enable this command.")),
|
|
217
216
|
type: 'string'
|
|
218
217
|
},
|
|
219
218
|
}
|
|
@@ -221,7 +220,7 @@ const extensionPoint = ExtensionsRegistry.registerExtensionPoint({
|
|
|
221
220
|
},
|
|
222
221
|
canDelegate: {
|
|
223
222
|
description: ( localize(
|
|
224
|
-
|
|
223
|
+
5322,
|
|
225
224
|
'Whether delegation is supported. Default is false. Note that enabling this is experimental and may not be respected at all times.'
|
|
226
225
|
)),
|
|
227
226
|
type: 'boolean',
|
|
@@ -300,7 +299,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
300
299
|
this._sessionTypeWelcomeTips = ( new Map());
|
|
301
300
|
this._sessionTypeInputPlaceholders = ( new Map());
|
|
302
301
|
this._sessions = ( new ResourceMap());
|
|
303
|
-
this.
|
|
302
|
+
this._hasCanDelegateProvidersKey = ChatContextKeys.hasCanDelegateProviders.bindTo(this._contextKeyService);
|
|
304
303
|
this._register(extensionPoint.setHandler(extensions => {
|
|
305
304
|
for (const ext of extensions) {
|
|
306
305
|
if (!isProposedApiEnabled(ext.description, 'chatSessionsProvider')) {
|
|
@@ -350,7 +349,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
350
349
|
async updateInProgressStatus(chatSessionType) {
|
|
351
350
|
try {
|
|
352
351
|
const items = await this.getChatSessionItems(chatSessionType, CancellationToken.None);
|
|
353
|
-
const inProgress = items.filter(item => item.status &&
|
|
352
|
+
const inProgress = items.filter(item => item.status && isSessionInProgressStatus(item.status));
|
|
354
353
|
this.reportInProgress(chatSessionType, inProgress.length);
|
|
355
354
|
}
|
|
356
355
|
catch (error) {
|
|
@@ -424,6 +423,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
424
423
|
this._sessionTypeWelcomeTips.delete(contribution.type);
|
|
425
424
|
this._sessionTypeInputPlaceholders.delete(contribution.type);
|
|
426
425
|
this._contributionDisposables.deleteAndDispose(contribution.type);
|
|
426
|
+
this._updateHasCanDelegateProvidersContextKey();
|
|
427
427
|
}
|
|
428
428
|
};
|
|
429
429
|
}
|
|
@@ -445,7 +445,6 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
445
445
|
if (primaryType) {
|
|
446
446
|
const altContribution = this._contributions.get(primaryType)?.contribution;
|
|
447
447
|
if (altContribution && this._isContributionAvailable(altContribution)) {
|
|
448
|
-
this._logService.trace(`Resolving chat session type '${sessionType}' to alternative type '${primaryType}'`);
|
|
449
448
|
return primaryType;
|
|
450
449
|
}
|
|
451
450
|
}
|
|
@@ -457,48 +456,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
457
456
|
]);
|
|
458
457
|
const rawMenuActions = this._menuService.getMenuActions(MenuId.AgentSessionsCreateSubMenu, contextKeyService);
|
|
459
458
|
const menuActions = ( rawMenuActions.map(value => value[1])).flat();
|
|
460
|
-
const whenClause = ( ContextKeyExpr.and(( ContextKeyExpr.equals('view', `${LEGACY_AGENT_SESSIONS_VIEW_ID}.${contribution.type}`))));
|
|
461
459
|
const disposables = ( new DisposableStore());
|
|
462
|
-
if (menuActions.length === 1) {
|
|
463
|
-
const first = menuActions[0];
|
|
464
|
-
if (first instanceof MenuItemAction) {
|
|
465
|
-
disposables.add(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
466
|
-
group: 'navigation',
|
|
467
|
-
title: first.label,
|
|
468
|
-
icon: Codicon.plus,
|
|
469
|
-
order: 1,
|
|
470
|
-
when: whenClause,
|
|
471
|
-
command: first.item,
|
|
472
|
-
}));
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
if (menuActions.length) {
|
|
476
|
-
disposables.add(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
477
|
-
group: 'navigation',
|
|
478
|
-
title: ( localize(5496, "Create chat session")),
|
|
479
|
-
icon: Codicon.plus,
|
|
480
|
-
order: 1,
|
|
481
|
-
when: whenClause,
|
|
482
|
-
submenu: MenuId.AgentSessionsCreateSubMenu,
|
|
483
|
-
isSplitButton: menuActions.length > 1
|
|
484
|
-
}));
|
|
485
|
-
}
|
|
486
|
-
else {
|
|
487
|
-
disposables.add(MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
488
|
-
command: {
|
|
489
|
-
id: `${NEW_CHAT_SESSION_ACTION_ID}.${contribution.type}`,
|
|
490
|
-
title: ( localize(5497, "New {0}", contribution.displayName)),
|
|
491
|
-
icon: Codicon.plus,
|
|
492
|
-
source: {
|
|
493
|
-
id: extensionDescription.identifier.value,
|
|
494
|
-
title: extensionDescription.displayName || extensionDescription.name,
|
|
495
|
-
}
|
|
496
|
-
},
|
|
497
|
-
group: 'navigation',
|
|
498
|
-
order: 1,
|
|
499
|
-
when: whenClause,
|
|
500
|
-
}));
|
|
501
|
-
}
|
|
502
460
|
for (const action of menuActions) {
|
|
503
461
|
if (action instanceof MenuItemAction) {
|
|
504
462
|
disposables.add(MenuRegistry.appendMenuItem(MenuId.ChatNewMenu, {
|
|
@@ -516,7 +474,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
516
474
|
constructor() {
|
|
517
475
|
super({
|
|
518
476
|
id: `workbench.action.chat.openSessionWithPrompt.${contribution.type}`,
|
|
519
|
-
title: ( localize2(
|
|
477
|
+
title: ( localize2(5323, "New {0} with Prompt", contribution.displayName)),
|
|
520
478
|
category: CHAT_CATEGORY,
|
|
521
479
|
icon: Codicon.plus,
|
|
522
480
|
f1: false,
|
|
@@ -538,7 +496,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
538
496
|
constructor() {
|
|
539
497
|
super({
|
|
540
498
|
id: `workbench.action.chat.openNewSessionEditor.${contribution.type}`,
|
|
541
|
-
title: ( localize2(
|
|
499
|
+
title: ( localize2(5324, "New {0}", contribution.displayName)),
|
|
542
500
|
category: CHAT_CATEGORY,
|
|
543
501
|
icon: Codicon.plus,
|
|
544
502
|
f1: true,
|
|
@@ -555,7 +513,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
555
513
|
override: ChatEditorInput.EditorID,
|
|
556
514
|
pinned: true,
|
|
557
515
|
title: {
|
|
558
|
-
fallback: ( localize(
|
|
516
|
+
fallback: ( localize(5325, "{0}", contribution.displayName)),
|
|
559
517
|
}
|
|
560
518
|
};
|
|
561
519
|
const resource = ( URI.from({
|
|
@@ -576,7 +534,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
576
534
|
constructor() {
|
|
577
535
|
super({
|
|
578
536
|
id: `workbench.action.chat.openNewSessionSidebar.${contribution.type}`,
|
|
579
|
-
title: ( localize2(
|
|
537
|
+
title: ( localize2(5326, "New {0}", contribution.displayName)),
|
|
580
538
|
category: CHAT_CATEGORY,
|
|
581
539
|
icon: Codicon.plus,
|
|
582
540
|
f1: false,
|
|
@@ -634,6 +592,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
634
592
|
this._onDidChangeSessionItems.fire(contribution.type);
|
|
635
593
|
}
|
|
636
594
|
}
|
|
595
|
+
this._updateHasCanDelegateProvidersContextKey();
|
|
637
596
|
}
|
|
638
597
|
_enableContribution(contribution, ext) {
|
|
639
598
|
const disposableStore = ( new DisposableStore());
|
|
@@ -697,6 +656,12 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
697
656
|
return Array.from(( this._contributions.values()), x => x.contribution)
|
|
698
657
|
.filter(contribution => this._isContributionAvailable(contribution));
|
|
699
658
|
}
|
|
659
|
+
_updateHasCanDelegateProvidersContextKey() {
|
|
660
|
+
const hasCanDelegate = this.getAllChatSessionContributions().filter(c => c.canDelegate);
|
|
661
|
+
const canDelegateEnabled = hasCanDelegate.length > 0;
|
|
662
|
+
this._logService.trace(`[ChatSessionsService] hasCanDelegateProvidersAvailable=${canDelegateEnabled} (${( hasCanDelegate.map(c => c.type)).join(', ')})`);
|
|
663
|
+
this._hasCanDelegateProvidersKey.set(canDelegateEnabled);
|
|
664
|
+
}
|
|
700
665
|
getChatSessionContribution(chatSessionType) {
|
|
701
666
|
const contribution = this._contributions.get(chatSessionType)?.contribution;
|
|
702
667
|
if (!contribution) {
|
|
@@ -870,7 +835,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
870
835
|
? confirmationTitle
|
|
871
836
|
: confirmationTitle.value);
|
|
872
837
|
const descriptionValue = typeof description === 'string' ? description : description.value;
|
|
873
|
-
description = titleMessage ?? ( localize(
|
|
838
|
+
description = titleMessage ?? ( localize(5327, "Waiting for confirmation: {0}", descriptionValue));
|
|
874
839
|
}
|
|
875
840
|
}
|
|
876
841
|
else if (part.kind === 'toolInvocationSerialized') {
|
|
@@ -880,7 +845,7 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
880
845
|
description = part.content;
|
|
881
846
|
}
|
|
882
847
|
else if (part.kind === 'thinking') {
|
|
883
|
-
description = ( localize(
|
|
848
|
+
description = ( localize(5328, 'Thinking...'));
|
|
884
849
|
}
|
|
885
850
|
}
|
|
886
851
|
return renderAsPlaintext(description, { useLinkFormatter: true });
|
|
@@ -924,21 +889,6 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
924
889
|
const session = this._sessions.get(sessionResource);
|
|
925
890
|
return !!session?.setOption(optionId, value);
|
|
926
891
|
}
|
|
927
|
-
async setEditableSession(sessionResource, data) {
|
|
928
|
-
if (!data) {
|
|
929
|
-
this._editableSessions.delete(sessionResource);
|
|
930
|
-
}
|
|
931
|
-
else {
|
|
932
|
-
this._editableSessions.set(sessionResource, data);
|
|
933
|
-
}
|
|
934
|
-
this._onDidChangeSessionItems.fire(localChatSessionType);
|
|
935
|
-
}
|
|
936
|
-
getEditableData(sessionResource) {
|
|
937
|
-
return this._editableSessions.get(sessionResource);
|
|
938
|
-
}
|
|
939
|
-
isEditable(sessionResource) {
|
|
940
|
-
return ( this._editableSessions.has(sessionResource));
|
|
941
|
-
}
|
|
942
892
|
notifySessionItemsChanged(chatSessionType) {
|
|
943
893
|
this._onDidChangeSessionItems.fire(chatSessionType);
|
|
944
894
|
}
|
|
@@ -997,9 +947,6 @@ let ChatSessionsService = class ChatSessionsService extends Disposable {
|
|
|
997
947
|
getContentProviderSchemes() {
|
|
998
948
|
return Array.from(( this._contentProviders.keys()));
|
|
999
949
|
}
|
|
1000
|
-
isChatSessionInProgressStatus(state) {
|
|
1001
|
-
return state === ChatSessionStatus.InProgress || state === ChatSessionStatus.NeedsInput;
|
|
1002
|
-
}
|
|
1003
950
|
};
|
|
1004
951
|
ChatSessionsService = ( __decorate([
|
|
1005
952
|
( __param(0, ILogService)),
|
|
@@ -39,11 +39,10 @@ import { IWorkbenchLayoutService } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
39
39
|
import { ILifecycleService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/lifecycle/common/lifecycle.service';
|
|
40
40
|
import { IPreferencesService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/preferences/common/preferences.service';
|
|
41
41
|
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
42
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
42
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
43
43
|
import { IChatModeService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModes.service';
|
|
44
44
|
import { ChatModeKind, ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
45
45
|
import { CHAT_CATEGORY, CHAT_SETUP_ACTION_ID, CHAT_SETUP_SUPPORT_ANONYMOUS_ACTION_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
46
|
-
import { AGENT_SESSIONS_VIEW_CONTAINER_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
47
46
|
import { ChatViewContainerId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
48
47
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
49
48
|
import { chatViewsWelcomeRegistry } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcome';
|
|
@@ -148,7 +147,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
148
147
|
}
|
|
149
148
|
registerActions(context, requests, controller) {
|
|
150
149
|
class ChatSetupTriggerAction extends Action2 {
|
|
151
|
-
static { this.CHAT_SETUP_ACTION_LABEL = ( localize2(
|
|
150
|
+
static { this.CHAT_SETUP_ACTION_LABEL = ( localize2(5329, "Use AI Features with Copilot for free...")); }
|
|
152
151
|
constructor() {
|
|
153
152
|
super({
|
|
154
153
|
id: CHAT_SETUP_ACTION_ID,
|
|
@@ -186,8 +185,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
186
185
|
if (success === false && !lifecycleService.willShutdown) {
|
|
187
186
|
const { confirmed } = await dialogService.confirm({
|
|
188
187
|
type: Severity.Error,
|
|
189
|
-
message: ( localize(
|
|
190
|
-
primaryButton: ( localize(
|
|
188
|
+
message: ( localize(5330, "Chat setup failed. Would you like to try again?")),
|
|
189
|
+
primaryButton: ( localize(5331, "Retry")),
|
|
191
190
|
});
|
|
192
191
|
if (confirmed) {
|
|
193
192
|
return Boolean(await commandService.executeCommand(CHAT_SETUP_ACTION_ID, mode, options));
|
|
@@ -217,7 +216,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
217
216
|
constructor() {
|
|
218
217
|
super({
|
|
219
218
|
id: 'workbench.action.chat.triggerSetupForceSignIn',
|
|
220
|
-
title: ( localize2(
|
|
219
|
+
title: ( localize2(5332, "Sign in to use AI features"))
|
|
221
220
|
});
|
|
222
221
|
}
|
|
223
222
|
async run(accessor) {
|
|
@@ -245,7 +244,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
245
244
|
constructor() {
|
|
246
245
|
super({
|
|
247
246
|
id: 'workbench.action.chat.triggerSetupFromAccounts',
|
|
248
|
-
title: ( localize2(
|
|
247
|
+
title: ( localize2(5333, "Sign in to use AI features...")),
|
|
249
248
|
menu: {
|
|
250
249
|
id: MenuId.AccountsContext,
|
|
251
250
|
group: '2_copilot',
|
|
@@ -265,8 +264,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
265
264
|
constructor() {
|
|
266
265
|
super({
|
|
267
266
|
id: 'workbench.action.chat.upgradePlan',
|
|
268
|
-
title: ( localize2(
|
|
269
|
-
category: ( localize2(
|
|
267
|
+
title: ( localize2(5334, "Upgrade to GitHub Copilot Pro")),
|
|
268
|
+
category: ( localize2(5335, 'Chat')),
|
|
270
269
|
f1: true,
|
|
271
270
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ContextKeyExpr.or(
|
|
272
271
|
ChatContextKeys.Entitlement.canSignUp,
|
|
@@ -307,8 +306,8 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
307
306
|
constructor() {
|
|
308
307
|
super({
|
|
309
308
|
id: 'workbench.action.chat.manageOverages',
|
|
310
|
-
title: ( localize2(
|
|
311
|
-
category: ( localize2(
|
|
309
|
+
title: ( localize2(5336, "Manage GitHub Copilot Overages")),
|
|
310
|
+
category: ( localize2(5335, 'Chat')),
|
|
312
311
|
f1: true,
|
|
313
312
|
precondition: ( ContextKeyExpr.and(( ChatContextKeys.Setup.hidden.negate()), ( ContextKeyExpr.or(
|
|
314
313
|
ChatContextKeys.Entitlement.planPro,
|
|
@@ -381,7 +380,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
381
380
|
MenuRegistry.appendMenuItem(MenuId.EditorContext, {
|
|
382
381
|
command: {
|
|
383
382
|
id: 'chat.internal.explain',
|
|
384
|
-
title: ( localize(
|
|
383
|
+
title: ( localize(5337, "Explain")),
|
|
385
384
|
},
|
|
386
385
|
group: '1_chat',
|
|
387
386
|
order: 4,
|
|
@@ -390,7 +389,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
390
389
|
MenuRegistry.appendMenuItem(MenuId.ChatTextEditorMenu, {
|
|
391
390
|
command: {
|
|
392
391
|
id: 'chat.internal.fix',
|
|
393
|
-
title: ( localize(
|
|
392
|
+
title: ( localize(5338, "Fix")),
|
|
394
393
|
},
|
|
395
394
|
group: '1_action',
|
|
396
395
|
order: 1,
|
|
@@ -399,7 +398,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
399
398
|
MenuRegistry.appendMenuItem(MenuId.ChatTextEditorMenu, {
|
|
400
399
|
command: {
|
|
401
400
|
id: 'chat.internal.review',
|
|
402
|
-
title: ( localize(
|
|
401
|
+
title: ( localize(5339, "Code Review")),
|
|
403
402
|
},
|
|
404
403
|
group: '1_action',
|
|
405
404
|
order: 2,
|
|
@@ -408,7 +407,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
408
407
|
MenuRegistry.appendMenuItem(MenuId.ChatTextEditorMenu, {
|
|
409
408
|
command: {
|
|
410
409
|
id: 'chat.internal.generateDocs',
|
|
411
|
-
title: ( localize(
|
|
410
|
+
title: ( localize(5340, "Generate Docs")),
|
|
412
411
|
},
|
|
413
412
|
group: '2_generate',
|
|
414
413
|
order: 1,
|
|
@@ -417,7 +416,7 @@ let ChatSetupContribution = class ChatSetupContribution extends Disposable {
|
|
|
417
416
|
MenuRegistry.appendMenuItem(MenuId.ChatTextEditorMenu, {
|
|
418
417
|
command: {
|
|
419
418
|
id: 'chat.internal.generateTests',
|
|
420
|
-
title: ( localize(
|
|
419
|
+
title: ( localize(5341, "Generate Tests")),
|
|
421
420
|
},
|
|
422
421
|
group: '2_generate',
|
|
423
422
|
order: 2,
|
|
@@ -566,15 +565,12 @@ let ChatTeardownContribution = class ChatTeardownContribution extends Disposable
|
|
|
566
565
|
return;
|
|
567
566
|
}
|
|
568
567
|
await this.extensionsWorkbenchService.setEnablement([defaultChatExtension], state);
|
|
569
|
-
await this.extensionsWorkbenchService.updateRunningExtensions(state === EnablementState.EnabledGlobally || state === EnablementState.EnabledWorkspace ? ( localize(
|
|
568
|
+
await this.extensionsWorkbenchService.updateRunningExtensions(state === EnablementState.EnabledGlobally || state === EnablementState.EnabledWorkspace ? ( localize(5342, "Enabling AI features")) : ( localize(5343, "Disabling AI features")));
|
|
570
569
|
}
|
|
571
570
|
maybeHideAuxiliaryBar() {
|
|
572
571
|
const activeContainers = this.viewDescriptorService.getViewContainersByLocation(ViewContainerLocation.AuxiliaryBar).filter(container => this.viewDescriptorService.getViewContainerModel(container).activeViewDescriptors.length > 0);
|
|
573
|
-
const hasChatView = ( activeContainers.some(container => container.id === ChatViewContainerId));
|
|
574
|
-
const hasAgentSessionsView = ( activeContainers.some(container => container.id === AGENT_SESSIONS_VIEW_CONTAINER_ID));
|
|
575
572
|
if ((activeContainers.length === 0) ||
|
|
576
|
-
(activeContainers.length === 1 && (
|
|
577
|
-
(activeContainers.length === 2 && hasChatView && hasAgentSessionsView)
|
|
573
|
+
(activeContainers.length === 1 && activeContainers.at(0)?.id === ChatViewContainerId)
|
|
578
574
|
) {
|
|
579
575
|
this.layoutService.setPartHidden(true, Parts.AUXILIARYBAR_PART);
|
|
580
576
|
}
|
|
@@ -582,7 +578,7 @@ let ChatTeardownContribution = class ChatTeardownContribution extends Disposable
|
|
|
582
578
|
registerActions() {
|
|
583
579
|
class ChatSetupHideAction extends Action2 {
|
|
584
580
|
static { this.ID = 'workbench.action.chat.hideSetup'; }
|
|
585
|
-
static { this.TITLE = ( localize2(
|
|
581
|
+
static { this.TITLE = ( localize2(5344, "Learn How to Hide AI Features")); }
|
|
586
582
|
constructor() {
|
|
587
583
|
super({
|
|
588
584
|
id: ChatSetupHideAction.ID,
|