We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82ffae1 commit 128f541Copy full SHA for 128f541
src/vs/workbench/api/common/extHostLanguageModels.ts
@@ -432,8 +432,9 @@ export class ExtHostLanguageModels implements ExtHostLanguageModelsShape {
432
433
const result: vscode.LanguageModelChat[] = [];
434
435
- for (const identifier of models) {
436
- const model = await this.getLanguageModelByIdentifier(extension, identifier);
+ const modelPromises = models.map(identifier => this.getLanguageModelByIdentifier(extension, identifier));
+ const modelResults = await Promise.all(modelPromises);
437
+ for (const model of modelResults) {
438
if (model) {
439
result.push(model);
440
}
0 commit comments