Allow CodeQL checkout to be named ql

This makes it easier for cross-repo development with `semmle-code`, where the `codeql` repo is in a submodule in a directory named `ql`.
This commit is contained in:
Dave Bartolomeo
2024-01-12 09:30:13 -05:00
parent 2aacea4176
commit 9c42c6a851

View File

@@ -6,7 +6,10 @@ import { workspace } from "vscode";
*/
function hasCodeQL() {
const folders = workspace.workspaceFolders;
return !!folders?.some((folder) => folder.uri.path.endsWith("/codeql"));
return !!folders?.some(
(folder) =>
folder.uri.path.endsWith("/codeql") || folder.uri.path.endsWith("/ql"),
);
}
// describeWithCodeQL will be equal to describe if the CodeQL libraries are