File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1149,7 +1149,7 @@ export class CodeQLCliServer implements Disposable {
11491149 const args = this . getAdditionalPacksArg ( additionalPacks ) ;
11501150 if ( extensionPacksOnly ) {
11511151 if ( ! ( await this . cliConstraints . supportsQlpacksKind ( ) ) ) {
1152- this . logger . log (
1152+ void this . logger . log (
11531153 "Warning: Running with extension packs is only supported by CodeQL CLI v2.12.3 or later." ,
11541154 ) ;
11551155 return { } ;
@@ -1160,8 +1160,9 @@ export class CodeQLCliServer implements Disposable {
11601160 return this . runJsonCodeQlCliCommand < QlpacksInfo > (
11611161 [ "resolve" , "qlpacks" ] ,
11621162 args ,
1163- "Resolving qlpack information" +
1164- ( extensionPacksOnly ? " (extension packs only)" : "" ) ,
1163+ `Resolving qlpack information${
1164+ extensionPacksOnly ? " (extension packs only)" : ""
1165+ } `,
11651166 ) ;
11661167 }
11671168
@@ -1348,7 +1349,7 @@ export class CodeQLCliServer implements Disposable {
13481349 }
13491350
13501351 public async setUseExtensionPacks ( useExtensionPacks : boolean ) {
1351- this . cliConfig . setUseExtensionPacks ( useExtensionPacks ) ;
1352+ await this . cliConfig . setUseExtensionPacks ( useExtensionPacks ) ;
13521353 }
13531354}
13541355
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ describeWithCodeQL()("Queries", () => {
9999 } ) ;
100100
101101 describe ( "extension packs" , ( ) => {
102- skipIfTrue ( qs . cliServer . cliConstraints . supportsQlpacksKind ( ) ) ;
102+ skipIfTrue ( qs . cliServer . cliConstraints . supportsQlpacksKind ) ;
103103
104104 const queryUsingExtensionPath = join (
105105 __dirname ,
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export function itWithCodeQL() {
4343 return it ;
4444}
4545
46- export async function skipIfTrue ( condition : Thenable < boolean > ) {
46+ export function skipIfTrue ( condition : ( ) => Thenable < boolean > ) {
4747 return beforeEach ( async ( ) => {
4848 if ( await condition ) {
4949 pending ( ) ;
You can’t perform that action at this time.
0 commit comments