Fix the didSave tests so they work in NeoVim 0.1.7, and do not send the message for tsserver
This commit is contained in:
parent
042dec059a
commit
a5ec4143d2
2 changed files with 15 additions and 4 deletions
|
@ -16,13 +16,21 @@ Before:
|
|||
let g:message_list = []
|
||||
let g:Callback = ''
|
||||
|
||||
function! LanguageCallback() abort
|
||||
return 'foobar'
|
||||
endfunction
|
||||
|
||||
function! ProjectRootCallback() abort
|
||||
return expand('.')
|
||||
endfunction
|
||||
|
||||
call ale#linter#Define('foobar', {
|
||||
\ 'name': 'dummy_linter',
|
||||
\ 'lsp': 'stdio',
|
||||
\ 'command': 'cat - > /dev/null',
|
||||
\ 'executable': has('win32') ? 'cmd' : 'echo',
|
||||
\ 'language_callback': {buffer -> 'foobar'},
|
||||
\ 'project_root_callback': {buffer -> expand('.')},
|
||||
\ 'language_callback': 'LanguageCallback',
|
||||
\ 'project_root_callback': 'ProjectRootCallback',
|
||||
\ })
|
||||
let g:ale_linters = {'foobar': ['dummy_linter']}
|
||||
|
||||
|
@ -48,6 +56,9 @@ After:
|
|||
unlet! g:Callback
|
||||
unlet! g:message_list
|
||||
|
||||
delfunction LanguageCallback
|
||||
delfunction ProjectRootCallback
|
||||
|
||||
call ale#test#RestoreDirectory()
|
||||
call ale#linter#Reset()
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue