Skip to content

Completion lists items multiple times, even for the same file #1786

Closed

Description

@DanTup

Screenshot 2019-06-10 at 4 16 35 pm

Here, the imports are duplicated - not just because they're imported from different files - the same auto-import file is listed multiple times.

real_def.dart contains the class, and both proxy1.dart and proxy2.dart re-export it. The completion lists proxy1.dart and proxy2.dart auto-imports twice each.

Activity

  1. added this to the v3.2.0 milestone on Jun 10, 2019
  2. DanTup commented on Jun 10, 2019

    @DanTup
    MemberAuthor

    This is because we loop through the server response and assume no dupes, but that's not correct (see dart-lang/sdk#37211). Will revisit this when it's clear whether clients should do this or the server will fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresis bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions