Skip to content

Commit c7242d5

Browse files
committed
Fixes #589
1 parent 709adac commit c7242d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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, logger: Logger): 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))

0 commit comments

Comments
 (0)