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.
106 lines
1.4 KiB
Text
106 lines
1.4 KiB
Text
{"version": 1,
|
|
"uri": "file:///semanticTokens.lean",
|
|
"diagnostics":
|
|
[{"source": "Lean 4",
|
|
"severity": 3,
|
|
"range":
|
|
{"start": {"line": 2, "character": 0}, "end": {"line": 3, "character": 0}},
|
|
"message": "Goals accomplished!",
|
|
"leanTags": [2],
|
|
"isSilent": true,
|
|
"fullRange":
|
|
{"start": {"line": 2, "character": 0}, "end": {"line": 4, "character": 12}}},
|
|
{"tags": [1],
|
|
"source": "Lean 4",
|
|
"severity": 2,
|
|
"range":
|
|
{"start": {"line": 3, "character": 6}, "end": {"line": 3, "character": 7}},
|
|
"message":
|
|
"unused variable `y`\n\nNote: This linter can be disabled with `set_option linter.unusedVariables false`",
|
|
"fullRange":
|
|
{"start": {"line": 3, "character": 6}, "end": {"line": 3, "character": 7}}},
|
|
{"source": "Lean 4",
|
|
"severity": 3,
|
|
"range":
|
|
{"start": {"line": 6, "character": 0}, "end": {"line": 6, "character": 5}},
|
|
"message": "1",
|
|
"fullRange":
|
|
{"start": {"line": 6, "character": 0}, "end": {"line": 6, "character": 5}}}]}
|
|
{"textDocument": {"uri": "file:///semanticTokens.lean"},
|
|
"position": {"line": 6, "character": 2}}
|
|
{"data":
|
|
[0,
|
|
0,
|
|
3,
|
|
0,
|
|
0,
|
|
0,
|
|
10,
|
|
1,
|
|
1,
|
|
0,
|
|
0,
|
|
12,
|
|
1,
|
|
1,
|
|
0,
|
|
0,
|
|
2,
|
|
4,
|
|
2,
|
|
0,
|
|
1,
|
|
0,
|
|
3,
|
|
0,
|
|
0,
|
|
0,
|
|
10,
|
|
1,
|
|
1,
|
|
0,
|
|
0,
|
|
12,
|
|
1,
|
|
1,
|
|
0,
|
|
0,
|
|
5,
|
|
4,
|
|
2,
|
|
0,
|
|
1,
|
|
0,
|
|
7,
|
|
0,
|
|
0,
|
|
0,
|
|
14,
|
|
1,
|
|
1,
|
|
0,
|
|
1,
|
|
2,
|
|
3,
|
|
0,
|
|
0,
|
|
0,
|
|
4,
|
|
1,
|
|
1,
|
|
0,
|
|
0,
|
|
5,
|
|
1,
|
|
1,
|
|
0,
|
|
0,
|
|
2,
|
|
4,
|
|
2,
|
|
0,
|
|
3,
|
|
0,
|
|
5,
|
|
0,
|
|
0]}
|