Module autocompletion occasionally duplicates one of the segments #342
Labels
component: ghcide
type: bug
Something isn't right: doesn't work as intended, documentation is missing/outdated, etc..
Environment: VSCode
Release 0.3.0
tested module imports from fused-effects
Importing
Control.Car<tab>
results inControl.Carrier.Empty.Church
<- this is correctImporting
Control.Carrier.E<tab>
results inControl.Carrier.Carrier.Empty.Church
Importing
Control.Carrier.Empty.C<tab>
results inControl.Carrier.Empty.Empty.Church
This is stable across packages.
Hitting '.' the after the first segment kills the autocomplete window. Beginning the second segment starts a new autocomplete window with the submodule (without the first segment). Autocompleting during the second segment will work. But if you finish out to the third segment or later, it will always duplicate the first segment you started with.
If you go back and delete the Duplicate and try again, if dot is the last remaining character, the behavior will be correct. If you delete the dot as well, it will do the module segment duplication outlined above.
The behavior seems almost right. So I'm wondering if this is an easy thing for me to work on with zero experience with the LSP or HLS
The text was updated successfully, but these errors were encountered: