Allow queries panel to be visible in non-dev mode too (#2528)
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { CodeQLCliServer } from "../codeql-cli/cli";
|
import { CodeQLCliServer } from "../codeql-cli/cli";
|
||||||
import { extLogger } from "../common";
|
import { extLogger } from "../common";
|
||||||
import { App, AppMode } from "../common/app";
|
import { App } from "../common/app";
|
||||||
import { isCanary, showQueriesPanel } from "../config";
|
import { isCanary, showQueriesPanel } from "../config";
|
||||||
import { DisposableObject } from "../pure/disposable-object";
|
import { DisposableObject } from "../pure/disposable-object";
|
||||||
import { QueriesPanel } from "./queries-panel";
|
import { QueriesPanel } from "./queries-panel";
|
||||||
@@ -13,9 +13,9 @@ export class QueriesModule extends DisposableObject {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private initialize(app: App, cliServer: CodeQLCliServer): void {
|
private initialize(app: App, cliServer: CodeQLCliServer): void {
|
||||||
if (app.mode === AppMode.Production || !isCanary() || !showQueriesPanel()) {
|
if (!isCanary() || !showQueriesPanel()) {
|
||||||
// Currently, we only want to expose the new panel when we are in development and canary mode
|
// Currently, we only want to expose the new panel when we are in canary mode
|
||||||
// and the developer has enabled the "Show queries panel" flag.
|
// and the user has enabled the "Show queries panel" flag.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
void extLogger.log("Initializing queries panel.");
|
void extLogger.log("Initializing queries panel.");
|
||||||
|
|||||||
Reference in New Issue
Block a user