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(
50
50
await withProgress (
51
51
async ( progress : ProgressCallback ) => {
52
52
// Get the path to the local autofix installation.
53
- const localAutofixPath = findLocalAutofix ( ) ;
53
+ const localAutofixPath = await findLocalAutofix ( ) ;
54
54
55
55
// Get the variant analysis with the given id.
56
56
const variantAnalysis = variantAnalyses . get ( variantAnalysisId ) ;
@@ -119,12 +119,12 @@ export async function viewAutofixesForVariantAnalysisResults(
119
119
* @returns An object containing the local autofix path.
120
120
* @throws Error if the AUTOFIX_PATH environment variable is not set or the path does not exist.
121
121
*/
122
- function findLocalAutofix ( ) : string {
122
+ async function findLocalAutofix ( ) : Promise < string > {
123
123
const localAutofixPath = process . env . AUTOFIX_PATH ;
124
124
if ( ! localAutofixPath ) {
125
125
throw new Error ( "Path to local autofix installation not found." ) ;
126
126
}
127
- if ( ! pathExists ( localAutofixPath ) ) {
127
+ if ( ! ( await pathExists ( localAutofixPath ) ) ) {
128
128
throw new Error ( `Local autofix path ${ localAutofixPath } does not exist.` ) ;
129
129
}
130
130
return localAutofixPath ;
You can’t perform that action at this time.
0 commit comments