Skip to content

Inline Values is not aware of conditional branches and may show for code that's not executed #5454

@DanTup

Description

@DanTup

For example here, the branch was not taken, but it's where we're showing the inline value:

Image

There's no way the analysis server can know which code paths were taken, so we need to use some rules that aren't affected which branches are taken. That might leaving it as it is, or might mean excluding all branches (except the current one - although that itself may be risky because we don't know how reliable the "execution pointer" position we're given is).

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