-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong sort order in autocomplete list. #2673
Comments
What version of HLS are you using ? |
I'm using haskell-language-server-1.6.1.0-linux-8.10.7 |
I can't seem to repro this |
I dumped the vscode and hls conversations and found that the functions are in the correct order. The reordering happens somewhere on the side of the vscode. So, this is not haskell-language-server issue. |
oh, that is unfortunate if we can't track the root cause, maybe something still could be done in the sever part to make the client behave correctly maybe it worths a issue in the vscode extension? do you mind if I reopen and move this there? |
I don't mind I found additional info, that can help reproduce the bug. |
Co-authored-by: Javier Neira <[email protected]>
Your environment
Which OS do you use: Ubuntu 20.04
Which LSP client (editor/plugin) do you use: VS Code
Describe your project (alternative: link to the project): stack new-template with added bytestring dependency
Steps to reproduce
Modify file Main.hs to this:
place cursor after
BS.read
and invoke autocomplete.Expected behaviour
Function
readFile
fromData.ByteString
on first position, before all other functions that not fromData.ByteString
Actual behaviour
Function
readFile
on fourth position.The first three positions are occupied by functions
read
fromGHC.IO.Device
,Prelude
,Text.Read
.The text was updated successfully, but these errors were encountered: