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
321321/*
322322 * Checks if the executable is on the PATH
323323 */
324- export async function executableExists ( exe : string ) : Promise < boolean > {
324+ export function executableExists ( exe : string ) : boolean {
325325 const isWindows = process . platform === 'win32' ;
326- let newEnv : IEnvVars = await resolveServerEnvironmentPATH (
326+ let newEnv : IEnvVars = resolveServerEnvironmentPATH (
327327 workspace . getConfiguration ( 'haskell' ) . get ( 'serverEnvironment' ) || { }
328328 ) ;
329329 newEnv = { ...( process . env as IEnvVars ) , ...newEnv } ;
@@ -370,7 +370,7 @@ export async function addPathToProcessPath(extraPath: string, logger: Logger): P
370370 return path . join ( pathSep ) ;
371371}
372372
373- export async function resolveServerEnvironmentPATH ( serverEnv : IEnvVars ) : Promise < IEnvVars > {
373+ export function resolveServerEnvironmentPATH ( serverEnv : IEnvVars ) : IEnvVars {
374374 const pathSep = process . platform === 'win32' ? ';' : ':' ;
375375 const path : string [ ] | null = serverEnv . PATH
376376 ? serverEnv . PATH . split ( pathSep ) . map ( ( p ) => resolvePATHPlaceHolders ( p ) )
You can’t perform that action at this time.
0 commit comments