mirror of
https://github.com/golang/go
synced 2024-11-19 11:54:57 -07:00
abbb706b23
This change removes the explicit configuration for improved documentation on hover. We use a comment's synopsis rather than the full comment. However, we also add a "noDocsOnHover" setting that is used by the cmd tests. Ultimately, no one should use this setting and we should remove it. We leave it temporarily because the cmd tests still need work. Change-Id: I5488eca96a729ed7edad8f59b95af163903740d6 Reviewed-on: https://go-review.googlesource.com/c/tools/+/174378 Run-TryBot: Rebecca Stambler <rstambler@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Cottrell <iancottrell@google.com>
70 lines
1.1 KiB
Plaintext
70 lines
1.1 KiB
Plaintext
-- Random-definition --
|
|
godef/a/random.go:3:6-12: defined here as func Random() int
|
|
|
|
-- Random-definition-json --
|
|
{
|
|
"span": {
|
|
"uri": "file://godef/a/random.go",
|
|
"start": {
|
|
"line": 3,
|
|
"column": 6,
|
|
"offset": 16
|
|
},
|
|
"end": {
|
|
"line": 3,
|
|
"column": 12,
|
|
"offset": 22
|
|
}
|
|
},
|
|
"description": "func Random() int"
|
|
}
|
|
|
|
-- Random-hover --
|
|
func Random() int
|
|
-- Random2-definition --
|
|
godef/a/random.go:8:6-13: defined here as func Random2(y int) int
|
|
|
|
-- Random2-definition-json --
|
|
{
|
|
"span": {
|
|
"uri": "file://godef/a/random.go",
|
|
"start": {
|
|
"line": 8,
|
|
"column": 6,
|
|
"offset": 71
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 13,
|
|
"offset": 78
|
|
}
|
|
},
|
|
"description": "func Random2(y int) int"
|
|
}
|
|
|
|
-- Random2-hover --
|
|
func Random2(y int) int
|
|
-- err-definition --
|
|
godef/a/a.go:14:6-9: defined here as var err error
|
|
|
|
-- err-definition-json --
|
|
{
|
|
"span": {
|
|
"uri": "file://godef/a/a.go",
|
|
"start": {
|
|
"line": 14,
|
|
"column": 6,
|
|
"offset": 201
|
|
},
|
|
"end": {
|
|
"line": 14,
|
|
"column": 9,
|
|
"offset": 204
|
|
}
|
|
},
|
|
"description": "var err error"
|
|
}
|
|
|
|
-- err-hover --
|
|
var err error
|