Do not show quick pick when there are no model files

This commit is contained in:
Koen Vlaswinkel
2023-04-12 08:55:24 +02:00
parent 656e7d6d8a
commit 59c0610122

View File

@@ -73,6 +73,10 @@ export async function pickModelFile(
}
}
if (modelFiles.size === 0) {
return pickNewModelFile(token, databaseItem, extensionPackPath);
}
const fileOptions: Array<{ label: string; file: string | null }> = [];
for (const file of modelFiles) {
fileOptions.push({