-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Closed
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.
Milestone
Description
Repro (assuming completeUnimported=true is configured):
- Create a new module with contents:
package main
func main() {
}
- Complete
rand.
. You should see suggestions from crypto/rand and math/rand. - Select
rand.Int
from "crypto/rand" - Delete line and save ("crypto/rand" import should disappear).
- Wait a second to make sure "crypto/rand" package handle gets GC'd 😉
- Complete
rand.
again. Now you only see untyped completions from "crypto/rand". I expected to see typed completions from "crypto/rand" and completions from "math/rand".
See https://youtu.be/VaOs1crVI4g
/cc @stamblerre @heschik
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.This label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.Issues related to the Go language server, gopls.