mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
feat: allow extensions to attach chat context (#213172)
* feat: allow extensions to attach chat context * fix: allow attaching different ranges from same file * fix: restore accepting files from picker
This commit is contained in:
@@ -1425,6 +1425,10 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
createDynamicChatParticipant(id: string, dynamicProps: vscode.DynamicChatParticipantProps, handler: vscode.ChatExtendedRequestHandler): vscode.ChatParticipant {
|
||||
checkProposedApiEnabled(extension, 'chatParticipantAdditions');
|
||||
return extHostChatAgents2.createDynamicChatAgent(extension, id, dynamicProps, handler);
|
||||
},
|
||||
attachContext(name: string, value: string | vscode.Uri | vscode.Location | unknown, location: vscode.ChatLocation.Panel) {
|
||||
checkProposedApiEnabled(extension, 'chatVariableResolver');
|
||||
return extHostChatVariables.attachContext(name, value, location);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user