Skip to content

Diagnostic range for unreachable code should stretch to the end of the function #25384

Closed
@mhegazy

Description

@mhegazy

The current diagnostic for unreachable code is the first token, which is rather subtle..

image

The quick fix will correctly remove all the used code. the diagnostic should be have similarly. we should consider reusing the same code from the quick fix to generate the diagnostic spans

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions