Skip to content

Commit

Permalink
remove obsolete variable in fsharp client
Browse files Browse the repository at this point in the history
this variable does not seem used since we install fsautocomplete in dotnet's
tool directory: 2d98a95.
  • Loading branch information
augustfengd committed Mar 26, 2023
1 parent d5c6bc4 commit f8fccaa
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions clients/lsp-fsharp.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
:group 'lsp-mode
:package-version '(lsp-mode . "6.1"))

(defcustom lsp-fsharp-server-install-dir (f-join lsp-server-install-dir "fsautocomplete/")
"Install directory for fsautocomplete server.
The slash is expected at the end."
:group 'lsp-fsharp
:risky t
:type 'directory
Expand Down Expand Up @@ -178,10 +175,7 @@ available, else the globally installed tool."

(defun lsp-fsharp--fsac-cmd ()
"The location of fsautocomplete executable."
(or (-let [maybe-local-executable (expand-file-name "fsautocomplete" lsp-fsharp-server-install-dir)]
(when (f-exists-p maybe-local-executable)
maybe-local-executable))
(executable-find "fsautocomplete")
(or (executable-find "fsautocomplete")
(f-join (or (getenv "USERPROFILE") (getenv "HOME"))
".dotnet" "tools" "fsautocomplete")))

Expand Down

0 comments on commit f8fccaa

Please sign in to comment.