Closed mbana closed 5 years ago
WIP: Needs more work and input. I don't expect this PR to be approved, I guess I am just asking for input on how to improve the implementation
Changes:
LangHandler:getImportPackage
goast.SearchImportPackage
LangHandler:findComments
langserver/hover.go
langserver/internal/source/hover.go
FindComments
PullComments
packageDoc
joinCommentGroups
https://microsoft.github.io/language-server-protocol/specification#textDocument_completion
Screenshot:
See: https://github.com/saibing/bingo/issues/91
@mbana
thank your great work
WIP: Needs more work and input. I don't expect this PR to be approved, I guess I am just asking for input on how to improve the implementation
Changes:
LangHandler:getImportPackage
and callgoast.SearchImportPackage
directly.LangHandler:findComments
fromlangserver/hover.go
tolangserver/internal/source/hover.go
asFindComments
.FindComments
and introduce new functionPullComments
.packageDoc
fromlangserver/hover.go
tolangserver/internal/source/hover.go
.joinCommentGroups
fromlangserver/hover.go
tolangserver/internal/source/hover.go
.https://microsoft.github.io/language-server-protocol/specification#textDocument_completion
Screenshot:
See: https://github.com/saibing/bingo/issues/91