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.
30 lines
1.2 KiB
Text
30 lines
1.2 KiB
Text
{"textDocument": {"uri": "file:///findReferences.lean"},
|
|
"position": {"line": 3, "character": 5},
|
|
"context": {"includeDeclaration": true}}
|
|
[{"uri": "file:///findReferences.lean",
|
|
"range":
|
|
{"start": {"line": 3, "character": 4}, "end": {"line": 3, "character": 7}}},
|
|
{"uri": "file:///findReferences.lean",
|
|
"range":
|
|
{"start": {"line": 6, "character": 12}, "end": {"line": 6, "character": 15}}},
|
|
{"uri": "file:///findReferences.lean",
|
|
"range":
|
|
{"start": {"line": 7, "character": 12}, "end": {"line": 7, "character": 15}}}]
|
|
{"textDocument": {"uri": "file:///findReferences.lean"},
|
|
"position": {"line": 9, "character": 16},
|
|
"context": {"includeDeclaration": true}}
|
|
[{"uri": "file:///findReferences.lean",
|
|
"range":
|
|
{"start": {"line": 9, "character": 13}, "end": {"line": 9, "character": 40}}},
|
|
{"uri": "file:///src/Lean/Server/Test/Refs.lean",
|
|
"range":
|
|
{"start": {"line": 15, "character": 11},
|
|
"end": {"line": 15, "character": 16}}},
|
|
{"uri": "file:///src/Lean/Server/Test/Refs.lean",
|
|
"range":
|
|
{"start": {"line": 16, "character": 20},
|
|
"end": {"line": 16, "character": 25}}},
|
|
{"uri": "file:///src/Lean/Server/Test/Refs.lean",
|
|
"range":
|
|
{"start": {"line": 17, "character": 20},
|
|
"end": {"line": 17, "character": 25}}}]
|