mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
Handle duplicate chat participant names (#208142)
* Enable duplicate chat participant names #208103 * Register participants with an ID * Update participant history in API * Changes to dupe chat suggest widget, and fix serialize/deserialize * Tweaks * Test fixes * Fix tests * Test fixes * Fix integration test
This commit is contained in:
@@ -1427,10 +1427,14 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
checkProposedApiEnabled(extension, 'mappedEditsProvider');
|
||||
return extHostLanguageFeatures.registerMappedEditsProvider(extension, selector, provider);
|
||||
},
|
||||
createChatParticipant(name: string, handler: vscode.ChatExtendedRequestHandler) {
|
||||
createChatParticipant(id: string, handler: vscode.ChatExtendedRequestHandler) {
|
||||
checkProposedApiEnabled(extension, 'chatParticipant');
|
||||
return extHostChatAgents2.createChatAgent(extension, name, handler);
|
||||
return extHostChatAgents2.createChatAgent(extension, id, handler);
|
||||
},
|
||||
createDynamicChatParticipant(id: string, name: string, description: string, handler: vscode.ChatExtendedRequestHandler): vscode.ChatParticipant {
|
||||
checkProposedApiEnabled(extension, 'chatParticipantAdditions');
|
||||
return extHostChatAgents2.createDynamicChatAgent(extension, id, name, description, handler);
|
||||
}
|
||||
};
|
||||
|
||||
// namespace: lm
|
||||
|
||||
Reference in New Issue
Block a user