Skip to content

Commit 2fa1966

Browse files
committed
Use temporary-file-directory function to avoid being Linux-specific
Use a platform-independent way of getting a tmpdir. We could improve this further to e.g. get a new temporary file per session or similar, but this will at least avoid it misbehaving on Windows. Fixes #6. Fixes #47.
1 parent 485427a commit 2fa1966

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lsp-haskell.el

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,15 @@
9393
:group 'lsp-haskell
9494
:type 'string)
9595

96+
(defcustom lsp-haskell-server-log-file
97+
(expand-file-name "hls.log" temporary-file-directory)
98+
"The log file used by the server. Note that this is passed to the server via 'lsp-haskell-server-args', so if
99+
you override that setting then this one will have no effect."
100+
:group 'lsp-haskell
101+
:type 'string)
102+
96103
(defcustom lsp-haskell-server-args
97-
'("-d" "-l" "/tmp/hls.log")
104+
`("-d" "-l" ,lsp-haskell-server-log-file)
98105
"The arguments for starting the language server.
99106
For a debug log when using haskell-language-server, use `-d -l /tmp/hls.log'."
100107
:group 'lsp-haskell

0 commit comments

Comments
 (0)