File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -321,9 +321,9 @@ function getWithRedirects(opts: https.RequestOptions, f: (res: http.IncomingMess
321
321
/*
322
322
* Checks if the executable is on the PATH
323
323
*/
324
- export async function executableExists ( exe : string ) : Promise < boolean > {
324
+ export function executableExists ( exe : string , logger : Logger ) : boolean {
325
325
const isWindows = process . platform === 'win32' ;
326
- let newEnv : IEnvVars = await resolveServerEnvironmentPATH (
326
+ let newEnv : IEnvVars = resolveServerEnvironmentPATH (
327
327
workspace . getConfiguration ( 'haskell' ) . get ( 'serverEnvironment' ) || { }
328
328
) ;
329
329
newEnv = { ...( process . env as IEnvVars ) , ...newEnv } ;
@@ -370,7 +370,7 @@ export async function addPathToProcessPath(extraPath: string, logger: Logger): P
370
370
return path . join ( pathSep ) ;
371
371
}
372
372
373
- export async function resolveServerEnvironmentPATH ( serverEnv : IEnvVars ) : Promise < IEnvVars > {
373
+ export function resolveServerEnvironmentPATH ( serverEnv : IEnvVars ) : IEnvVars {
374
374
const pathSep = process . platform === 'win32' ? ';' : ':' ;
375
375
const path : string [ ] | null = serverEnv . PATH
376
376
? serverEnv . PATH . split ( pathSep ) . map ( ( p ) => resolvePATHPlaceHolders ( p ) )
You can’t perform that action at this time.
0 commit comments