Skip to content

Commit f887309

Browse files
Add `eglot-fsharp-server-args' for additional arguments
Make ("--adaptive-lsp-server-enabled") the default args because the server crashes on boot without the adaptive flag. Remove `eglot-fsharp-server-verbose'.
1 parent cb5a342 commit f887309

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

eglot-fsharp.el

+4-8
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
(const :tag "Latest release" latest)
5252
(string :tag "Version string")))
5353

54-
(defcustom eglot-fsharp-server-verbose nil
55-
"If non-nil include debug output in the server logs."
56-
:type 'boolean)
54+
(defcustom eglot-fsharp-server-args '("--adaptive-lsp-server-enabled")
55+
"Arguments for the fsautocomplete command when using `eglot-fsharp'."
56+
:type '(repeat string))
5757

5858
(defun eglot-fsharp--path-to-server ()
5959
"Return FsAutoComplete path."
@@ -125,11 +125,7 @@ Ensure FsAutoComplete is installed (when called INTERACTIVE)."
125125
(when interactive (eglot-fsharp--maybe-install))
126126
(when (file-exists-p (eglot-fsharp--path-to-server))
127127
(cons 'eglot-fsautocomplete (cons (eglot-fsharp--path-to-server)
128-
(if eglot-fsharp-server-verbose
129-
`("--verbose" "--adaptive-lsp-server-enabled")
130-
`("--adaptive-lsp-server-enabled"))))))
131-
132-
128+
eglot-fsharp-server-args))))
133129

134130

135131
(defclass eglot-fsautocomplete (eglot-lsp-server) ()

0 commit comments

Comments
 (0)