lean4-htt/tests/lean/interactive/terminationBySuggestion.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

80 lines
2.8 KiB
Text

{"textDocument": {"uri": "file:///terminationBySuggestion.lean"},
"range":
{"start": {"line": 4, "character": 5}, "end": {"line": 4, "character": 5}},
"context": {"diagnostics": []}}
[{"title": "Try this: termination_by (n, m)",
"kind": "quickfix",
"isPreferred": true,
"edit":
{"documentChanges":
[{"textDocument":
{"version": 1, "uri": "file:///terminationBySuggestion.lean"},
"edits":
[{"range":
{"start": {"line": 4, "character": 0},
"end": {"line": 4, "character": 15}},
"newText": "termination_by (n, m)"}]}]}}]
{"textDocument": {"uri": "file:///terminationBySuggestion.lean"},
"range":
{"start": {"line": 11, "character": 5}, "end": {"line": 11, "character": 5}},
"context": {"diagnostics": []}}
[{"title": "Try this: termination_by structural n",
"kind": "quickfix",
"isPreferred": true,
"edit":
{"documentChanges":
[{"textDocument":
{"version": 1, "uri": "file:///terminationBySuggestion.lean"},
"edits":
[{"range":
{"start": {"line": 11, "character": 0},
"end": {"line": 11, "character": 15}},
"newText": "termination_by structural n"}]}]}}]
{"textDocument": {"uri": "file:///terminationBySuggestion.lean"},
"range":
{"start": {"line": 17, "character": 5}, "end": {"line": 17, "character": 5}},
"context": {"diagnostics": []}}
[{"title": "Try this: termination_by structural x => x",
"kind": "quickfix",
"isPreferred": true,
"edit":
{"documentChanges":
[{"textDocument":
{"version": 1, "uri": "file:///terminationBySuggestion.lean"},
"edits":
[{"range":
{"start": {"line": 17, "character": 0},
"end": {"line": 17, "character": 15}},
"newText": "termination_by structural x => x"}]}]}}]
{"textDocument": {"uri": "file:///terminationBySuggestion.lean"},
"range":
{"start": {"line": 24, "character": 5}, "end": {"line": 24, "character": 5}},
"context": {"diagnostics": []}}
[{"title": "Try this: termination_by n",
"kind": "quickfix",
"isPreferred": true,
"edit":
{"documentChanges":
[{"textDocument":
{"version": 1, "uri": "file:///terminationBySuggestion.lean"},
"edits":
[{"range":
{"start": {"line": 24, "character": 0},
"end": {"line": 24, "character": 15}},
"newText": "termination_by n"}]}]}}]
{"textDocument": {"uri": "file:///terminationBySuggestion.lean"},
"range":
{"start": {"line": 31, "character": 5}, "end": {"line": 31, "character": 5}},
"context": {"diagnostics": []}}
[{"title": "Try this: termination_by x1 => x1",
"kind": "quickfix",
"isPreferred": true,
"edit":
{"documentChanges":
[{"textDocument":
{"version": 1, "uri": "file:///terminationBySuggestion.lean"},
"edits":
[{"range":
{"start": {"line": 31, "character": 0},
"end": {"line": 31, "character": 15}},
"newText": "termination_by x1 => x1"}]}]}}]