Skip to content

Commit 70d533f

Browse files
committed
Make check platform agnostic
The separator character is different on Windows.
1 parent bfc5f49 commit 70d533f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

extensions/ql-vscode/src/helpers.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,9 @@ export function getFirstWorkspaceFolder() {
810810
// For the vscode-codeql-starter repo, the first folder will be a ql pack
811811
// so we need to get the parent folder
812812
if (
813-
firstFolderFsPath.includes("vscode-codeql-starter/codeql-custom-queries")
813+
firstFolderFsPath.includes(
814+
join("vscode-codeql-starter", "codeql-custom-queries"),
815+
)
814816
) {
815817
// return the parent folder
816818
return dirname(firstFolderFsPath);

0 commit comments

Comments
 (0)