Skip to content

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

@WardBrian

Description

@WardBrian

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

For example,

type ast = Comment of string

let ( !// ) s = Comment s

let header = !//"This file generated by %%NAME%% "
(*            ^         *)

If I place my cursor at the point indicated by the ^, go-to-definition does nothing. By contrast, if the line is

let header = (!//)"This file generated by %%NAME%% "

Then go-to-definiton does work. Obviously this is not preferrable for unary operators, and defeats the purpose for binary ones.

Apologies if this issue belongs in ocamllsp or some other repo, I'm happy to re-create it there if so.

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