-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
Showing
2 changed files
with
134 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters