Skip to content

Bug report: Auto complete doesn't add import to show clause #5238

@Wdestroier

Description

@Wdestroier

Describe the bug
Completing a symbol name does not add it in the import show clause. Therefore, becoming very hard to use explicit imports with a show clause all the time.

Steps to reproduce the behavior:

  1. Write part of an existing class name and press the key to complete the class name
    image

  2. Press Enter to confirm and check it's not imported
    image

Expected behavior
The symbol should be imported and highlighted correctly.
image

  • Operating System and version: Windows 11 (Build 22631)
  • VS Code version: 1.92.2
  • Dart extension version: 3.94.0
  • Dart/Flutter SDK version: 3.94.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    in editorRelates to code editing or language featuresin lsp/analysis serverSomething to be fixed in the Dart analysis serveris bugrelies on sdk changesSomething that requires changes in the Dart/Flutter SDK to ship before it will become available

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions