Summary:
When I was running the extension without manually setting the language, the scan would fail after building and analyzing the database:
[2025-06-27T19:53:02.950Z] [WARN ] [CodeQLService ] Query pack directory does not exist:
[2025-06-27T19:53:02.950Z] [INFO ] [CodeQLService ] Using query pack: undefined for language: javascript
[2025-06-27T19:53:02.950Z] [ERROR] [CodeQLService ] Failed runScan
{}
[2025-06-27T19:53:02.950Z] [ERROR] [Extension ] Command failed: scan
Upon further investigaion, I found that the extension was trying to pass this command through:
codeql database analyze -j 0 --output "/Users/writingpanda/.codeql/results/codeql-scanner-vscode-typescript-5b294e02.sarif" --format sarif-latest "/Users/writingpanda/.codeql/databases/codeql-scanner-vscode/typescript" "codeql/typescript-queries:codeql-suites/typescript-code-scanning.qls"
There are no typescript-queries in the custom bundle of CodeQL. They're all under javascript-queries. Once I clicked the toggle for JavaScript to untoggle it and then toggle it again (turning it on and off), I ran another scan. This time, the scan was successful because it used the correct javascript-queries query pack.
Summary:
When I was running the extension without manually setting the language, the scan would fail after building and analyzing the database:
Upon further investigaion, I found that the extension was trying to pass this command through:
codeql database analyze -j 0 --output "/Users/writingpanda/.codeql/results/codeql-scanner-vscode-typescript-5b294e02.sarif" --format sarif-latest "/Users/writingpanda/.codeql/databases/codeql-scanner-vscode/typescript" "codeql/typescript-queries:codeql-suites/typescript-code-scanning.qls"There are no
typescript-queriesin the custom bundle of CodeQL. They're all underjavascript-queries. Once I clicked the toggle for JavaScript to untoggle it and then toggle it again (turning it on and off), I ran another scan. This time, the scan was successful because it used the correctjavascript-queriesquery pack.