Skip to content

Commit

Permalink
internal/lsp: swallow hover error over identifier not found
Browse files Browse the repository at this point in the history
Fixes golang/go#32967

Change-Id: I41245582f95f8a31e0d1990eac7aeb2a9c29cf05
GitHub-Last-Rev: 5d257b6
GitHub-Pull-Request: golang#140
Reviewed-on: https://go-review.googlesource.com/c/tools/+/186997
Run-TryBot: Rebecca Stambler <[email protected]>
Reviewed-by: Rebecca Stambler <[email protected]>
  • Loading branch information
Jorge Araya authored and stamblerre committed Jul 24, 2019
1 parent 8bb11ff commit 4e8ec5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/lsp/hover.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (s *Server) hover(ctx context.Context, params *protocol.TextDocumentPositio
}
ident, err := source.Identifier(ctx, view, f, identRange.Start)
if err != nil {
return nil, err
return nil, nil
}
hover, err := ident.Hover(ctx, s.preferredContentFormat == protocol.Markdown, s.hoverKind)
if err != nil {
Expand Down

0 comments on commit 4e8ec5a

Please sign in to comment.