lspsaga.nvim
lspsaga.nvim copied to clipboard
References belong to incorrect node.
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