@codingame/monaco-vscode-chat-service-override 26.2.2 → 27.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +31 -1
- package/package.json +5 -5
- package/vscode/src/vs/platform/browserElements/common/browserElements.d.ts +15 -0
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.d.ts +53 -0
- package/vscode/src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.js +219 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.d.ts +39 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +83 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +123 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +274 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +71 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +284 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +79 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +378 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.d.ts +1 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatAccessibilityService.js +27 -40
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.d.ts +9 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/accessibility/chatResponseAccessibleView.js +74 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityActions.js +54 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAccessibilityHelp.js +87 -53
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatAgentRecommendationActions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCodeblockActions.js +71 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatContextActions.js +43 -21
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCopyActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatDeveloperActions.js +22 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatFileTreeActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatForkActions.js +154 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatImportExport.js +6 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatLanguageModelActions.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatMoveActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatNewActions.js +53 -43
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatOpenAgentDebugPanelAction.js +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.js +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPromptNavigationActions.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQueueActions.js +15 -29
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatQuickInputActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.d.ts +13 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolActions.js +16 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +204 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +77 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +541 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessions.contribution.js +10 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.js +70 -65
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.d.ts +7 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsPicker.js +27 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsQuickAccess.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjection.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionActions.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionProjectionService.js +90 -51
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentSessionsExperiments.contribution.js +20 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/agentTitleBarStatusWidget.js +43 -27
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/media/agenttitlebarstatuswidget.css +7 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccess.js +84 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/experiments/unifiedQuickAccessActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.d.ts → localAgentSessionsController.d.ts} +7 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/agentSessions/{localAgentSessionsProvider.js → localAgentSessionsController.js} +24 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationDebugPanel.js +171 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +181 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +943 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.contribution.js +248 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +57 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +118 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +727 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditorInput.js +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationWorkspaceService.js +72 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/customizationCreatorService.js +165 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.d.ts +75 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/mcpListWidget.js +623 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +858 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentResolveService.js +30 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.d.ts +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatAttachmentWidgetRegistry.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +19 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/simpleBrowserEditorOverlay.js +36 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +529 -363
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js +419 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.d.ts +12 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugCollapsible.js +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugDetailPanel.js +198 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditor.js +305 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEditorInput.js +64 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventDetailRenderer.js +84 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugEventList.js +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +111 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.d.ts +71 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowChartView.js +611 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.d.ts +125 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowGraph.js +504 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFlowLayout.js +914 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.d.ts +19 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugHomeView.js +128 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +429 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugMessageContentRenderer.js +113 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugModelTurnContentRenderer.js +126 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.d.ts +38 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugOverviewView.js +279 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.d.ts +18 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugToolCallContentRenderer.js +122 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.d.ts +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugTypes.js +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/media/chatDebug.css +781 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +5 -22
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedDocumentEntry.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedFileEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingModifiedNotebookEntry.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingServiceImpl.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingTextModelChangeService.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/notebook/chatEditingNotebookEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagement.contribution.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditor.js +16 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatManagementEditorInput.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsViewModel.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatModelsWidget.js +63 -76
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/chatUsageWidget.js +26 -15
- package/vscode/src/vs/workbench/contrib/chat/browser/chatManagement/media/chatManagementEditor.css +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/chatOutputItemRenderer.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/chatParticipant.contribution.js +30 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.d.ts +15 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/chatRepoInfo.js +40 -413
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetup.js +38 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupContributions.js +56 -46
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupController.js +15 -11
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupGrowthSession.js +138 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.d.ts +11 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupProviders.js +166 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.d.ts +6 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSetup/chatSetupRunner.js +37 -23
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.d.ts +15 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +351 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusDashboard.js +118 -63
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/chatStatusEntry.js +12 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/chatStatus/media/chatStatus.css +28 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +182 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +892 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +5 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +55 -25
- package/vscode/src/vs/workbench/contrib/chat/browser/contextContrib/chatContextService.js +28 -19
- package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.d.ts +14 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/createSlashCommandsUsageTracker.js +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/defaultModelContribution.js +110 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/exploreAgentDefaultModel.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.d.ts +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/languageModelsConfigurationService.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.d.ts +10 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/planAgentDefaultModel.js +39 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.d.ts +27 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +102 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/chatModeActions.js +6 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.d.ts +16 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +69 -47
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +2 -41
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +7 -7
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptUrlHandler.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/runPromptAction.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/saveAsPromptFileActions.js +3 -3
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/skillActions.js +4 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.d.ts +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/promptsDebugContribution.js +76 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/sessionResourceMatching.js +30 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +43 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +67 -42
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.d.ts +31 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/renameTool.js +242 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.d.ts +34 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolHelpers.js +45 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/toolSetsContribution.js +13 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.d.ts +33 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/usagesTool.js +311 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/viewsWelcome/chatViewsWelcomeHandler.js +5 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.d.ts +4 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/chatWidgetService.js +10 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +10 -10
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatStatusWidget.js +8 -9
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js +64 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +4 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/chatQuick.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.d.ts +15 -4
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditor.js +42 -8
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.d.ts +8 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewPane.js +58 -31
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/chatViewTitleControl.js +6 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewPane.css +8 -20
- package/vscode/src/vs/workbench/contrib/chat/browser/widgetHosts/viewPane/media/chatViewTitleControl.css +15 -6
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.d.ts +39 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +27 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.d.ts +190 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugService.js +11 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.d.ts +36 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +188 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +18 -8
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +192 -85
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.d.ts +5 -6
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatModelStore.js +16 -8
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.d.ts +8 -4
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +111 -7
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +52 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.js +29 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.d.ts +73 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +622 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +64 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +478 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +35 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +1 -30
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +0 -5
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +2 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +8 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +9 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +23 -22
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +44 -14
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +345 -113
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +14 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +34 -24
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.d.ts +3 -0
- package/vscode/src/vs/workbench/contrib/chat/common/tools/chatTodoListService.js +13 -0
- package/vscode/src/vs/workbench/contrib/chat/common/voiceChatService.js +1 -1
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +11 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +23 -0
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +248 -24
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.d.ts +6 -11
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatDefaultModel.js +18 -81
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionService.js +2 -3
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatSessionServiceImpl.js +10 -10
- package/vscode/src/vs/workbench/contrib/mcp/browser/mcpPromptArgumentPick.js +14 -14
- package/vscode/src/vs/workbench/contrib/notebook/browser/contrib/chat/notebookChatUtils.js +1 -1
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/cellChatActions.js +10 -10
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebook.chat.contribution.js +6 -6
- package/vscode/src/vs/workbench/contrib/notebook/browser/controller/chat/notebookChatContext.js +1 -1
- package/vscode/src/vs/workbench/contrib/remoteCodingAgents/browser/remoteCodingAgents.contribution.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/media/terminalChatWidget.css +6 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatAccessibilityHelp.js +16 -16
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatActions.js +35 -26
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.d.ts +0 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatService.js +1 -5
- package/vscode/src/vs/workbench/contrib/terminalContrib/chat/browser/terminalChatWidget.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/runInTerminalHelpers.js +6 -6
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.d.ts +4 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/taskHelpers.js +13 -11
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/terminal.chatAgentTools.contribution.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/toolTerminalCreator.js +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/awaitTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/autoApprove/npmScriptAutoApprover.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineAutoApproveAnalyzer.js +12 -12
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/commandLineAnalyzer/commandLineFileWriteAnalyzer.js +2 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalLastCommandTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalOutputTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/getTerminalSelectionTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/killTerminalTool.js +3 -3
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.d.ts +9 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +280 -65
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/types.d.ts +3 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/outputAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalConfirmationTool.js +2 -10
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.d.ts +1 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +47 -19
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.d.ts +8 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/sandboxOutputAnalyzer.js +31 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/createAndRunTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/getTaskOutputTool.js +7 -7
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/runTaskTool.js +14 -14
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/task/taskHelpers.js +1 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.d.ts +6 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +38 -16
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.d.ts +0 -72
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatCustomizationDiagnosticsAction.js +0 -587
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.d.ts +0 -71
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatProgressTypes/chatToolInvocation.js +0 -293
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.d.ts +0 -2
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/utils.js +0 -31
|
@@ -41,8 +41,7 @@ let ChatStatusWidget = class ChatStatusWidget extends Disposable {
|
|
|
41
41
|
initializeIfEnabled() {
|
|
42
42
|
const entitlement = this.chatEntitlementService.entitlement;
|
|
43
43
|
const isAnonymous = this.chatEntitlementService.anonymous;
|
|
44
|
-
|
|
45
|
-
if (isAnonymous && enabledSku === "anonymous") {
|
|
44
|
+
if (isAnonymous && this.configurationService.getValue("chat.statusWidget.anonymous")) {
|
|
46
45
|
this.createWidgetContent("anonymous");
|
|
47
46
|
} else if (entitlement === ChatEntitlement.Free) {
|
|
48
47
|
this.createWidgetContent("free");
|
|
@@ -66,19 +65,19 @@ let ChatStatusWidget = class ChatStatusWidget extends Disposable {
|
|
|
66
65
|
this.actionButton.element.classList.add("chat-status-button");
|
|
67
66
|
if (enabledSku === "anonymous") {
|
|
68
67
|
const message = ( localize(
|
|
69
|
-
|
|
70
|
-
"You've reached the limit for chat messages.
|
|
68
|
+
6725,
|
|
69
|
+
"You've reached the limit for chat messages. Sign in to use Copilot Free."
|
|
71
70
|
));
|
|
72
|
-
const buttonLabel = ( localize(
|
|
71
|
+
const buttonLabel = ( localize(6726, "Sign In"));
|
|
73
72
|
this.messageElement.textContent = message;
|
|
74
73
|
this.actionButton.label = buttonLabel;
|
|
75
|
-
this.actionButton.element.ariaLabel = ( localize(
|
|
74
|
+
this.actionButton.element.ariaLabel = ( localize(6727, "{0} {1}", message, buttonLabel));
|
|
76
75
|
} else {
|
|
77
|
-
const message = ( localize(
|
|
78
|
-
const buttonLabel = ( localize(
|
|
76
|
+
const message = ( localize(6728, "You've reached the limit for chat messages."));
|
|
77
|
+
const buttonLabel = ( localize(6729, "Upgrade"));
|
|
79
78
|
this.messageElement.textContent = message;
|
|
80
79
|
this.actionButton.label = buttonLabel;
|
|
81
|
-
this.actionButton.element.ariaLabel = ( localize(
|
|
80
|
+
this.actionButton.element.ariaLabel = ( localize(6730, "{0} {1}", message, buttonLabel));
|
|
82
81
|
}
|
|
83
82
|
this._register(this.actionButton.onDidClick(async () => {
|
|
84
83
|
const commandId = this.chatEntitlementService.anonymous ? CHAT_SETUP_ACTION_ID : "workbench.action.chat.upgradePlan";
|
package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputCompletions.js
CHANGED
|
@@ -47,22 +47,30 @@ import { IChatAgentService, IChatAgentNameService } from '@codingame/monaco-vsco
|
|
|
47
47
|
import { getAttachableImageExtension } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel';
|
|
48
48
|
import { ChatRequestAgentPart, chatSubcommandLeader, chatAgentLeader, ChatRequestAgentSubcommandPart, ChatRequestSlashPromptPart, ChatRequestTextPart, chatVariableLeader, ChatRequestToolPart, ChatRequestToolSetPart } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/requestParser/chatParserTypes';
|
|
49
49
|
import { IChatSlashCommandService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/participants/chatSlashCommands.service';
|
|
50
|
-
import {
|
|
50
|
+
import { ChatModeKind, ChatAgentLocation, isSupportedChatFileScheme } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/constants';
|
|
51
51
|
import { isToolSet } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/tools/languageModelToolsService';
|
|
52
52
|
import { IChatSessionsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service';
|
|
53
|
+
import { Target } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService';
|
|
53
54
|
import { IPromptsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service';
|
|
54
55
|
import { ChatSubmitAction } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/actions/chatExecuteActions';
|
|
55
56
|
import { IChatWidgetService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chat.service';
|
|
56
57
|
import { resizeImage } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/chatImageUtils';
|
|
57
|
-
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-
|
|
58
|
+
import { ChatDynamicVariableModel } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables';
|
|
59
|
+
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
60
|
+
import { getPromptFileType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/config/promptFileLocations';
|
|
61
|
+
import { PromptsType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/promptTypes';
|
|
58
62
|
|
|
59
63
|
var BuiltinDynamicCompletions_1, ToolCompletions_1;
|
|
64
|
+
const SlashCommandWord = /\/[\p{L}0-9_.:-]*/gu;
|
|
65
|
+
const AgentOrSlashCommandWord = /(@|\/)[\p{L}0-9_.:-]*/gu;
|
|
60
66
|
let SlashCommandCompletions = class SlashCommandCompletions extends Disposable {
|
|
61
67
|
constructor(
|
|
62
68
|
languageFeaturesService,
|
|
63
69
|
chatWidgetService,
|
|
64
70
|
chatSlashCommandService,
|
|
65
71
|
promptsService,
|
|
72
|
+
chatService,
|
|
73
|
+
chatSessionsService,
|
|
66
74
|
mcpService
|
|
67
75
|
) {
|
|
68
76
|
super();
|
|
@@ -81,10 +89,16 @@ let SlashCommandCompletions = class SlashCommandCompletions extends Disposable {
|
|
|
81
89
|
if (!widget || !widget.viewModel) {
|
|
82
90
|
return null;
|
|
83
91
|
}
|
|
92
|
+
let customAgentTarget = undefined;
|
|
84
93
|
if (widget.lockedAgentId) {
|
|
85
|
-
|
|
94
|
+
if (!widget.attachmentCapabilities.supportsPromptAttachments) {
|
|
95
|
+
return null;
|
|
96
|
+
}
|
|
97
|
+
const sessionResource = widget.viewModel.model.sessionResource;
|
|
98
|
+
const ctx = sessionResource && chatService.getChatSessionFromInternalUri(sessionResource);
|
|
99
|
+
customAgentTarget = (ctx ? chatSessionsService.getCustomAgentTargetForSessionType(ctx.chatSessionType) : undefined) ?? Target.Undefined;
|
|
86
100
|
}
|
|
87
|
-
const range = computeCompletionRanges(model, position,
|
|
101
|
+
const range = computeCompletionRanges(model, position, SlashCommandWord);
|
|
88
102
|
if (!range) {
|
|
89
103
|
return null;
|
|
90
104
|
}
|
|
@@ -101,7 +115,18 @@ let SlashCommandCompletions = class SlashCommandCompletions extends Disposable {
|
|
|
101
115
|
return null;
|
|
102
116
|
}
|
|
103
117
|
return {
|
|
104
|
-
suggestions: ( slashCommands.
|
|
118
|
+
suggestions: ( slashCommands.filter(c => {
|
|
119
|
+
if (!widget.lockedAgentId) {
|
|
120
|
+
return true;
|
|
121
|
+
}
|
|
122
|
+
if (c.modes && c.modes.length && !c.modes.includes(ChatModeKind.Agent)) {
|
|
123
|
+
return false;
|
|
124
|
+
}
|
|
125
|
+
if (c.target && customAgentTarget && c.target !== customAgentTarget) {
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
return true;
|
|
129
|
+
}).map((c, i) => {
|
|
105
130
|
const withSlash = `/${c.command}`;
|
|
106
131
|
return {
|
|
107
132
|
label: withSlash,
|
|
@@ -183,7 +208,7 @@ let SlashCommandCompletions = class SlashCommandCompletions extends Disposable {
|
|
|
183
208
|
if (!widget || !widget.viewModel) {
|
|
184
209
|
return null;
|
|
185
210
|
}
|
|
186
|
-
const range = computeCompletionRanges(model, position,
|
|
211
|
+
const range = computeCompletionRanges(model, position, SlashCommandWord);
|
|
187
212
|
if (!range) {
|
|
188
213
|
return null;
|
|
189
214
|
}
|
|
@@ -199,15 +224,28 @@ let SlashCommandCompletions = class SlashCommandCompletions extends Disposable {
|
|
|
199
224
|
if (promptCommands.length === 0) {
|
|
200
225
|
return null;
|
|
201
226
|
}
|
|
202
|
-
if (widget.lockedAgentId) {
|
|
227
|
+
if (widget.lockedAgentId && !widget.attachmentCapabilities.supportsPromptAttachments) {
|
|
203
228
|
return null;
|
|
204
229
|
}
|
|
205
|
-
const
|
|
206
|
-
|
|
230
|
+
const userInvocableCommands = promptCommands.filter(c => {
|
|
231
|
+
if (widget.lockedAgentId) {
|
|
232
|
+
if (c.promptPath.extension) {
|
|
233
|
+
return false;
|
|
234
|
+
}
|
|
235
|
+
try {
|
|
236
|
+
const promptType = getPromptFileType(c.promptPath.uri);
|
|
237
|
+
if (promptType && promptType === PromptsType.hook) {
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
} catch {}
|
|
241
|
+
}
|
|
242
|
+
return true;
|
|
243
|
+
}).filter(c => c.parsedPromptFile?.header?.userInvocable !== false);
|
|
244
|
+
if (userInvocableCommands.length === 0) {
|
|
207
245
|
return null;
|
|
208
246
|
}
|
|
209
247
|
return {
|
|
210
|
-
suggestions: (
|
|
248
|
+
suggestions: ( userInvocableCommands.map((c, i) => {
|
|
211
249
|
const label = `/${c.name}`;
|
|
212
250
|
const description = c.description;
|
|
213
251
|
return {
|
|
@@ -236,7 +274,7 @@ let SlashCommandCompletions = class SlashCommandCompletions extends Disposable {
|
|
|
236
274
|
if (!widget || !widget.viewModel) {
|
|
237
275
|
return null;
|
|
238
276
|
}
|
|
239
|
-
const range = computeCompletionRanges(model, position, /\/[
|
|
277
|
+
const range = computeCompletionRanges(model, position, /\/[\p{L}0-9_.-]*/gu);
|
|
240
278
|
if (!range) {
|
|
241
279
|
return null;
|
|
242
280
|
}
|
|
@@ -269,7 +307,7 @@ let SlashCommandCompletions = class SlashCommandCompletions extends Disposable {
|
|
|
269
307
|
}));
|
|
270
308
|
}
|
|
271
309
|
};
|
|
272
|
-
SlashCommandCompletions = ( __decorate([( __param(0, ILanguageFeaturesService)), ( __param(1, IChatWidgetService)), ( __param(2, IChatSlashCommandService)), ( __param(3, IPromptsService)), ( __param(4, IMcpService))], SlashCommandCompletions));
|
|
310
|
+
SlashCommandCompletions = ( __decorate([( __param(0, ILanguageFeaturesService)), ( __param(1, IChatWidgetService)), ( __param(2, IChatSlashCommandService)), ( __param(3, IPromptsService)), ( __param(4, IChatService)), ( __param(5, IChatSessionsService)), ( __param(6, IMcpService))], SlashCommandCompletions));
|
|
273
311
|
( Registry.as(Extensions.Workbench)).registerWorkbenchContribution(SlashCommandCompletions, LifecyclePhase.Eventually);
|
|
274
312
|
let AgentCompletions = class AgentCompletions extends Disposable {
|
|
275
313
|
constructor(
|
|
@@ -293,7 +331,7 @@ let AgentCompletions = class AgentCompletions extends Disposable {
|
|
|
293
331
|
if (!widget || !widget.viewModel) {
|
|
294
332
|
return;
|
|
295
333
|
}
|
|
296
|
-
const range = computeCompletionRanges(model, position,
|
|
334
|
+
const range = computeCompletionRanges(model, position, SlashCommandWord);
|
|
297
335
|
if (!range) {
|
|
298
336
|
return;
|
|
299
337
|
}
|
|
@@ -334,7 +372,7 @@ let AgentCompletions = class AgentCompletions extends Disposable {
|
|
|
334
372
|
if (widget.lockedAgentId) {
|
|
335
373
|
return null;
|
|
336
374
|
}
|
|
337
|
-
const range = computeCompletionRanges(model, position,
|
|
375
|
+
const range = computeCompletionRanges(model, position, AgentOrSlashCommandWord);
|
|
338
376
|
if (!range) {
|
|
339
377
|
return null;
|
|
340
378
|
}
|
|
@@ -349,7 +387,7 @@ let AgentCompletions = class AgentCompletions extends Disposable {
|
|
|
349
387
|
const dummyPrefix = agent.id === "github.copilot.terminalPanel" ? `0000` : ``;
|
|
350
388
|
return `${chatAgentLeader}${dummyPrefix}${agent.name}.${command}`;
|
|
351
389
|
};
|
|
352
|
-
const justAgents = ( agents.filter(a => !a.isDefault).map(agent => {
|
|
390
|
+
const justAgents = ( agents.filter(a => !a.isDefault).filter(a => !( chatSessionAgentIds.has(a.id))).map(agent => {
|
|
353
391
|
const {
|
|
354
392
|
label: agentLabel,
|
|
355
393
|
isDupe
|
|
@@ -435,7 +473,7 @@ let AgentCompletions = class AgentCompletions extends Disposable {
|
|
|
435
473
|
if (widget.lockedAgentId) {
|
|
436
474
|
return null;
|
|
437
475
|
}
|
|
438
|
-
const range = computeCompletionRanges(model, position,
|
|
476
|
+
const range = computeCompletionRanges(model, position, AgentOrSlashCommandWord);
|
|
439
477
|
if (!range) {
|
|
440
478
|
return null;
|
|
441
479
|
}
|
|
@@ -507,14 +545,14 @@ let AgentCompletions = class AgentCompletions extends Disposable {
|
|
|
507
545
|
if (widget.lockedAgentId) {
|
|
508
546
|
return null;
|
|
509
547
|
}
|
|
510
|
-
const range = computeCompletionRanges(model, position,
|
|
548
|
+
const range = computeCompletionRanges(model, position, AgentOrSlashCommandWord);
|
|
511
549
|
if (!range) {
|
|
512
550
|
return;
|
|
513
551
|
}
|
|
514
552
|
if (!isEmptyUpToCompletionWord(model, range)) {
|
|
515
553
|
return;
|
|
516
554
|
}
|
|
517
|
-
const label = ( localize(
|
|
555
|
+
const label = ( localize(6736, "Install Chat Extensions..."));
|
|
518
556
|
const item = {
|
|
519
557
|
label,
|
|
520
558
|
insertText: "",
|
|
@@ -557,7 +595,7 @@ let AgentCompletions = class AgentCompletions extends Disposable {
|
|
|
557
595
|
};
|
|
558
596
|
}
|
|
559
597
|
for (const partAfterAgent of parsedRequest.slice(usedAgentIdx + 1)) {
|
|
560
|
-
if (!(partAfterAgent instanceof ChatRequestTextPart) || !partAfterAgent.text.trim().match(/^(
|
|
598
|
+
if (!(partAfterAgent instanceof ChatRequestTextPart) || !partAfterAgent.text.trim().match(/^(\/[\p{L}0-9_.:-]*)?$/u)) {
|
|
561
599
|
return;
|
|
562
600
|
}
|
|
563
601
|
}
|
|
@@ -662,7 +700,7 @@ class StartParameterizedPromptAction extends Action2 {
|
|
|
662
700
|
messages = await prompt.resolve(args, cts.token);
|
|
663
701
|
} catch (e) {
|
|
664
702
|
if (!cts.token.isCancellationRequested) {
|
|
665
|
-
notificationService.error(( localize(
|
|
703
|
+
notificationService.error(( localize(6737, "Error resolving prompt: {0}", String(e))));
|
|
666
704
|
}
|
|
667
705
|
replaceTextWith("");
|
|
668
706
|
return;
|
|
@@ -690,15 +728,15 @@ class StartParameterizedPromptAction extends Action2 {
|
|
|
690
728
|
id: generateUuid(),
|
|
691
729
|
kind: "generic",
|
|
692
730
|
value: contents,
|
|
693
|
-
name: ( localize(
|
|
731
|
+
name: ( localize(6738, "Prompt Resource"))
|
|
694
732
|
});
|
|
695
733
|
}
|
|
696
734
|
} else if (mimeType && getAttachableImageExtension(mimeType)) {
|
|
697
735
|
const resized = await resizeImage(contents).catch(() => decodeBase64(contents).buffer);
|
|
698
736
|
chatWidget.attachmentModel.addContext({
|
|
699
737
|
id: generateUuid(),
|
|
700
|
-
name: ( localize(
|
|
701
|
-
fullName: ( localize(
|
|
738
|
+
name: ( localize(6739, "Prompt Image")),
|
|
739
|
+
fullName: ( localize(6739, "Prompt Image")),
|
|
702
740
|
value: resized,
|
|
703
741
|
kind: "image",
|
|
704
742
|
references: validURI && [{
|
|
@@ -977,7 +1015,7 @@ let BuiltinDynamicCompletions = class BuiltinDynamicCompletions extends Disposab
|
|
|
977
1015
|
const uriLabel = this.labelService.getUriLabel(resource, {
|
|
978
1016
|
relative: true
|
|
979
1017
|
});
|
|
980
|
-
const labelDescription = description ? ( localize(
|
|
1018
|
+
const labelDescription = description ? ( localize(6740, "{0} ({1})", uriLabel, description)) : uriLabel;
|
|
981
1019
|
const sortText = boostPriority ? " " : "!";
|
|
982
1020
|
return {
|
|
983
1021
|
label: {
|
|
@@ -1025,7 +1063,7 @@ let BuiltinDynamicCompletions = class BuiltinDynamicCompletions extends Disposab
|
|
|
1025
1063
|
}
|
|
1026
1064
|
}
|
|
1027
1065
|
seen.add(resource);
|
|
1028
|
-
const newLen = result.suggestions.push(makeCompletionItem(resource, FileKind.FILE, i === 0 ? ( localize(
|
|
1066
|
+
const newLen = result.suggestions.push(makeCompletionItem(resource, FileKind.FILE, i === 0 ? ( localize(6741, "Active file")) : undefined, i === 0));
|
|
1029
1067
|
if (newLen - len >= 5) {
|
|
1030
1068
|
break;
|
|
1031
1069
|
}
|
|
@@ -1258,7 +1296,7 @@ let ToolCompletions = class ToolCompletions extends Disposable {
|
|
|
1258
1296
|
name = item.referenceName;
|
|
1259
1297
|
} else {
|
|
1260
1298
|
const source = item.source;
|
|
1261
|
-
detail = ( localize(
|
|
1299
|
+
detail = ( localize(6742, "{0}: {1}", source.label, item.displayName));
|
|
1262
1300
|
name = item.toolReferenceName ?? item.displayName;
|
|
1263
1301
|
documentation = item.userDescription ?? item.modelDescription;
|
|
1264
1302
|
}
|
package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js
CHANGED
|
@@ -28,7 +28,7 @@ import { ChatRequestTextPart, ChatRequestSlashPromptPart, ChatRequestAgentPart,
|
|
|
28
28
|
import { ChatRequestParser } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/requestParser/chatRequestParser';
|
|
29
29
|
import { IPromptsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/promptSyntax/service/promptsService.service';
|
|
30
30
|
import { ChatWidget } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatWidget';
|
|
31
|
-
import { dynamicVariableDecorationType } from '@codingame/monaco-vscode-
|
|
31
|
+
import { dynamicVariableDecorationType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/attachments/chatDynamicVariables';
|
|
32
32
|
import { NativeEditContextRegistry } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/controller/editContext/native/nativeEditContextRegistry';
|
|
33
33
|
import { TextAreaEditContextRegistry } from '@codingame/monaco-vscode-api/vscode/vs/editor/browser/controller/editContext/textArea/textAreaEditContextRegistry';
|
|
34
34
|
import { ThrottledDelayer } from '@codingame/monaco-vscode-api/vscode/vs/base/common/async';
|
|
@@ -400,13 +400,15 @@ let ChatTokenDeleter = class ChatTokenDeleter extends Disposable {
|
|
|
400
400
|
}
|
|
401
401
|
const change = e.changes[0];
|
|
402
402
|
if (!change.text && this.widget.viewModel) {
|
|
403
|
+
const attachmentCapabilities = previousSelectedAgent?.capabilities ?? this.widget.attachmentCapabilities;
|
|
403
404
|
const previousParsedValue = parser.parseChatRequest(
|
|
404
405
|
this.widget.viewModel.sessionResource,
|
|
405
406
|
previousInputValue,
|
|
406
407
|
widget.location,
|
|
407
408
|
{
|
|
408
409
|
selectedAgent: previousSelectedAgent,
|
|
409
|
-
mode: this.widget.input.currentModeKind
|
|
410
|
+
mode: this.widget.input.currentModeKind,
|
|
411
|
+
attachmentCapabilities
|
|
410
412
|
}
|
|
411
413
|
);
|
|
412
414
|
const deletableTokens = previousParsedValue.parts.filter(
|
package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorHover.js
CHANGED
|
@@ -62,7 +62,7 @@ let ChatAgentHoverParticipant = class ChatAgentHoverParticipant {
|
|
|
62
62
|
return ( new RenderedHoverParts([renderedHoverPart]));
|
|
63
63
|
}
|
|
64
64
|
getAccessibleContent(hoverPart) {
|
|
65
|
-
return localize(
|
|
65
|
+
return localize(6743, "There is a chat agent hover part here.");
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
68
|
ChatAgentHoverParticipant = ( __decorate([( __param(1, IInstantiationService)), ( __param(2, IChatWidgetService)), ( __param(3, ICommandService))], ChatAgentHoverParticipant));
|
|
@@ -253,7 +253,7 @@ let QuickChat = class QuickChat extends Disposable {
|
|
|
253
253
|
disclaimerElement.classList.toggle("hidden", !showDisclaimer);
|
|
254
254
|
if (showDisclaimer) {
|
|
255
255
|
const renderedMarkdown = disposables.add(this.markdownRendererService.render(( new MarkdownString(( localize(
|
|
256
|
-
|
|
256
|
+
6763,
|
|
257
257
|
"By continuing with {0} Copilot, you agree to {1}'s [Terms]({2}) and [Privacy Statement]({3})",
|
|
258
258
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
259
259
|
product.defaultChatAgent?.provider?.default?.name ?? "",
|
|
@@ -362,7 +362,7 @@ let QuickChat = class QuickChat extends Disposable {
|
|
|
362
362
|
this.widget.inputEditor.setValue("");
|
|
363
363
|
}
|
|
364
364
|
updateModel() {
|
|
365
|
-
this.modelRef ??= this.chatService.
|
|
365
|
+
this.modelRef ??= this.chatService.startNewLocalSession(ChatAgentLocation.Chat, {
|
|
366
366
|
disableBackgroundKeepAlive: true
|
|
367
367
|
});
|
|
368
368
|
const model = this.modelRef?.object;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as dom from "@codingame/monaco-vscode-api/vscode/vs/base/browser/dom";
|
|
2
2
|
import { CancellationToken } from "@codingame/monaco-vscode-api/vscode/vs/base/common/cancellation";
|
|
3
|
+
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
4
|
+
import { ITextResourceConfigurationService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service";
|
|
3
5
|
import { IScopedContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey";
|
|
4
6
|
import { IContextKeyService } from "@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service";
|
|
5
7
|
import { IEditorOptions } from "@codingame/monaco-vscode-api/vscode/vs/platform/editor/common/editor";
|
|
@@ -7,9 +9,12 @@ import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/pl
|
|
|
7
9
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
8
10
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
9
11
|
import { IThemeService } from "@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service";
|
|
10
|
-
import {
|
|
12
|
+
import { AbstractEditorWithViewState } from "@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorWithViewState";
|
|
11
13
|
import { IEditorOpenContext } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor";
|
|
14
|
+
import { EditorInput } from "@codingame/monaco-vscode-api/vscode/vs/workbench/common/editor/editorInput";
|
|
12
15
|
import { IEditorGroup } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService";
|
|
16
|
+
import { IEditorGroupsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service";
|
|
17
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
13
18
|
import { IChatModelInputState, IExportableChatData, ISerializableChatData } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/model/chatModel";
|
|
14
19
|
import { IChatService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service";
|
|
15
20
|
import { IChatSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService.service";
|
|
@@ -30,11 +35,14 @@ export interface IChatEditorOptions extends IEditorOptions {
|
|
|
30
35
|
fallback?: string;
|
|
31
36
|
};
|
|
32
37
|
}
|
|
33
|
-
export
|
|
34
|
-
|
|
38
|
+
export interface IChatEditorViewState {
|
|
39
|
+
scrollTop: number;
|
|
40
|
+
}
|
|
41
|
+
export declare class ChatEditor extends AbstractEditorWithViewState<IChatEditorViewState> {
|
|
35
42
|
private readonly chatSessionsService;
|
|
36
43
|
private readonly contextKeyService;
|
|
37
44
|
private readonly chatService;
|
|
45
|
+
private static readonly VIEW_STATE_KEY;
|
|
38
46
|
private _widget;
|
|
39
47
|
get widget(): ChatWidget;
|
|
40
48
|
private _scopedContextKeyService;
|
|
@@ -42,7 +50,7 @@ export declare class ChatEditor extends EditorPane {
|
|
|
42
50
|
private dimension;
|
|
43
51
|
private _loadingContainer;
|
|
44
52
|
private _editorContainer;
|
|
45
|
-
constructor(group: IEditorGroup, telemetryService: ITelemetryService, themeService: IThemeService, instantiationService: IInstantiationService, storageService: IStorageService, chatSessionsService: IChatSessionsService, contextKeyService: IContextKeyService, chatService: IChatService);
|
|
53
|
+
constructor(group: IEditorGroup, telemetryService: ITelemetryService, themeService: IThemeService, instantiationService: IInstantiationService, storageService: IStorageService, chatSessionsService: IChatSessionsService, contextKeyService: IContextKeyService, chatService: IChatService, textResourceConfigurationService: ITextResourceConfigurationService, editorService: IEditorService, editorGroupService: IEditorGroupsService);
|
|
46
54
|
private clear;
|
|
47
55
|
protected createEditor(parent: HTMLElement): void;
|
|
48
56
|
protected setEditorVisible(visible: boolean): void;
|
|
@@ -52,5 +60,8 @@ export declare class ChatEditor extends EditorPane {
|
|
|
52
60
|
private hideLoadingInChatWidget;
|
|
53
61
|
setInput(input: ChatEditorInput, options: IChatEditorOptions | undefined, context: IEditorOpenContext, token: CancellationToken): Promise<void>;
|
|
54
62
|
private updateModel;
|
|
63
|
+
protected computeEditorViewState(_resource: URI): IChatEditorViewState | undefined;
|
|
64
|
+
protected tracksEditorViewState(input: EditorInput): boolean;
|
|
65
|
+
protected toEditorViewStateResource(input: EditorInput): URI | undefined;
|
|
55
66
|
layout(dimension: dom.Dimension, position?: dom.IDomPosition | undefined): void;
|
|
56
67
|
}
|
|
@@ -6,6 +6,7 @@ import { raceCancellationError } from '@codingame/monaco-vscode-api/vscode/vs/ba
|
|
|
6
6
|
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
7
7
|
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
8
8
|
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
9
|
+
import { ITextResourceConfigurationService } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/textResourceConfiguration.service';
|
|
9
10
|
import { IContextKeyService } from '@codingame/monaco-vscode-api/vscode/vs/platform/contextkey/common/contextkey.service';
|
|
10
11
|
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
11
12
|
import { ServiceCollection } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/serviceCollection';
|
|
@@ -23,8 +24,10 @@ import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/misc
|
|
|
23
24
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/quickpickColors';
|
|
24
25
|
import '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/colors/searchColors';
|
|
25
26
|
import { IThemeService } from '@codingame/monaco-vscode-api/vscode/vs/platform/theme/common/themeService.service';
|
|
26
|
-
import {
|
|
27
|
+
import { AbstractEditorWithViewState } from '@codingame/monaco-vscode-api/vscode/vs/workbench/browser/parts/editor/editorWithViewState';
|
|
27
28
|
import { EDITOR_DRAG_AND_DROP_BACKGROUND } from '@codingame/monaco-vscode-api/vscode/vs/workbench/common/theme';
|
|
29
|
+
import { IEditorGroupsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorGroupsService.service';
|
|
30
|
+
import { IEditorService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service';
|
|
28
31
|
import { ChatContextKeys } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/actions/chatContextKeys';
|
|
29
32
|
import { IChatService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatService/chatService.service';
|
|
30
33
|
import { localChatSessionType } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatSessionsService';
|
|
@@ -34,7 +37,14 @@ import { clearChatEditor } from '../../actions/chatClear.js';
|
|
|
34
37
|
import { ChatEditorInput } from '@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/widgetHosts/editor/chatEditorInput';
|
|
35
38
|
import { ChatWidget } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatWidget';
|
|
36
39
|
|
|
37
|
-
|
|
40
|
+
var ChatEditor_1;
|
|
41
|
+
let ChatEditor = class ChatEditor extends AbstractEditorWithViewState {
|
|
42
|
+
static {
|
|
43
|
+
ChatEditor_1 = this;
|
|
44
|
+
}
|
|
45
|
+
static {
|
|
46
|
+
this.VIEW_STATE_KEY = "chatEditorViewState";
|
|
47
|
+
}
|
|
38
48
|
get widget() {
|
|
39
49
|
return this._widget;
|
|
40
50
|
}
|
|
@@ -49,16 +59,23 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
49
59
|
storageService,
|
|
50
60
|
chatSessionsService,
|
|
51
61
|
contextKeyService,
|
|
52
|
-
chatService
|
|
62
|
+
chatService,
|
|
63
|
+
textResourceConfigurationService,
|
|
64
|
+
editorService,
|
|
65
|
+
editorGroupService
|
|
53
66
|
) {
|
|
54
67
|
super(
|
|
55
68
|
ChatEditorInput.EditorID,
|
|
56
69
|
group,
|
|
70
|
+
ChatEditor_1.VIEW_STATE_KEY,
|
|
57
71
|
telemetryService,
|
|
72
|
+
instantiationService,
|
|
73
|
+
storageService,
|
|
74
|
+
textResourceConfigurationService,
|
|
58
75
|
themeService,
|
|
59
|
-
|
|
76
|
+
editorService,
|
|
77
|
+
editorGroupService
|
|
60
78
|
);
|
|
61
|
-
this.instantiationService = instantiationService;
|
|
62
79
|
this.chatSessionsService = chatSessionsService;
|
|
63
80
|
this.contextKeyService = contextKeyService;
|
|
64
81
|
this.chatService = chatService;
|
|
@@ -117,7 +134,6 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
117
134
|
this.widget?.focusInput();
|
|
118
135
|
}
|
|
119
136
|
clearInput() {
|
|
120
|
-
this.saveState();
|
|
121
137
|
this.widget.setModel(undefined);
|
|
122
138
|
super.clearInput();
|
|
123
139
|
}
|
|
@@ -158,7 +174,7 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
158
174
|
let isContributedChatSession = false;
|
|
159
175
|
const chatSessionType = input.getSessionType();
|
|
160
176
|
if (chatSessionType !== localChatSessionType) {
|
|
161
|
-
const loadingMessage = ( localize(
|
|
177
|
+
const loadingMessage = ( localize(6764, "Loading..."));
|
|
162
178
|
this.showLoadingInChatWidget(loadingMessage);
|
|
163
179
|
}
|
|
164
180
|
await super.setInput(input, options, context, token);
|
|
@@ -199,6 +215,10 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
199
215
|
editorModel.model.inputModel.setState(options.modelInputState);
|
|
200
216
|
}
|
|
201
217
|
this.updateModel(editorModel.model);
|
|
218
|
+
const viewState = this.loadEditorViewState(input, context);
|
|
219
|
+
if (viewState) {
|
|
220
|
+
this._widget.scrollTop = viewState.scrollTop;
|
|
221
|
+
}
|
|
202
222
|
if (isContributedChatSession && options?.title?.preferred && input.sessionResource) {
|
|
203
223
|
this.chatService.setChatSessionTitle(input.sessionResource, options.title.preferred);
|
|
204
224
|
}
|
|
@@ -210,6 +230,20 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
210
230
|
updateModel(model) {
|
|
211
231
|
this.widget.setModel(model);
|
|
212
232
|
}
|
|
233
|
+
computeEditorViewState(_resource) {
|
|
234
|
+
if (!this._widget) {
|
|
235
|
+
return undefined;
|
|
236
|
+
}
|
|
237
|
+
return {
|
|
238
|
+
scrollTop: this._widget.scrollTop
|
|
239
|
+
};
|
|
240
|
+
}
|
|
241
|
+
tracksEditorViewState(input) {
|
|
242
|
+
return input instanceof ChatEditorInput;
|
|
243
|
+
}
|
|
244
|
+
toEditorViewStateResource(input) {
|
|
245
|
+
return input.sessionResource;
|
|
246
|
+
}
|
|
213
247
|
layout(dimension, position) {
|
|
214
248
|
this.dimension = dimension;
|
|
215
249
|
if (this.widget) {
|
|
@@ -217,6 +251,6 @@ let ChatEditor = class ChatEditor extends EditorPane {
|
|
|
217
251
|
}
|
|
218
252
|
}
|
|
219
253
|
};
|
|
220
|
-
ChatEditor = ( __decorate([( __param(1, ITelemetryService)), ( __param(2, IThemeService)), ( __param(3, IInstantiationService)), ( __param(4, IStorageService)), ( __param(5, IChatSessionsService)), ( __param(6, IContextKeyService)), ( __param(7, IChatService))], ChatEditor));
|
|
254
|
+
ChatEditor = ChatEditor_1 = ( __decorate([( __param(1, ITelemetryService)), ( __param(2, IThemeService)), ( __param(3, IInstantiationService)), ( __param(4, IStorageService)), ( __param(5, IChatSessionsService)), ( __param(6, IContextKeyService)), ( __param(7, IChatService)), ( __param(8, ITextResourceConfigurationService)), ( __param(9, IEditorService)), ( __param(10, IEditorGroupsService))], ChatEditor));
|
|
221
255
|
|
|
222
256
|
export { ChatEditor };
|
|
@@ -7,6 +7,7 @@ import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/h
|
|
|
7
7
|
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
8
8
|
import { IKeybindingService } from "@codingame/monaco-vscode-api/vscode/vs/platform/keybinding/common/keybinding.service";
|
|
9
9
|
import { ILogService } from "@codingame/monaco-vscode-api/vscode/vs/platform/log/common/log.service";
|
|
10
|
+
import { INotificationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/notification/common/notification.service";
|
|
10
11
|
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
11
12
|
import { IStorageService } from "@codingame/monaco-vscode-api/vscode/vs/platform/storage/common/storage.service";
|
|
12
13
|
import { ITelemetryService } from "@codingame/monaco-vscode-api/vscode/vs/platform/telemetry/common/telemetry.service";
|
|
@@ -29,11 +30,14 @@ import { IActivityService } from "@codingame/monaco-vscode-api/vscode/vs/workben
|
|
|
29
30
|
import { IAgentSessionsService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsService.service";
|
|
30
31
|
import { IAgentSession } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsModel";
|
|
31
32
|
import { IChatEntitlementService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/chat/common/chatEntitlementService.service";
|
|
33
|
+
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
34
|
+
import { IHostService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/host/browser/host.service";
|
|
32
35
|
export declare class ChatViewPane extends ViewPane implements IViewWelcomeDelegate {
|
|
33
36
|
private readonly storageService;
|
|
34
37
|
private readonly chatService;
|
|
35
38
|
private readonly chatAgentService;
|
|
36
39
|
private readonly logService;
|
|
40
|
+
private readonly notificationService;
|
|
37
41
|
private readonly layoutService;
|
|
38
42
|
private readonly chatSessionsService;
|
|
39
43
|
private readonly telemetryService;
|
|
@@ -42,6 +46,8 @@ export declare class ChatViewPane extends ViewPane implements IViewWelcomeDelega
|
|
|
42
46
|
private readonly chatEntitlementService;
|
|
43
47
|
private readonly commandService;
|
|
44
48
|
private readonly activityService;
|
|
49
|
+
private readonly workbenchEnvironmentService;
|
|
50
|
+
private readonly hostService;
|
|
45
51
|
private readonly memento;
|
|
46
52
|
private readonly viewState;
|
|
47
53
|
private viewPaneContainer;
|
|
@@ -52,7 +58,7 @@ export declare class ChatViewPane extends ViewPane implements IViewWelcomeDelega
|
|
|
52
58
|
private restoringSession;
|
|
53
59
|
private readonly modelRef;
|
|
54
60
|
private readonly activityBadge;
|
|
55
|
-
constructor(options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, hoverService: IHoverService, storageService: IStorageService, chatService: IChatService, chatAgentService: IChatAgentService, logService: ILogService, layoutService: IWorkbenchLayoutService, chatSessionsService: IChatSessionsService, telemetryService: ITelemetryService, lifecycleService: ILifecycleService, progressService: IProgressService, agentSessionsService: IAgentSessionsService, chatEntitlementService: IChatEntitlementService, commandService: ICommandService, activityService: IActivityService);
|
|
61
|
+
constructor(options: IViewPaneOptions, keybindingService: IKeybindingService, contextMenuService: IContextMenuService, configurationService: IConfigurationService, contextKeyService: IContextKeyService, viewDescriptorService: IViewDescriptorService, instantiationService: IInstantiationService, openerService: IOpenerService, themeService: IThemeService, hoverService: IHoverService, storageService: IStorageService, chatService: IChatService, chatAgentService: IChatAgentService, logService: ILogService, notificationService: INotificationService, layoutService: IWorkbenchLayoutService, chatSessionsService: IChatSessionsService, telemetryService: ITelemetryService, lifecycleService: ILifecycleService, progressService: IProgressService, agentSessionsService: IAgentSessionsService, chatEntitlementService: IChatEntitlementService, commandService: ICommandService, activityService: IActivityService, workbenchEnvironmentService: IWorkbenchEnvironmentService, hostService: IHostService);
|
|
56
62
|
private updateContextKeys;
|
|
57
63
|
private getViewPositionAndLocation;
|
|
58
64
|
private getSessionHoverPosition;
|
|
@@ -97,6 +103,7 @@ export declare class ChatViewPane extends ViewPane implements IViewWelcomeDelega
|
|
|
97
103
|
private registerControlsListeners;
|
|
98
104
|
private setupContextMenu;
|
|
99
105
|
private applyModel;
|
|
106
|
+
private _applyModel;
|
|
100
107
|
private showModel;
|
|
101
108
|
private updateWidgetLockState;
|
|
102
109
|
private clear;
|