Skip to content

Commit e23699f

Browse files
Jami CogswellJami Cogswell
authored andcommitted
Use parse.dir instead of dirname
1 parent 161c5de commit e23699f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

extensions/ql-vscode/src/variant-analysis/view-autofixes.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,10 @@ async function overrideQueryHelp(
144144
if (!(await pathExists(queryFilePath))) {
145145
throw new Error(`Query file used by variant analysis not found.`);
146146
}
147+
const parsedQueryFilePath = parse(queryFilePath);
147148
const queryFilePathNoExt = join(
148-
dirname(queryFilePath),
149-
parse(queryFilePath).name,
149+
parsedQueryFilePath.dir,
150+
parsedQueryFilePath.name,
150151
);
151152

152153
// Get the path to the query help, which may be either a `.qhelp` or a `.md` file.

0 commit comments

Comments
 (0)