Closed mbana closed 5 years ago
Format anonymous struct in hoverIdent in langserver/hover.go:
hoverIdent
langserver/hover.go
prettyPrintTypesString
types.ObjectString(o, qf)
*types.PkgName
go/types.ObjectString
tests langserver/lsp_hover_test.go and langserver/lsp_test.go: call t.Helper()
langserver/lsp_hover_test.go
langserver/lsp_test.go
t.Helper()
Issue: https://github.com/saibing/bingo/issues/143
Format anonymous struct in
hoverIdent
inlangserver/hover.go
:prettyPrintTypesString
with the result oftypes.ObjectString(o, qf)
.*types.PkgName
callgo/types.ObjectString
instead ofprettyPrintTypesString
.tests
langserver/lsp_hover_test.go
andlangserver/lsp_test.go
: callt.Helper()
t.Helper()
in the test helpers methods so that when tests fail the actual place is printed instead of the helper method.Issue: https://github.com/saibing/bingo/issues/143