mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-18 15:55:59 +01:00
Feature: Chat Debug Panel (#296417)
This commit is contained in:
@@ -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,
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user