REditorSupport / REditorSupport/languageserver
Server capabilities not updating using LSP configuration
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 675
- Forks
- 118
- Avg merge
- 1d 37m
- Merged PRs (30d)
- 11
Description
As described in the README, I'm trying to update the server's capabilities using the LSP configuration in my client. That is, as far as I understand, a table sent to the server via a workspace/didChangeConfiguration notification after initialization:
r = {
lsp = {
server_capabilities = {
completionProvider = false,
completionItemResolve = false,
},
-- other settings
},
},
The capabilities just won't update, while other settings, for example setting a custom log_file, are correctly applied. Setting the capabilities in .Rprofile also works as expected, but this is not the preferred way for me.
I'm using the native LSP client in Neovim 0.10.2 with the latest R languageserver release v0.3.16. Even though I don't see anything related to the capabilities, here is a debug log of starting and stopping the server once on one file.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the README's LSP configuration instructions and the handling of the workspace/didChangeConfiguration notification; compare the capability settings with the custom log_file setting that does update. Use the linked debug log to trace initialization and configuration changes, and consider the behavior complete when server_capabilities values update through the Neovim client without requiring .Rprofile.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- neovim, r
- Domain
- backend-api-design, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100