We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f4a778 commit 8c87493Copy full SHA for 8c87493
extensions/ql-vscode/src/databases/local-databases-ui.ts
@@ -828,6 +828,12 @@ export class DatabaseUI extends DisposableObject {
828
}
829
830
private async promptForDatabase(): Promise<void> {
831
+ // If there aren't any existing databases,
832
+ // don't bother asking the user if they want to pick one.
833
+ if (this.databaseManager.databaseItems.length === 0) {
834
+ return this.importNewDatabase();
835
+ }
836
+
837
const quickPickItems: DatabaseSelectionQuickPickItem[] = [
838
{
839
label: "$(database) Existing database",
0 commit comments