REditorSupport / REditorSupport/languageserver
language server should be able to fufill requests even without textdocument/didOpen Notifications
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 675
- Forks
- 118
- Avg merge
- 1d 37m
- Merged PRs (30d)
- 11
Description
The LSP Spec says the following:
... Note that a server’s ability to fulfill requests is independent of whether a text document is open or closed.
For example, I see no hover when I hover over length in this file: https://github.com/gluc/data.tree/blob/HEAD/R/node_methods_traversal.R#L93, unless I manually send this didOpen notification with the file contents. The spec says that language servers should still be able to hovers, etc. even without this notification.
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 by reading the LSP specification section on textDocument/didOpen and reproduce the missing hover for length in R/node_methods_traversal.R. Compare behavior with and without a manually sent didOpen notification; done means hover and similar requests work without that notification.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- api, devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100