mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Add support for the Lean 4 LSP, served by lake. (#4952)
This commit is contained in:
27
test/linter/test_lean_lake.vader
Normal file
27
test/linter/test_lean_lake.vader
Normal file
@@ -0,0 +1,27 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('lean', 'lake')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The default executable path should be correct):
|
||||
AssertLinter 'lake', ale#Escape('lake') . ' serve'
|
||||
|
||||
Execute(The project root should be detected correctly without a lakefile):
|
||||
AssertLSPProject '.'
|
||||
|
||||
Execute(The project root should be detected correctly from .toml):
|
||||
call ale#test#SetFilename('../test-files/lean/lakefile_toml/lakefile.toml')
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/lean/lakefile_toml')
|
||||
|
||||
Execute(The project root should be detected correctly from .lean):
|
||||
call ale#test#SetFilename('../test-files/lean/lakefile_lean/lakefile.lean')
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/lean/lakefile_lean')
|
||||
|
||||
Execute(The LSP values should be set correctly):
|
||||
call ale#test#SetFilename('../test-files/lean/lakefile_lean/Main.lean')
|
||||
|
||||
AssertLSPLanguage 'lean'
|
||||
AssertLSPOptions {}
|
||||
AssertLSPConfig {}
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/lean/lakefile_lean')
|
||||
0
test/test-files/lean/lakefile_lean/Main.lean
Normal file
0
test/test-files/lean/lakefile_lean/Main.lean
Normal file
0
test/test-files/lean/lakefile_lean/lakefile.lean
Normal file
0
test/test-files/lean/lakefile_lean/lakefile.lean
Normal file
0
test/test-files/lean/lakefile_toml/Main.lean
Normal file
0
test/test-files/lean/lakefile_toml/Main.lean
Normal file
0
test/test-files/lean/lakefile_toml/lakefile.toml
Normal file
0
test/test-files/lean/lakefile_toml/lakefile.toml
Normal file
Reference in New Issue
Block a user