You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
gopls/internal/golang: consolidate imports from both file in qualifier
This commit improves qualifier by consolidating imports from both the
main file (x.go) and its corresponding test file (x_test.go).
An imports map is used to track all import paths and their local
renames. Imports from x_test.go are prioritized over x.go as gopls
is generating test in x_test.go.
This ensures that the generated qualifier correctly reflects any
necessary renames, improving accuracy and consistency.
For golang/vscode-go#1594
Change-Id: I457d5f22f7de4fe86006b57487f243494c8e7f6f
Reviewed-on: https://go-review.googlesource.com/c/tools/+/622320
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Robert Findley <[email protected]>
Auto-Submit: Hongxiang Jiang <[email protected]>
0 commit comments