1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:54:42 -07:00
go/internal/lsp/cmd
Muir Manders aa740d4807 internal/lsp: handle embedded struct pointer definitions
When jumping to definition of an embedded struct pointer, be sure to
unwrap the pointer type so you properly jump to the pointee type.

Also, fix jumping to definition of an embedded struct inside an
anonymous struct inside a struct. The embedded struct detection was
continuing too far and thinking it wasn't an embedded struct when it
saw the anonymous struct.

Fixes golang/go#31451

Change-Id: I96017764270712a2ae02a85306605495075d12e7
GitHub-Last-Rev: 9997f60855ebe37bcca2fecc1ba2a7b871f393d4
GitHub-Pull-Request: golang/tools#83
Reviewed-on: https://go-review.googlesource.com/c/tools/+/172583
Run-TryBot: Paul Jolly <paul@myitcv.org.uk>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Cottrell <iancottrell@google.com>
2019-04-20 18:18:00 +00:00
..
check_test.go internal/lsp: make pipe mode the default for command line tests 2019-04-01 16:30:59 +00:00
check.go internal/lsp: make definition use the lsp protocol 2019-04-05 17:02:55 +00:00
cmd_test.go internal/lsp: a cleaner way of doing overlays 2019-04-17 21:35:05 +00:00
cmd.go internal/lsp: check content format instead of assuming markdown 2019-04-17 21:38:10 +00:00
definition_test.go internal/lsp: handle embedded struct pointer definitions 2019-04-20 18:18:00 +00:00
definition.go internal/lsp: check content format instead of assuming markdown 2019-04-17 21:38:10 +00:00
export_test.go internal/lsp: refactor query definition test to allow adding a new test 2019-03-18 20:06:54 +00:00
query.go internal/lsp/cmd: fix a nil pointer and some minor clean-up 2019-02-06 04:15:39 +00:00
serve.go internal/lsp: add the ability to log back to the client 2019-04-01 16:22:08 +00:00