Skip to content

Commit 1306bc0

Browse files
authored
Merge pull request #439 from jneira/fix-path-spaces
Fix wrapper call to get project ghc version in windows and spaces in path
2 parents bac6c56 + bedf3b8 commit 1306bc0

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "haskell",
33
"displayName": "Haskell",
44
"description": "Haskell language support powered by the Haskell Language Server",
5-
"version": "1.6.0",
5+
"version": "1.6.1",
66
"license": "MIT",
77
"publisher": "haskell",
88
"engines": {

src/hlsBinaries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async function getProjectGhcVersion(
125125
// We execute the command in a shell for windows, to allow use .cmd or .bat scripts
126126
const childProcess = child_process
127127
.execFile(
128-
wrapper,
128+
getGithubOS() === 'Windows' ? `"${wrapper}"` : wrapper,
129129
args,
130130
{ encoding: 'utf8', cwd: dir, shell: getGithubOS() === 'Windows' },
131131
(err, stdout, stderr) => {

0 commit comments

Comments
 (0)