Skip to content

Renaming files doesn't update conditional imports #4529

@mosuem

Description

@mosuem

Describe the bug
Conditional imports have some problems:

  1. By default, the source file path is not checked, which can only be enabled through an optional lint. I think it should be the other way around, disabling the check should be a lint. - Discussion in Conditional imports not checked #4525
  2. There is no code completion for source file paths in conditional imports. Filename completion doesn't work for conditional imports #4530
  3. Renaming a file does not trigger renaming of the conditional import path (possibly related to 2., as they are not parsed as file references?).

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 bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions