Skip to content

Wrong sort order in autocomplete list. #2673

Closed
@Akhristenko

Description

@Akhristenko

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:

module Main where

import qualified Data.ByteString as BS

main :: IO ()
main = do
    BS.read
    pure ()

place cursor after BS.read and invoke autocomplete.

Expected behaviour

Function readFile from Data.ByteString on first position, before all other functions that not from Data.ByteString

Actual behaviour

Function readFileon fourth position.
The first three positions are occupied by functions read from GHC.IO.Device, Prelude, Text.Read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: ghcidetype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions