mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 08:38:56 +01:00
Better align chat output renders api with existing apis
Change to register with a `viewType` that is mapped to mime types by the contributions. This better matches other apis such as custom documents and also would enable having multiple possible renderers for a given output item
This commit is contained in:
@@ -1519,9 +1519,9 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
checkProposedApiEnabled(extension, 'chatSessionsProvider');
|
||||
return extHostChatSessions.registerChatSessionContentProvider(extension, chatSessionType, provider);
|
||||
},
|
||||
registerChatOutputRenderer: (mime: string, renderer: vscode.ChatOutputRenderer) => {
|
||||
registerChatOutputRenderer: (viewType: string, renderer: vscode.ChatOutputRenderer) => {
|
||||
checkProposedApiEnabled(extension, 'chatOutputRenderer');
|
||||
return extHostChatOutputRenderer.registerChatOutputRenderer(extension, mime, renderer);
|
||||
return extHostChatOutputRenderer.registerChatOutputRenderer(extension, viewType, renderer);
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user