Skip to content

Commit ef8aa14

Browse files
Don't send --format option for codeql pack add command
By default, this is added when we call `runJsonCodeQlCliCommandWithAuthentication`. However, `codeql pack add` doesn't support this option so we need to turn it off. Co-authored-by: Shati Patel <[email protected]>
1 parent 95f46b3 commit ef8aa14

File tree

1 file changed

+2
-0
lines changed
  • extensions/ql-vscode/src

1 file changed

+2
-0
lines changed

extensions/ql-vscode/src/cli.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1227,10 +1227,12 @@ export class CodeQLCliServer implements Disposable {
12271227
async packAdd(dir: string, queryLanguage: QueryLanguage) {
12281228
const args = ["--dir", dir];
12291229
args.push(`codeql/${queryLanguage}-all`);
1230+
const addFormat = false;
12301231
return this.runJsonCodeQlCliCommandWithAuthentication(
12311232
["pack", "add"],
12321233
args,
12331234
`Adding and installing ${queryLanguage} pack dependency.`,
1235+
addFormat,
12341236
);
12351237
}
12361238

0 commit comments

Comments
 (0)