@codingame/monaco-vscode-chat-service-override 26.2.2 → 28.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 +35 -2
- 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 +89 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/aiCustomizationWorkspaceService.js +251 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.d.ts +123 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/newSession.js +278 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.d.ts +76 -0
- package/vscode/src/vs/sessions/contrib/chat/browser/sessionsConfigurationService.js +299 -0
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.d.ts +67 -0
- package/vscode/src/vs/sessions/contrib/fileTreeView/browser/githubFileSystemProvider.js +263 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.d.ts +85 -0
- package/vscode/src/vs/sessions/contrib/sessions/browser/sessionsManagementService.js +397 -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 +13 -5
- 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 +85 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatPluginActions.d.ts +8 -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 +18 -32
- 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 +17 -17
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/chatToolPicker.js +49 -13
- package/vscode/src/vs/workbench/contrib/chat/browser/actions/codeBlockOperations.js +18 -18
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.d.ts +58 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditor.js +537 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.d.ts +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginEditorInput.js +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.d.ts +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/agentPluginItems.js +9 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginEditor/media/agentPluginEditor.css +32 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.d.ts +48 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginRepositoryService.js +282 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.d.ts +55 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/agentPluginsView.js +634 -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 +74 -67
- 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 +52 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationIcons.js +20 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.d.ts +179 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationListWidget.js +987 -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 +246 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.d.ts +56 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagement.js +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.d.ts +130 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/aiCustomizationManagementEditor.js +878 -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 +83 -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 +692 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/media/aiCustomizationManagement.css +936 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.d.ts +62 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/aiCustomization/pluginListWidget.js +702 -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/simpleBrowserEditorOverlay.js +36 -26
- package/vscode/src/vs/workbench/contrib/chat/browser/chat.contribution.js +622 -391
- 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 +314 -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 +46 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugFilters.js +170 -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 +61 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatDebugLogsView.js +467 -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 +47 -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 +788 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.d.ts +2 -5
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCheckpointTimelineImpl.js +32 -36
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingCodeEditorIntegration.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingExplanationModelManager.js +6 -24
- 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/media/chatEditorController.css +2 -2
- 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 +24 -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 +17 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatSlashCommands.js +394 -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/chatTipCatalog.d.ts +66 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipCatalog.js +245 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.d.ts +78 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipEligibilityTracker.js +234 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.d.ts +88 -14
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipService.js +624 -68
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.d.ts +41 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatTipStorageKeys.js +22 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.d.ts +5 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/chatWindowNotifier.js +88 -24
- 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 +26 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginInstallService.js +175 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.d.ts +99 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/pluginSources.js +489 -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 +19 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookActions.js +364 -279
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.d.ts +18 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/hookUtils.js +69 -6
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptCodingAgentActionOverlay.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/browser/promptSyntax/promptToolsCodeLensProvider.js +9 -9
- 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.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsConfirmationService.js +67 -38
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.d.ts +20 -1
- package/vscode/src/vs/workbench/contrib/chat/browser/tools/languageModelToolsService.js +187 -74
- 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.d.ts +2 -0
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/chatQueuePickerActionItem.js +29 -14
- 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 +126 -30
- package/vscode/src/vs/workbench/contrib/chat/browser/widget/input/editor/chatInputEditorContrib.js +9 -5
- 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 +46 -9
- 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 +65 -37
- 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 +16 -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 +40 -0
- package/vscode/src/vs/workbench/contrib/chat/common/aiCustomizationWorkspaceService.js +28 -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 +44 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatDebugServiceImpl.js +208 -0
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.d.ts +19 -9
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceImpl.js +261 -105
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.d.ts +21 -2
- package/vscode/src/vs/workbench/contrib/chat/common/chatService/chatServiceTelemetry.js +7 -2
- 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 +13 -4
- package/vscode/src/vs/workbench/contrib/chat/common/model/chatSessionStore.js +144 -11
- package/vscode/src/vs/workbench/contrib/chat/common/model/objectMutationLog.js +36 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.d.ts +5 -3
- package/vscode/src/vs/workbench/contrib/chat/common/participants/chatSlashCommands.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginService.d.ts +57 -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 +119 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/agentPluginServiceImpl.js +748 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.d.ts +146 -0
- package/vscode/src/vs/workbench/contrib/chat/common/plugins/pluginMarketplaceService.js +672 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/chatPromptFilesContribution.js +35 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.d.ts +3 -16
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookClaudeCompat.js +7 -50
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.d.ts +2 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCompatibility.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.d.ts +1 -6
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/hookCopilotCliCompat.js +4 -8
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/PromptHeaderDefinitionProvider.js +2 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptCodeActions.js +10 -9
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptDocumentSemanticTokensProvider.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.d.ts +26 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHeaderAutocompletion.js +293 -94
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.d.ts +10 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptHovers.js +86 -30
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.d.ts +121 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/languageProviders/promptValidator.js +1422 -0
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/promptFileContributions.js +1 -1
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.d.ts +48 -14
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/service/promptsServiceImpl.js +404 -132
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.d.ts +17 -2
- package/vscode/src/vs/workbench/contrib/chat/common/promptSyntax/utils/promptFilesLocator.js +40 -28
- 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/chat/common/widget/chatResponseResourceFileSystemProvider.d.ts +14 -2
- package/vscode/src/vs/workbench/contrib/chat/common/widget/chatResponseResourceFileSystemProvider.js +54 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChat.contribution.js +12 -5
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.d.ts +27 -4
- package/vscode/src/vs/workbench/contrib/inlineChat/browser/inlineChatActions.js +265 -25
- 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 +17 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/monitoring/outputMonitor.js +302 -69
- 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 +7 -0
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/browser/tools/runInTerminalTool.js +63 -21
- 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 +7 -1
- package/vscode/src/vs/workbench/contrib/terminalContrib/chatAgentTools/common/terminalSandboxService.js +46 -17
- 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/browser/attachments/chatVariables.d.ts +0 -12
- package/vscode/src/vs/workbench/contrib/chat/browser/attachments/chatVariables.js +0 -51
- 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
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { ILanguageService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language.service";
|
|
3
|
+
import { IModelService } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/services/model.service";
|
|
4
|
+
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
5
|
+
import { ILabelService } from "@codingame/monaco-vscode-api/vscode/vs/platform/label/common/label.service";
|
|
6
|
+
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
7
|
+
import { IChatDebugEventFileListContent } from "../../common/chatDebugService.js";
|
|
8
|
+
/**
|
|
9
|
+
* Render a file list resolved content as a rich HTML element.
|
|
10
|
+
*/
|
|
11
|
+
export declare function renderCustomizationDiscoveryContent(content: IChatDebugEventFileListContent, openerService: IOpenerService, modelService: IModelService, languageService: ILanguageService, hoverService: IHoverService, labelService: ILabelService): {
|
|
12
|
+
element: HTMLElement;
|
|
13
|
+
disposables: DisposableStore;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Convert a file list content to plain text for clipboard / editor output.
|
|
17
|
+
*/
|
|
18
|
+
export declare function fileListToPlainText(content: IChatDebugEventFileListContent): string;
|
package/vscode/src/vs/workbench/contrib/chat/browser/chatDebug/chatCustomizationDiscoveryRenderer.js
ADDED
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
|
|
2
|
+
import { registerCss } from '@codingame/monaco-vscode-api/css';
|
|
3
|
+
import * as chatInlineAnchorWidget from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/media/chatInlineAnchorWidget.css';
|
|
4
|
+
import { $ as $$1, append, addDisposableListener, EventType, EventHelper } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
5
|
+
import { Button } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/button/button';
|
|
6
|
+
import { getDefaultHoverDelegate } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/ui/hover/hoverDelegateFactory';
|
|
7
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
8
|
+
import { DisposableStore } from '@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle';
|
|
9
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
10
|
+
import { URI } from '@codingame/monaco-vscode-api/vscode/vs/base/common/uri';
|
|
11
|
+
import { dirname } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
12
|
+
import { getIconClasses } from '@codingame/monaco-vscode-api/vscode/vs/editor/common/services/getIconClasses';
|
|
13
|
+
import { localize } from '@codingame/monaco-vscode-api/vscode/vs/nls';
|
|
14
|
+
import { FileKind } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files';
|
|
15
|
+
import { InlineAnchorWidget } from '@codingame/monaco-vscode-katex-common/vscode/vs/workbench/contrib/chat/browser/widget/chatContentParts/chatInlineAnchorWidget';
|
|
16
|
+
import { setupCollapsibleToggle } from './chatDebugCollapsible.js';
|
|
17
|
+
|
|
18
|
+
registerCss(chatInlineAnchorWidget);
|
|
19
|
+
const $ = $$1;
|
|
20
|
+
function getSettingsKeyForDiscoveryType(discoveryType) {
|
|
21
|
+
switch (discoveryType) {
|
|
22
|
+
case "prompt":
|
|
23
|
+
return "chat.promptFilesLocations";
|
|
24
|
+
case "instructions":
|
|
25
|
+
return "chat.instructionsFilesLocations";
|
|
26
|
+
case "agent":
|
|
27
|
+
return "chat.agentFilesLocations";
|
|
28
|
+
case "skill":
|
|
29
|
+
return "chat.agentSkillsLocations";
|
|
30
|
+
case "hook":
|
|
31
|
+
return "chat.hookFilesLocations";
|
|
32
|
+
default:
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function getFileLocationLabel(file, labelService, discoveryType) {
|
|
37
|
+
if (file.extensionId) {
|
|
38
|
+
return file.extensionId;
|
|
39
|
+
}
|
|
40
|
+
const parentDir = discoveryType === "skill" ? dirname(dirname(file.uri)) : dirname(file.uri);
|
|
41
|
+
return labelService.getUriLabel(parentDir, {
|
|
42
|
+
relative: true
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function createInlineFileLink(
|
|
46
|
+
uri,
|
|
47
|
+
displayText,
|
|
48
|
+
fileKind,
|
|
49
|
+
openerService,
|
|
50
|
+
modelService,
|
|
51
|
+
languageService,
|
|
52
|
+
hoverService,
|
|
53
|
+
labelService,
|
|
54
|
+
disposables,
|
|
55
|
+
hoverSuffix
|
|
56
|
+
) {
|
|
57
|
+
const link = $(`a.${InlineAnchorWidget.className}.show-file-icons`);
|
|
58
|
+
link.tabIndex = -1;
|
|
59
|
+
const iconEl = append(link, $("span.icon"));
|
|
60
|
+
const iconClasses = getIconClasses(modelService, languageService, uri, fileKind);
|
|
61
|
+
iconEl.classList.add(...iconClasses);
|
|
62
|
+
append(link, $("span.icon-label", undefined, displayText));
|
|
63
|
+
const relativeLabel = labelService.getUriLabel(uri, {
|
|
64
|
+
relative: true
|
|
65
|
+
});
|
|
66
|
+
const hoverText = relativeLabel;
|
|
67
|
+
disposables.add(
|
|
68
|
+
hoverService.setupManagedHover(getDefaultHoverDelegate("element"), link, hoverText)
|
|
69
|
+
);
|
|
70
|
+
disposables.add(addDisposableListener(link, EventType.CLICK, e => {
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
e.stopPropagation();
|
|
73
|
+
openerService.open(uri);
|
|
74
|
+
}));
|
|
75
|
+
return link;
|
|
76
|
+
}
|
|
77
|
+
function setupFileListNavigation(listEl, rows, disposables) {
|
|
78
|
+
if (rows.length === 0) {
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
for (let i = 0; i < rows.length; i++) {
|
|
82
|
+
rows[i].element.tabIndex = i === 0 ? 0 : -1;
|
|
83
|
+
rows[i].element.setAttribute("role", "listitem");
|
|
84
|
+
}
|
|
85
|
+
disposables.add(addDisposableListener(listEl, EventType.KEY_DOWN, e => {
|
|
86
|
+
const target = e.target;
|
|
87
|
+
const index = rows.findIndex(r => r.element === target);
|
|
88
|
+
if (index === -1) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
let nextIndex;
|
|
92
|
+
switch (e.key) {
|
|
93
|
+
case "ArrowDown":
|
|
94
|
+
nextIndex = Math.min(index + 1, rows.length - 1);
|
|
95
|
+
break;
|
|
96
|
+
case "ArrowUp":
|
|
97
|
+
nextIndex = Math.max(index - 1, 0);
|
|
98
|
+
break;
|
|
99
|
+
case "Home":
|
|
100
|
+
nextIndex = 0;
|
|
101
|
+
break;
|
|
102
|
+
case "End":
|
|
103
|
+
nextIndex = rows.length - 1;
|
|
104
|
+
break;
|
|
105
|
+
case "Enter":
|
|
106
|
+
{
|
|
107
|
+
rows[index].activate();
|
|
108
|
+
e.preventDefault();
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
if (nextIndex !== undefined && nextIndex !== index) {
|
|
113
|
+
e.preventDefault();
|
|
114
|
+
rows[index].element.tabIndex = -1;
|
|
115
|
+
rows[nextIndex].element.tabIndex = 0;
|
|
116
|
+
rows[nextIndex].element.focus();
|
|
117
|
+
}
|
|
118
|
+
}));
|
|
119
|
+
}
|
|
120
|
+
function renderCustomizationDiscoveryContent(
|
|
121
|
+
content,
|
|
122
|
+
openerService,
|
|
123
|
+
modelService,
|
|
124
|
+
languageService,
|
|
125
|
+
hoverService,
|
|
126
|
+
labelService
|
|
127
|
+
) {
|
|
128
|
+
const disposables = ( new DisposableStore());
|
|
129
|
+
const container = $("div.chat-debug-file-list");
|
|
130
|
+
container.tabIndex = 0;
|
|
131
|
+
const capitalizedType = content.discoveryType.charAt(0).toUpperCase() + content.discoveryType.slice(1);
|
|
132
|
+
append(container, $("div.chat-debug-file-list-title", undefined, ( localize(5620, "{0} Discovery Results", capitalizedType))));
|
|
133
|
+
append(container, $("div.chat-debug-file-list-summary", undefined, ( localize(5621, "Total files: {0}", content.files.length))));
|
|
134
|
+
const loaded = content.files.filter(f => f.status === "loaded");
|
|
135
|
+
if (loaded.length > 0) {
|
|
136
|
+
const section = append(container, $("div.chat-debug-file-list-section"));
|
|
137
|
+
append(
|
|
138
|
+
section,
|
|
139
|
+
$("div.chat-debug-file-list-section-title", undefined, ( localize(5622, "Loaded ({0})", loaded.length)))
|
|
140
|
+
);
|
|
141
|
+
const groups = ( new Map());
|
|
142
|
+
for (const file of loaded) {
|
|
143
|
+
const key = getFileLocationLabel(file, labelService, content.discoveryType);
|
|
144
|
+
let group = groups.get(key);
|
|
145
|
+
if (!group) {
|
|
146
|
+
group = [];
|
|
147
|
+
groups.set(key, group);
|
|
148
|
+
}
|
|
149
|
+
group.push(file);
|
|
150
|
+
}
|
|
151
|
+
const listEl = append(section, $("div.chat-debug-file-list-rows"));
|
|
152
|
+
listEl.setAttribute("role", "list");
|
|
153
|
+
listEl.setAttribute("aria-label", ( localize(5623, "Loaded files")));
|
|
154
|
+
const rows = [];
|
|
155
|
+
for (const [locationLabel, files] of groups) {
|
|
156
|
+
const groupHeader = append(listEl, $("div.chat-debug-file-list-group-header"));
|
|
157
|
+
const firstFile = files[0];
|
|
158
|
+
if (firstFile.extensionId) {
|
|
159
|
+
const link = append(
|
|
160
|
+
groupHeader,
|
|
161
|
+
$("a.chat-debug-file-list-group-label.chat-debug-file-list-badge-link")
|
|
162
|
+
);
|
|
163
|
+
link.textContent = locationLabel;
|
|
164
|
+
link.tabIndex = -1;
|
|
165
|
+
disposables.add(
|
|
166
|
+
hoverService.setupManagedHover(getDefaultHoverDelegate("element"), link, ( localize(5624, "Open {0} in Extensions", firstFile.extensionId)))
|
|
167
|
+
);
|
|
168
|
+
disposables.add(addDisposableListener(link, EventType.CLICK, e => {
|
|
169
|
+
e.preventDefault();
|
|
170
|
+
e.stopPropagation();
|
|
171
|
+
openerService.open(( URI.parse(
|
|
172
|
+
`command:extension.open?${encodeURIComponent(JSON.stringify([firstFile.extensionId]))}`
|
|
173
|
+
)), {
|
|
174
|
+
allowCommands: true
|
|
175
|
+
});
|
|
176
|
+
}));
|
|
177
|
+
} else {
|
|
178
|
+
append(
|
|
179
|
+
groupHeader,
|
|
180
|
+
$("span.chat-debug-file-list-group-label", undefined, locationLabel)
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
for (const file of files) {
|
|
184
|
+
const row = append(listEl, $("div.chat-debug-file-list-row"));
|
|
185
|
+
append(
|
|
186
|
+
row,
|
|
187
|
+
$(`span.chat-debug-file-list-icon${ThemeIcon.asCSSSelector(Codicon.check)}`)
|
|
188
|
+
);
|
|
189
|
+
row.appendChild(createInlineFileLink(
|
|
190
|
+
file.uri,
|
|
191
|
+
file.name ?? file.uri.path,
|
|
192
|
+
FileKind.FILE,
|
|
193
|
+
openerService,
|
|
194
|
+
modelService,
|
|
195
|
+
languageService,
|
|
196
|
+
hoverService,
|
|
197
|
+
labelService,
|
|
198
|
+
disposables
|
|
199
|
+
));
|
|
200
|
+
const relativeLabel = labelService.getUriLabel(file.uri, {
|
|
201
|
+
relative: true
|
|
202
|
+
});
|
|
203
|
+
row.setAttribute("aria-label", relativeLabel);
|
|
204
|
+
const uri = file.uri;
|
|
205
|
+
rows.push({
|
|
206
|
+
element: row,
|
|
207
|
+
activate: () => openerService.open(uri)
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
setupFileListNavigation(listEl, rows, disposables);
|
|
212
|
+
}
|
|
213
|
+
const skipped = content.files.filter(f => f.status === "skipped");
|
|
214
|
+
if (skipped.length > 0) {
|
|
215
|
+
const section = append(container, $("div.chat-debug-file-list-section"));
|
|
216
|
+
append(
|
|
217
|
+
section,
|
|
218
|
+
$("div.chat-debug-file-list-section-title", undefined, ( localize(5625, "Skipped ({0})", skipped.length)))
|
|
219
|
+
);
|
|
220
|
+
const groups = ( new Map());
|
|
221
|
+
for (const file of skipped) {
|
|
222
|
+
const key = file.skipReason ?? ( localize(5626, "unknown"));
|
|
223
|
+
let group = groups.get(key);
|
|
224
|
+
if (!group) {
|
|
225
|
+
group = [];
|
|
226
|
+
groups.set(key, group);
|
|
227
|
+
}
|
|
228
|
+
group.push(file);
|
|
229
|
+
}
|
|
230
|
+
const listEl = append(section, $("div.chat-debug-file-list-rows"));
|
|
231
|
+
listEl.setAttribute("role", "list");
|
|
232
|
+
listEl.setAttribute("aria-label", ( localize(5627, "Skipped files")));
|
|
233
|
+
const rows = [];
|
|
234
|
+
for (const [reasonLabel, files] of groups) {
|
|
235
|
+
const groupHeader = append(listEl, $("div.chat-debug-file-list-group-header"));
|
|
236
|
+
append(
|
|
237
|
+
groupHeader,
|
|
238
|
+
$("span.chat-debug-file-list-group-label", undefined, reasonLabel)
|
|
239
|
+
);
|
|
240
|
+
for (const file of files) {
|
|
241
|
+
const row = append(listEl, $("div.chat-debug-file-list-row"));
|
|
242
|
+
append(
|
|
243
|
+
row,
|
|
244
|
+
$(`span.chat-debug-file-list-icon${ThemeIcon.asCSSSelector(Codicon.close)}`)
|
|
245
|
+
);
|
|
246
|
+
let detail = "";
|
|
247
|
+
if (file.errorMessage) {
|
|
248
|
+
detail += file.errorMessage;
|
|
249
|
+
}
|
|
250
|
+
if (file.duplicateOf) {
|
|
251
|
+
if (detail) {
|
|
252
|
+
detail += ", ";
|
|
253
|
+
}
|
|
254
|
+
detail += ( localize(5628, "duplicate of {0}", file.duplicateOf.path));
|
|
255
|
+
}
|
|
256
|
+
row.appendChild(createInlineFileLink(
|
|
257
|
+
file.uri,
|
|
258
|
+
file.name ?? file.uri.path,
|
|
259
|
+
FileKind.FILE,
|
|
260
|
+
openerService,
|
|
261
|
+
modelService,
|
|
262
|
+
languageService,
|
|
263
|
+
hoverService,
|
|
264
|
+
labelService,
|
|
265
|
+
disposables
|
|
266
|
+
));
|
|
267
|
+
if (detail) {
|
|
268
|
+
append(row, $("span.chat-debug-file-list-detail", undefined, ` (${detail})`));
|
|
269
|
+
}
|
|
270
|
+
const relativeLabel = labelService.getUriLabel(file.uri, {
|
|
271
|
+
relative: true
|
|
272
|
+
});
|
|
273
|
+
row.setAttribute("aria-label", relativeLabel);
|
|
274
|
+
const uri = file.uri;
|
|
275
|
+
rows.push({
|
|
276
|
+
element: row,
|
|
277
|
+
activate: () => openerService.open(uri)
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
setupFileListNavigation(listEl, rows, disposables);
|
|
282
|
+
}
|
|
283
|
+
if (content.sourceFolders && content.sourceFolders.length > 0) {
|
|
284
|
+
const sectionEl = append(container, $("div.chat-debug-message-section"));
|
|
285
|
+
const header = append(sectionEl, $("div.chat-debug-message-section-header"));
|
|
286
|
+
const chevron = append(header, $("span.chat-debug-message-section-chevron"));
|
|
287
|
+
append(
|
|
288
|
+
header,
|
|
289
|
+
$("span.chat-debug-message-section-title", undefined, ( localize(5629, "Sources ({0})", content.sourceFolders.length)))
|
|
290
|
+
);
|
|
291
|
+
const settingsKey = getSettingsKeyForDiscoveryType(content.discoveryType);
|
|
292
|
+
if (settingsKey) {
|
|
293
|
+
const gearBtn = disposables.add(( new Button(header, {
|
|
294
|
+
title: ( localize(5630, "Configure locations")),
|
|
295
|
+
ariaLabel: ( localize(5631, "Configure locations")),
|
|
296
|
+
hoverDelegate: getDefaultHoverDelegate("mouse")
|
|
297
|
+
})));
|
|
298
|
+
gearBtn.icon = Codicon.settingsGear;
|
|
299
|
+
gearBtn.element.classList.add("chat-debug-settings-gear");
|
|
300
|
+
disposables.add(
|
|
301
|
+
addDisposableListener(gearBtn.element, EventType.MOUSE_ENTER, () => {
|
|
302
|
+
header.classList.add("chat-debug-settings-gear-header-passthrough");
|
|
303
|
+
})
|
|
304
|
+
);
|
|
305
|
+
disposables.add(
|
|
306
|
+
addDisposableListener(gearBtn.element, EventType.MOUSE_LEAVE, () => {
|
|
307
|
+
header.classList.remove("chat-debug-settings-gear-header-passthrough");
|
|
308
|
+
})
|
|
309
|
+
);
|
|
310
|
+
disposables.add(gearBtn.onDidClick(e => {
|
|
311
|
+
if (e) {
|
|
312
|
+
EventHelper.stop(e, true);
|
|
313
|
+
}
|
|
314
|
+
openerService.open(( URI.parse(
|
|
315
|
+
`command:workbench.action.openSettings?${encodeURIComponent(JSON.stringify([`@id:${settingsKey}`]))}`
|
|
316
|
+
)), {
|
|
317
|
+
allowCommands: true
|
|
318
|
+
});
|
|
319
|
+
}));
|
|
320
|
+
}
|
|
321
|
+
const contentEl = append(sectionEl, $("div.chat-debug-source-folder-content"));
|
|
322
|
+
contentEl.tabIndex = 0;
|
|
323
|
+
contentEl.setAttribute("role", "region");
|
|
324
|
+
contentEl.setAttribute("aria-label", ( localize(5632, "Source folders")));
|
|
325
|
+
const capitalizedType = content.discoveryType.charAt(0).toUpperCase() + content.discoveryType.slice(1);
|
|
326
|
+
const sourcesCaption = capitalizedType.endsWith("s") ? capitalizedType : capitalizedType + "s";
|
|
327
|
+
append(
|
|
328
|
+
contentEl,
|
|
329
|
+
$("div.chat-debug-source-folder-note", undefined, ( localize(
|
|
330
|
+
5633,
|
|
331
|
+
"{0} were discovered by checking the following sources in order:",
|
|
332
|
+
sourcesCaption
|
|
333
|
+
)))
|
|
334
|
+
);
|
|
335
|
+
for (let i = 0; i < content.sourceFolders.length; i++) {
|
|
336
|
+
const folder = content.sourceFolders[i];
|
|
337
|
+
const row = append(contentEl, $("div.chat-debug-source-folder-row"));
|
|
338
|
+
append(row, $("span.chat-debug-source-folder-index", undefined, `${i + 1}.`));
|
|
339
|
+
append(row, $("span.chat-debug-source-folder-label", undefined, folder.uri.path));
|
|
340
|
+
}
|
|
341
|
+
setupCollapsibleToggle(chevron, header, contentEl, disposables, true);
|
|
342
|
+
}
|
|
343
|
+
return {
|
|
344
|
+
element: container,
|
|
345
|
+
disposables
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
function fileListToPlainText(content) {
|
|
349
|
+
const lines = [];
|
|
350
|
+
const capitalizedType = content.discoveryType.charAt(0).toUpperCase() + content.discoveryType.slice(1);
|
|
351
|
+
lines.push(( localize(5634, "{0} Discovery Results", capitalizedType)));
|
|
352
|
+
lines.push(( localize(5635, "Total files: {0}", content.files.length)));
|
|
353
|
+
lines.push("");
|
|
354
|
+
const loaded = content.files.filter(f => f.status === "loaded");
|
|
355
|
+
const skipped = content.files.filter(f => f.status === "skipped");
|
|
356
|
+
if (loaded.length > 0) {
|
|
357
|
+
lines.push(( localize(5636, "Loaded ({0})", loaded.length)));
|
|
358
|
+
const groups = ( new Map());
|
|
359
|
+
for (const f of loaded) {
|
|
360
|
+
const parentDir = content.discoveryType === "skill" ? dirname(dirname(f.uri)) : dirname(f.uri);
|
|
361
|
+
const key = f.extensionId ?? parentDir.path;
|
|
362
|
+
let group = groups.get(key);
|
|
363
|
+
if (!group) {
|
|
364
|
+
group = [];
|
|
365
|
+
groups.set(key, group);
|
|
366
|
+
}
|
|
367
|
+
group.push(f);
|
|
368
|
+
}
|
|
369
|
+
for (const [locationLabel, files] of groups) {
|
|
370
|
+
lines.push(` ${locationLabel}`);
|
|
371
|
+
for (const f of files) {
|
|
372
|
+
const label = f.name ?? f.uri.path;
|
|
373
|
+
lines.push(` \u2713 ${label}`);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
lines.push("");
|
|
377
|
+
}
|
|
378
|
+
if (skipped.length > 0) {
|
|
379
|
+
lines.push(( localize(5637, "Skipped ({0})", skipped.length)));
|
|
380
|
+
const skippedGroups = ( new Map());
|
|
381
|
+
for (const f of skipped) {
|
|
382
|
+
const key = f.skipReason ?? ( localize(5638, "unknown"));
|
|
383
|
+
let group = skippedGroups.get(key);
|
|
384
|
+
if (!group) {
|
|
385
|
+
group = [];
|
|
386
|
+
skippedGroups.set(key, group);
|
|
387
|
+
}
|
|
388
|
+
group.push(f);
|
|
389
|
+
}
|
|
390
|
+
for (const [reasonLabel, files] of skippedGroups) {
|
|
391
|
+
lines.push(` ${reasonLabel}`);
|
|
392
|
+
for (const f of files) {
|
|
393
|
+
const label = f.name ?? f.uri.path;
|
|
394
|
+
let detail = ` \u2717 ${label}`;
|
|
395
|
+
if (f.errorMessage || f.duplicateOf) {
|
|
396
|
+
const parts = [];
|
|
397
|
+
if (f.errorMessage) {
|
|
398
|
+
parts.push(f.errorMessage);
|
|
399
|
+
}
|
|
400
|
+
if (f.duplicateOf) {
|
|
401
|
+
parts.push(( localize(5639, "duplicate of {0}", f.duplicateOf.path)));
|
|
402
|
+
}
|
|
403
|
+
detail += ` (${parts.join(", ")})`;
|
|
404
|
+
}
|
|
405
|
+
lines.push(detail);
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
if (content.sourceFolders && content.sourceFolders.length > 0) {
|
|
410
|
+
lines.push("");
|
|
411
|
+
lines.push(( localize(5640, "Sources ({0})", content.sourceFolders.length)));
|
|
412
|
+
for (const folder of content.sourceFolders) {
|
|
413
|
+
lines.push(` ${folder.uri.path}`);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
return lines.join("\n");
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export { fileListToPlainText, renderCustomizationDiscoveryContent };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DisposableStore } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IChatDebugMessageSection } from "../../common/chatDebugService.js";
|
|
3
|
+
/**
|
|
4
|
+
* Wire up a collapsible toggle on a chevron+header+content triple.
|
|
5
|
+
* Handles icon switching and display toggling.
|
|
6
|
+
*/
|
|
7
|
+
export declare function setupCollapsibleToggle(chevron: HTMLElement, header: HTMLElement, contentEl: HTMLElement, disposables: DisposableStore, initiallyCollapsed?: boolean): void;
|
|
8
|
+
/**
|
|
9
|
+
* Render a collapsible section with a clickable header and pre-formatted content
|
|
10
|
+
* wrapped in a scrollable element.
|
|
11
|
+
*/
|
|
12
|
+
export declare function renderCollapsibleSection(parent: HTMLElement, section: IChatDebugMessageSection, disposables: DisposableStore, initiallyCollapsed?: boolean): void;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
|
|
2
|
+
import { $ as $$1, clearNode, addDisposableListener, EventType, append } from '@codingame/monaco-vscode-api/vscode/vs/base/browser/dom';
|
|
3
|
+
import { Codicon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/codicons';
|
|
4
|
+
import { ThemeIcon } from '@codingame/monaco-vscode-api/vscode/vs/base/common/themables';
|
|
5
|
+
|
|
6
|
+
const $ = $$1;
|
|
7
|
+
function setupCollapsibleToggle(chevron, header, contentEl, disposables, initiallyCollapsed = false) {
|
|
8
|
+
let collapsed = initiallyCollapsed;
|
|
9
|
+
header.tabIndex = 0;
|
|
10
|
+
header.role = 'button';
|
|
11
|
+
chevron.setAttribute('aria-hidden', 'true');
|
|
12
|
+
const updateState = () => {
|
|
13
|
+
clearNode(chevron);
|
|
14
|
+
const icon = collapsed ? Codicon.chevronRight : Codicon.chevronDown;
|
|
15
|
+
chevron.classList.add(...ThemeIcon.asClassName(icon).split(' '));
|
|
16
|
+
contentEl.style.display = collapsed ? 'none' : 'block';
|
|
17
|
+
header.style.borderRadius = collapsed ? '' : '3px 3px 0 0';
|
|
18
|
+
header.setAttribute('aria-expanded', String(!collapsed));
|
|
19
|
+
};
|
|
20
|
+
updateState();
|
|
21
|
+
disposables.add(addDisposableListener(header, EventType.CLICK, () => {
|
|
22
|
+
collapsed = !collapsed;
|
|
23
|
+
chevron.className = 'chat-debug-message-section-chevron';
|
|
24
|
+
updateState();
|
|
25
|
+
}));
|
|
26
|
+
disposables.add(addDisposableListener(header, EventType.KEY_DOWN, (e) => {
|
|
27
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
28
|
+
e.preventDefault();
|
|
29
|
+
header.click();
|
|
30
|
+
}
|
|
31
|
+
}));
|
|
32
|
+
}
|
|
33
|
+
function renderCollapsibleSection(parent, section, disposables, initiallyCollapsed = false) {
|
|
34
|
+
const sectionEl = append(parent, $('div.chat-debug-message-section'));
|
|
35
|
+
const header = append(sectionEl, $('div.chat-debug-message-section-header'));
|
|
36
|
+
const chevron = append(header, $(`span.chat-debug-message-section-chevron`));
|
|
37
|
+
append(header, $('span.chat-debug-message-section-title', undefined, section.name));
|
|
38
|
+
const contentEl = $('pre.chat-debug-message-section-content');
|
|
39
|
+
contentEl.textContent = section.content;
|
|
40
|
+
contentEl.tabIndex = 0;
|
|
41
|
+
const wrapper = append(sectionEl, $('div.chat-debug-message-section-content-wrapper'));
|
|
42
|
+
wrapper.appendChild(contentEl);
|
|
43
|
+
setupCollapsibleToggle(chevron, header, wrapper, disposables, initiallyCollapsed);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { renderCollapsibleSection, setupCollapsibleToggle };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Disposable } from "@codingame/monaco-vscode-api/vscode/vs/base/common/lifecycle";
|
|
2
|
+
import { IClipboardService } from "@codingame/monaco-vscode-api/vscode/vs/platform/clipboard/common/clipboardService.service";
|
|
3
|
+
import { IHoverService } from "@codingame/monaco-vscode-api/vscode/vs/platform/hover/browser/hover.service";
|
|
4
|
+
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
5
|
+
import { IOpenerService } from "@codingame/monaco-vscode-api/vscode/vs/platform/opener/common/opener.service";
|
|
6
|
+
import { IEditorService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/editor/common/editorService.service";
|
|
7
|
+
import { IChatDebugEvent } from "../../common/chatDebugService.js";
|
|
8
|
+
import { IChatDebugService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/contrib/chat/common/chatDebugService.service";
|
|
9
|
+
/**
|
|
10
|
+
* Reusable detail panel that resolves and displays the content of a
|
|
11
|
+
* single {@link IChatDebugEvent}. Used by both the logs view and the
|
|
12
|
+
* flow chart view.
|
|
13
|
+
*/
|
|
14
|
+
export declare class ChatDebugDetailPanel extends Disposable {
|
|
15
|
+
private readonly chatDebugService;
|
|
16
|
+
private readonly instantiationService;
|
|
17
|
+
private readonly editorService;
|
|
18
|
+
private readonly clipboardService;
|
|
19
|
+
private readonly hoverService;
|
|
20
|
+
private readonly openerService;
|
|
21
|
+
private readonly _onDidHide;
|
|
22
|
+
readonly onDidHide: import("@codingame/monaco-vscode-api/vscode/vs/base/common/event").Event<void>;
|
|
23
|
+
readonly element: HTMLElement;
|
|
24
|
+
private readonly contentContainer;
|
|
25
|
+
private readonly detailDisposables;
|
|
26
|
+
private currentDetailText;
|
|
27
|
+
private currentDetailEventId;
|
|
28
|
+
private firstFocusableElement;
|
|
29
|
+
constructor(parent: HTMLElement, chatDebugService: IChatDebugService, instantiationService: IInstantiationService, editorService: IEditorService, clipboardService: IClipboardService, hoverService: IHoverService, openerService: IOpenerService);
|
|
30
|
+
show(event: IChatDebugEvent): Promise<void>;
|
|
31
|
+
get isVisible(): boolean;
|
|
32
|
+
focus(): void;
|
|
33
|
+
hide(): void;
|
|
34
|
+
}
|