Skip to content

Highlight all exit points (such as return/break/continue) in a function when the text cursor is on one #61170

@DanTup

Description

@DanTup

Slightly related to #50532. When the text cursor is in a return keyword, other returns for the same function should also be highlighted (via DocumentHighlights for LSP).

I think it also makes sense to do the same for yield, break and continue.

Question: Should we highlight both break and continues that have the same target? (I think yes.. @bwilkerson?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-lspIssues with analysis server's support of Language Server Protocoldevexp-serverIssues related to some aspect of the analysis servertype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions