1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:54:42 -07:00
go/internal/lsp/cmd
Rebecca Stambler 786dcba013 internal/lsp: respect References.IncludeDeclaration setting
Previously, (*IdentifierInfo).References was returning the declaration
of the identifier among the reference results. This change alters the
behavior of this function to only ever return non-declaration
references. Declarations can be accessed through the
IdentifierInfo.Declaration field.

Fixes golang/go#36007

Change-Id: I91d82b7e6d0d51a2468d3df67f666834d2905250
Reviewed-on: https://go-review.googlesource.com/c/tools/+/210238
Run-TryBot: Rebecca Stambler <rstambler@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
2019-12-06 20:05:57 +00:00
..
test internal/lsp: respect References.IncludeDeclaration setting 2019-12-06 20:05:57 +00:00
capabilities_test.go internal/lsp: make sure CodeAction.Command is a pointer 2019-11-27 20:10:27 +00:00
check.go internal/lsp: don't run analyses on the entire view 2019-11-25 22:48:44 +00:00
cmd_test.go internal/lsp: fix a race in the command line tests 2019-11-22 16:15:56 +00:00
cmd.go tools/gopls: add cmd support for highlight 2019-11-26 20:36:08 +00:00
definition.go internal/lsp: show errors when the user is in the wrong directory 2019-09-17 21:41:55 +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
folding_range.go tools/gopls: add cmd support for folding_ranges 2019-11-12 00:55:09 +00:00
format.go internal/lsp: address staticcheck warnings 2019-10-04 02:16:23 +00:00
highlight.go internal/lsp: add control flow highlighting for functions 2019-12-02 19:01:20 +00:00
implementation.go tools/gopls: add cmd support for implementation 2019-11-25 20:27:09 +00:00
imports.go internal/lsp: fix the return type of CodeAction() 2019-11-19 17:57:05 +00:00
info.go internal/lsp/cmd: use x/tools/gopls as the gopls bug prefix 2019-12-05 01:26:23 +00:00
links.go tools/gopls: add command line support for links 2019-11-01 17:18:15 +00:00
query.go tools/internal/tool: refactor tool.Main() for testabilty 2019-09-19 22:27:22 +00:00
references.go internal/lsp/source: add support for references in the same workspace 2019-11-14 20:04:27 +00:00
rename.go internal/lsp/cmd: don't create .orig files for rename by default 2019-11-19 21:08:41 +00:00
serve.go internal/lsp: only construct a cache when we need to 2019-11-19 22:36:39 +00:00
signature.go tools/gopls: add cmd support for signature 2019-10-31 22:07:37 +00:00
suggested_fix.go internal/lsp: fix the return type of CodeAction() 2019-11-19 17:57:05 +00:00
symbols.go internal/lsp: reorganize the generated Go code for the lsp protocol 2019-11-18 19:51:19 +00:00