-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/golang: add missing json tags for hoverResult
In my haste to partially revert CL 635226 in 651238, I failed to add json struct tags. Add them back. For golang/go#71879 Change-Id: I45190cba5154eeed7b6a49db51d2a2a51999be7a Reviewed-on: https://go-review.googlesource.com/c/tools/+/651618 Auto-Submit: Robert Findley <[email protected]> Reviewed-by: Alan Donovan <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
- Loading branch information
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,32 +57,32 @@ type hoverResult struct { | |
// TODO(adonovan): in what syntax? It (usually) comes from doc.Synopsis, | ||
// which produces "Text" form, but it may be fed to | ||
// DocCommentToMarkdown, which expects doc comment syntax. | ||
Synopsis string | ||
Synopsis string `json:"synopsis"` | ||
|
||
// FullDocumentation is the symbol's full documentation. | ||
FullDocumentation string | ||
FullDocumentation string `json:"fullDocumentation"` | ||
|
||
// Signature is the symbol's Signature. | ||
Signature string | ||
Signature string `json:"signature"` | ||
|
||
// SingleLine is a single line describing the symbol. | ||
// This is recommended only for use in clients that show a single line for hover. | ||
SingleLine string | ||
SingleLine string `json:"singleLine"` | ||
|
||
// SymbolName is the human-readable name to use for the symbol in links. | ||
SymbolName string | ||
SymbolName string `json:"symbolName"` | ||
|
||
// LinkPath is the path of the package enclosing the given symbol, | ||
// with the module portion (if any) replaced by "module@version". | ||
// | ||
// For example: "github.com/google/go-github/[email protected]/github". | ||
// | ||
// Use LinkTarget + "/" + LinkPath + "#" + LinkAnchor to form a pkgsite URL. | ||
LinkPath string | ||
LinkPath string `json:"linkPath"` | ||
|
||
// LinkAnchor is the pkg.go.dev link anchor for the given symbol. | ||
// For example, the "Node" part of "pkg.go.dev/go/ast#Node". | ||
LinkAnchor string | ||
LinkAnchor string `json:"linkAnchor"` | ||
|
||
// New fields go below, and are unexported. The existing | ||
// exported fields are underspecified and have already | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters