[tools] gopls/internal/mcp: use fenced code blocks for context

1 view
Skip to first unread message

Robert Findley (Gerrit)

unread,
Jul 8, 2025, 12:51:59 PMJul 8
to goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Hongxiang Jiang, Go LUCI, Madeline Kalil, golang-co...@googlegroups.com

Robert Findley submitted the change

Unreviewed changes

2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.

Change information

Commit message:
gopls/internal/mcp: use fenced code blocks for context

Rather than an ad-hoc delimiter for code blocks, use fenced code blocks
from markdown. This is consistent with other context summaries I've
seen.

For golang/go#73580
Change-Id: I51f3ce88108811bb33b6fedf8822773652f972db
Reviewed-by: Hongxiang Jiang <hxj...@golang.org>
Files:
  • M gopls/internal/mcp/context.go
  • M gopls/internal/test/marker/testdata/mcptools/context.txt
Change size: M
Delta: 2 files changed, 28 insertions(+), 41 deletions(-)
Branch: refs/heads/master
Submit Requirements:
  • requirement satisfiedCode-Review: +2 by Hongxiang Jiang
  • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
Open in Gerrit
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: merged
Gerrit-Project: tools
Gerrit-Branch: master
Gerrit-Change-Id: I51f3ce88108811bb33b6fedf8822773652f972db
Gerrit-Change-Number: 686375
Gerrit-PatchSet: 4
Gerrit-Owner: Robert Findley <rfin...@google.com>
Gerrit-Reviewer: Hongxiang Jiang <hxj...@golang.org>
Gerrit-Reviewer: Madeline Kalil <mka...@google.com>
Gerrit-Reviewer: Robert Findley <rfin...@google.com>
open
diffy
satisfied_requirement
Reply all
Reply to author
Forward
0 new messages