lean4-htt/tests/lean/interactive/interactiveGoalPopups.lean.expected.out
Marc Huisinga dfd3d18530
test: improve language server test coverage (#10574)
This PR significantly improves the test coverage of the language server,
providing at least a single basic test for every request that is used by
the client. It also implements infrastructure for testing all of these
requests, e.g. the ability to run interactive tests in a project context
and refactors the interactive test runner to be more maintainable.
Finally, it also fixes a small bug with the recently implemented unknown
identifier code actions for auto-implicits (#10442) that was discovered
in testing, where the "import all unambiguous unknown identifiers" code
action didn't work correctly on auto-implicit identifiers.
2025-09-30 11:15:03 +00:00

61 lines
2 KiB
Text

{"textDocument": {"uri": "file:///interactiveGoalPopups.lean"},
"position": {"line": 14, "character": 2}}
{"goals":
[{"type":
{"tag": [{"subexprPos": "/", "info": {"p": "4"}}, {"text": "MyTrue"}]},
"mvarId": "[anonymous]",
"isRemoved": true,
"hyps":
[{"type":
{"tag": [{"subexprPos": "/", "info": {"p": "0"}}, {"text": "MyNat"}]},
"names": ["x"],
"fvarIds": []},
{"type":
{"tag":
[{"subexprPos": "/", "info": {"p": "1"}},
{"append":
[{"text": "MyEq "},
{"tag": [{"subexprPos": "/0/1", "info": {"p": "2"}}, {"text": "x"}]},
{"text": " "},
{"tag": [{"subexprPos": "/1", "info": {"p": "3"}}, {"text": "x"}]}]}]},
"names": ["h"],
"fvarIds": []}],
"goalPrefix": "⊢ ",
"ctx": {"p": "5"}}]}
Popups for type of x:
Popup for MyNat:
{"p": "0"}
{"type": {"tag": [{"subexprPos": "/", "info": {"p": "6"}}, {"text": "Type"}]},
"exprExplicit": {"text": "MyNat"},
"doc": "MyNat doc "}
Popups for type of h:
Popup for MyEq x x:
{"p": "1"}
{"type": {"tag": [{"subexprPos": "/", "info": {"p": "7"}}, {"text": "Prop"}]},
"exprExplicit":
{"append":
[{"text": "@"},
{"tag": [{"subexprPos": "/0/0/0", "info": {"p": "8"}}, {"text": "MyEq"}]},
{"text": " "},
{"tag": [{"subexprPos": "/0/0/1", "info": {"p": "9"}}, {"text": "MyNat"}]},
{"text": " "},
{"tag": [{"subexprPos": "/0/1", "info": {"p": "10"}}, {"text": "x"}]},
{"text": " "},
{"tag": [{"subexprPos": "/1", "info": {"p": "11"}}, {"text": "x"}]}]},
"doc": null}
Popup for x:
{"p": "2"}
{"type": {"tag": [{"subexprPos": "/", "info": {"p": "12"}}, {"text": "MyNat"}]},
"exprExplicit": {"text": "x"},
"doc": null}
Popup for x:
{"p": "3"}
{"type": {"tag": [{"subexprPos": "/", "info": {"p": "13"}}, {"text": "MyNat"}]},
"exprExplicit": {"text": "x"},
"doc": null}
Popups for type of goal:
Popup for MyTrue:
{"p": "4"}
{"type": {"tag": [{"subexprPos": "/", "info": {"p": "14"}}, {"text": "Prop"}]},
"exprExplicit": {"text": "MyTrue"},
"doc": "MyTrue doc "}