11import { window } from "vscode" ;
2- import { App , AppMode } from "../common/app" ;
3- import { isCanary , isNewQueryRunExperienceEnabled } from "../config" ;
2+ import { App } from "../common/app" ;
43import { extLogger } from "../common" ;
54import { DisposableObject } from "../pure/disposable-object" ;
65import { DbConfigStore } from "./config/db-config-store" ;
@@ -19,18 +18,7 @@ export class DbModule extends DisposableObject {
1918 this . dbManager = new DbManager ( app , this . dbConfigStore ) ;
2019 }
2120
22- public async initialize ( app : App ) : Promise < void > {
23- if (
24- app . mode !== AppMode . Development ||
25- ! isCanary ( ) ||
26- ! isNewQueryRunExperienceEnabled ( )
27- ) {
28- // Currently, we only want to expose the new database panel when we
29- // are in development and canary mode and the developer has enabled the
30- // new query run experience.
31- return ;
32- }
33-
21+ public async initialize ( ) : Promise < void > {
3422 void extLogger . log ( "Initializing database module" ) ;
3523
3624 await this . dbConfigStore . initialize ( ) ;
@@ -49,6 +37,6 @@ export class DbModule extends DisposableObject {
4937
5038export async function initializeDbModule ( app : App ) : Promise < DbModule > {
5139 const dbModule = new DbModule ( app ) ;
52- await dbModule . initialize ( app ) ;
40+ await dbModule . initialize ( ) ;
5341 return dbModule ;
5442}
0 commit comments