Skip to content

Commit f31a5c5

Browse files
author
Alexander Eyers-Taylor
committed
Add quick eval count context.
1 parent 047375a commit f31a5c5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

  • extensions/ql-vscode/src/codeql-cli

extensions/ql-vscode/src/codeql-cli/cli.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1455,6 +1455,13 @@ export class CodeQLCliServer implements Disposable {
14551455
CliVersionConstraint.CLI_VERSION_WITH_PER_QUERY_EVAL_LOG,
14561456
) >= 0,
14571457
);
1458+
await this.app.commands.execute(
1459+
"setContext",
1460+
"codeql.supportsQuickEvalCount",
1461+
newVersion.compare(
1462+
CliVersionConstraint.CLI_VERSION_WITH_QUICK_EVAL_COUNT,
1463+
) >= 0,
1464+
);
14581465
} catch (e) {
14591466
this._versionChangedListeners.forEach((listener) =>
14601467
listener(undefined),

0 commit comments

Comments
 (0)