Feature: Chat Debug Panel (#296417)

This commit is contained in:
Paul
2026-02-23 18:50:31 -08:00
committed by GitHub
parent b015d50811
commit c4c215b11f
50 changed files with 8167 additions and 1450 deletions

View File

@@ -117,6 +117,7 @@ import { IExtHostWindow } from './extHostWindow.js';
import { IExtHostPower } from './extHostPower.js';
import { IExtHostWorkspace } from './extHostWorkspace.js';
import { ExtHostChatContext } from './extHostChatContext.js';
import { ExtHostChatDebug } from './extHostChatDebug.js';
import { IExtHostMeteredConnection } from './extHostMeteredConnection.js';
import { IExtHostGitExtensionService } from './extHostGitExtensionService.js';
@@ -239,6 +240,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
const extHostChatSessions = rpcProtocol.set(ExtHostContext.ExtHostChatSessions, new ExtHostChatSessions(extHostCommands, extHostLanguageModels, rpcProtocol, extHostLogService));
const extHostChatAgents2 = rpcProtocol.set(ExtHostContext.ExtHostChatAgents2, new ExtHostChatAgents2(rpcProtocol, extHostLogService, extHostCommands, extHostDocuments, extHostDocumentsAndEditors, extHostLanguageModels, extHostDiagnostics, extHostLanguageModelTools));
const extHostChatContext = rpcProtocol.set(ExtHostContext.ExtHostChatContext, new ExtHostChatContext(rpcProtocol, extHostCommands));
const extHostChatDebug = rpcProtocol.set(ExtHostContext.ExtHostChatDebug, new ExtHostChatDebug(rpcProtocol));
const extHostAiRelatedInformation = rpcProtocol.set(ExtHostContext.ExtHostAiRelatedInformation, new ExtHostRelatedInformation(rpcProtocol));
const extHostAiEmbeddingVector = rpcProtocol.set(ExtHostContext.ExtHostAiEmbeddingVector, new ExtHostAiEmbeddingVector(rpcProtocol));
const extHostAiSettingsSearch = rpcProtocol.set(ExtHostContext.ExtHostAiSettingsSearch, new ExtHostAiSettingsSearch(rpcProtocol));
@@ -1674,6 +1676,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
checkProposedApiEnabled(extension, 'chatPromptFiles');
return extHostChatAgents2.registerPromptFileProvider(extension, PromptsType.skill, provider);
},
registerChatDebugLogProvider(provider: vscode.ChatDebugLogProvider): vscode.Disposable {
checkProposedApiEnabled(extension, 'chatDebug');
return extHostChatDebug.registerChatDebugLogProvider(provider);
},
};
// namespace: lm
@@ -2061,6 +2067,18 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
ChatToolInvocationPart: extHostTypes.ChatToolInvocationPart,
ChatLocation: extHostTypes.ChatLocation,
ChatSessionStatus: extHostTypes.ChatSessionStatus,
ChatDebugLogLevel: extHostTypes.ChatDebugLogLevel,
ChatDebugToolCallResult: extHostTypes.ChatDebugToolCallResult,
ChatDebugToolCallEvent: extHostTypes.ChatDebugToolCallEvent,
ChatDebugModelTurnEvent: extHostTypes.ChatDebugModelTurnEvent,
ChatDebugGenericEvent: extHostTypes.ChatDebugGenericEvent,
ChatDebugSubagentInvocationEvent: extHostTypes.ChatDebugSubagentInvocationEvent,
ChatDebugUserMessageEvent: extHostTypes.ChatDebugUserMessageEvent,
ChatDebugAgentResponseEvent: extHostTypes.ChatDebugAgentResponseEvent,
ChatDebugMessageSection: extHostTypes.ChatDebugMessageSection,
ChatDebugEventTextContent: extHostTypes.ChatDebugEventTextContent,
ChatDebugMessageContentType: extHostTypes.ChatDebugMessageContentType,
ChatDebugEventMessageContent: extHostTypes.ChatDebugEventMessageContent,
ChatRequestEditorData: extHostTypes.ChatRequestEditorData,
ChatRequestNotebookData: extHostTypes.ChatRequestNotebookData,
ChatReferenceBinaryData: extHostTypes.ChatReferenceBinaryData,
@@ -2103,6 +2121,7 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
McpToolInvocationContentData: extHostTypes.McpToolInvocationContentData,
SettingsSearchResultKind: extHostTypes.SettingsSearchResultKind,
ChatTodoStatus: extHostTypes.ChatTodoStatus,
ChatDebugSubagentStatus: extHostTypes.ChatDebugSubagentStatus,
};
};
}