Skip to content

Commit a56667b

Browse files
authored
Merge pull request #83 from michaelpj/fix/tempdir-windows
Use temporary-file-directory function to avoid being Linux-specific
2 parents c84f071 + 2fa1966 commit a56667b

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)