1
0
mirror of https://github.com/golang/go synced 2024-11-18 18:54:42 -07:00
go/internal/lsp/source
Suzy Mueller abb7e64e89 internal/lsp: include declaration for references
A client can specify "IncludeDeclaration" in its ReferenceParams.
When they do so, we want to include the declaration, even if it was not
in the scope we searched for references.

Additionally, we also return the location of the declaration first in
the result array when it is included in the results.

Updates golang/go#32572

Change-Id: I12837cd98102ee8d531f0f4bac2fb7bded2564c0
Reviewed-on: https://go-review.googlesource.com/c/tools/+/184723
Run-TryBot: Suzy Mueller <suzmue@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-07-03 18:39:24 +00:00
..
analysis.go internal/lsp: update analysis runner for new features 2019-06-14 15:20:01 +00:00
completion_format.go internal/lsp: provide deep completion candidates 2019-06-27 18:58:03 +00:00
completion_snippet.go internal/lsp: provide deep completion candidates 2019-06-27 18:58:03 +00:00
completion.go internal/lsp: improve completion support for untyped constants 2019-07-03 16:30:32 +00:00
deep_completion.go internal/lsp: provide deep completion candidates 2019-06-27 18:58:03 +00:00
diagnostics_test.go internal/span: change URI.Filename so it just returns the filename 2019-06-10 21:39:43 +00:00
diagnostics.go internal/lsp: plumb suggested fixes through the LSP 2019-06-26 21:02:18 +00:00
enums.go internal/lsp: switch completion item tests to using the enum strings 2019-04-17 17:57:43 +00:00
format.go internal/lsp, internal/imports: use the internal goimports library 2019-07-01 19:45:22 +00:00
highlight.go internal/lsp: separate refactorings out of memoization CL 2019-06-25 16:04:30 +00:00
hover.go internal/lsp: add configuration for hover levels 2019-07-03 17:17:32 +00:00
identifier.go internal/lsp: support a file belonging to multiple packages 2019-06-26 17:56:19 +00:00
references.go internal/lsp: include declaration for references 2019-07-03 18:39:24 +00:00
rename_check.go internal/lsp: separate refactorings out of memoization CL 2019-06-25 16:04:30 +00:00
rename.go internal/lsp: support renaming import specs 2019-07-02 14:51:11 +00:00
signature_help.go internal/lsp: add configuration for hover levels 2019-07-03 17:17:32 +00:00
source_test.go internal/lsp: add configuration for hover levels 2019-07-03 17:17:32 +00:00
suggested_fix_experimental.go internal/lsp: plumb suggested fixes through the LSP 2019-06-26 21:02:18 +00:00
suggested_fix.go internal/lsp: plumb suggested fixes through the LSP 2019-06-26 21:02:18 +00:00
symbols.go internal/lsp: separate refactorings out of memoization CL 2019-06-25 16:04:30 +00:00
util.go internal/lsp: improve completion support for type conversions 2019-07-01 17:57:14 +00:00
view.go internal/lsp, internal/imports: use the internal goimports library 2019-07-01 19:45:22 +00:00