File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
extensions/ql-vscode/src/variant-analysis Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ export async function viewAutofixesForVariantAnalysisResults(
5050 await withProgress (
5151 async ( progress : ProgressCallback ) => {
5252 // Get the path to the local autofix installation.
53- const localAutofixPath = findLocalAutofix ( ) ;
53+ const localAutofixPath = await findLocalAutofix ( ) ;
5454
5555 // Get the variant analysis with the given id.
5656 const variantAnalysis = variantAnalyses . get ( variantAnalysisId ) ;
@@ -119,12 +119,12 @@ export async function viewAutofixesForVariantAnalysisResults(
119119 * @returns An object containing the local autofix path.
120120 * @throws Error if the AUTOFIX_PATH environment variable is not set or the path does not exist.
121121 */
122- function findLocalAutofix ( ) : string {
122+ async function findLocalAutofix ( ) : Promise < string > {
123123 const localAutofixPath = process . env . AUTOFIX_PATH ;
124124 if ( ! localAutofixPath ) {
125125 throw new Error ( "Path to local autofix installation not found." ) ;
126126 }
127- if ( ! pathExists ( localAutofixPath ) ) {
127+ if ( ! ( await pathExists ( localAutofixPath ) ) ) {
128128 throw new Error ( `Local autofix path ${ localAutofixPath } does not exist.` ) ;
129129 }
130130 return localAutofixPath ;
You can’t perform that action at this time.
0 commit comments