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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user