We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7409fe8 commit 2898acdCopy full SHA for 2898acd
extensions/ql-vscode/src/queries-panel/queries-module.ts
@@ -27,6 +27,12 @@ export class QueriesModule extends DisposableObject {
27
}
28
29
public getCommands(): QueriesPanelCommands {
30
+ if (!isCanary() || !showQueriesPanel()) {
31
+ // Currently, we only want to expose the new panel when we are in development and canary mode
32
+ // and the developer has enabled the "Show queries panel" flag.
33
+ return {} as any as QueriesPanelCommands;
34
+ }
35
+
36
if (!this.queriesPanel) {
37
throw new Error("Queries panel not initialized");
38
0 commit comments