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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user