Make check platform agnostic

The separator character is different on Windows.
This commit is contained in:
Elena Tanasoiu
2023-04-14 12:31:25 +00:00
parent bfc5f49d44
commit 70d533f073

View File

@@ -810,7 +810,9 @@ export function getFirstWorkspaceFolder() {
// For the vscode-codeql-starter repo, the first folder will be a ql pack
// so we need to get the parent folder
if (
firstFolderFsPath.includes("vscode-codeql-starter/codeql-custom-queries")
firstFolderFsPath.includes(
join("vscode-codeql-starter", "codeql-custom-queries"),
)
) {
// return the parent folder
return dirname(firstFolderFsPath);