saibing / bingo

Bingo is a Go language server that speaks Language Server Protocol.
MIT License
495 stars 25 forks source link

Getting document symbols is very slow #176

Closed fjl closed 5 years ago

fjl commented 5 years ago

My editor fetches the list of symbols in the document every time I open a file. If I'm reading the code correctly, getting the symbols of the current document loads/typechecks the file's package and all dependency packages.

Getting symbols in a file doesn't need the package and could be much faster. It really only requires walking the AST. The containing package doesn't even need to be typechecked for this.

saibing commented 5 years ago

@fjl

Please use the enhanced version of gopls