Skip to content

Commit 59c0610

Browse files
committed
Do not show quick pick when there are no model files
1 parent 656e7d6 commit 59c0610

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

extensions/ql-vscode/src/data-extensions-editor/extension-packs.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ export async function pickModelFile(
7373
}
7474
}
7575

76+
if (modelFiles.size === 0) {
77+
return pickNewModelFile(token, databaseItem, extensionPackPath);
78+
}
79+
7680
const fileOptions: Array<{ label: string; file: string | null }> = [];
7781
for (const file of modelFiles) {
7882
fileOptions.push({

0 commit comments

Comments
 (0)