镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Jump to def doesn't work inside JSX fragment  #182

Closed

Description

@bsansouci

Here's the code I have, and cmd+click on SectionHeader, the tool jumps to React.re on line 3.

<>
      <SectionHeader>
            {ReasonReact.string(heading)}
      </SectionHeader>
</>

Activity

  1. cristianoc commented on Apr 27, 2021

    @cristianoc
    Collaborator

    This is in a series of issues related to JSX ppx that we should solve from first principles.
    Currently:

    1. the ppx generates several symbols at the same location.
    2. the editor tries to heuristically figure out what's going on: which of the symbols at that same location it should deal with.

    There are several issues posted these days in this repo, that have the same root.
    Planning to investigate this starting from the react ppx level first.
    ++ @rickyvetter

  2. cristianoc commented on Apr 27, 2021

    @cristianoc
    Collaborator

    These probably related:
    #181
    #180
    #177

  3. bsansouci commented on Apr 28, 2021

    @bsansouci
    ContributorAuthor

    I just opened #183 which is probably related as well

  4. cristianoc commented on Apr 28, 2021

    @cristianoc
    Collaborator

    Labeling all these with jsx meaning: not going to address them separately from changes to the ppx for JSX.

  5. added a commit that references this issue on May 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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