mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 20:54:26 +08:00
#4454 Clean up more tests and code
* Remove some tests we no longer need * Delete blocks of redundant code * Compress some tests together to simplify them * Remove a little code for ancient linter versions * Escape more executables we didn't escape before * Rename a deno option that didn't match our conventions
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
call ale#Set('deno_executable', 'deno')
|
||||
call ale#Set('deno_unstable', 0)
|
||||
call ale#Set('deno_importMap', 'import_map.json')
|
||||
call ale#Set('deno_import_map', 'import_map.json')
|
||||
call ale#Set('deno_lsp_project_root', '')
|
||||
|
||||
function! ale#handlers#deno#GetExecutable(buffer) abort
|
||||
@@ -68,8 +68,19 @@ function! ale#handlers#deno#GetInitializationOptions(buffer) abort
|
||||
let l:options.unstable = v:true
|
||||
endif
|
||||
|
||||
if ale#Var(a:buffer, 'deno_importMap') isnot# ''
|
||||
let l:options.importMap = ale#path#FindNearestFile(a:buffer, ale#Var(a:buffer, 'deno_importMap'))
|
||||
" Look for a value set using the historical option name.
|
||||
let l:import_map = getbufvar(
|
||||
\ a:buffer,
|
||||
\ 'ale_deno_importMap',
|
||||
\ get(g:, 'ale_deno_importMap', '')
|
||||
\)
|
||||
|
||||
if empty(l:import_map)
|
||||
let l:import_map = ale#Var(a:buffer, 'deno_import_map')
|
||||
endif
|
||||
|
||||
if !empty(l:import_map)
|
||||
let l:options.importMap = ale#path#FindNearestFile(a:buffer, l:import_map)
|
||||
endif
|
||||
|
||||
return l:options
|
||||
|
||||
Reference in New Issue
Block a user