Skip to content

Commit 047375a

Browse files
author
Alexander Eyers-Taylor
committed
Add version constraint for quick-eval-count
1 parent 22172d5 commit 047375a

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
@@ -1820,6 +1820,11 @@ export class CliVersionConstraint {
18201820

18211821
public static CLI_VERSION_GLOBAL_CACHE = new SemVer("2.12.4");
18221822

1823+
/**
1824+
* CLI version where the query server supports quick-eval count mode.
1825+
*/
1826+
public static CLI_VERSION_WITH_QUICK_EVAL_COUNT = new SemVer("2.13.3");
1827+
18231828
constructor(private readonly cli: CodeQLCliServer) {
18241829
/**/
18251830
}
@@ -1893,4 +1898,10 @@ export class CliVersionConstraint {
18931898
async usesGlobalCompilationCache() {
18941899
return this.isVersionAtLeast(CliVersionConstraint.CLI_VERSION_GLOBAL_CACHE);
18951900
}
1901+
1902+
async supportsQuickEvalCount() {
1903+
return this.isVersionAtLeast(
1904+
CliVersionConstraint.CLI_VERSION_WITH_QUICK_EVAL_COUNT,
1905+
);
1906+
}
18961907
}

0 commit comments

Comments
 (0)