From ef8aa14307bcfd9978cab47259ebcbcd10526fa2 Mon Sep 17 00:00:00 2001 From: Elena Tanasoiu Date: Wed, 15 Feb 2023 11:16:11 +0000 Subject: [PATCH] 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 --- extensions/ql-vscode/src/cli.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/ql-vscode/src/cli.ts b/extensions/ql-vscode/src/cli.ts index 4b8be9de9..885d829b3 100644 --- a/extensions/ql-vscode/src/cli.ts +++ b/extensions/ql-vscode/src/cli.ts @@ -1227,10 +1227,12 @@ export class CodeQLCliServer implements Disposable { async packAdd(dir: string, queryLanguage: QueryLanguage) { const args = ["--dir", dir]; args.push(`codeql/${queryLanguage}-all`); + const addFormat = false; return this.runJsonCodeQlCliCommandWithAuthentication( ["pack", "add"], args, `Adding and installing ${queryLanguage} pack dependency.`, + addFormat, ); }