gopls/doc: relnote for hover & definition over doc links

Change-Id: I2d3a571a6fabd1419212b64706f765a058a3cc11
Reviewed-on: https://go-review.googlesource.com/c/tools/+/578320
Auto-Submit: Alan Donovan <adonovan@google.com>
Reviewed-by: Robert Findley <rfindley@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Alan Donovan 2024-04-12 12:21:41 -04:00 коммит произвёл Gopher Robot
Родитель c859ee9e32
Коммит 3c000cabe6
1 изменённых файлов: 22 добавлений и 1 удалений

Просмотреть файл

@ -85,9 +85,30 @@ optimizations to your data structures, or when reading assembly code.
TODO: example hover image.
### Hover and definition on doc links
Go 1.19 added support for [links in doc
comments](https://go.dev/doc/comment#links), allowing the
documentation for one symbol to reference another:
TODO: turn the code below into a VS Code screenshot of hover.
```go
// Logf logs a message formatted in the manner of [fmt.Printf].
func Logf(format string, args ...any)
```
Gopls's Hover and Definition operations now treat these links just
like identifiers, so hovering over one will display information about
the symbol, and "Go to definition" will navigate to its declaration.
Thanks to @rogeryk for contributing this feature.
## Bugs fixed
## Thank you to our contributors!
@guodongli-google for the `unusedwrite` analyzer.
TODO: they're a xoogler; is there a more current GH account?
TODO: they're a xoogler; is there a more current GH account?
@rogeryk