@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
|
@@ -7,8 +7,9 @@ import { IKeybindingService } from '@codingame/monaco-vscode-api/vscode/vs/platf
|
|
|
7
7
|
import { AccessibilityVerbositySettingId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/accessibility/browser/accessibilityConfiguration';
|
|
8
8
|
import { INLINE_CHAT_ID } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/inlineChat/common/inlineChat';
|
|
9
9
|
import { TerminalContribCommandId } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/terminalContribExports';
|
|
10
|
-
import { ChatContextKeys, ChatContextKeyExprs } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
10
|
+
import { ChatContextKeys, ChatContextKeyExprs } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
11
11
|
import { ChatAgentLocation, ChatModeKind, ChatConfiguration } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
12
|
+
import { FocusAgentSessionsAction } from '../agentSessions/agentSessionsActions.js';
|
|
12
13
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
13
14
|
import { ChatEditingShowChangesAction, ViewPreviousEditsAction } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatEditing/chatEditingActions';
|
|
14
15
|
|
|
@@ -69,230 +70,238 @@ function getAccessibilityHelpText(type, keybindingService) {
|
|
|
69
70
|
if (type === 'panelChat' || type === 'quickChat' || type === 'agentView') {
|
|
70
71
|
if (type === 'quickChat') {
|
|
71
72
|
content.push(( localize(
|
|
72
|
-
|
|
73
|
+
4598,
|
|
73
74
|
'The quick chat view is comprised of an input box and a request/response list. The input box is used to make requests and the list is used to display responses.'
|
|
74
75
|
)));
|
|
75
76
|
content.push(( localize(
|
|
76
|
-
|
|
77
|
+
4599,
|
|
77
78
|
'The quick chat view is a transient interface for making and viewing requests, while the panel chat view is a persistent interface that also supports navigating suggested follow-up questions.'
|
|
78
79
|
)));
|
|
79
80
|
}
|
|
80
|
-
|
|
81
|
+
else {
|
|
82
|
+
content.push(( localize(
|
|
83
|
+
4600,
|
|
84
|
+
'The chat view is a persistent interface that also supports navigating suggested follow-up questions, while the quick chat view is a transient interface for making and viewing requests.'
|
|
85
|
+
)));
|
|
86
|
+
content.push(( localize(
|
|
87
|
+
4601,
|
|
88
|
+
'To create a new chat session, invoke the New Chat command{0}.',
|
|
89
|
+
'<keybinding:workbench.action.chat.newChat>'
|
|
90
|
+
)));
|
|
81
91
|
content.push(( localize(
|
|
82
|
-
|
|
83
|
-
'
|
|
92
|
+
4602,
|
|
93
|
+
'To view all chat sessions, invoke the Show Chats command{0}.',
|
|
94
|
+
'<keybinding:workbench.action.chat.history>'
|
|
95
|
+
)));
|
|
96
|
+
content.push(( localize(
|
|
97
|
+
4603,
|
|
98
|
+
'You can focus the agent sessions list by invoking the Focus Agent Sessions command{0}.',
|
|
99
|
+
`<keybinding:${FocusAgentSessionsAction.id}>`
|
|
84
100
|
)));
|
|
85
101
|
}
|
|
86
102
|
content.push(( localize(
|
|
87
|
-
|
|
103
|
+
4604,
|
|
88
104
|
'In the input box, use up and down arrows to navigate your request history. Edit input and use enter or the submit button to run a new request.'
|
|
89
105
|
)));
|
|
90
106
|
content.push(( localize(
|
|
91
|
-
|
|
107
|
+
4605,
|
|
92
108
|
'To remove attached contexts, focus an attachment and press Delete or Backspace.'
|
|
93
109
|
)));
|
|
94
110
|
content.push(( localize(
|
|
95
|
-
|
|
111
|
+
4606,
|
|
96
112
|
'In the input box, inspect the last response in the accessible view{0}.',
|
|
97
113
|
'<keybinding:editor.action.accessibleView>'
|
|
98
114
|
)));
|
|
99
115
|
content.push(( localize(
|
|
100
|
-
|
|
116
|
+
4607,
|
|
101
117
|
'To focus the chat request and response list, invoke the Focus Chat command{0}. This will move focus to the most recent response, which you can then navigate using the up and down arrow keys.',
|
|
102
118
|
getChatFocusKeybindingLabel(keybindingService, type, 'last')
|
|
103
119
|
)));
|
|
104
120
|
content.push(( localize(
|
|
105
|
-
|
|
121
|
+
4608,
|
|
106
122
|
'To return to the last chat response you focused, invoke the Focus Last Focused Chat Response command{0}.',
|
|
107
123
|
getChatFocusKeybindingLabel(keybindingService, type, 'lastFocused')
|
|
108
124
|
)));
|
|
109
125
|
content.push(( localize(
|
|
110
|
-
|
|
126
|
+
4609,
|
|
111
127
|
'To focus the input box for chat requests, invoke the Focus Chat Input command{0}.',
|
|
112
128
|
getChatFocusKeybindingLabel(keybindingService, type, 'input')
|
|
113
129
|
)));
|
|
114
130
|
content.push(( localize(
|
|
115
|
-
|
|
131
|
+
4610,
|
|
116
132
|
'As the chat request is being processed, you will hear verbose progress updates if the request takes more than 4 seconds. This includes information like searched text for <search term> with X results, created file <file_name>, or read file <file path>. This can be disabled with accessibility.verboseChatProgressUpdates.'
|
|
117
133
|
)));
|
|
118
134
|
content.push(( localize(
|
|
119
|
-
|
|
135
|
+
4611,
|
|
120
136
|
'Chat responses will be announced as they come in. A response will indicate the number of code blocks, if any, and then the rest of the response.'
|
|
121
137
|
)));
|
|
122
138
|
content.push(( localize(
|
|
123
|
-
|
|
139
|
+
4612,
|
|
124
140
|
'To focus the next code block within a response, invoke the Chat: Next Code Block command{0}.',
|
|
125
141
|
'<keybinding:workbench.action.chat.nextCodeBlock>'
|
|
126
142
|
)));
|
|
127
143
|
content.push(( localize(
|
|
128
|
-
|
|
144
|
+
4613,
|
|
129
145
|
'To navigate to the next user prompt in the conversation, invoke the Next User Prompt command{0}.',
|
|
130
146
|
'<keybinding:workbench.action.chat.nextUserPrompt>'
|
|
131
147
|
)));
|
|
132
148
|
content.push(( localize(
|
|
133
|
-
|
|
149
|
+
4614,
|
|
134
150
|
'To navigate to the previous user prompt in the conversation, invoke the Previous User Prompt command{0}.',
|
|
135
151
|
'<keybinding:workbench.action.chat.previousUserPrompt>'
|
|
136
152
|
)));
|
|
137
153
|
content.push(( localize(
|
|
138
|
-
|
|
154
|
+
4615,
|
|
139
155
|
'To focus pending chat confirmation dialogs, invoke the Focus Chat Confirmation Status command{0}.',
|
|
140
156
|
'<keybinding:workbench.action.chat.focusConfirmation>'
|
|
141
157
|
)));
|
|
142
158
|
content.push(( localize(
|
|
143
|
-
|
|
159
|
+
4616,
|
|
144
160
|
'If there are any hidden chat terminals, you can view them by invoking the View Hidden Chat Terminals command{0}.',
|
|
145
161
|
'<keybinding:workbench.action.terminal.chat.viewHiddenChatTerminals>'
|
|
146
162
|
)));
|
|
147
163
|
content.push(( localize(
|
|
148
|
-
|
|
164
|
+
4617,
|
|
149
165
|
'To focus the last chat terminal that ran a tool, invoke the Focus Most Recent Chat Terminal command{0}.',
|
|
150
166
|
`<keybinding:${TerminalContribCommandId.FocusMostRecentChatTerminal}>`
|
|
151
167
|
)));
|
|
152
168
|
content.push(( localize(
|
|
153
|
-
|
|
169
|
+
4618,
|
|
154
170
|
'To focus the output from the last chat terminal tool, invoke the Focus Most Recent Chat Terminal Output command{0}.',
|
|
155
171
|
`<keybinding:${TerminalContribCommandId.FocusMostRecentChatTerminalOutput}>`
|
|
156
172
|
)));
|
|
157
|
-
if (type === 'panelChat') {
|
|
158
|
-
content.push(( localize(
|
|
159
|
-
4567,
|
|
160
|
-
'To create a new chat session, invoke the New Chat command{0}.',
|
|
161
|
-
'<keybinding:workbench.action.chat.new>'
|
|
162
|
-
)));
|
|
163
|
-
}
|
|
164
173
|
}
|
|
165
174
|
if (type === 'editsView' || type === 'agentView') {
|
|
166
175
|
if (type === 'agentView') {
|
|
167
176
|
content.push(( localize(
|
|
168
|
-
|
|
177
|
+
4619,
|
|
169
178
|
'The chat agent view is used to apply edits across files in your workspace, enable running commands in the terminal, and more.'
|
|
170
179
|
)));
|
|
171
180
|
}
|
|
172
181
|
else {
|
|
173
|
-
content.push(( localize(
|
|
182
|
+
content.push(( localize(4620, 'The chat editing view is used to apply edits across files.')));
|
|
174
183
|
}
|
|
175
184
|
content.push(( localize(
|
|
176
|
-
|
|
185
|
+
4621,
|
|
177
186
|
'It is comprised of an input box and a file working set (Shift+Tab).'
|
|
178
187
|
)));
|
|
179
188
|
content.push(( localize(
|
|
180
|
-
|
|
189
|
+
4622,
|
|
181
190
|
'When a request is made, a progress indicator will play while the edits are being applied.'
|
|
182
191
|
)));
|
|
183
192
|
content.push(( localize(
|
|
184
|
-
|
|
193
|
+
4623,
|
|
185
194
|
'Once the edits are applied, a sound will play to indicate the document has been opened and is ready for review. The sound can be disabled with accessibility.signals.chatEditModifiedFile.'
|
|
186
195
|
)));
|
|
187
196
|
content.push(( localize(
|
|
188
|
-
|
|
197
|
+
4624,
|
|
189
198
|
'Navigate between edits in the editor with navigate previous{0} and next{1}',
|
|
190
199
|
'<keybinding:chatEditor.action.navigatePrevious>',
|
|
191
200
|
'<keybinding:chatEditor.action.navigateNext>'
|
|
192
201
|
)));
|
|
193
202
|
content.push(( localize(
|
|
194
|
-
|
|
203
|
+
4625,
|
|
195
204
|
'In the editor, Keep{0}, Undo{1}, or Toggle the Diff{2} for the current Change.',
|
|
196
205
|
'<keybinding:chatEditor.action.acceptHunk>',
|
|
197
206
|
'<keybinding:chatEditor.action.undoHunk>',
|
|
198
207
|
'<keybinding:chatEditor.action.toggleDiff>'
|
|
199
208
|
)));
|
|
200
209
|
content.push(( localize(
|
|
201
|
-
|
|
210
|
+
4626,
|
|
202
211
|
'Sounds will play when a change is accepted or undone. The sounds can be disabled with accessibility.signals.editsKept and accessibility.signals.editsUndone.'
|
|
203
212
|
)));
|
|
204
213
|
if (type === 'agentView') {
|
|
205
214
|
content.push(( localize(
|
|
206
|
-
|
|
215
|
+
4627,
|
|
207
216
|
'An alert will indicate when user action is required. For example, if the agent wants to run something in the terminal, you will hear Action Required: Run Command in Terminal.'
|
|
208
217
|
)));
|
|
209
218
|
content.push(( localize(
|
|
210
|
-
|
|
219
|
+
4628,
|
|
211
220
|
'To take the action, use the accept tool command{0}.',
|
|
212
221
|
'<keybinding:workbench.action.chat.acceptTool>'
|
|
213
222
|
)));
|
|
214
223
|
content.push(( localize(
|
|
215
|
-
|
|
224
|
+
4629,
|
|
216
225
|
'To automatically approve tool actions without manual confirmation, set {0} to {1} in your settings.',
|
|
217
226
|
ChatConfiguration.GlobalAutoApprove,
|
|
218
227
|
'true'
|
|
219
228
|
)));
|
|
220
229
|
content.push(( localize(
|
|
221
|
-
|
|
230
|
+
4630,
|
|
222
231
|
'To accept a tool action, use the Accept Tool Confirmation command{0}.',
|
|
223
232
|
'<keybinding:workbench.action.chat.acceptTool>'
|
|
224
233
|
)));
|
|
225
234
|
content.push(( localize(
|
|
226
|
-
|
|
235
|
+
4631,
|
|
227
236
|
'By default, when edits are made to files, they will be opened. To change this behavior, set accessibility.openChatEditedFiles to false in your settings.'
|
|
228
237
|
)));
|
|
229
238
|
}
|
|
230
|
-
content.push(( localize(
|
|
231
|
-
content.push(( localize(
|
|
239
|
+
content.push(( localize(4632, 'Some helpful commands include:')));
|
|
240
|
+
content.push(( localize(4633, '- Undo Edits{0}.', '<keybinding:workbench.action.chat.undoEdits>')));
|
|
232
241
|
content.push(( localize(
|
|
233
|
-
|
|
242
|
+
4634,
|
|
234
243
|
'- Attach Files{0}.',
|
|
235
244
|
'<keybinding:workbench.action.chat.editing.attachFiles>'
|
|
236
245
|
)));
|
|
237
246
|
content.push(( localize(
|
|
238
|
-
|
|
247
|
+
4635,
|
|
239
248
|
'- Remove File from Working Set{0}.',
|
|
240
249
|
'<keybinding:chatEditing.removeFileFromWorkingSet>'
|
|
241
250
|
)));
|
|
242
251
|
content.push(( localize(
|
|
243
|
-
|
|
252
|
+
4636,
|
|
244
253
|
'- Keep{0} and Undo File{1}.',
|
|
245
254
|
'<keybinding:chatEditing.acceptFile>',
|
|
246
255
|
'<keybinding:chatEditing.discardFile>'
|
|
247
256
|
)));
|
|
248
|
-
content.push(( localize(
|
|
249
|
-
content.push(( localize(
|
|
250
|
-
content.push(( localize(
|
|
251
|
-
content.push(( localize(
|
|
257
|
+
content.push(( localize(4637, '- Save All Files{0}.', '<keybinding:chatEditing.saveAllFiles>')));
|
|
258
|
+
content.push(( localize(4638, '- Keep All Edits{0}.', '<keybinding:chatEditing.acceptAllFiles>')));
|
|
259
|
+
content.push(( localize(4639, '- Undo All Edits{0}.', '<keybinding:chatEditing.discardAllFiles>')));
|
|
260
|
+
content.push(( localize(4640, '- Open File in Diff{0}.', '<keybinding:chatEditing.openFileInDiff>')));
|
|
252
261
|
content.push(`- ${ChatEditingShowChangesAction.LABEL}<keybinding:chatEditing.viewChanges>`);
|
|
253
262
|
content.push(`- ${ViewPreviousEditsAction.Label}<keybinding:chatEditing.viewPreviousEdits>`);
|
|
254
263
|
}
|
|
255
264
|
else {
|
|
256
265
|
content.push(( localize(
|
|
257
|
-
|
|
266
|
+
4641,
|
|
258
267
|
"Inline chat occurs within a code editor and takes into account the current selection. It is useful for making changes to the current editor. For example, fixing diagnostics, documenting or refactoring code. Keep in mind that AI generated code may be incorrect."
|
|
259
268
|
)));
|
|
260
269
|
content.push(( localize(
|
|
261
|
-
|
|
270
|
+
4642,
|
|
262
271
|
"It can be activated via code actions or directly using the command: Inline Chat: Start Inline Chat{0}.",
|
|
263
272
|
'<keybinding:inlineChat.start>'
|
|
264
273
|
)));
|
|
265
274
|
content.push(( localize(
|
|
266
|
-
|
|
275
|
+
4643,
|
|
267
276
|
'In the input box, use Show Previous{0} and Show Next{1} to navigate your request history. Edit input and use enter or the submit button to run a new request.',
|
|
268
277
|
'<keybinding:history.showPrevious>',
|
|
269
278
|
'<keybinding:history.showNext>'
|
|
270
279
|
)));
|
|
271
280
|
content.push(( localize(
|
|
272
|
-
|
|
281
|
+
4644,
|
|
273
282
|
'In the input box, inspect the response in the accessible view{0}.',
|
|
274
283
|
'<keybinding:editor.action.accessibleView>'
|
|
275
284
|
)));
|
|
276
285
|
content.push(( localize(
|
|
277
|
-
|
|
286
|
+
4645,
|
|
278
287
|
"Context menu actions may run a request prefixed with a /. Type / to discover such ready-made commands."
|
|
279
288
|
)));
|
|
280
289
|
content.push(( localize(
|
|
281
|
-
|
|
290
|
+
4646,
|
|
282
291
|
"If a fix action is invoked, a response will indicate the problem with the current code. A diff editor will be rendered and can be reached by tabbing."
|
|
283
292
|
)));
|
|
284
293
|
content.push(( localize(
|
|
285
|
-
|
|
294
|
+
4647,
|
|
286
295
|
"Once in the diff editor, enter review mode with{0}. Use up and down arrows to navigate lines with the proposed changes.",
|
|
287
296
|
AccessibleDiffViewerNext.id
|
|
288
297
|
)));
|
|
289
298
|
content.push(( localize(
|
|
290
|
-
|
|
299
|
+
4648,
|
|
291
300
|
"Use tab to reach conditional parts like commands, status, message responses and more."
|
|
292
301
|
)));
|
|
293
302
|
}
|
|
294
303
|
content.push(( localize(
|
|
295
|
-
|
|
304
|
+
4649,
|
|
296
305
|
"Accessibility Signals can be changed via settings with a prefix of signals.chat. By default, if a request takes more than 4 seconds, you will hear a sound indicating that progress is still occurring."
|
|
297
306
|
)));
|
|
298
307
|
return content.join('\n');
|
|
@@ -327,7 +336,7 @@ function getChatAccessibilityHelpProvider(accessor, editor, type) {
|
|
|
327
336
|
ctrl?.focus();
|
|
328
337
|
}
|
|
329
338
|
},
|
|
330
|
-
type === '
|
|
339
|
+
type === 'inlineChat' ? AccessibilityVerbositySettingId.InlineChat : AccessibilityVerbositySettingId.Chat
|
|
331
340
|
));
|
|
332
341
|
}
|
|
333
342
|
function getChatFocusKeybindingLabel(keybindingService, type, focus) {
|
package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js
CHANGED
|
@@ -15,7 +15,7 @@ import { IWorkbenchExtensionManagementService } from '@codingame/monaco-vscode-a
|
|
|
15
15
|
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
16
16
|
import { ExtensionIdentifier } from '@codingame/monaco-vscode-api/vscode/vs/platform/extensions/common/extensions';
|
|
17
17
|
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
18
|
-
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
18
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
19
19
|
|
|
20
20
|
const INSTALL_CONTEXT_PREFIX = 'chat.installRecommendationAvailable';
|
|
21
21
|
let ChatAgentRecommendation = class ChatAgentRecommendation extends Disposable {
|
|
@@ -47,7 +47,7 @@ let ChatAgentRecommendation = class ChatAgentRecommendation extends Disposable {
|
|
|
47
47
|
const availabilityContextId = `${INSTALL_CONTEXT_PREFIX}.${extensionKey}`;
|
|
48
48
|
const availabilityContext = ( new RawContextKey(availabilityContextId, false)).bindTo(this.contextKeyService);
|
|
49
49
|
this.availabilityContextKeys.set(extensionKey, availabilityContext);
|
|
50
|
-
const title = ( localize2(
|
|
50
|
+
const title = ( localize2(4696, "New {0}", recommendation.displayName));
|
|
51
51
|
this._register(registerAction2(class extends Action2 {
|
|
52
52
|
constructor() {
|
|
53
53
|
super({
|
|
@@ -58,16 +58,6 @@ let ChatAgentRecommendation = class ChatAgentRecommendation extends Disposable {
|
|
|
58
58
|
category: CHAT_CATEGORY,
|
|
59
59
|
icon: Codicon.extensions,
|
|
60
60
|
menu: [
|
|
61
|
-
{
|
|
62
|
-
id: MenuId.AgentSessionsInstallMenu,
|
|
63
|
-
group: '0_install',
|
|
64
|
-
when: ( ContextKeyExpr.equals(availabilityContextId, true))
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
id: MenuId.AgentSessionsViewTitle,
|
|
68
|
-
group: 'navigation@98',
|
|
69
|
-
when: ( ContextKeyExpr.equals(availabilityContextId, true))
|
|
70
|
-
},
|
|
71
61
|
{
|
|
72
62
|
id: MenuId.ChatNewMenu,
|
|
73
63
|
group: '4_recommendations',
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ServicesAccessor } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
2
|
+
import { ChatEditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput";
|
|
3
|
+
export declare function clearChatEditor(accessor: ServicesAccessor, chatEditorInput?: ChatEditorInput): Promise<void>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
import { Schemas } from '@codingame/monaco-vscode-api/vscode/vs/base/common/network';
|
|
3
|
+
import { generateUuid } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uuid';
|
|
4
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
5
|
+
import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput';
|
|
6
|
+
|
|
7
|
+
async function clearChatEditor(accessor, chatEditorInput) {
|
|
8
|
+
const editorService = accessor.get(IEditorService);
|
|
9
|
+
if (!chatEditorInput) {
|
|
10
|
+
const editorInput = editorService.activeEditor;
|
|
11
|
+
chatEditorInput = editorInput instanceof ChatEditorInput ? editorInput : undefined;
|
|
12
|
+
}
|
|
13
|
+
if (chatEditorInput instanceof ChatEditorInput) {
|
|
14
|
+
const resource = chatEditorInput.sessionResource && chatEditorInput.sessionResource.scheme !== Schemas.vscodeLocalChatSession
|
|
15
|
+
? chatEditorInput.sessionResource.with({ path: `/untitled-${generateUuid()}` })
|
|
16
|
+
: ChatEditorInput.getNewEditorUri();
|
|
17
|
+
const identifier = editorService.findEditors(chatEditorInput.resource)[0];
|
|
18
|
+
await editorService.replaceEditors([{
|
|
19
|
+
editor: chatEditorInput,
|
|
20
|
+
replacement: { resource, options: { pinned: true } }
|
|
21
|
+
}], identifier.groupId);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { clearChatEditor };
|
|
@@ -3,8 +3,8 @@ import { IActionViewItemService } from "@codingame/monaco-vscode-api/vscode/vs/p
|
|
|
3
3
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
4
4
|
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
5
5
|
import { IWorkbenchContribution } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/contributions";
|
|
6
|
-
import { IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel";
|
|
7
|
-
import { ICodeBlockActionContext, ICodeCompareBlockActionContext } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/codeBlockPart";
|
|
6
|
+
import { IChatResponseViewModel } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel";
|
|
7
|
+
import { ICodeBlockActionContext, ICodeCompareBlockActionContext } from "@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart";
|
|
8
8
|
export interface IChatCodeBlockActionContext extends ICodeBlockActionContext {
|
|
9
9
|
element: IChatResponseViewModel;
|
|
10
10
|
}
|
|
@@ -24,13 +24,13 @@ import { IAiEditTelemetryService } from '@codingame/monaco-vscode-api/vscode/vs/
|
|
|
24
24
|
import { EditDeltaInfo } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/textModelEditSource';
|
|
25
25
|
import { reviewEdits } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/inlineChat/browser/inlineChatController';
|
|
26
26
|
import { ITerminalService, ITerminalEditorService, ITerminalGroupService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/terminal/browser/terminal.service';
|
|
27
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
28
|
-
import { ChatCopyKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService';
|
|
29
|
-
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService.service';
|
|
30
|
-
import { isResponseVM, isRequestVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatViewModel';
|
|
27
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
28
|
+
import { ChatCopyKind } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService';
|
|
29
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
30
|
+
import { isResponseVM, isRequestVM } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatViewModel';
|
|
31
31
|
import { ChatAgentLocation } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
32
32
|
import { IChatWidgetService, IChatCodeBlockContextProviderService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
33
|
-
import { DefaultChatTextEditor } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/codeBlockPart';
|
|
33
|
+
import { DefaultChatTextEditor } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/codeBlockPart';
|
|
34
34
|
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
35
35
|
import { ApplyCodeBlockOperation, InsertCodeBlockOperation } from './codeBlockOperations.js';
|
|
36
36
|
|
|
@@ -83,7 +83,7 @@ let CodeBlockActionRendering = class CodeBlockActionRendering extends Disposable
|
|
|
83
83
|
const context = this._context;
|
|
84
84
|
if (isCodeBlockActionContext(context) && context.codemapperUri) {
|
|
85
85
|
const label = labelService.getUriLabel(context.codemapperUri, { relative: true });
|
|
86
|
-
return localize(
|
|
86
|
+
return localize(4697, "Apply to {0}", label);
|
|
87
87
|
}
|
|
88
88
|
return super.getTooltip();
|
|
89
89
|
}
|
|
@@ -106,7 +106,7 @@ function registerChatCodeBlockActions() {
|
|
|
106
106
|
constructor() {
|
|
107
107
|
super({
|
|
108
108
|
id: 'workbench.action.chat.copyCodeBlock',
|
|
109
|
-
title: ( localize2(
|
|
109
|
+
title: ( localize2(4698, "Copy")),
|
|
110
110
|
f1: false,
|
|
111
111
|
category: CHAT_CATEGORY,
|
|
112
112
|
icon: Codicon.copy,
|
|
@@ -231,9 +231,9 @@ function registerChatCodeBlockActions() {
|
|
|
231
231
|
constructor() {
|
|
232
232
|
super({
|
|
233
233
|
id: APPLY_IN_EDITOR_ID,
|
|
234
|
-
title: ( localize2(
|
|
234
|
+
title: ( localize2(4699, "Apply in Editor")),
|
|
235
235
|
precondition: ChatContextKeys.enabled,
|
|
236
|
-
f1:
|
|
236
|
+
f1: false,
|
|
237
237
|
category: CHAT_CATEGORY,
|
|
238
238
|
icon: Codicon.gitPullRequestGoToChanges,
|
|
239
239
|
menu: [
|
|
@@ -267,7 +267,7 @@ function registerChatCodeBlockActions() {
|
|
|
267
267
|
constructor() {
|
|
268
268
|
super({
|
|
269
269
|
id: 'workbench.action.chat.insertCodeBlock',
|
|
270
|
-
title: ( localize2(
|
|
270
|
+
title: ( localize2(4700, "Insert At Cursor")),
|
|
271
271
|
precondition: ChatContextKeys.enabled,
|
|
272
272
|
f1: true,
|
|
273
273
|
category: CHAT_CATEGORY,
|
|
@@ -301,7 +301,7 @@ function registerChatCodeBlockActions() {
|
|
|
301
301
|
constructor() {
|
|
302
302
|
super({
|
|
303
303
|
id: 'workbench.action.chat.insertIntoNewFile',
|
|
304
|
-
title: ( localize2(
|
|
304
|
+
title: ( localize2(4701, "Insert into New File")),
|
|
305
305
|
precondition: ChatContextKeys.enabled,
|
|
306
306
|
f1: true,
|
|
307
307
|
category: CHAT_CATEGORY,
|
|
@@ -361,7 +361,7 @@ function registerChatCodeBlockActions() {
|
|
|
361
361
|
constructor() {
|
|
362
362
|
super({
|
|
363
363
|
id: 'workbench.action.chat.runInTerminal',
|
|
364
|
-
title: ( localize2(
|
|
364
|
+
title: ( localize2(4702, "Insert into Terminal")),
|
|
365
365
|
precondition: ChatContextKeys.enabled,
|
|
366
366
|
f1: true,
|
|
367
367
|
category: CHAT_CATEGORY,
|
|
@@ -396,17 +396,19 @@ function registerChatCodeBlockActions() {
|
|
|
396
396
|
const editorService = accessor.get(IEditorService);
|
|
397
397
|
const terminalEditorService = accessor.get(ITerminalEditorService);
|
|
398
398
|
const terminalGroupService = accessor.get(ITerminalGroupService);
|
|
399
|
-
let terminal = await terminalService.getActiveOrCreateInstance();
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
399
|
+
let terminal = await terminalService.getActiveOrCreateInstance({ acceptsInput: true });
|
|
400
|
+
if (terminal.xterm?.isStdinDisabled || terminal.shellLaunchConfig.isFeatureTerminal) {
|
|
401
|
+
terminal = await terminalService.createAndFocusTerminal({ location: TerminalLocation.Panel });
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
await terminalService.focusInstance(terminal);
|
|
405
|
+
}
|
|
404
406
|
if (terminal.target === TerminalLocation.Editor) {
|
|
405
407
|
const existingEditors = editorService.findEditors(terminal.resource);
|
|
406
408
|
terminalEditorService.openEditor(terminal, { viewColumn: existingEditors?.[0].groupId });
|
|
407
409
|
}
|
|
408
410
|
else {
|
|
409
|
-
terminalGroupService.showPanel(true);
|
|
411
|
+
await terminalGroupService.showPanel(true);
|
|
410
412
|
}
|
|
411
413
|
terminal.runCommand(context.code, false);
|
|
412
414
|
if (isResponseVM(context.element)) {
|
|
@@ -455,7 +457,7 @@ function registerChatCodeBlockActions() {
|
|
|
455
457
|
constructor() {
|
|
456
458
|
super({
|
|
457
459
|
id: 'workbench.action.chat.nextCodeBlock',
|
|
458
|
-
title: ( localize2(
|
|
460
|
+
title: ( localize2(4703, "Next Code Block")),
|
|
459
461
|
keybinding: {
|
|
460
462
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageDown,
|
|
461
463
|
mac: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageDown, },
|
|
@@ -475,7 +477,7 @@ function registerChatCodeBlockActions() {
|
|
|
475
477
|
constructor() {
|
|
476
478
|
super({
|
|
477
479
|
id: 'workbench.action.chat.previousCodeBlock',
|
|
478
|
-
title: ( localize2(
|
|
480
|
+
title: ( localize2(4704, "Previous Code Block")),
|
|
479
481
|
keybinding: {
|
|
480
482
|
primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageUp,
|
|
481
483
|
mac: { primary: KeyMod.CtrlCmd | KeyMod.Alt | KeyCode.PageUp, },
|
|
@@ -534,7 +536,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
534
536
|
constructor() {
|
|
535
537
|
super({
|
|
536
538
|
id: 'workbench.action.chat.applyCompareEdits',
|
|
537
|
-
title: ( localize2(
|
|
539
|
+
title: ( localize2(4705, "Apply Edits")),
|
|
538
540
|
f1: false,
|
|
539
541
|
category: CHAT_CATEGORY,
|
|
540
542
|
icon: Codicon.gitPullRequestGoToChanges,
|
|
@@ -576,7 +578,7 @@ function registerChatCodeCompareBlockActions() {
|
|
|
576
578
|
constructor() {
|
|
577
579
|
super({
|
|
578
580
|
id: 'workbench.action.chat.discardCompareEdits',
|
|
579
|
-
title: ( localize2(
|
|
581
|
+
title: ( localize2(4706, "Discard Edits")),
|
|
580
582
|
f1: false,
|
|
581
583
|
category: CHAT_CATEGORY,
|
|
582
584
|
icon: Codicon.trash,
|
|
@@ -37,14 +37,14 @@ import { AnythingQuickAccessProvider } from '@codingame/monaco-vscode-api/vscode
|
|
|
37
37
|
import { isSearchTreeFileMatch, isSearchTreeMatch } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/browser/searchTreeModel/searchTreeCommon';
|
|
38
38
|
import { SymbolsQuickAccessProvider } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/browser/symbolsQuickAccess';
|
|
39
39
|
import { SearchContext } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/search/common/constants';
|
|
40
|
-
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatContextKeys';
|
|
41
|
-
import { OmittedState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatVariableEntries';
|
|
40
|
+
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
41
|
+
import { OmittedState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/attachments/chatVariableEntries';
|
|
42
42
|
import { ChatAgentLocation, isSupportedChatFileScheme } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
43
43
|
import { IChatWidgetService, IQuickChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
44
|
-
import { isChatContextPickerPickItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContextPickService';
|
|
45
|
-
import { IChatContextPickService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatContextPickService.service';
|
|
46
|
-
import { isQuickChat } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/chatWidget';
|
|
47
|
-
import { resizeImage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/
|
|
44
|
+
import { isChatContextPickerPickItem } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatContextPickService';
|
|
45
|
+
import { IChatContextPickService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatContextPickService.service';
|
|
46
|
+
import { isQuickChat } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatWidget';
|
|
47
|
+
import { resizeImage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatImageUtils';
|
|
48
48
|
import { registerPromptActions } from '../promptSyntax/promptFileActions.js';
|
|
49
49
|
import { CHAT_CATEGORY } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/actions/chatActions';
|
|
50
50
|
import { observableValue } from '@codingame/monaco-vscode-api/vscode/vs/base/common/observableInternal/observables/observableValue';
|
|
@@ -114,7 +114,7 @@ class AttachFileToChatAction extends AttachResourceAction {
|
|
|
114
114
|
constructor() {
|
|
115
115
|
super({
|
|
116
116
|
id: AttachFileToChatAction.ID,
|
|
117
|
-
title: ( localize2(
|
|
117
|
+
title: ( localize2(4717, "Add File to Chat")),
|
|
118
118
|
category: CHAT_CATEGORY,
|
|
119
119
|
precondition: ChatContextKeys.enabled,
|
|
120
120
|
f1: true,
|
|
@@ -163,7 +163,7 @@ class AttachFolderToChatAction extends AttachResourceAction {
|
|
|
163
163
|
constructor() {
|
|
164
164
|
super({
|
|
165
165
|
id: AttachFolderToChatAction.ID,
|
|
166
|
-
title: ( localize2(
|
|
166
|
+
title: ( localize2(4718, "Add Folder to Chat")),
|
|
167
167
|
category: CHAT_CATEGORY,
|
|
168
168
|
f1: false,
|
|
169
169
|
menu: {
|
|
@@ -192,7 +192,7 @@ class AttachSelectionToChatAction extends Action2 {
|
|
|
192
192
|
constructor() {
|
|
193
193
|
super({
|
|
194
194
|
id: AttachSelectionToChatAction.ID,
|
|
195
|
-
title: ( localize2(
|
|
195
|
+
title: ( localize2(4719, "Add Selection to Chat")),
|
|
196
196
|
category: CHAT_CATEGORY,
|
|
197
197
|
f1: true,
|
|
198
198
|
precondition: ChatContextKeys.enabled,
|
|
@@ -257,7 +257,7 @@ class AttachSearchResultAction extends Action2 {
|
|
|
257
257
|
constructor() {
|
|
258
258
|
super({
|
|
259
259
|
id: 'workbench.action.chat.insertSearchResults',
|
|
260
|
-
title: ( localize2(
|
|
260
|
+
title: ( localize2(4720, 'Add Search Results to Chat')),
|
|
261
261
|
category: CHAT_CATEGORY,
|
|
262
262
|
f1: false,
|
|
263
263
|
menu: [{
|
|
@@ -323,7 +323,7 @@ class AttachContextAction extends Action2 {
|
|
|
323
323
|
constructor() {
|
|
324
324
|
super({
|
|
325
325
|
id: 'workbench.action.chat.attachContext',
|
|
326
|
-
title: ( localize2(
|
|
326
|
+
title: ( localize2(4721, "Add Context...")),
|
|
327
327
|
icon: Codicon.attach,
|
|
328
328
|
category: CHAT_CATEGORY,
|
|
329
329
|
keybinding: {
|
|
@@ -406,7 +406,7 @@ class AttachContextAction extends Action2 {
|
|
|
406
406
|
SymbolsQuickAccessProvider.PREFIX,
|
|
407
407
|
AbstractGotoSymbolQuickAccessProvider.PREFIX
|
|
408
408
|
],
|
|
409
|
-
placeholder: placeholder ?? ( localize(
|
|
409
|
+
placeholder: placeholder ?? ( localize(4722, 'Search attachments')),
|
|
410
410
|
providerOptions,
|
|
411
411
|
});
|
|
412
412
|
}
|
|
@@ -474,7 +474,7 @@ class AttachContextAction extends Action2 {
|
|
|
474
474
|
const pickerConfig = item.asPicker(widget);
|
|
475
475
|
const store = ( new DisposableStore());
|
|
476
476
|
const goBackItem = {
|
|
477
|
-
label: ( localize(
|
|
477
|
+
label: ( localize(4723, 'Go back ↩')),
|
|
478
478
|
alwaysShow: true
|
|
479
479
|
};
|
|
480
480
|
const configureItem = pickerConfig.configure ? {
|