diff --git a/extensions/ql-vscode/src/databases/local-databases-ui.ts b/extensions/ql-vscode/src/databases/local-databases-ui.ts index 81edbda18..3b6f81271 100644 --- a/extensions/ql-vscode/src/databases/local-databases-ui.ts +++ b/extensions/ql-vscode/src/databases/local-databases-ui.ts @@ -995,14 +995,15 @@ export class DatabaseUI extends DisposableObject { return undefined; } - if (byFolder) { + if (byFolder && !uri.fsPath.endsWith("testproj")) { const fixedUri = await this.fixDbUri(uri); // we are selecting a database folder return await this.databaseManager.openDatabase(fixedUri, { type: "folder", }); } else { - // we are selecting a database archive. Must unzip into a workspace-controlled area + // we are selecting a database archive or a testproj. + // Unzip archives (if an archive) and copy into a workspace-controlled area // before importing. return await importLocalDatabase( this.app.commands,