Skip to content

Commit b3d9804

Browse files
committed
Only enable graph viewer in canary mode
1 parent d3e6453 commit b3d9804

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

extensions/ql-vscode/src/interface.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import {
6464
ResultSetSchema,
6565
} from "./pure/bqrs-cli-types";
6666
import { AbstractWebview, WebviewPanelConfig } from "./abstract-webview";
67-
import { PAGE_SIZE } from "./config";
67+
import { isCanary, PAGE_SIZE } from "./config";
6868
import { HistoryItemLabelProvider } from "./query-history/history-item-label-provider";
6969
import { telemetryListener } from "./telemetry";
7070
import { redactableError } from "./pure/errors";
@@ -221,8 +221,8 @@ export class ResultsView extends AbstractWebview<
221221
viewColumn: this.chooseColumnForWebview(),
222222
preserveFocus: true,
223223
view: "results",
224-
// Required for the graph viewer which is using d3-graphviz WASM module
225-
allowWasmEval: true,
224+
// Required for the graph viewer which is using d3-graphviz WASM module. Only supported in canary mode.
225+
allowWasmEval: isCanary(),
226226
};
227227
}
228228

@@ -658,7 +658,8 @@ export class ResultsView extends AbstractWebview<
658658
}
659659
let data;
660660
let numTotalResults;
661-
if (metadata?.kind === GRAPH_TABLE_NAME) {
661+
// Graph results are only supported in canary mode because the graph viewer is unsupported
662+
if (metadata?.kind === GRAPH_TABLE_NAME && isCanary()) {
662663
data = await interpretGraphResults(
663664
this.cliServer,
664665
metadata,

0 commit comments

Comments
 (0)