Skip to content

Duplicate code actions appear in quick-fix when two diagnostics have similar fixes on the same line #2960

@DanTup

Description

@DanTup

We already de-dupe actions that have the same fix (eg. multiple "Import library foo" actions), but those that have their own fixes still show up multiple times.

Nov-17-2020 10-45-37

When the titles are the same, we should pick the one closest to the caret (or in the case of a range, the start of the range).

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