emacs-lsp / lsp-mode

Emacs client/library for the Language Server Protocol
https://emacs-lsp.github.io/lsp-mode
GNU General Public License v3.0
4.81k stars 890 forks source link

[FEATURE REQUEST]: Support system-installed LSP servers for dotnet #4267

Open xgqt opened 11 months ago

xgqt commented 11 months ago

lsp-mode wants to always install .NET LSP servers like csharp-ls and fsac (fsautocomplete). It would be nice to detect if required binaries are already in PATH and not install them if they exist.

To workaround this I have to fist install the servers via autoinstall (from M-x lsp) and then link system binaries to ~/.dotnet/tools/TOOL-NAME.

xgqt commented 11 months ago

Looking at https://github.com/emacs-lsp/lsp-mode/issues/3906 I think the best compromise search chain should be as follows:

xgqt commented 11 months ago

I installed lsp-mode from HEAD, look like all that has to be done is to set lsp-fsharp-use-dotnet-tool-for-fsac to nil but for csharp-ls lsp-csharp--cls-test-csharp-ls-present still does not allow anything similar.