@@ -1428,21 +1428,13 @@ export class CodeQLCliServer implements Disposable {
14281428
14291429 async packPacklist ( dir : string , includeQueries : boolean ) : Promise < string [ ] > {
14301430 const args = includeQueries ? [ dir ] : [ "--no-include-queries" , dir ] ;
1431- // since 2.7.1, packlist returns an object with a "paths" property that is a list of packs.
1432- // previous versions return a list of packs.
1433- const results : { paths : string [ ] } | string [ ] =
1434- await this . runJsonCodeQlCliCommand (
1435- [ "pack" , "packlist" ] ,
1436- args ,
1437- "Generating the pack list" ,
1438- ) ;
1431+ const results : { paths : string [ ] } = await this . runJsonCodeQlCliCommand (
1432+ [ "pack" , "packlist" ] ,
1433+ args ,
1434+ "Generating the pack list" ,
1435+ ) ;
14391436
1440- // Once we no longer need to support 2.7.0 or earlier, we can remove this and assume all versions return an object.
1441- if ( "paths" in results ) {
1442- return results . paths ;
1443- } else {
1444- return results ;
1445- }
1437+ return results . paths ;
14461438 }
14471439
14481440 async packResolveDependencies (
@@ -1476,13 +1468,6 @@ export class CodeQLCliServer implements Disposable {
14761468 ) ;
14771469
14781470 // this._version is only undefined upon config change, so we reset CLI-based context key only when necessary.
1479- await this . app . commands . execute (
1480- "setContext" ,
1481- "codeql.supportsEvalLog" ,
1482- newVersion . compare (
1483- CliVersionConstraint . CLI_VERSION_WITH_PER_QUERY_EVAL_LOG ,
1484- ) >= 0 ,
1485- ) ;
14861471 await this . app . commands . execute (
14871472 "setContext" ,
14881473 "codeql.supportsQuickEvalCount" ,
@@ -1811,23 +1796,6 @@ export class CliVersionConstraint {
18111796 */
18121797 public static CLI_VERSION_WITH_RESOLVE_EXTENSIONS = new SemVer ( "2.10.2" ) ;
18131798
1814- /**
1815- * CLI version where the `--evaluator-log` and related options to the query server were introduced,
1816- * on a per-query server basis.
1817- */
1818- public static CLI_VERSION_WITH_STRUCTURED_EVAL_LOG = new SemVer ( "2.8.2" ) ;
1819-
1820- /**
1821- * CLI version that supports rotating structured logs to produce one per query.
1822- *
1823- * Note that 2.8.4 supports generating the evaluation logs and summaries,
1824- * but 2.9.0 includes a new option to produce the end-of-query summary logs to
1825- * the query server console. For simplicity we gate all features behind 2.9.0,
1826- * but if a user is tied to the 2.8 release, we can enable evaluator logs
1827- * and summaries for them.
1828- */
1829- public static CLI_VERSION_WITH_PER_QUERY_EVAL_LOG = new SemVer ( "2.9.0" ) ;
1830-
18311799 /**
18321800 * CLI version that supports the `--sourcemap` option for log generation.
18331801 */
@@ -1893,18 +1861,6 @@ export class CliVersionConstraint {
18931861 ) ;
18941862 }
18951863
1896- async supportsStructuredEvalLog ( ) {
1897- return this . isVersionAtLeast (
1898- CliVersionConstraint . CLI_VERSION_WITH_STRUCTURED_EVAL_LOG ,
1899- ) ;
1900- }
1901-
1902- async supportsPerQueryEvalLog ( ) {
1903- return this . isVersionAtLeast (
1904- CliVersionConstraint . CLI_VERSION_WITH_PER_QUERY_EVAL_LOG ,
1905- ) ;
1906- }
1907-
19081864 async supportsSourceMap ( ) {
19091865 return this . isVersionAtLeast (
19101866 CliVersionConstraint . CLI_VERSION_WITH_SOURCEMAP ,
0 commit comments