Skip to content

Commit bfc5f49

Browse files
committed
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.
1 parent 4a8ba13 commit bfc5f49

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
@@ -809,7 +809,9 @@ export function getFirstWorkspaceFolder() {
809809

810810
// For the vscode-codeql-starter repo, the first folder will be a ql pack
811811
// so we need to get the parent folder
812-
if (firstFolderFsPath.includes("codeql-custom-queries")) {
812+
if (
813+
firstFolderFsPath.includes("vscode-codeql-starter/codeql-custom-queries")
814+
) {
813815
// return the parent folder
814816
return dirname(firstFolderFsPath);
815817
} else {

0 commit comments

Comments
 (0)