@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
package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
2
2
|
import { IContextMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service";
|
|
3
3
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
-
import {
|
|
4
|
+
import { IAgentSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel";
|
|
5
|
+
import { IAgentSessionsFilter, IAgentSessionsSorterOptions } from "./agentSessionsViewer.js";
|
|
5
6
|
import { IMenuService } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service";
|
|
6
7
|
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
7
8
|
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
8
|
-
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
9
9
|
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
10
|
-
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service";
|
|
11
|
-
import { IChatWidgetService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service";
|
|
12
|
-
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
13
10
|
import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
|
|
14
11
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
15
12
|
import { IListStyles } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/list/listWidget";
|
|
16
13
|
import { IStyleOverride } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/browser/defaultStyles";
|
|
17
14
|
import { IAgentSessionsControl } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions";
|
|
18
|
-
|
|
15
|
+
import { HoverPosition } from "@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverWidget";
|
|
16
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
17
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
18
|
+
export interface IAgentSessionsControlOptions extends IAgentSessionsSorterOptions {
|
|
19
19
|
readonly overrideStyles?: IStyleOverride<IListStyles>;
|
|
20
20
|
readonly filter?: IAgentSessionsFilter;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
getHoverPosition(): HoverPosition;
|
|
22
|
+
trackActiveEditorSession(): boolean;
|
|
23
23
|
}
|
|
24
24
|
export declare class AgentSessionsControl extends Disposable implements IAgentSessionsControl {
|
|
25
25
|
private readonly container;
|
|
@@ -29,17 +29,17 @@ export declare class AgentSessionsControl extends Disposable implements IAgentSe
|
|
|
29
29
|
private readonly instantiationService;
|
|
30
30
|
private readonly chatSessionsService;
|
|
31
31
|
private readonly commandService;
|
|
32
|
-
private readonly editorGroupsService;
|
|
33
|
-
private readonly chatService;
|
|
34
32
|
private readonly menuService;
|
|
35
|
-
private readonly chatWidgetService;
|
|
36
33
|
private readonly agentSessionsService;
|
|
37
34
|
private readonly telemetryService;
|
|
38
35
|
private readonly editorService;
|
|
39
36
|
private sessionsContainer;
|
|
40
37
|
private sessionsList;
|
|
41
38
|
private visible;
|
|
42
|
-
|
|
39
|
+
private focusedAgentSessionArchivedContextKey;
|
|
40
|
+
private focusedAgentSessionReadContextKey;
|
|
41
|
+
private focusedAgentSessionTypeContextKey;
|
|
42
|
+
constructor(container: HTMLElement, options: IAgentSessionsControlOptions, contextMenuService: IContextMenuService, contextKeyService: IContextKeyService, instantiationService: IInstantiationService, chatSessionsService: IChatSessionsService, commandService: ICommandService, menuService: IMenuService, agentSessionsService: IAgentSessionsService, telemetryService: ITelemetryService, editorService: IEditorService);
|
|
43
43
|
private registerListeners;
|
|
44
44
|
private revealAndFocusActiveEditorSession;
|
|
45
45
|
private createList;
|
|
@@ -47,9 +47,12 @@ export declare class AgentSessionsControl extends Disposable implements IAgentSe
|
|
|
47
47
|
private showContextMenu;
|
|
48
48
|
openFind(): void;
|
|
49
49
|
refresh(): Promise<void>;
|
|
50
|
-
update(): void
|
|
50
|
+
update(): Promise<void>;
|
|
51
51
|
setVisible(visible: boolean): void;
|
|
52
52
|
layout(height: number, width: number): void;
|
|
53
53
|
focus(): void;
|
|
54
54
|
clearFocus(): void;
|
|
55
|
+
scrollToTop(): void;
|
|
56
|
+
getFocus(): IAgentSession[];
|
|
57
|
+
reveal(sessionResource: URI): void;
|
|
55
58
|
}
|
|
@@ -1,37 +1,31 @@
|
|
|
1
1
|
|
|
2
2
|
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
3
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
4
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
4
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
5
5
|
import { IContextMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextview/browser/contextView.service';
|
|
6
6
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
7
7
|
import { WorkbenchCompressibleAsyncDataTree } from '@codingame/monaco-vscode-api/vscode/vs/platform/list/browser/listService';
|
|
8
8
|
import { append, $, EventHelper } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
9
|
-
import {
|
|
10
|
-
import { AgentSessionsSorter, AgentSessionsListDelegate, AgentSessionsCompressionDelegate, AgentSessionRenderer, AgentSessionsDataSource, AgentSessionsKeyboardNavigationLabelProvider, AgentSessionsIdentityProvider, AgentSessionsDragAndDrop, AgentSessionsAccessibilityProvider } from './agentSessionsViewer.js';
|
|
9
|
+
import { isAgentSession, isAgentSessionSection } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel';
|
|
10
|
+
import { AgentSessionsSorter, AgentSessionsListDelegate, AgentSessionsCompressionDelegate, AgentSessionRenderer, AgentSessionSectionRenderer, AgentSessionsDataSource, AgentSessionsKeyboardNavigationLabelProvider, AgentSessionsIdentityProvider, AgentSessionsDragAndDrop, AgentSessionsAccessibilityProvider } from './agentSessionsViewer.js';
|
|
11
11
|
import { MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
12
12
|
import { IMenuService } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions.service';
|
|
13
13
|
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
14
14
|
import { ICommandService } from '@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service';
|
|
15
|
-
import { getSessionItemContextOverlay } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatSessions/common';
|
|
16
15
|
import { ACTION_ID_NEW_CHAT } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
17
|
-
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
18
16
|
import { Event } from '@codingame/monaco-vscode-api/vscode/vs/base/common/event';
|
|
19
17
|
import { Disposable } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
20
18
|
import { MarshalledId } from '@codingame/monaco-vscode-api/vscode/vs/base/common/marshallingIds';
|
|
21
19
|
import { Separator } from '@codingame/monaco-vscode-api/vscode/vs/base/common/actions';
|
|
22
|
-
import {
|
|
23
|
-
import { ChatViewPaneTarget } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
24
|
-
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
25
|
-
import { TreeFindMode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/abstractTree';
|
|
26
|
-
import { ACTIVE_GROUP, SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
27
|
-
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
20
|
+
import { RenderIndentGuides, TreeFindMode } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/tree/abstractTree';
|
|
28
21
|
import { IAgentSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service';
|
|
29
22
|
import { ITelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service';
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
23
|
+
import { openSession } from './agentSessionsOpener.js';
|
|
24
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
25
|
+
import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput';
|
|
32
26
|
|
|
33
27
|
let AgentSessionsControl = class AgentSessionsControl extends Disposable {
|
|
34
|
-
constructor(container, options, contextMenuService, contextKeyService, instantiationService, chatSessionsService, commandService,
|
|
28
|
+
constructor(container, options, contextMenuService, contextKeyService, instantiationService, chatSessionsService, commandService, menuService, agentSessionsService, telemetryService, editorService) {
|
|
35
29
|
super();
|
|
36
30
|
this.container = container;
|
|
37
31
|
this.options = options;
|
|
@@ -40,35 +34,31 @@ let AgentSessionsControl = class AgentSessionsControl extends Disposable {
|
|
|
40
34
|
this.instantiationService = instantiationService;
|
|
41
35
|
this.chatSessionsService = chatSessionsService;
|
|
42
36
|
this.commandService = commandService;
|
|
43
|
-
this.editorGroupsService = editorGroupsService;
|
|
44
|
-
this.chatService = chatService;
|
|
45
37
|
this.menuService = menuService;
|
|
46
|
-
this.chatWidgetService = chatWidgetService;
|
|
47
38
|
this.agentSessionsService = agentSessionsService;
|
|
48
39
|
this.telemetryService = telemetryService;
|
|
49
40
|
this.editorService = editorService;
|
|
50
41
|
this.visible = true;
|
|
42
|
+
this.focusedAgentSessionArchivedContextKey = ChatContextKeys.isArchivedAgentSession.bindTo(this.contextKeyService);
|
|
43
|
+
this.focusedAgentSessionReadContextKey = ChatContextKeys.isReadAgentSession.bindTo(this.contextKeyService);
|
|
44
|
+
this.focusedAgentSessionTypeContextKey = ChatContextKeys.agentSessionType.bindTo(this.contextKeyService);
|
|
51
45
|
this.createList(this.container);
|
|
52
46
|
this.registerListeners();
|
|
53
47
|
}
|
|
54
48
|
registerListeners() {
|
|
55
|
-
|
|
56
|
-
this._register(this.editorService.onDidActiveEditorChange(() => this.revealAndFocusActiveEditorSession()));
|
|
57
|
-
}
|
|
49
|
+
this._register(this.editorService.onDidActiveEditorChange(() => this.revealAndFocusActiveEditorSession()));
|
|
58
50
|
}
|
|
59
51
|
revealAndFocusActiveEditorSession() {
|
|
60
|
-
if (!this.
|
|
52
|
+
if (!this.options.trackActiveEditorSession() ||
|
|
53
|
+
!this.visible) {
|
|
61
54
|
return;
|
|
62
55
|
}
|
|
63
56
|
const input = this.editorService.activeEditor;
|
|
64
|
-
|
|
57
|
+
const resource = (input instanceof ChatEditorInput) ? input.sessionResource : input?.resource;
|
|
58
|
+
if (!resource) {
|
|
65
59
|
return;
|
|
66
60
|
}
|
|
67
|
-
const
|
|
68
|
-
if (!sessionResource) {
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
const matchingSession = this.agentSessionsService.model.getSession(sessionResource);
|
|
61
|
+
const matchingSession = this.agentSessionsService.model.getSession(resource);
|
|
72
62
|
if (matchingSession && this.sessionsList?.hasNode(matchingSession)) {
|
|
73
63
|
if (this.sessionsList.getRelativeTop(matchingSession) === null) {
|
|
74
64
|
this.sessionsList.reveal(matchingSession, 0.5);
|
|
@@ -79,10 +69,11 @@ let AgentSessionsControl = class AgentSessionsControl extends Disposable {
|
|
|
79
69
|
}
|
|
80
70
|
createList(container) {
|
|
81
71
|
this.sessionsContainer = append(container, $('.agent-sessions-viewer'));
|
|
82
|
-
const sorter = this.
|
|
72
|
+
const sorter = ( new AgentSessionsSorter(this.options));
|
|
83
73
|
const list = this.sessionsList = this._register(this.instantiationService.createInstance(WorkbenchCompressibleAsyncDataTree, 'AgentSessionsView', this.sessionsContainer, ( new AgentSessionsListDelegate()), ( new AgentSessionsCompressionDelegate()), [
|
|
84
|
-
this.instantiationService.createInstance(AgentSessionRenderer)
|
|
85
|
-
|
|
74
|
+
this.instantiationService.createInstance(AgentSessionRenderer, this.options),
|
|
75
|
+
this.instantiationService.createInstance(AgentSessionSectionRenderer),
|
|
76
|
+
], ( new AgentSessionsDataSource(this.options.filter, sorter)), {
|
|
86
77
|
accessibilityProvider: ( new AgentSessionsAccessibilityProvider()),
|
|
87
78
|
dnd: this.instantiationService.createInstance(AgentSessionsDragAndDrop),
|
|
88
79
|
identityProvider: ( new AgentSessionsIdentityProvider()),
|
|
@@ -91,12 +82,15 @@ let AgentSessionsControl = class AgentSessionsControl extends Disposable {
|
|
|
91
82
|
findWidgetEnabled: true,
|
|
92
83
|
defaultFindMode: TreeFindMode.Filter,
|
|
93
84
|
keyboardNavigationLabelProvider: ( new AgentSessionsKeyboardNavigationLabelProvider()),
|
|
94
|
-
|
|
95
|
-
|
|
85
|
+
overrideStyles: this.options.overrideStyles,
|
|
86
|
+
expandOnlyOnTwistieClick: true,
|
|
96
87
|
twistieAdditionalCssClass: () => 'force-no-twistie',
|
|
88
|
+
collapseByDefault: () => false,
|
|
89
|
+
renderIndentGuides: RenderIndentGuides.None,
|
|
97
90
|
}));
|
|
91
|
+
ChatContextKeys.agentSessionsViewerFocused.bindTo(list.contextKeyService);
|
|
98
92
|
const model = this.agentSessionsService.model;
|
|
99
|
-
this._register(Event.any(this.options
|
|
93
|
+
this._register(Event.any(this.options.filter?.onDidChange ?? Event.None, model.onDidChangeSessions)(() => {
|
|
100
94
|
if (this.visible) {
|
|
101
95
|
list.updateChildren();
|
|
102
96
|
}
|
|
@@ -109,68 +103,42 @@ let AgentSessionsControl = class AgentSessionsControl extends Disposable {
|
|
|
109
103
|
this.commandService.executeCommand(ACTION_ID_NEW_CHAT);
|
|
110
104
|
}
|
|
111
105
|
}));
|
|
106
|
+
this._register(Event.any(list.onDidChangeFocus, model.onDidChangeSessions)(() => {
|
|
107
|
+
const focused = list.getFocus().at(0);
|
|
108
|
+
if (focused && isAgentSession(focused)) {
|
|
109
|
+
this.focusedAgentSessionArchivedContextKey.set(focused.isArchived());
|
|
110
|
+
this.focusedAgentSessionReadContextKey.set(focused.isRead());
|
|
111
|
+
this.focusedAgentSessionTypeContextKey.set(focused.providerType);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
this.focusedAgentSessionArchivedContextKey.reset();
|
|
115
|
+
this.focusedAgentSessionReadContextKey.reset();
|
|
116
|
+
this.focusedAgentSessionTypeContextKey.reset();
|
|
117
|
+
}
|
|
118
|
+
}));
|
|
112
119
|
}
|
|
113
120
|
async openAgentSession(e) {
|
|
114
|
-
const
|
|
115
|
-
if (!
|
|
121
|
+
const element = e.element;
|
|
122
|
+
if (!element || isAgentSessionSection(element)) {
|
|
116
123
|
return;
|
|
117
124
|
}
|
|
118
125
|
this.telemetryService.publicLog2('agentSessionOpened', {
|
|
119
|
-
|
|
120
|
-
providerType: session.providerType
|
|
126
|
+
providerType: element.providerType
|
|
121
127
|
});
|
|
122
|
-
|
|
123
|
-
let sessionOptions;
|
|
124
|
-
if (isLocalAgentSessionItem(session)) {
|
|
125
|
-
sessionOptions = {};
|
|
126
|
-
}
|
|
127
|
-
else {
|
|
128
|
-
sessionOptions = { title: { preferred: session.label } };
|
|
129
|
-
}
|
|
130
|
-
sessionOptions.ignoreInView = true;
|
|
131
|
-
const options = {
|
|
132
|
-
...sessionOptions,
|
|
133
|
-
...e.editorOptions,
|
|
134
|
-
revealIfOpened: this.options?.allowOpenSessionsInPanel
|
|
135
|
-
};
|
|
136
|
-
await this.chatSessionsService.activateChatSessionItemProvider(session.providerType);
|
|
137
|
-
let target;
|
|
138
|
-
if (e.sideBySide) {
|
|
139
|
-
target = this.options?.allowOpenSessionsInPanel ? ACTIVE_GROUP : SIDE_GROUP;
|
|
140
|
-
}
|
|
141
|
-
else if (this.options?.allowOpenSessionsInPanel) {
|
|
142
|
-
target = ChatViewPaneTarget;
|
|
143
|
-
}
|
|
144
|
-
else {
|
|
145
|
-
target = ACTIVE_GROUP;
|
|
146
|
-
}
|
|
147
|
-
const isLocalChatSession = session.resource.scheme === Schemas.vscodeChatEditor ||
|
|
148
|
-
session.resource.scheme === Schemas.vscodeLocalChatSession;
|
|
149
|
-
if (!isLocalChatSession && !(await this.chatSessionsService.canResolveChatSession(session.resource))) {
|
|
150
|
-
const editorTarget = target === ChatViewPaneTarget ? undefined : target;
|
|
151
|
-
await this.editorService.openEditor({
|
|
152
|
-
resource: session.resource,
|
|
153
|
-
options: {
|
|
154
|
-
...options,
|
|
155
|
-
revealIfOpened: options?.revealIfOpened ?? true
|
|
156
|
-
}
|
|
157
|
-
}, editorTarget);
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
await this.chatWidgetService.openSession(session.resource, target, options);
|
|
128
|
+
await this.instantiationService.invokeFunction(openSession, element, e);
|
|
161
129
|
}
|
|
162
|
-
async showContextMenu({ element
|
|
163
|
-
if (!
|
|
130
|
+
async showContextMenu({ element, anchor, browserEvent }) {
|
|
131
|
+
if (!element || isAgentSessionSection(element)) {
|
|
164
132
|
return;
|
|
165
133
|
}
|
|
166
134
|
EventHelper.stop(browserEvent, true);
|
|
167
|
-
|
|
168
|
-
const contextOverlay =
|
|
169
|
-
contextOverlay.push([ChatContextKeys.
|
|
170
|
-
contextOverlay.push([ChatContextKeys.isReadAgentSession.key,
|
|
171
|
-
contextOverlay.push([ChatContextKeys.
|
|
135
|
+
await this.chatSessionsService.activateChatSessionItemProvider(element.providerType);
|
|
136
|
+
const contextOverlay = [];
|
|
137
|
+
contextOverlay.push([ChatContextKeys.isArchivedAgentSession.key, element.isArchived()]);
|
|
138
|
+
contextOverlay.push([ChatContextKeys.isReadAgentSession.key, element.isRead()]);
|
|
139
|
+
contextOverlay.push([ChatContextKeys.agentSessionType.key, element.providerType]);
|
|
172
140
|
const menu = this.menuService.createMenu(MenuId.AgentSessionsContext, this.contextKeyService.createOverlay(contextOverlay));
|
|
173
|
-
const marshalledSession = { session, $mid: MarshalledId.
|
|
141
|
+
const marshalledSession = { session: element, $mid: MarshalledId.AgentSessionContext };
|
|
174
142
|
this.contextMenuService.showContextMenu({
|
|
175
143
|
getActions: () => Separator.join(...( menu.getActions({ arg: marshalledSession, shouldForwardArgs: true }).map(([, actions]) => actions))),
|
|
176
144
|
getAnchor: () => anchor,
|
|
@@ -184,10 +152,13 @@ let AgentSessionsControl = class AgentSessionsControl extends Disposable {
|
|
|
184
152
|
refresh() {
|
|
185
153
|
return this.agentSessionsService.model.resolve(undefined);
|
|
186
154
|
}
|
|
187
|
-
update() {
|
|
188
|
-
this.sessionsList?.updateChildren();
|
|
155
|
+
async update() {
|
|
156
|
+
await this.sessionsList?.updateChildren();
|
|
189
157
|
}
|
|
190
158
|
setVisible(visible) {
|
|
159
|
+
if (this.visible === visible) {
|
|
160
|
+
return;
|
|
161
|
+
}
|
|
191
162
|
this.visible = visible;
|
|
192
163
|
if (this.visible) {
|
|
193
164
|
this.sessionsList?.updateChildren();
|
|
@@ -203,6 +174,29 @@ let AgentSessionsControl = class AgentSessionsControl extends Disposable {
|
|
|
203
174
|
this.sessionsList?.setFocus([]);
|
|
204
175
|
this.sessionsList?.setSelection([]);
|
|
205
176
|
}
|
|
177
|
+
scrollToTop() {
|
|
178
|
+
if (this.sessionsList) {
|
|
179
|
+
this.sessionsList.scrollTop = 0;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
getFocus() {
|
|
183
|
+
const focused = this.sessionsList?.getFocus() ?? [];
|
|
184
|
+
return focused.filter(e => isAgentSession(e));
|
|
185
|
+
}
|
|
186
|
+
reveal(sessionResource) {
|
|
187
|
+
if (!this.sessionsList) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
const session = this.agentSessionsService.model.getSession(sessionResource);
|
|
191
|
+
if (!session || !this.sessionsList.hasNode(session)) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
if (this.sessionsList.getRelativeTop(session) === null) {
|
|
195
|
+
this.sessionsList.reveal(session, 0.5);
|
|
196
|
+
}
|
|
197
|
+
this.sessionsList.setFocus([session]);
|
|
198
|
+
this.sessionsList.setSelection([session]);
|
|
199
|
+
}
|
|
206
200
|
};
|
|
207
201
|
AgentSessionsControl = ( __decorate([
|
|
208
202
|
( __param(2, IContextMenuService)),
|
|
@@ -210,13 +204,10 @@ AgentSessionsControl = ( __decorate([
|
|
|
210
204
|
( __param(4, IInstantiationService)),
|
|
211
205
|
( __param(5, IChatSessionsService)),
|
|
212
206
|
( __param(6, ICommandService)),
|
|
213
|
-
( __param(7,
|
|
214
|
-
( __param(8,
|
|
215
|
-
( __param(9,
|
|
216
|
-
( __param(10,
|
|
217
|
-
( __param(11, IAgentSessionsService)),
|
|
218
|
-
( __param(12, ITelemetryService)),
|
|
219
|
-
( __param(13, IEditorService))
|
|
207
|
+
( __param(7, IMenuService)),
|
|
208
|
+
( __param(8, IAgentSessionsService)),
|
|
209
|
+
( __param(9, ITelemetryService)),
|
|
210
|
+
( __param(10, IEditorService))
|
|
220
211
|
], AgentSessionsControl));
|
|
221
212
|
|
|
222
213
|
export { AgentSessionsControl };
|
|
@@ -8,6 +8,7 @@ export interface IAgentSessionsFilterOptions extends Partial<IAgentSessionsFilte
|
|
|
8
8
|
readonly filterMenuId: MenuId;
|
|
9
9
|
readonly limitResults?: () => number | undefined;
|
|
10
10
|
notifyResults?(count: number): void;
|
|
11
|
+
readonly groupResults?: () => boolean | undefined;
|
|
11
12
|
overrideExclude?(session: IAgentSession): boolean | undefined;
|
|
12
13
|
}
|
|
13
14
|
export declare class AgentSessionsFilter extends Disposable implements Required<IAgentSessionsFilter> {
|
|
@@ -18,6 +19,7 @@ export declare class AgentSessionsFilter extends Disposable implements Required<
|
|
|
18
19
|
private readonly _onDidChange;
|
|
19
20
|
readonly onDidChange: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
20
21
|
readonly limitResults: () => number | undefined;
|
|
22
|
+
readonly groupResults: () => boolean | undefined;
|
|
21
23
|
private excludes;
|
|
22
24
|
private readonly actionDisposables;
|
|
23
25
|
constructor(options: IAgentSessionsFilterOptions, chatSessionsService: IChatSessionsService, storageService: IStorageService);
|
|
@@ -8,9 +8,10 @@ import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs
|
|
|
8
8
|
import { ContextKeyExpr } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey';
|
|
9
9
|
import { StorageScope, StorageTarget } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage';
|
|
10
10
|
import { IStorageService } from '@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service';
|
|
11
|
-
import { ChatSessionStatus } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
12
11
|
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
13
12
|
import { getAgentSessionProviderName, AgentSessionProviders } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessions';
|
|
13
|
+
import '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel';
|
|
14
|
+
import { ChatSessionStatus } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
14
15
|
|
|
15
16
|
const DEFAULT_EXCLUDES = ( Object.freeze({
|
|
16
17
|
providers: [],
|
|
@@ -27,6 +28,7 @@ let AgentSessionsFilter = class AgentSessionsFilter extends Disposable {
|
|
|
27
28
|
this._onDidChange = this._register(( new Emitter()));
|
|
28
29
|
this.onDidChange = this._onDidChange.event;
|
|
29
30
|
this.limitResults = () => this.options.limitResults?.();
|
|
31
|
+
this.groupResults = () => this.options.groupResults?.();
|
|
30
32
|
this.excludes = DEFAULT_EXCLUDES;
|
|
31
33
|
this.actionDisposables = this._register(( new DisposableStore()));
|
|
32
34
|
this.STORAGE_KEY = `agentSessions.filterExcludes.${this.options.filterMenuId.id.toLowerCase()}`;
|
|
@@ -116,10 +118,10 @@ let AgentSessionsFilter = class AgentSessionsFilter extends Disposable {
|
|
|
116
118
|
}
|
|
117
119
|
registerStateActions(disposables) {
|
|
118
120
|
const states = [
|
|
119
|
-
{ id: ChatSessionStatus.Completed, label: ( localize(
|
|
120
|
-
{ id: ChatSessionStatus.InProgress, label: ( localize(
|
|
121
|
-
{ id: ChatSessionStatus.
|
|
122
|
-
{ id: ChatSessionStatus.
|
|
121
|
+
{ id: ChatSessionStatus.Completed, label: ( localize(4896, "Completed")) },
|
|
122
|
+
{ id: ChatSessionStatus.InProgress, label: ( localize(4897, "In Progress")) },
|
|
123
|
+
{ id: ChatSessionStatus.NeedsInput, label: ( localize(4898, "Input Needed")) },
|
|
124
|
+
{ id: ChatSessionStatus.Failed, label: ( localize(4899, "Failed")) },
|
|
123
125
|
];
|
|
124
126
|
const that = this;
|
|
125
127
|
let counter = 0;
|
|
@@ -153,7 +155,7 @@ let AgentSessionsFilter = class AgentSessionsFilter extends Disposable {
|
|
|
153
155
|
constructor() {
|
|
154
156
|
super({
|
|
155
157
|
id: `agentSessions.filter.toggleExcludeArchived.${that.options.filterMenuId.id.toLowerCase()}`,
|
|
156
|
-
title: ( localize(
|
|
158
|
+
title: ( localize(4900, 'Archived')),
|
|
157
159
|
menu: {
|
|
158
160
|
id: that.options.filterMenuId,
|
|
159
161
|
group: '3_props',
|
|
@@ -173,7 +175,7 @@ let AgentSessionsFilter = class AgentSessionsFilter extends Disposable {
|
|
|
173
175
|
constructor() {
|
|
174
176
|
super({
|
|
175
177
|
id: `agentSessions.filter.toggleExcludeRead.${that.options.filterMenuId.id.toLowerCase()}`,
|
|
176
|
-
title: ( localize(
|
|
178
|
+
title: ( localize(4901, 'Read')),
|
|
177
179
|
menu: {
|
|
178
180
|
id: that.options.filterMenuId,
|
|
179
181
|
group: '3_props',
|
|
@@ -193,7 +195,7 @@ let AgentSessionsFilter = class AgentSessionsFilter extends Disposable {
|
|
|
193
195
|
constructor() {
|
|
194
196
|
super({
|
|
195
197
|
id: `agentSessions.filter.resetExcludes.${that.options.filterMenuId.id.toLowerCase()}`,
|
|
196
|
-
title: ( localize(
|
|
198
|
+
title: ( localize(4902, "Reset")),
|
|
197
199
|
menu: {
|
|
198
200
|
id: that.options.filterMenuId,
|
|
199
201
|
group: '4_reset',
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IAgentSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel";
|
|
2
|
+
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/editor/browser/editorExtensions";
|
|
3
|
+
import { IEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor";
|
|
4
|
+
export declare function openSession(accessor: ServicesAccessor, session: IAgentSession, openOptions?: {
|
|
5
|
+
sideBySide?: boolean;
|
|
6
|
+
editorOptions?: IEditorOptions;
|
|
7
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
import { isLocalAgentSessionItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel';
|
|
3
|
+
import { ChatViewPaneTarget } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
4
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
5
|
+
import { ACTIVE_GROUP, SIDE_GROUP } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService';
|
|
6
|
+
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
7
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
8
|
+
|
|
9
|
+
async function openSession(accessor, session, openOptions) {
|
|
10
|
+
const chatSessionsService = accessor.get(IChatSessionsService);
|
|
11
|
+
const chatWidgetService = accessor.get(IChatWidgetService);
|
|
12
|
+
session.setRead(true);
|
|
13
|
+
let sessionOptions;
|
|
14
|
+
if (isLocalAgentSessionItem(session)) {
|
|
15
|
+
sessionOptions = {};
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
sessionOptions = { title: { preferred: session.label } };
|
|
19
|
+
}
|
|
20
|
+
let options = {
|
|
21
|
+
...sessionOptions,
|
|
22
|
+
...openOptions?.editorOptions,
|
|
23
|
+
revealIfOpened: true
|
|
24
|
+
};
|
|
25
|
+
await chatSessionsService.activateChatSessionItemProvider(session.providerType);
|
|
26
|
+
let target;
|
|
27
|
+
if (openOptions?.sideBySide) {
|
|
28
|
+
target = ACTIVE_GROUP;
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
target = ChatViewPaneTarget;
|
|
32
|
+
}
|
|
33
|
+
const isLocalChatSession = session.resource.scheme === Schemas.vscodeChatEditor || session.resource.scheme === Schemas.vscodeLocalChatSession;
|
|
34
|
+
if (!isLocalChatSession && !(await chatSessionsService.canResolveChatSession(session.resource))) {
|
|
35
|
+
target = openOptions?.sideBySide ? SIDE_GROUP : ACTIVE_GROUP;
|
|
36
|
+
options = { ...options, revealIfOpened: true };
|
|
37
|
+
}
|
|
38
|
+
await chatWidgetService.openSession(session.resource, target, options);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export { openSession };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ICommandService } from "@codingame/monaco-vscode-api/vscode/vs/platform/commands/common/commands.service";
|
|
2
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
+
import { IQuickInputButton } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput";
|
|
4
|
+
import { IQuickInputService } from "@codingame/monaco-vscode-api/vscode/vs/platform/quickinput/common/quickInput.service";
|
|
5
|
+
import { IAgentSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel";
|
|
6
|
+
import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
|
|
7
|
+
export declare const archiveButton: IQuickInputButton;
|
|
8
|
+
export declare const unarchiveButton: IQuickInputButton;
|
|
9
|
+
export declare const renameButton: IQuickInputButton;
|
|
10
|
+
export declare const deleteButton: IQuickInputButton;
|
|
11
|
+
export declare function getSessionDescription(session: IAgentSession): string;
|
|
12
|
+
export declare function getSessionButtons(session: IAgentSession): IQuickInputButton[];
|
|
13
|
+
export declare class AgentSessionsPicker {
|
|
14
|
+
private readonly agentSessionsService;
|
|
15
|
+
private readonly quickInputService;
|
|
16
|
+
private readonly instantiationService;
|
|
17
|
+
private readonly commandService;
|
|
18
|
+
private readonly sorter;
|
|
19
|
+
constructor(agentSessionsService: IAgentSessionsService, quickInputService: IQuickInputService, instantiationService: IInstantiationService, commandService: ICommandService);
|
|
20
|
+
pickAgentSession(): Promise<void>;
|
|
21
|
+
private createPickerItems;
|
|
22
|
+
private toPickItem;
|
|
23
|
+
}
|