mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
This commit is contained in:
parent
98909e2483
commit
2d2e08045c
|
@ -253,6 +253,11 @@ export class ExtHostLanguageModels implements ExtHostLanguageModelsShape {
|
|||
continue;
|
||||
}
|
||||
|
||||
// make sure auth information is correct
|
||||
if (this._isUsingAuth(extension.identifier, data.metadata)) {
|
||||
await this._fakeAuthPopulate(data.metadata);
|
||||
}
|
||||
|
||||
let apiObject = data.apiObjects.get(extension.identifier);
|
||||
|
||||
if (!apiObject) {
|
||||
|
@ -403,6 +408,10 @@ export class ExtHostLanguageModels implements ExtHostLanguageModelsShape {
|
|||
|
||||
private async _fakeAuthPopulate(metadata: ILanguageModelChatMetadata): Promise<void> {
|
||||
|
||||
if (!metadata.auth) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (const from of this._languageAccessInformationExtensions) {
|
||||
try {
|
||||
await this._getAuthAccess(from, { identifier: metadata.extension, displayName: '' }, undefined, true);
|
||||
|
|
Loading…
Reference in a new issue