Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xgqt opened this issue Dec 19, 2023 · 2 comments
Open

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

xgqt opened this issue Dec 19, 2023 · 2 comments

Comments

@xgqt
Copy link

xgqt commented Dec 19, 2023

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 xgqt changed the title Support system-installed LSP serverd for dotnet Support system-installed LSP servers for dotnet Dec 19, 2023
@xgqt xgqt changed the title Support system-installed LSP servers for dotnet [FEATURE REQUEST]: Support system-installed LSP servers for dotnet Dec 19, 2023
@xgqt
Copy link
Author

xgqt commented Dec 19, 2023

Looking at #3906 I think the best compromise search chain should be as follows:

  • local tool
  • "global" tool (actually hosted inside ~/.dotnet)
  • system binary

@xgqt
Copy link
Author

xgqt commented Dec 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant