Skip to content

Commit 83ca012

Browse files
author
Alexander Eyers-Taylor
committed
Add version constraint for quick-eval-count
1 parent 8fb1229 commit 83ca012

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

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

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,11 @@ export class CliVersionConstraint {
18441844

18451845
public static CLI_VERSION_GLOBAL_CACHE = new SemVer("2.12.4");
18461846

1847+
/**
1848+
* CLI version where the query server supports quick-eval count mode.
1849+
*/
1850+
public static CLI_VERSION_WITH_QUICK_EVAL_COUNT = new SemVer("2.13.3");
1851+
18471852
constructor(private readonly cli: CodeQLCliServer) {
18481853
/**/
18491854
}
@@ -1917,4 +1922,10 @@ export class CliVersionConstraint {
19171922
async usesGlobalCompilationCache() {
19181923
return this.isVersionAtLeast(CliVersionConstraint.CLI_VERSION_GLOBAL_CACHE);
19191924
}
1925+
1926+
async supportsQuickEvalCount() {
1927+
return this.isVersionAtLeast(
1928+
CliVersionConstraint.CLI_VERSION_WITH_QUICK_EVAL_COUNT,
1929+
);
1930+
}
19201931
}

0 commit comments

Comments
 (0)