Skip to content

"Surround with if" and other fixes result in incorrect selections #3869

@DanTup

Description

@DanTup

Highlighting print(0); and using the "surround with if" assist results in a bad selection.

My feeling is that condition should be selected (either as a $1 with a $0 on the end, or just as $0).

Screenshot 2022-03-09 at 18 25 23

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