Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/gopls: supply imported package names in documentSymbol results #40514
I want to replace vscode-go's existing
The extension currently uses the
The existing vscode-go provider provides imported package names. The names are used
Not sure how the LSP's symbol kinds map to Go's type. For reference -
Experimented a bit and I am now unsure if this is desirable. Including the imported packages pollute the Outline view.
Looking further, I learned that vscode-go's existing document symbol provider supports two modes (include or exclude imports). Unfortunately, we have no control when using LSP.
Is there any other LSP feature that allows to retrieve the import information?
I also noticed the vscode-go's symbol provider has
Not that I can think of off the top of my head. There may be something in the spec that I'm missing, or maybe we can implement a custom command.
We can adjust this in