Skip to content

Commit 81e6028

Browse files
committed
Require canary for loading models from packs
1 parent 8e156d6 commit 81e6028

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

extensions/ql-vscode/src/run-queries.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,7 @@ export async function compileAndRunQueryAgainstDatabase(
622622
// work with hidden settings, so we manually check that the workspace is trusted before looking at
623623
// whether the `shouldInsecurelyLoadMlModelsFromPacks` setting is enabled.
624624
if (workspace.isTrusted &&
625+
config.isCanary() &&
625626
config.shouldInsecurelyLoadMlModelsFromPacks() &&
626627
await cliServer.cliConstraints.supportsResolveMlModels()) {
627628
try {

0 commit comments

Comments
 (0)