We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8179476 commit d5ed25fCopy full SHA for d5ed25f
extensions/ql-vscode/src/variant-analysis/ql.ts
@@ -64,6 +64,9 @@ function findQlPackRootForQueriesWithNoPack(
64
): string {
65
const commonParentDir = findCommonParentDir(...queryFiles);
66
67
+ // Check that all queries are in a workspace folder (the same one),
68
+ // so that we don't return a pack root that's outside the workspace.
69
+ // This is to avoid accessing files outside the workspace folders.
70
for (const workspaceFolder of workspaceFolders) {
71
if (containsPath(workspaceFolder, commonParentDir)) {
72
return commonParentDir;
0 commit comments