Skip to content

Definition return invalid Range #779

Closed
@aspeddro

Description

@aspeddro

https://github.com/rescript-association/rescript-lang.org/blob/aae97c5029e8c304a2ddba7eac5bd234f7a08217/src/Playground.res#LL1386C14-L1386C14

Res constructor, col 13

dune exec -- rescript-editor-analysis definition ~/Desktop/projects/rescript-lang.org/src/Playground.res 1385 13
{"uri": "file:///home/pedro/Desktop/projects/rescript-lang.org/src/bindings/RescriptCompilerApi.resi", "range": {"start": {"line": 0, "character": -1}, "end": {"line": 0, "character": -1}}}

The typeDefinition command return the correct range.

dune exec -- rescript-editor-analysis typeDefinition ~/Desktop/projects/rescript-lang.org/src/Playground.res 1385 13
{"uri": "file:///home/pedro/Desktop/projects/rescript-lang.org/src/bindings/RescriptCompilerApi.resi", "range": {"start": {"line": 9, "character": 2}, "end": {"line": 12, "character": 9}}}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions