mirror of
https://github.com/golang/go
synced 2024-11-19 01:54:39 -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>
71 lines
1.1 KiB
Plaintext
71 lines
1.1 KiB
Plaintext
-- PosSum-definition --
|
|
godef/a/random.go:16:15-18: defined here as func (*Pos).Sum() int
|
|
|
|
-- PosSum-definition-json --
|
|
{
|
|
"span": {
|
|
"uri": "file://godef/a/random.go",
|
|
"start": {
|
|
"line": 16,
|
|
"column": 15,
|
|
"offset": 248
|
|
},
|
|
"end": {
|
|
"line": 16,
|
|
"column": 18,
|
|
"offset": 251
|
|
}
|
|
},
|
|
"description": "func (*Pos).Sum() int"
|
|
}
|
|
|
|
-- PosSum-hover --
|
|
func (*Pos).Sum() int
|
|
-- PosX-definition --
|
|
godef/a/random.go:13:2-3: defined here as field x int
|
|
|
|
-- PosX-definition-json --
|
|
{
|
|
"span": {
|
|
"uri": "file://godef/a/random.go",
|
|
"start": {
|
|
"line": 13,
|
|
"column": 2,
|
|
"offset": 187
|
|
},
|
|
"end": {
|
|
"line": 13,
|
|
"column": 3,
|
|
"offset": 188
|
|
}
|
|
},
|
|
"description": "field x int"
|
|
}
|
|
|
|
-- PosX-hover --
|
|
@mark(PosX, "x"),mark(PosY, "y")
|
|
field x int
|
|
-- RandomParamY-definition --
|
|
godef/a/random.go:8:14-15: defined here as var y int
|
|
|
|
-- RandomParamY-definition-json --
|
|
{
|
|
"span": {
|
|
"uri": "file://godef/a/random.go",
|
|
"start": {
|
|
"line": 8,
|
|
"column": 14,
|
|
"offset": 79
|
|
},
|
|
"end": {
|
|
"line": 8,
|
|
"column": 15,
|
|
"offset": 80
|
|
}
|
|
},
|
|
"description": "var y int"
|
|
}
|
|
|
|
-- RandomParamY-hover --
|
|
var y int
|