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

62 lines
2 KiB
Text

{"textDocument": {"uri": "file:///codeActions.lean"},
"range":
{"start": {"line": 56, "character": 4}, "end": {"line": 56, "character": 4}},
"context": {"diagnostics": []}}
[{"title": "foo",
"kind": "quickfix",
"edit":
{"documentChanges":
[{"textDocument": {"version": 1, "uri": "file:///codeActions.lean"},
"edits":
[{"range":
{"start": {"line": 56, "character": 0},
"end": {"line": 56, "character": 16}},
"newText": "foo"}]}]}}]
{"textDocument": {"uri": "file:///codeActions.lean"},
"range":
{"start": {"line": 59, "character": 2}, "end": {"line": 59, "character": 2}},
"context": {"diagnostics": []}}
[{"title": "bar",
"kind": "quickfix",
"edit":
{"documentChanges":
[{"textDocument": {"version": 1, "uri": "file:///codeActions.lean"},
"edits":
[{"range":
{"start": {"line": 59, "character": 0},
"end": {"line": 59, "character": 4}},
"newText": "#eval 0"}]}]}},
{"title": "foo",
"kind": "quickfix",
"edit":
{"documentChanges":
[{"textDocument": {"version": 1, "uri": "file:///codeActions.lean"},
"edits":
[{"range":
{"start": {"line": 59, "character": 0},
"end": {"line": 59, "character": 4}},
"newText": "foo"}]}]}}]
{"textDocument": {"uri": "file:///codeActions.lean"},
"range":
{"start": {"line": 62, "character": 18}, "end": {"line": 62, "character": 18}},
"context": {"diagnostics": []}}
[{"title": "foobar",
"kind": "quickfix",
"edit":
{"documentChanges":
[{"textDocument": {"version": 1, "uri": "file:///codeActions.lean"},
"edits":
[{"range":
{"start": {"line": 62, "character": 17},
"end": {"line": 62, "character": 18}},
"newText": "\"foobar\""}]}]}},
{"title": "foo",
"kind": "quickfix",
"edit":
{"documentChanges":
[{"textDocument": {"version": 1, "uri": "file:///codeActions.lean"},
"edits":
[{"range":
{"start": {"line": 62, "character": 0},
"end": {"line": 62, "character": 18}},
"newText": "foo"}]}]}}]