Skip to content

Commit 6ebfdef

Browse files
committed
Fix windows
1 parent 484cd67 commit 6ebfdef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hlsBinaries.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,9 +555,9 @@ async function getLatestHLSfromGHCup(
555555

556556
let hlsBin = '';
557557
if (targetGhc) {
558-
hlsBin = path.join(bindir, `haskell-language-server-${targetGhc}~${latestHlsVersion}`);
558+
hlsBin = path.join(bindir, `haskell-language-server-${targetGhc}~${latestHlsVersion}${exeExt}`);
559559
} else {
560-
hlsBin = path.join(bindir, `haskell-language-server-wrapper-${latestHlsVersion}`);
560+
hlsBin = path.join(bindir, `haskell-language-server-wrapper-${latestHlsVersion}${exeExt}`);
561561
}
562562

563563
if (fs.existsSync(hlsBin)) {

0 commit comments

Comments
 (0)