Closed Coffei closed 4 years ago
Hmm.. today I switched to VIM, and to my surprise I found this change breaks coc.nvim. So I tried VSCode and it's also broken. I get the following errors:
** (UndefinedFunctionError) function nil.text/0 is undefined
nil.text()
which point to either hover handle request or definition handle request. It seems the state.source_files[uri]
evaluates to nil
.
I don't have the resources to fix this ASAP but do plan to look into it eventually.
Fixed, forgot to include open/close events. Tested in Coc.nvim, VSCode and Emacs and all works fine.
Yeah, will do that. Kinda forgot about this PR altogether.
This project has moved!
It's now being maintained by proactive volunteers from the Elixir community over at elixir-lsp/elixir-ls. Updates will continue to be published from that repo to the original VS Code extension, so no need to switch plugins if you're using VS Code.
If you're still interested in merging this PR, please do the following:
Thank you!
Since the server is using didSave notification, it needs to specifically ask for it in the server capabilities. In VS Code it works fine without this, because the editor sends the notification regardless of what server advertises. However, other editors, such as Emacs with lsp-mode, break without this config.
I run into this issue in Emacs lsp-mode (https://github.com/emacs-lsp/lsp-ui/issues/300), when I added the
%{"save" => true}
to the server capabilities in the client, it fixed the problem.