Change information
Commit message:
gopls/internal/mcp: add a variant of the references tool
Add a variant of the 'references' tool that accepts a (possibly
qualified) symbol name, rather than a location.
The hope is that LLMs may find this easier to use, since they don't have
to populate a location.
For golang/go#73580
Change-Id: Ib47bcdc290e3bc7c5c822f25e9aedab2311e12ac
Files:
- M gopls/internal/golang/call_hierarchy.go
- M gopls/internal/golang/comment.go
- M gopls/internal/golang/definition.go
- M gopls/internal/golang/type_definition.go
- M gopls/internal/golang/type_hierarchy.go
- M gopls/internal/mcp/mcp.go
- M gopls/internal/mcp/references.go
- A gopls/internal/mcp/symbol_references.go
- A gopls/internal/test/marker/testdata/mcptools/symbol_references.txt
Change size: L
Delta: 9 files changed, 240 insertions(+), 11 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Madeline Kalil
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI