mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Fix #1166 - Add an option for the rls toolchain
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
Before:
|
||||
Save g:ale_rust_rls_executable
|
||||
Save g:ale_rust_rls_toolchain
|
||||
|
||||
unlet! g:ale_rust_rls_executable
|
||||
unlet! g:ale_rust_rls_toolchain
|
||||
|
||||
runtime ale_linters/rust/rls.vim
|
||||
|
||||
@@ -16,7 +18,14 @@ After:
|
||||
Execute(The default executable path should be correct):
|
||||
AssertEqual 'rls', ale_linters#rust#rls#GetExecutable(bufnr(''))
|
||||
AssertEqual
|
||||
\ ale#Escape('rls') . ' +nightly',
|
||||
\ ale#Escape('rls') . ' +' . ale#Escape('nightly'),
|
||||
\ ale_linters#rust#rls#GetCommand(bufnr(''))
|
||||
|
||||
Execute(The toolchain should be configurable):
|
||||
let g:ale_rust_rls_toolchain = 'stable'
|
||||
|
||||
AssertEqual
|
||||
\ ale#Escape('rls') . ' +' . ale#Escape('stable'),
|
||||
\ ale_linters#rust#rls#GetCommand(bufnr(''))
|
||||
|
||||
Execute(The language string should be correct):
|
||||
|
||||
Reference in New Issue
Block a user