Skip to content

Jump to definition in JSX goes to wrong file when there's a type error #156

Closed
@bsansouci

Description

@bsansouci

Hey all! I'm testing the beta from here https://forum.rescript-lang.org/t/ann-new-rescript-vscode-beta-testers-needed/1518

Everything works great! But when I introduce a type error, and then it jumps to some different and unrelated file. Here's the code that type checks, and I can cmd+click on ThirdPane to get to the right file and place.

<ThirdPane>
        <div>
          {ReasonReact.string(unwrapWithDefault(obj.headline, "[No headline]"))}
        </div>
</ThirdPane>

If I introduce my type error by switching obj.headline to an int 10:

<ThirdPane>
        <div>
          {ReasonReact.string(unwrapWithDefault(10, "[No headline]"))}
        </div>
</ThirdPane>

then cmd+click on ThirdPane will lead me to React.re line 3, which is the external called null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    jsxIssue with ppx for JSX

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions