coq-lsp icon indicating copy to clipboard operation
coq-lsp copied to clipboard

Goto definition doesn't work for record constructors

Open Alizter opened this issue 1 year ago • 1 comments

Record A := Build_A { }.

Locate Build_A.
(* Constructor Foo.Build_A *)
About Build_A.

If I do goto-definition on Build_A on line 4, I would expect to be jumped to line 1 but nothing happens.

Other kinds of constructors like in:

Inductive foo := bar.
About bar.

Have the correct behaviour.

Alizter avatar Oct 10 '24 13:10 Alizter

coq/ast.ml needs fixing I think!

ejgallego avatar Oct 10 '24 22:10 ejgallego