nvimdev / nvimdev/lspsaga.nvim
References belong to incorrect node.
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 3.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
As you can see, case <- Change Statement is in main.go, however, the Reference tree show that the statement belongs to log.go, which is wrong.
Steps to reproduce
- create a simple golang project
- create
log.go, which contains:
package main
func log(msg string) {
Change <- true
}
- create
main.go, which contains:
package main
var Change chan bool
func main() {
select {
case <-Change:
// do something
}
}
- put cursor to
Changevariable, and call lspsaga reference function
Expected behavior
case <- Change Statement is belongs to log.go in reference tree.
Neovim version (nvim -v)
NVIM v0.9.5 Build type: Release
lspsaga commit
2198c07
Terminal name/version
tmux 3.3a
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
Reproduce the reference lookup with the two-file Go project described in the issue, using the lspsaga reference function on Change. Trace how the reference tree assigns the select case between main.go and log.go. Done means the tree attributes each reference to the file containing it, including the case <- Change statement in main.go.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, lua, neovim
- Domain
- developer-experience, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100