Skip to content

Commit 4409056

Browse files
committed
Rename tmpDir to qhelpTmpDir
1 parent 985fab7 commit 4409056

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

extensions/ql-vscode/src/extension.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,8 @@ async function activateWithInstalledDistribution(
494494
}
495495
}
496496

497-
const tmpDir = tmp.dirSync({ prefix: 'qhelp_', keep: false, unsafeCleanup: true });
498-
ctx.subscriptions.push({ dispose: tmpDir.removeCallback });
497+
const qhelpTmpDir = tmp.dirSync({ prefix: 'qhelp_', keep: false, unsafeCleanup: true });
498+
ctx.subscriptions.push({ dispose: qhelpTmpDir.removeCallback });
499499

500500
async function previewQueryHelp(
501501
selectedQuery: Uri
@@ -505,7 +505,7 @@ async function activateWithInstalledDistribution(
505505
if(pathToQhelp) {
506506
// Create temporary directory
507507
const relativePathToMd = path.basename(pathToQhelp, '.qhelp') + '.md';
508-
const absolutePathToMd = path.join(tmpDir.name, relativePathToMd);
508+
const absolutePathToMd = path.join(qhelpTmpDir.name, relativePathToMd);
509509
const uri = Uri.file(absolutePathToMd);
510510
try {
511511
await cliServer.generateQueryHelp(pathToQhelp , absolutePathToMd);

0 commit comments

Comments
 (0)