Open ghost opened 2 years ago
Hello! This used to be a thing actually for this reason, although the implementation was a bit clunky. It was removed a while ago because the implementation had a net negative impact. I didn't realise that the npm package shipped so many bytes nowadays, seems like there's a bunch of wasm binaries and whatnot. I wouldn't be opposed to some mechanism that'd allow for deduping dependencies across installed LSP servers, but I can't really imagine an alternative that isn't non-trivial.
I'll have to revisit if there's still a good reason to use vscode-langservers-extracted
(I know the eslint server is not distributed elsewhere, and I remember reading about some additional features added in the vscode-langservers-extracted
package). I'll also try to see if hrsh7th would be open to distributing the LSPs separately (while keeping vscode-langservers-extracted
as a collection package). In the meantime I'd also be open to monkey patching things by manually removing installation artifacts that are redundant for a particular server.
I'll have to revisit if there's still a good reason to use vscode-langservers-extracted
vscode-langservers-extracted
is an amazing package, before it came out only ancient redundant versions of these servers were available, and no eslint, it is very important to support this package fully :)
It would be cool to not have these duplicated, but I appreciate you would have to add a new paradigm to support that.
Describe the bug i just took a look at installed language servers directory and noticed vscode-eslint, jsonls, cssls and html are basically the same thing i'm guessing it's using
hrsh7th/vscode-langservers-extracted
? so when you install each of these language servers it just downloads the same thing which is 85 MB so it can easily take 400 MB of space by installing just these fourExpected behavior nvim-lsp-installer should only download
hrsh7th/vscode-langservers-extracted
once and reuse it for different language serversScreenshots![s](https://user-images.githubusercontent.com/90397425/147554113-5d21fd6e-4690-4ad6-aa60-13687ec4cf6b.png)
System info (please complete the following information):
Checkhealth output (
:checkhealth nvim-lsp-installer
):