Check specifically for the starter workspace

We've made an exception to fetch the parent folder when we're
in the vscode-codeql-starter workspace.

We'd like to make this more specific so that it doesn't interfere
with other repos.
This commit is contained in:
Elena Tanasoiu
2023-04-14 11:01:18 +00:00
parent 4a8ba1377d
commit bfc5f49d44

View File

@@ -809,7 +809,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("codeql-custom-queries")) {
if (
firstFolderFsPath.includes("vscode-codeql-starter/codeql-custom-queries")
) {
// return the parent folder
return dirname(firstFolderFsPath);
} else {