File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments