mirror of
https://github.com/Microsoft/vscode
synced 2024-07-05 01:08:57 +00:00
track when LM request is made (#204773)
This commit is contained in:
parent
94799a61c9
commit
73058072bf
|
@ -73,14 +73,12 @@ export class MainThreadChatProvider implements MainThreadChatProviderShape {
|
|||
}
|
||||
|
||||
async $prepareChatAccess(extension: ExtensionIdentifier, providerId: string, justification?: string): Promise<IChatResponseProviderMetadata | undefined> {
|
||||
const access = await this._extensionFeaturesManagementService.getAccess(extension, `lm-${providerId}`, justification);
|
||||
if (!access) {
|
||||
return undefined;
|
||||
}
|
||||
return this._chatProviderService.lookupChatResponseProvider(providerId);
|
||||
}
|
||||
|
||||
async $fetchResponse(extension: ExtensionIdentifier, providerId: string, requestId: number, messages: IChatMessage[], options: {}, token: CancellationToken): Promise<any> {
|
||||
await this._extensionFeaturesManagementService.getAccess(extension, `lm-${providerId}`);
|
||||
|
||||
this._logService.debug('[CHAT] extension request STARTED', extension.value, requestId);
|
||||
|
||||
const task = this._chatProviderService.fetchChatResponse(providerId, extension, messages, options, new Progress(value => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user