Skip to content

Commit

Permalink
Don't try to parse output of codeql pack add as JSON
Browse files Browse the repository at this point in the history
This was causing some confusing/useless log messages when running the "Create query" command.
  • Loading branch information
shati-patel committed Feb 7, 2024
1 parent 57faebd commit 6a94ad0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions extensions/ql-vscode/src/codeql-cli/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1384,13 +1384,10 @@ export class CodeQLCliServer implements Disposable {
async packAdd(dir: string, queryLanguage: QueryLanguage) {
const args = ["--dir", dir];
args.push(`codeql/${queryLanguage}-all`);
return this.runJsonCodeQlCliCommandWithAuthentication(
return this.runCodeQlCliCommand(
["pack", "add"],
args,
`Adding and installing ${queryLanguage} pack dependency.`,
{
addFormat: false,
},
);
}

Expand Down

0 comments on commit 6a94ad0

Please sign in to comment.