Skip to content

Commit 6dc8edc

Browse files
committed
Fix: return wrapper properly
1 parent aeb4636 commit 6dc8edc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/hlsBinaries.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ export async function findHaskellLanguageServer(
286286
const [projectHls, projectGhc] = await getLatestProjectHLS(context, logger, workingDir, latestToolchainBindir);
287287

288288
// now install said version in an isolated symlink directory
289-
return await callGHCup(
289+
const hlsBinDir = await callGHCup(
290290
context,
291291
logger,
292292
[ 'run'
@@ -298,6 +298,7 @@ export async function findHaskellLanguageServer(
298298
`Installing project specific toolchain: HLS-${projectHls}, GHC-${projectGhc}, cabal-${latestCabal}, stack-${latestStack}`,
299299
true
300300
);
301+
return (path.join(hlsBinDir, `haskell-language-server-wrapper${exeExt}`))
301302
}
302303
}
303304

0 commit comments

Comments
 (0)