mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-20 11:11:13 +08:00
Fix texlab#GetProjectRoot (#3610)
* Fix texlab GetProjectRoot * Fix indents in texlab#GetProjectRoot * Prevent texlab from starting on every tex file * Update texlab Vader tests * Fix GetProjectRoot to return parent of .git Previously, the function returned `../.git/`. We want the function to return the parent directory above that as the project root. This should help pass Vader tests.
This commit is contained in:
@@ -14,7 +14,10 @@ Execute(The default executable path should be correct):
|
||||
AssertLinter 'texlab', ale#Escape('texlab')
|
||||
|
||||
Execute(The project root should be detected correctly):
|
||||
AssertLSPProject ''
|
||||
call ale#test#SetFilename('tex_paths/sample1.tex')
|
||||
silent! call mkdir('tex_paths/.git')
|
||||
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/tex_paths')
|
||||
|
||||
Execute(The executable should be configurable):
|
||||
let b:ale_tex_texlab_executable = 'foobar'
|
||||
|
||||
Reference in New Issue
Block a user