Gopher Robot submitted the change![Open in Gerrit]()
Change information
Commit message:
gopls/internal/mcp: add a symbol search tool
Add a tool that wraps workspace symbol search.
Also, factor out text content handling.
Also fix a build breakage due to semantic merge conflict.
For golang/go#73580
Change-Id: I42a0f2a5445f5492506ff5a07778a310ed485c54
Files:
- M gopls/internal/cmd/mcp.go
- M gopls/internal/mcp/context.go
- M gopls/internal/mcp/diagnostics.go
- M gopls/internal/mcp/file_metadata.go
- M gopls/internal/mcp/mcp.go
- M gopls/internal/mcp/references.go
- A gopls/internal/mcp/search.go
- M gopls/internal/mcp/workspace.go
- M gopls/internal/mcp/workspace_diagnostics.go
- A gopls/internal/test/marker/testdata/mcptools/search.txt
Change size: M
Delta: 10 files changed, 152 insertions(+), 29 deletions(-)
Branch: refs/heads/master
Submit Requirements:
Code-Review: +2 by Madeline Kalil, +2 by Hongxiang Jiang
TryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I42a0f2a5445f5492506ff5a07778a310ed485c54
Gerrit-Change-Number: 686535
Gerrit-PatchSet: 3