Skip to content

Commit feced9d

Browse files
committed
support local fsautocomplete for server debugging
1 parent f8fccaa commit feced9d

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

clients/lsp-fsharp.el

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@
3232
:group 'lsp-mode
3333
:package-version '(lsp-mode . "6.1"))
3434

35+
(defcustom lsp-fsharp-server-dll-path nil
36+
"Path to a self-built fsautocomplete dll. Useful for debugging."
3537
:group 'lsp-fsharp
36-
:risky t
37-
:type 'directory
38-
:package-version '(lsp-mode . "6.1"))
38+
:type 'file
39+
:package-version '(lsp-mode . "8.0.1"))
3940

4041
(defcustom lsp-fsharp-server-args nil
4142
"Extra arguments for the F# language server."
@@ -201,9 +202,11 @@ available, else the globally installed tool."
201202
(list "/bin/ksh" "-c"))
202203

203204
(t nil)))
204-
(fsautocomplete-exec (lsp-fsharp--fsac-cmd)))
205+
(fsautocomplete-cmd (if lsp-fsharp-server-dll-path
206+
(list "dotnet" (expand-file-name lsp-fsharp-server-dll-path))
207+
(list (lsp-fsharp--fsac-cmd)))))
205208
(append startup-wrapper
206-
(list fsautocomplete-exec)
209+
fsautocomplete-cmd
207210
lsp-fsharp-server-args)))
208211

209212
(defun lsp-fsharp--test-fsautocomplete-present ()

0 commit comments

Comments
 (0)