diff options
author | ourigen <79729735+ourigen@users.noreply.github.com> | 2021-03-12 11:40:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 20:40:40 +0900 |
commit | 80a48d01be663205b92902ca3fa137706e3e88c6 (patch) | |
tree | 7dade66643a9304c6c80890fdbc365834a585545 /test/command_callback/test_texlab_command_callbacks.vader | |
parent | c21d6afd2fb799013e3894d393bf976d9da31e65 (diff) | |
download | ale-80a48d01be663205b92902ca3fa137706e3e88c6.zip |
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.
Diffstat (limited to 'test/command_callback/test_texlab_command_callbacks.vader')
-rw-r--r-- | test/command_callback/test_texlab_command_callbacks.vader | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/command_callback/test_texlab_command_callbacks.vader b/test/command_callback/test_texlab_command_callbacks.vader index ca678d2b..c18793da 100644 --- a/test/command_callback/test_texlab_command_callbacks.vader +++ b/test/command_callback/test_texlab_command_callbacks.vader @@ -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' |