Skip to content

Go-to-definition does not work on custom operators #1915

Open
@WardBrian

Description

@WardBrian

Go-to-definition doesn't work on (all) custom operators, which would be very useful for navigating DSLs.

For example,

let ( := ) v a = Printf.printf "%s = %d" v a
let () = "foo" := 3
(*              ^ *)

If I place my cursor at the point indicated by the ^, go-to-definition does nothing.

Similarly, for custom indexing operators:

let (.%{;..}) a k = Printf.printf "%s.coeffRef(%d);\n" a k.(0)
let (.%{ }) a k = Printf.printf "%s.coeffRef(%d);\n" a k
let name = "baz"
let () = name.%{2;4}
let () = name.%{5}

Placing the cursor at the % on either like 4 or 5 does not succeed.

Originally opened as ocamllabs/vscode-ocaml-platform#1766

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions