@codingame/monaco-vscode-chat-service-override 23.3.0 → 24.1.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 +13 -10
- package/package.json +5 -41
- package/vscode/src/vs/platform/domWidget/browser/domWidget.d.ts +52 -0
- package/vscode/src/vs/platform/domWidget/browser/domWidget.js +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +61 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +152 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +14 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +37 -28
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.d.ts +3 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatGettingStarted.js +7 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +12 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +21 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +27 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +11 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.d.ts +6 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatSessionActions.js +44 -208
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +23 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +140 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.d.ts +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +358 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsControl.js +222 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsFilter.js +241 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.d.ts +11 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsView.js +67 -230
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.d.ts +65 -33
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsViewer.js +186 -62
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/localAgentSessionsProvider.js +140 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsview.css +2 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/media/agentsessionsviewer.css +115 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +389 -166
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.d.ts +9 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAccessibilityService.js +22 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatAttachmentResolveService.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContentParts/chatMarkdownAnchorService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.d.ts +10 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatContextService.js +63 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimeline.d.ts +7 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +14 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +173 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +66 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorActions.js +32 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingEditorOverlay.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.d.ts +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +9 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +6 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.d.ts +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +8 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingOperations.js +12 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.d.ts +5 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +15 -24
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.d.ts +13 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +66 -50
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSessionStorage.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +7 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelContentProviders.js +6 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingModifiedNotebookSnapshot.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookCellEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/overlayToolbarDecorator.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/simpleBrowserEditorOverlay.js +30 -37
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.d.ts +13 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditor.js +23 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +8 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +20 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.d.ts +47 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +270 -143
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +310 -170
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatModelsWidget.css +12 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +42 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatQuick.js +35 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatResponseAccessibleView.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.d.ts +1 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/chatSessionsView.js +22 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.d.ts +18 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsTreeRenderer.js +80 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.d.ts +2 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/view/sessionsViewPane.js +48 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.d.ts +16 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions.contribution.js +257 -77
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatSetup.d.ts → chatSetup/chatSetupContributions.d.ts} +4 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +622 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.d.ts +53 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +359 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +89 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +667 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +37 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +260 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/chatSetup.css +4 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatus.js +21 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatus.js → chatStatus/chatStatusDashboard.js} +193 -325
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatus.d.ts → chatStatus/chatStatusEntry.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +190 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatusItemService.d.ts → chatStatus/chatStatusItemService.d.ts} +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatStatus/media}/chatStatus.css +22 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusWidget.d.ts +25 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatusWidget.js +108 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTerminalOutputAccessibleView.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTerminalOutputAccessibleView.js +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatVariables.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.d.ts +57 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewPane.js +478 -146
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewTitleControl.d.ts +43 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatViewTitleControl.js +204 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidgetService.d.ts +44 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWidgetService.js +187 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/codeBlockContextProviderService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorContrib.js +108 -62
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/contrib/chatInputEditorHover.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsConfirmationService.js +37 -32
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.d.ts +37 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelToolsService.js +232 -97
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatStatusWidget.css +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewPane.css +142 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/media/chatViewTitleControl.css +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +51 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionContribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +5 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptFileActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +19 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/common/chatCodeMapperService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatModelStore.d.ts +49 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatModelStore.js +100 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatProgressTypes/chatToolInvocation.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatResponseResourceFileSystemProvider.js +3 -4
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.d.ts +41 -15
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceImpl.js +208 -162
- package/vscode/src/vs/workbench/contrib/chat/common/chatServiceTelemetry.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.d.ts +15 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatSessionStore.js +61 -7
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.d.ts +3 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatSlashCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatTodoListService.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptBodyAutocompletion.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +60 -43
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +27 -4
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +37 -47
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +120 -87
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +49 -42
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +293 -187
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +17 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +43 -9
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/languageModelToolsContribution.js +48 -29
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +8 -13
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibilityHelp.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatAccessibleView.js +2 -2
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +36 -41
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatNotebook.js +3 -3
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/notebook/browser/diff/inlineDiff/notebookModifiedCellDecorator.js +2 -2
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminal.chat.contribution.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +18 -18
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibleView.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +142 -38
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatController.js +3 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatEnabler.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +19 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +78 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.d.ts +7 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +26 -44
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/commandLineAutoApprover.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/basicExecuteStrategy.js +9 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/executeStrategy.js +23 -17
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/executeStrategy/richExecuteStrategy.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/outputHelpers.js +4 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +26 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +32 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +15 -29
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +10 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAnalyzer.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +38 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +32 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +5 -4
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +4 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +4 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +128 -62
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +12 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +5 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +68 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +20 -22
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +13 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +20 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.d.ts +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/terminalCommandArtifactCollector.js +72 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/treeSitterCommandParser.js +5 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.d.ts +0 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionViewModel.js +0 -154
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.d.ts +0 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.js +0 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.d.ts +0 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/chatSessionTracker.js +0 -135
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.d.ts +0 -35
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSessions/localChatSessionsProvider.js +0 -216
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup.js +0 -1617
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.d.ts +0 -44
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatCurrentLine.js +0 -313
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/apple-dark.svg +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/apple-light.svg +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/github.svg +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{media → chatSetup/media}/google.svg +0 -0
- /package/vscode/src/vs/workbench/contrib/chat/browser/{chatStatusItemService.js → chatStatus/chatStatusItemService.js} +0 -0
|
@@ -8,23 +8,20 @@ import { InstallOperation } from '@codingame/monaco-vscode-api/vscode/vs/platfor
|
|
|
8
8
|
import { IExtensionManagementService } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensionManagement/common/extensionManagement.service';
|
|
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 {
|
|
12
|
-
import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/views/common/viewsService.service';
|
|
13
|
-
import { showChatView } from '@codingame/monaco-vscode-2339d6ac-d6bb-53cd-95ee-81911735d1c7-common/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
11
|
+
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
14
12
|
|
|
15
13
|
var ChatGettingStartedContribution_1;
|
|
16
14
|
let ChatGettingStartedContribution = class ChatGettingStartedContribution extends Disposable {
|
|
17
15
|
static { ChatGettingStartedContribution_1 = this; }
|
|
18
16
|
static { this.ID = 'workbench.contrib.chatGettingStarted'; }
|
|
19
17
|
static { this.hideWelcomeView = 'workbench.chat.hideWelcomeView'; }
|
|
20
|
-
constructor(productService, extensionService,
|
|
18
|
+
constructor(productService, extensionService, extensionManagementService, storageService, chatWidgetService) {
|
|
21
19
|
super();
|
|
22
20
|
this.productService = productService;
|
|
23
21
|
this.extensionService = extensionService;
|
|
24
|
-
this.viewsService = viewsService;
|
|
25
22
|
this.extensionManagementService = extensionManagementService;
|
|
26
23
|
this.storageService = storageService;
|
|
27
|
-
this.
|
|
24
|
+
this.chatWidgetService = chatWidgetService;
|
|
28
25
|
this.recentlyInstalled = false;
|
|
29
26
|
const defaultChatAgent = this.productService.defaultChatAgent;
|
|
30
27
|
const hideWelcomeView = this.storageService.getBoolean(ChatGettingStartedContribution_1.hideWelcomeView, StorageScope.APPLICATION, false);
|
|
@@ -55,7 +52,7 @@ let ChatGettingStartedContribution = class ChatGettingStartedContribution extend
|
|
|
55
52
|
}));
|
|
56
53
|
}
|
|
57
54
|
async onDidInstallChat() {
|
|
58
|
-
|
|
55
|
+
this.chatWidgetService.revealWidget();
|
|
59
56
|
this.storageService.store(ChatGettingStartedContribution_1.hideWelcomeView, true, StorageScope.APPLICATION, StorageTarget.MACHINE);
|
|
60
57
|
this.recentlyInstalled = false;
|
|
61
58
|
}
|
|
@@ -63,10 +60,9 @@ let ChatGettingStartedContribution = class ChatGettingStartedContribution extend
|
|
|
63
60
|
ChatGettingStartedContribution = ChatGettingStartedContribution_1 = ( __decorate([
|
|
64
61
|
( __param(0, IProductService)),
|
|
65
62
|
( __param(1, IExtensionService)),
|
|
66
|
-
( __param(2,
|
|
67
|
-
( __param(3,
|
|
68
|
-
( __param(4,
|
|
69
|
-
( __param(5, IWorkbenchLayoutService))
|
|
63
|
+
( __param(2, IExtensionManagementService)),
|
|
64
|
+
( __param(3, IStorageService)),
|
|
65
|
+
( __param(4, IChatWidgetService))
|
|
70
66
|
], ChatGettingStartedContribution));
|
|
71
67
|
|
|
72
68
|
export { ChatGettingStartedContribution };
|
|
@@ -5,23 +5,23 @@ import { localize, localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls'
|
|
|
5
5
|
import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
6
6
|
import { IFileDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
7
7
|
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
8
|
-
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-
|
|
8
|
+
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
9
9
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
10
|
-
import { ChatEditorInput } from '@codingame/monaco-vscode-
|
|
10
|
+
import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
11
11
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
12
|
-
import { isExportableSessionData } from '@codingame/monaco-vscode-
|
|
12
|
+
import { isExportableSessionData } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatModel';
|
|
13
13
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
14
|
-
import {
|
|
14
|
+
import { revive } from '@codingame/monaco-vscode-api/vscode/vs/base/common/marshalling';
|
|
15
15
|
|
|
16
16
|
const defaultFileName = 'chat.json';
|
|
17
|
-
const filters = [{ name: ( localize(
|
|
17
|
+
const filters = [{ name: ( localize(4735, "Chat Session")), extensions: ['json'] }];
|
|
18
18
|
function registerChatExportActions() {
|
|
19
19
|
registerAction2(class ExportChatAction extends Action2 {
|
|
20
20
|
constructor() {
|
|
21
21
|
super({
|
|
22
22
|
id: 'workbench.action.chat.export',
|
|
23
23
|
category: CHAT_CATEGORY,
|
|
24
|
-
title: ( localize2(
|
|
24
|
+
title: ( localize2(4736, "Export Chat...")),
|
|
25
25
|
precondition: ChatContextKeys.enabled,
|
|
26
26
|
f1: true,
|
|
27
27
|
});
|
|
@@ -58,7 +58,7 @@ function registerChatExportActions() {
|
|
|
58
58
|
constructor() {
|
|
59
59
|
super({
|
|
60
60
|
id: 'workbench.action.chat.import',
|
|
61
|
-
title: ( localize2(
|
|
61
|
+
title: ( localize2(4737, "Import Chat...")),
|
|
62
62
|
category: CHAT_CATEGORY,
|
|
63
63
|
precondition: ChatContextKeys.enabled,
|
|
64
64
|
f1: true,
|
|
@@ -67,7 +67,7 @@ function registerChatExportActions() {
|
|
|
67
67
|
async run(accessor, ...args) {
|
|
68
68
|
const fileDialogService = accessor.get(IFileDialogService);
|
|
69
69
|
const fileService = accessor.get(IFileService);
|
|
70
|
-
const
|
|
70
|
+
const widgetService = accessor.get(IChatWidgetService);
|
|
71
71
|
const defaultUri = joinPath(await fileDialogService.defaultFilePath(), defaultFileName);
|
|
72
72
|
const result = await fileDialogService.showOpenDialog({
|
|
73
73
|
defaultUri,
|
|
@@ -79,12 +79,12 @@ function registerChatExportActions() {
|
|
|
79
79
|
}
|
|
80
80
|
const content = await fileService.readFile(result[0]);
|
|
81
81
|
try {
|
|
82
|
-
const data = JSON.parse(( content.value.toString()));
|
|
82
|
+
const data = revive(JSON.parse(( content.value.toString())));
|
|
83
83
|
if (!isExportableSessionData(data)) {
|
|
84
84
|
throw ( new Error('Invalid chat session data'));
|
|
85
85
|
}
|
|
86
86
|
const options = { target: { data }, pinned: true };
|
|
87
|
-
await
|
|
87
|
+
await widgetService.openSession(ChatEditorInput.getNewEditorUri(), undefined, options);
|
|
88
88
|
}
|
|
89
89
|
catch (err) {
|
|
90
90
|
throw err;
|
|
@@ -6,21 +6,20 @@ import { IAuthenticationAccessService } from '@codingame/monaco-vscode-api/vscod
|
|
|
6
6
|
import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
7
7
|
import { INTERNAL_AUTH_PROVIDER_PREFIX } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/authentication/common/authentication';
|
|
8
8
|
import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/dialogs/common/dialogs.service';
|
|
9
|
-
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-
|
|
9
|
+
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
10
10
|
import { IExtensionService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/extensions/common/extensions.service';
|
|
11
11
|
import { IExtensionsWorkbenchService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/extensions/common/extensions.service';
|
|
12
12
|
import { IProductService } from '@codingame/monaco-vscode-api/vscode/vs/platform/product/common/productService.service';
|
|
13
13
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
14
14
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
15
15
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
16
|
-
import { ManageModelsAction } from '@codingame/monaco-vscode-a793b3ee-7ba9-5176-a019-30ec806fdd95-common/vscode/vs/workbench/contrib/chat/browser/actions/manageModelsActions';
|
|
17
16
|
|
|
18
17
|
class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
19
18
|
static { this.ID = 'workbench.action.chat.manageLanguageModelAuthentication'; }
|
|
20
19
|
constructor() {
|
|
21
20
|
super({
|
|
22
21
|
id: ManageLanguageModelAuthenticationAction.ID,
|
|
23
|
-
title: ( localize2(
|
|
22
|
+
title: ( localize2(4738, 'Manage Language Model Access...')),
|
|
24
23
|
category: CHAT_CATEGORY,
|
|
25
24
|
precondition: ChatContextKeys.enabled,
|
|
26
25
|
menu: [{
|
|
@@ -91,9 +90,9 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
91
90
|
if (extensionAuth.size === 0) {
|
|
92
91
|
dialogService.prompt({
|
|
93
92
|
type: 'info',
|
|
94
|
-
message: ( localize(
|
|
93
|
+
message: ( localize(4739, 'No language models requiring authentication found.')),
|
|
95
94
|
detail: ( localize(
|
|
96
|
-
|
|
95
|
+
4740,
|
|
97
96
|
'There are currently no language models that require authentication.'
|
|
98
97
|
))
|
|
99
98
|
});
|
|
@@ -108,10 +107,10 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
108
107
|
items.push({
|
|
109
108
|
type: 'separator',
|
|
110
109
|
id: ownerId,
|
|
111
|
-
label: ( localize(
|
|
110
|
+
label: ( localize(4741, '{0}', extension.displayName || extension.name)),
|
|
112
111
|
buttons: [{
|
|
113
112
|
iconClass: ThemeIcon.asClassName(Codicon.info),
|
|
114
|
-
tooltip: ( localize(
|
|
113
|
+
tooltip: ( localize(4742, 'Open Extension')),
|
|
115
114
|
}]
|
|
116
115
|
});
|
|
117
116
|
let addedTrustedSeparator = false;
|
|
@@ -120,7 +119,7 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
120
119
|
if (allowedExt.trusted && !addedTrustedSeparator) {
|
|
121
120
|
items.push({
|
|
122
121
|
type: 'separator',
|
|
123
|
-
label: ( localize(
|
|
122
|
+
label: ( localize(4743, 'Trusted by Microsoft')),
|
|
124
123
|
});
|
|
125
124
|
addedTrustedSeparator = true;
|
|
126
125
|
}
|
|
@@ -133,16 +132,16 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
133
132
|
disabled: allowedExt.trusted,
|
|
134
133
|
buttons: [{
|
|
135
134
|
iconClass: ThemeIcon.asClassName(Codicon.info),
|
|
136
|
-
tooltip: ( localize(
|
|
135
|
+
tooltip: ( localize(4742, 'Open Extension')),
|
|
137
136
|
}]
|
|
138
137
|
});
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
140
|
else {
|
|
142
141
|
items.push({
|
|
143
|
-
label: ( localize(
|
|
142
|
+
label: ( localize(4744, 'No extensions have access')),
|
|
144
143
|
description: ( localize(
|
|
145
|
-
|
|
144
|
+
4745,
|
|
146
145
|
'No extensions are currently allowed to use models from {0}',
|
|
147
146
|
ownerId
|
|
148
147
|
)),
|
|
@@ -165,8 +164,8 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
165
164
|
void extensionsWorkbenchService.open(extId);
|
|
166
165
|
}
|
|
167
166
|
},
|
|
168
|
-
title: ( localize(
|
|
169
|
-
placeHolder: ( localize(
|
|
167
|
+
title: ( localize(4746, 'Manage Language Model Access')),
|
|
168
|
+
placeHolder: ( localize(4747, 'Choose which extensions can access language models')),
|
|
170
169
|
});
|
|
171
170
|
if (!result) {
|
|
172
171
|
return;
|
|
@@ -185,7 +184,6 @@ class ManageLanguageModelAuthenticationAction extends Action2 {
|
|
|
185
184
|
}
|
|
186
185
|
function registerLanguageModelActions() {
|
|
187
186
|
registerAction2(ManageLanguageModelAuthenticationAction);
|
|
188
|
-
registerAction2(ManageModelsAction);
|
|
189
187
|
}
|
|
190
188
|
|
|
191
189
|
export { registerLanguageModelActions };
|
|
@@ -12,11 +12,11 @@ import { IViewsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/
|
|
|
12
12
|
import { isChatViewTitleActionContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatActions';
|
|
13
13
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
14
14
|
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
15
|
-
import { ChatViewId } from '@codingame/monaco-vscode-
|
|
15
|
+
import { ChatViewId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
16
16
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
17
17
|
import { ChatEditor } from '../chatEditor.js';
|
|
18
|
-
import { ChatEditorInput } from '@codingame/monaco-vscode-
|
|
19
|
-
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-
|
|
18
|
+
import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
19
|
+
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
20
20
|
|
|
21
21
|
var MoveToNewLocation;
|
|
22
22
|
(function (MoveToNewLocation) {
|
|
@@ -28,7 +28,7 @@ function registerMoveActions() {
|
|
|
28
28
|
constructor() {
|
|
29
29
|
super({
|
|
30
30
|
id: 'workbench.action.chat.openInEditor',
|
|
31
|
-
title: ( localize2(
|
|
31
|
+
title: ( localize2(4748, "Move Chat into Editor Area")),
|
|
32
32
|
category: CHAT_CATEGORY,
|
|
33
33
|
precondition: ChatContextKeys.enabled,
|
|
34
34
|
f1: true,
|
|
@@ -49,7 +49,7 @@ function registerMoveActions() {
|
|
|
49
49
|
constructor() {
|
|
50
50
|
super({
|
|
51
51
|
id: 'workbench.action.chat.openInNewWindow',
|
|
52
|
-
title: ( localize2(
|
|
52
|
+
title: ( localize2(4749, "Move Chat into New Window")),
|
|
53
53
|
category: CHAT_CATEGORY,
|
|
54
54
|
precondition: ChatContextKeys.enabled,
|
|
55
55
|
f1: true,
|
|
@@ -70,7 +70,7 @@ function registerMoveActions() {
|
|
|
70
70
|
constructor() {
|
|
71
71
|
super({
|
|
72
72
|
id: 'workbench.action.chat.openInSidebar',
|
|
73
|
-
title: ( localize2(
|
|
73
|
+
title: ( localize2(4750, "Move Chat into Side Bar")),
|
|
74
74
|
category: CHAT_CATEGORY,
|
|
75
75
|
precondition: ChatContextKeys.enabled,
|
|
76
76
|
f1: true
|
|
@@ -89,31 +89,30 @@ function registerMoveActions() {
|
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
[MenuId.EditorTitle, MenuId.CompactWindowEditorTitle].forEach(id => {
|
|
92
|
-
appendOpenChatInViewMenuItem(id, ( localize(
|
|
93
|
-
appendOpenChatInViewMenuItem(id, ( localize(
|
|
94
|
-
appendOpenChatInViewMenuItem(id, ( localize(
|
|
92
|
+
appendOpenChatInViewMenuItem(id, ( localize(4751, "Move Chat into Secondary Side Bar")), Codicon.layoutSidebarRightDock, ( ChatContextKeys.panelLocation.isEqualTo(ViewContainerLocation.AuxiliaryBar)));
|
|
93
|
+
appendOpenChatInViewMenuItem(id, ( localize(4752, "Move Chat into Primary Side Bar")), Codicon.layoutSidebarLeftDock, ( ChatContextKeys.panelLocation.isEqualTo(ViewContainerLocation.Sidebar)));
|
|
94
|
+
appendOpenChatInViewMenuItem(id, ( localize(4753, "Move Chat into Panel")), Codicon.layoutPanelDock, ( ChatContextKeys.panelLocation.isEqualTo(ViewContainerLocation.Panel)));
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
async function executeMoveToAction(accessor, moveTo, sessionResource) {
|
|
98
98
|
const widgetService = accessor.get(IChatWidgetService);
|
|
99
|
-
const
|
|
99
|
+
const auxiliary = { compact: true, bounds: { width: 800, height: 640 } };
|
|
100
100
|
const widget = (sessionResource ? widgetService.getWidgetBySessionResource(sessionResource) : undefined)
|
|
101
101
|
?? widgetService.lastFocusedWidget;
|
|
102
102
|
if (!widget || !widget.viewModel || widget.location !== ChatAgentLocation.Chat) {
|
|
103
|
-
await
|
|
103
|
+
await widgetService.openSession(ChatEditorInput.getNewEditorUri(), moveTo === MoveToNewLocation.Window ? AUX_WINDOW_GROUP : ACTIVE_GROUP, { pinned: true, auxiliary });
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
106
106
|
const existingWidget = widgetService.getWidgetBySessionResource(widget.viewModel.sessionResource);
|
|
107
107
|
if (!existingWidget) {
|
|
108
|
-
await
|
|
108
|
+
await widgetService.openSession(ChatEditorInput.getNewEditorUri(), moveTo === MoveToNewLocation.Window ? AUX_WINDOW_GROUP : ACTIVE_GROUP, { pinned: true, auxiliary });
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
-
const viewState = widget.getViewState();
|
|
112
111
|
const resourceToOpen = widget.viewModel.sessionResource;
|
|
113
|
-
|
|
114
|
-
await widget.
|
|
115
|
-
const options = { pinned: true,
|
|
116
|
-
await
|
|
112
|
+
const modelInputState = existingWidget.getViewState();
|
|
113
|
+
await widget.clear();
|
|
114
|
+
const options = { pinned: true, modelInputState, auxiliary };
|
|
115
|
+
await widgetService.openSession(resourceToOpen, moveTo === MoveToNewLocation.Window ? AUX_WINDOW_GROUP : ACTIVE_GROUP, options);
|
|
117
116
|
}
|
|
118
117
|
async function moveToSidebar(accessor) {
|
|
119
118
|
const viewsService = accessor.get(IViewsService);
|
|
@@ -123,9 +122,13 @@ async function moveToSidebar(accessor) {
|
|
|
123
122
|
const chatEditorInput = chatEditor?.input;
|
|
124
123
|
let view;
|
|
125
124
|
if (chatEditor instanceof ChatEditor && chatEditorInput instanceof ChatEditorInput && chatEditorInput.sessionResource) {
|
|
125
|
+
const previousViewState = chatEditor.widget.getViewState();
|
|
126
126
|
await editorService.closeEditor({ editor: chatEditor.input, groupId: editorGroupService.activeGroup.id });
|
|
127
127
|
view = await viewsService.openView(ChatViewId);
|
|
128
|
-
await view.loadSession(chatEditorInput.sessionResource
|
|
128
|
+
const newModel = await view.loadSession(chatEditorInput.sessionResource);
|
|
129
|
+
if (previousViewState && newModel && !newModel.inputModel.state.get()) {
|
|
130
|
+
newModel.inputModel.setState(previousViewState);
|
|
131
|
+
}
|
|
129
132
|
}
|
|
130
133
|
else {
|
|
131
134
|
view = await viewsService.openView(ChatViewId);
|
|
@@ -11,18 +11,19 @@ import { IDialogService } from '@codingame/monaco-vscode-api/vscode/vs/platform/
|
|
|
11
11
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
12
12
|
import { ActiveEditorContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/contextkeys';
|
|
13
13
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
14
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
14
15
|
import { ChatAgentLocation, ChatModeKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
15
|
-
import { ChatViewId } from '@codingame/monaco-vscode-
|
|
16
|
+
import { ChatViewId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat';
|
|
16
17
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
17
|
-
import { getEditingSessionContext, EditingSessionAction } from '@codingame/monaco-vscode-
|
|
18
|
-
import { ChatEditorInput } from '@codingame/monaco-vscode-
|
|
19
|
-
import { CHAT_CATEGORY, ACTION_ID_NEW_CHAT, handleCurrentEditingSession, ACTION_ID_NEW_EDIT_SESSION } from '@codingame/monaco-vscode-
|
|
20
|
-
import { clearChatEditor } from '@codingame/monaco-vscode-
|
|
18
|
+
import { getEditingSessionContext, EditingSessionAction } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions';
|
|
19
|
+
import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatEditorInput';
|
|
20
|
+
import { CHAT_CATEGORY, ACTION_ID_NEW_CHAT, handleCurrentEditingSession, ACTION_ID_NEW_EDIT_SESSION } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
21
|
+
import { clearChatEditor } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatClear';
|
|
21
22
|
|
|
22
23
|
function registerNewChatActions() {
|
|
23
24
|
MenuRegistry.appendMenuItem(MenuId.ViewTitle, {
|
|
24
25
|
submenu: MenuId.ChatNewMenu,
|
|
25
|
-
title: ( localize2(
|
|
26
|
+
title: ( localize2(4754, "New Chat")),
|
|
26
27
|
icon: Codicon.plus,
|
|
27
28
|
when: ( ContextKeyExpr.equals('view', ChatViewId)),
|
|
28
29
|
group: 'navigation',
|
|
@@ -33,7 +34,7 @@ function registerNewChatActions() {
|
|
|
33
34
|
constructor() {
|
|
34
35
|
super({
|
|
35
36
|
id: 'workbench.action.chatEditor.newChat',
|
|
36
|
-
title: ( localize2(
|
|
37
|
+
title: ( localize2(4755, "New Chat")),
|
|
37
38
|
icon: Codicon.plus,
|
|
38
39
|
f1: false,
|
|
39
40
|
precondition: ChatContextKeys.enabled,
|
|
@@ -49,7 +50,7 @@ function registerNewChatActions() {
|
|
|
49
50
|
constructor() {
|
|
50
51
|
super({
|
|
51
52
|
id: ACTION_ID_NEW_CHAT,
|
|
52
|
-
title: ( localize2(
|
|
53
|
+
title: ( localize2(4754, "New Chat")),
|
|
53
54
|
category: CHAT_CATEGORY,
|
|
54
55
|
icon: Codicon.plus,
|
|
55
56
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.enabled, ( ChatContextKeys.location.isEqualTo(ChatAgentLocation.Chat)))),
|
|
@@ -92,13 +93,13 @@ function registerNewChatActions() {
|
|
|
92
93
|
}
|
|
93
94
|
const accessibilitySignalService = accessor.get(IAccessibilitySignalService);
|
|
94
95
|
const dialogService = accessor.get(IDialogService);
|
|
95
|
-
|
|
96
|
+
const model = widget.viewModel?.model;
|
|
97
|
+
if (model && !(await handleCurrentEditingSession(model, undefined, dialogService))) {
|
|
96
98
|
return;
|
|
97
99
|
}
|
|
98
100
|
accessibilitySignalService.playSignal(AccessibilitySignal.clear);
|
|
99
101
|
await editingSession?.stop();
|
|
100
|
-
widget.clear();
|
|
101
|
-
await widget.waitForReady();
|
|
102
|
+
await widget.clear();
|
|
102
103
|
widget.attachmentModel.clear(true);
|
|
103
104
|
widget.input.relatedFiles?.clear();
|
|
104
105
|
widget.focusInput();
|
|
@@ -119,11 +120,19 @@ function registerNewChatActions() {
|
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
122
|
CommandsRegistry.registerCommandAlias(ACTION_ID_NEW_EDIT_SESSION, ACTION_ID_NEW_CHAT);
|
|
123
|
+
MenuRegistry.appendMenuItem(MenuId.ChatViewSessionTitleNavigationToolbar, {
|
|
124
|
+
command: {
|
|
125
|
+
id: ACTION_ID_NEW_CHAT,
|
|
126
|
+
title: ( localize2(4756, "Go Back")),
|
|
127
|
+
icon: Codicon.arrowLeft,
|
|
128
|
+
},
|
|
129
|
+
group: 'navigation'
|
|
130
|
+
});
|
|
122
131
|
registerAction2(class UndoChatEditInteractionAction extends EditingSessionAction {
|
|
123
132
|
constructor() {
|
|
124
133
|
super({
|
|
125
134
|
id: 'workbench.action.chat.undoEdit',
|
|
126
|
-
title: ( localize2(
|
|
135
|
+
title: ( localize2(4757, "Undo Last Request")),
|
|
127
136
|
category: CHAT_CATEGORY,
|
|
128
137
|
icon: Codicon.discard,
|
|
129
138
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.chatEditingCanUndo, ChatContextKeys.enabled)),
|
|
@@ -145,7 +154,7 @@ function registerNewChatActions() {
|
|
|
145
154
|
constructor() {
|
|
146
155
|
super({
|
|
147
156
|
id: 'workbench.action.chat.redoEdit',
|
|
148
|
-
title: ( localize2(
|
|
157
|
+
title: ( localize2(4758, "Redo Last Request")),
|
|
149
158
|
category: CHAT_CATEGORY,
|
|
150
159
|
icon: Codicon.redo,
|
|
151
160
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.chatEditingCanRedo, ChatContextKeys.enabled)),
|
|
@@ -162,17 +171,17 @@ function registerNewChatActions() {
|
|
|
162
171
|
});
|
|
163
172
|
}
|
|
164
173
|
async runEditingSessionAction(accessor, editingSession) {
|
|
165
|
-
const
|
|
174
|
+
const chatService = accessor.get(IChatService);
|
|
166
175
|
await editingSession.redoInteraction();
|
|
167
|
-
|
|
176
|
+
chatService.getSession(editingSession.chatSessionResource)?.setCheckpoint(undefined);
|
|
168
177
|
}
|
|
169
178
|
});
|
|
170
179
|
registerAction2(class RedoChatCheckpoints extends EditingSessionAction {
|
|
171
180
|
constructor() {
|
|
172
181
|
super({
|
|
173
182
|
id: 'workbench.action.chat.redoEdit2',
|
|
174
|
-
title: ( localize2(
|
|
175
|
-
tooltip: ( localize2(
|
|
183
|
+
title: ( localize2(4759, "Redo")),
|
|
184
|
+
tooltip: ( localize2(4760, "Reapply discarded workspace changes and chat")),
|
|
176
185
|
category: CHAT_CATEGORY,
|
|
177
186
|
precondition: ( ContextKeyExpr.and(ChatContextKeys.chatEditingCanRedo, ChatContextKeys.enabled)),
|
|
178
187
|
f1: true,
|
|
@@ -189,7 +198,7 @@ function registerNewChatActions() {
|
|
|
189
198
|
while (editingSession.canRedo.get()) {
|
|
190
199
|
await editingSession.redoInteraction();
|
|
191
200
|
}
|
|
192
|
-
const currentWidget = widget.
|
|
201
|
+
const currentWidget = widget.getWidgetBySessionResource(editingSession.chatSessionResource);
|
|
193
202
|
const requestText = currentWidget?.viewModel?.model.checkpoint?.message.text;
|
|
194
203
|
if (currentWidget?.inputEditor.getValue() === requestText) {
|
|
195
204
|
currentWidget?.input.setValue('', false);
|
|
@@ -3,17 +3,17 @@ import { KeyMod, KeyCode } from '@codingame/monaco-vscode-api/vscode/vs/base/com
|
|
|
3
3
|
import { localize2 } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
4
4
|
import { registerAction2, Action2 } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
5
5
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
6
|
-
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-
|
|
6
|
+
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
7
7
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
8
8
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
9
|
-
import { isRequestVM, isResponseVM } from '@codingame/monaco-vscode-
|
|
9
|
+
import { isRequestVM, isResponseVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
10
10
|
|
|
11
11
|
function registerChatPromptNavigationActions() {
|
|
12
12
|
registerAction2(class NextUserPromptAction extends Action2 {
|
|
13
13
|
constructor() {
|
|
14
14
|
super({
|
|
15
15
|
id: 'workbench.action.chat.nextUserPrompt',
|
|
16
|
-
title: ( localize2(
|
|
16
|
+
title: ( localize2(4761, "Next User Prompt")),
|
|
17
17
|
keybinding: {
|
|
18
18
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.DownArrow,
|
|
19
19
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -32,7 +32,7 @@ function registerChatPromptNavigationActions() {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super({
|
|
34
34
|
id: 'workbench.action.chat.previousUserPrompt',
|
|
35
|
-
title: ( localize2(
|
|
35
|
+
title: ( localize2(4762, "Previous User Prompt")),
|
|
36
36
|
keybinding: {
|
|
37
37
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.UpArrow,
|
|
38
38
|
weight: KeybindingWeight.WorkbenchContrib,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ASK_QUICK_QUESTION_ACTION_ID } from "@codingame/monaco-vscode-
|
|
1
|
+
export { ASK_QUICK_QUESTION_ACTION_ID } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants";
|
|
2
2
|
export declare function registerQuickChatActions(): void;
|
|
@@ -5,11 +5,11 @@ import { Selection } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/
|
|
|
5
5
|
import { localize2, localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
6
6
|
import { registerAction2, Action2, MenuId } from '@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions';
|
|
7
7
|
import { KeybindingWeight } from '@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybindingsRegistry';
|
|
8
|
-
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-
|
|
8
|
+
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
9
9
|
import { IQuickChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
10
10
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
11
|
-
import { ASK_QUICK_QUESTION_ACTION_ID } from '@codingame/monaco-vscode-
|
|
12
|
-
export { ASK_QUICK_QUESTION_ACTION_ID } from '@codingame/monaco-vscode-
|
|
11
|
+
import { ASK_QUICK_QUESTION_ACTION_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
12
|
+
export { ASK_QUICK_QUESTION_ACTION_ID } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatConstants';
|
|
13
13
|
|
|
14
14
|
function registerQuickChatActions() {
|
|
15
15
|
registerAction2(QuickChatGlobalAction);
|
|
@@ -18,7 +18,7 @@ function registerQuickChatActions() {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super({
|
|
20
20
|
id: 'workbench.action.quickchat.openInChatView',
|
|
21
|
-
title: ( localize2(
|
|
21
|
+
title: ( localize2(4763, "Open in Chat View")),
|
|
22
22
|
f1: false,
|
|
23
23
|
category: CHAT_CATEGORY,
|
|
24
24
|
icon: Codicon.chatSparkle,
|
|
@@ -38,7 +38,7 @@ function registerQuickChatActions() {
|
|
|
38
38
|
constructor() {
|
|
39
39
|
super({
|
|
40
40
|
id: 'workbench.action.quickchat.close',
|
|
41
|
-
title: ( localize2(
|
|
41
|
+
title: ( localize2(4764, "Close Quick Chat")),
|
|
42
42
|
f1: false,
|
|
43
43
|
category: CHAT_CATEGORY,
|
|
44
44
|
icon: Codicon.close,
|
|
@@ -59,7 +59,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
59
59
|
constructor() {
|
|
60
60
|
super({
|
|
61
61
|
id: ASK_QUICK_QUESTION_ACTION_ID,
|
|
62
|
-
title: ( localize2(
|
|
62
|
+
title: ( localize2(4765, 'Open Quick Chat')),
|
|
63
63
|
precondition: ChatContextKeys.enabled,
|
|
64
64
|
icon: Codicon.chatSparkle,
|
|
65
65
|
f1: false,
|
|
@@ -74,7 +74,7 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
74
74
|
order: 4
|
|
75
75
|
},
|
|
76
76
|
metadata: {
|
|
77
|
-
description: ( localize(
|
|
77
|
+
description: ( localize(4766, 'Toggle the quick chat')),
|
|
78
78
|
args: [{
|
|
79
79
|
name: 'args',
|
|
80
80
|
schema: {
|
|
@@ -84,18 +84,18 @@ class QuickChatGlobalAction extends Action2 {
|
|
|
84
84
|
required: ['query'],
|
|
85
85
|
properties: {
|
|
86
86
|
query: {
|
|
87
|
-
description: ( localize(
|
|
87
|
+
description: ( localize(4767, "The query to open the quick chat with")),
|
|
88
88
|
type: 'string'
|
|
89
89
|
},
|
|
90
90
|
isPartialQuery: {
|
|
91
|
-
description: ( localize(
|
|
91
|
+
description: ( localize(4768, "Whether the query is partial; it will wait for more user input")),
|
|
92
92
|
type: 'boolean'
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
type: 'string',
|
|
98
|
-
description: ( localize(
|
|
98
|
+
description: ( localize(4767, "The query to open the quick chat with"))
|
|
99
99
|
}
|
|
100
100
|
]
|
|
101
101
|
}
|
|
@@ -125,7 +125,7 @@ class AskQuickChatAction extends Action2 {
|
|
|
125
125
|
super({
|
|
126
126
|
id: `workbench.action.openQuickChat`,
|
|
127
127
|
category: CHAT_CATEGORY,
|
|
128
|
-
title: ( localize2(
|
|
128
|
+
title: ( localize2(4769, "Open Quick Chat")),
|
|
129
129
|
precondition: ChatContextKeys.enabled,
|
|
130
130
|
f1: true
|
|
131
131
|
});
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { MarshalledId } from "@codingame/monaco-vscode-api/vscode/vs/base/common/marshallingIds";
|
|
2
2
|
import { Action2 } from "@codingame/monaco-vscode-api/vscode/vs/platform/actions/common/actions";
|
|
3
3
|
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
|
-
import {
|
|
5
|
-
interface IMarshalledChatSessionContext {
|
|
6
|
-
$mid: MarshalledId.ChatSessionContext;
|
|
7
|
-
session:
|
|
4
|
+
import { IChatSessionItem } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService";
|
|
5
|
+
export interface IMarshalledChatSessionContext {
|
|
6
|
+
readonly $mid: MarshalledId.ChatSessionContext;
|
|
7
|
+
readonly session: IChatSessionItem;
|
|
8
8
|
}
|
|
9
|
+
export declare function isMarshalledChatSessionContext(thing: unknown): thing is IMarshalledChatSessionContext;
|
|
9
10
|
export declare class RenameChatSessionAction extends Action2 {
|
|
10
11
|
static readonly id = "workbench.action.chat.renameSession";
|
|
11
12
|
constructor();
|
|
@@ -19,22 +20,6 @@ export declare class DeleteChatSessionAction extends Action2 {
|
|
|
19
20
|
constructor();
|
|
20
21
|
run(accessor: ServicesAccessor, context?: IMarshalledChatSessionContext): Promise<void>;
|
|
21
22
|
}
|
|
22
|
-
/**
|
|
23
|
-
* Action to open a chat session in a new window
|
|
24
|
-
*/
|
|
25
|
-
export declare class OpenChatSessionInNewWindowAction extends Action2 {
|
|
26
|
-
static readonly id = "workbench.action.chat.openSessionInNewWindow";
|
|
27
|
-
constructor();
|
|
28
|
-
run(accessor: ServicesAccessor, context?: IMarshalledChatSessionContext): Promise<void>;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Action to open a chat session in a new editor group to the side
|
|
32
|
-
*/
|
|
33
|
-
export declare class OpenChatSessionInNewEditorGroupAction extends Action2 {
|
|
34
|
-
static readonly id = "workbench.action.chat.openSessionInNewEditorGroup";
|
|
35
|
-
constructor();
|
|
36
|
-
run(accessor: ServicesAccessor, context?: IMarshalledChatSessionContext): Promise<void>;
|
|
37
|
-
}
|
|
38
23
|
/**
|
|
39
24
|
* Action to open a chat session in the sidebar (chat widget)
|
|
40
25
|
*/
|
|
@@ -55,13 +40,7 @@ export declare class ToggleChatSessionsDescriptionDisplayAction extends Action2
|
|
|
55
40
|
* Action to toggle between 'view' and 'single-view' modes for Agent Sessions
|
|
56
41
|
*/
|
|
57
42
|
export declare class ToggleAgentSessionsViewLocationAction extends Action2 {
|
|
58
|
-
static readonly id = "workbench.action.chatSessions.
|
|
59
|
-
constructor();
|
|
60
|
-
run(accessor: ServicesAccessor): Promise<void>;
|
|
61
|
-
}
|
|
62
|
-
export declare class ChatSessionsGettingStartedAction extends Action2 {
|
|
63
|
-
static readonly ID = "chat.sessions.gettingStarted";
|
|
43
|
+
static readonly id = "workbench.action.chatSessions.toggleNewCombinedView";
|
|
64
44
|
constructor();
|
|
65
45
|
run(accessor: ServicesAccessor): Promise<void>;
|
|
66
46
|
}
|
|
67
|
-
export {};
|