1
0
mirror of https://github.com/golang/go synced 2024-11-18 20:54:40 -07:00
go/internal/lsp/source
Suzy Mueller 9065c182e3 internal/lsp: fix bug renaming local vars with test files present
This fix adds all packages to the renamer packages map.

Renaming performs checks on each package to make sure there are no
conflicts. If there are multiple packages, each package needs to be
checked. The packages were being incorrectly added to the map and were
all being put under a single key.

Fixes golang/go#33664

Change-Id: I68466ce34ac49b700ce6d14ce0b53e2795926fa9
Reviewed-on: https://go-review.googlesource.com/c/tools/+/190399
Reviewed-by: Rebecca Stambler <rstambler@golang.org>
2019-08-15 14:43:58 +00:00
..
analysis.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
completion_format.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
completion_snippet.go internal/lsp: provide deep completion candidates 2019-06-27 18:58:03 +00:00
completion.go internal/lsp: add fuzzy completion matching 2019-08-14 16:13:50 +00:00
deep_completion.go internal/lsp: don't deep complete struct field names 2019-08-13 21:38:55 +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: use memoize package to cache source.Packages 2019-08-13 21:41:43 +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: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
highlight.go internal/lsp: use x/xerrors to create new errors 2019-08-06 19:46:56 +00:00
hover.go internal/lsp: support an experimental structured hover format 2019-08-12 21:55:50 +00:00
identifier.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
references.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
rename_check.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
rename.go internal/lsp: fix bug renaming local vars with test files present 2019-08-15 14:43:58 +00:00
signature_help.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
source_test.go internal/lsp: add fuzzy completion matching 2019-08-14 16:13:50 +00:00
suggested_fix.go go/analysis: remove +experimental build tag from suggested fixes 2019-08-08 19:51:39 +00:00
symbols.go internal/lsp: use memoize package to cache source.Packages 2019-08-13 21:41:43 +00:00
util.go internal/lsp: show "do not edit" message when user opens generated file 2019-08-07 16:44:42 +00:00
view.go internal/lsp: show generated warning on didChange, not didOpen 2019-08-13 21:47:29 +00:00