Skip to content

Commit c628454

Browse files
authored
Allow queries panel to be visible in non-dev mode too (#2528)
1 parent 2c97ca9 commit c628454

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

extensions/ql-vscode/src/queries-panel/queries-module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { CodeQLCliServer } from "../codeql-cli/cli";
22
import { extLogger } from "../common";
3-
import { App, AppMode } from "../common/app";
3+
import { App } from "../common/app";
44
import { isCanary, showQueriesPanel } from "../config";
55
import { DisposableObject } from "../pure/disposable-object";
66
import { QueriesPanel } from "./queries-panel";
@@ -13,9 +13,9 @@ export class QueriesModule extends DisposableObject {
1313
}
1414

1515
private initialize(app: App, cliServer: CodeQLCliServer): void {
16-
if (app.mode === AppMode.Production || !isCanary() || !showQueriesPanel()) {
17-
// Currently, we only want to expose the new panel when we are in development and canary mode
18-
// and the developer has enabled the "Show queries panel" flag.
16+
if (!isCanary() || !showQueriesPanel()) {
17+
// Currently, we only want to expose the new panel when we are in canary mode
18+
// and the user has enabled the "Show queries panel" flag.
1919
return;
2020
}
2121
void extLogger.log("Initializing queries panel.");

0 commit comments

Comments
 (0)