Skip to content

Commit 7fb59a3

Browse files
Attempt to fix issue - Github test failing
Co-authored by: Marc Jaramillo mnj.webdeveloper@gmail.com Co-authored by: Musab Guma'a mgsium@github.com
1 parent d211233 commit 7fb59a3

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

extensions/ql-vscode/src/databases-ui.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -452,10 +452,7 @@ export class DatabaseUI extends DisposableObject {
452452
progress: ProgressCallback,
453453
token: CancellationToken
454454
): Promise<DatabaseItem | undefined> => {
455-
if (!this.queryServer) {
456-
throw new Error('Query server not started');
457-
}
458-
if (await this.queryServer.cliServer.cliConstraints.supportsDatabaseUnbundle()) {
455+
if (this.queryServer !== undefined && await this.queryServer.cliServer.cliConstraints.supportsDatabaseUnbundle()) {
459456
return await promptImportInternetDatabase(
460457
this.databaseManager,
461458
this.storagePath,
@@ -477,10 +474,8 @@ export class DatabaseUI extends DisposableObject {
477474
progress: ProgressCallback,
478475
token: CancellationToken
479476
): Promise<DatabaseItem | undefined> => {
480-
if (!this.queryServer) {
481-
throw new Error('Query server not started');
482-
}
483-
if (await this.queryServer.cliServer.cliConstraints.supportsDatabaseUnbundle()) {
477+
478+
if (this.queryServer !== undefined && await this.queryServer.cliServer.cliConstraints.supportsDatabaseUnbundle()) {
484479
return await promptImportLgtmDatabase(
485480
this.databaseManager,
486481
this.storagePath,

0 commit comments

Comments
 (0)