Skip to content

Commit 2898acd

Browse files
committed
Hide new command behind feature flag
1 parent 7409fe8 commit 2898acd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ export class QueriesModule extends DisposableObject {
2727
}
2828

2929
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+
3036
if (!this.queriesPanel) {
3137
throw new Error("Queries panel not initialized");
3238
}

0 commit comments

Comments
 (0)