Skip to content

Commit 9941a42

Browse files
Set makeSelected to true for two calls
1 parent 6273714 commit 9941a42

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -636,7 +636,13 @@ export class DatabaseUI extends DisposableObject {
636636
this.queryServer?.cliServer,
637637
);
638638
} else {
639-
await this.databaseManager.openDatabase(progress, token, uri);
639+
const makeSelected = true;
640+
await this.databaseManager.openDatabase(
641+
progress,
642+
token,
643+
uri,
644+
makeSelected,
645+
);
640646
}
641647
} catch (e) {
642648
// rethrow and let this be handled by default error handling.
@@ -751,10 +757,12 @@ export class DatabaseUI extends DisposableObject {
751757
if (byFolder) {
752758
const fixedUri = await this.fixDbUri(uri);
753759
// we are selecting a database folder
760+
const makeSelected = true;
754761
return await this.databaseManager.openDatabase(
755762
progress,
756763
token,
757764
fixedUri,
765+
makeSelected,
758766
);
759767
} else {
760768
// we are selecting a database archive. Must unzip into a workspace-controlled area

0 commit comments

Comments
 (0)