Skip to content

Commit 9c42c6a

Browse files
author
Dave Bartolomeo
committed
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`.
1 parent 2aacea4 commit 9c42c6a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • extensions/ql-vscode/test/vscode-tests

extensions/ql-vscode/test/vscode-tests/cli.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ import { workspace } from "vscode";
66
*/
77
function hasCodeQL() {
88
const folders = workspace.workspaceFolders;
9-
return !!folders?.some((folder) => folder.uri.path.endsWith("/codeql"));
9+
return !!folders?.some(
10+
(folder) =>
11+
folder.uri.path.endsWith("/codeql") || folder.uri.path.endsWith("/ql"),
12+
);
1013
}
1114

1215
// describeWithCodeQL will be equal to describe if the CodeQL libraries are

0 commit comments

Comments
 (0)