Skip to content

Commit b8ed251

Browse files
author
Alexander Eyers-Taylor
committed
Add quick eval count context.
1 parent 83ca012 commit b8ed251

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
@@ -1482,6 +1482,13 @@ export class CodeQLCliServer implements Disposable {
14821482
CliVersionConstraint.CLI_VERSION_WITH_PER_QUERY_EVAL_LOG,
14831483
) >= 0,
14841484
);
1485+
await this.app.commands.execute(
1486+
"setContext",
1487+
"codeql.supportsQuickEvalCount",
1488+
newVersion.compare(
1489+
CliVersionConstraint.CLI_VERSION_WITH_QUICK_EVAL_COUNT,
1490+
) >= 0,
1491+
);
14851492
} catch (e) {
14861493
this._versionChangedListeners.forEach((listener) =>
14871494
listener(undefined),

0 commit comments

Comments
 (0)