mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-30 22:55:30 +08:00
Merge branch 'master' into do-not-save-on-autoimport
This commit is contained in:
@@ -432,6 +432,12 @@ Execute(HandleUserData should call ale#code_action#HandleCodeAction):
|
||||
\})
|
||||
AssertEqual g:handle_code_action_called, 2
|
||||
|
||||
let b:ale_completion_info = {'source': 'ale-callback'}
|
||||
call ale#completion#HandleUserData({
|
||||
\ 'user_data': '{"codeActions": [{"description":"", "changes": []}]}'
|
||||
\})
|
||||
AssertEqual g:handle_code_action_called, 3
|
||||
|
||||
Execute(ale#code_action#HandleCodeAction should not be called when when source is not ALE):
|
||||
call MockHandleCodeAction()
|
||||
let b:ale_completion_info = {'source': 'syntastic'}
|
||||
|
||||
@@ -190,10 +190,8 @@ Execute(The right message sent to the tsserver LSP when the first completion mes
|
||||
\ 'source': '/path/to/foo.ts',
|
||||
\ }, {
|
||||
\ 'name': 'FooBar',
|
||||
\ 'source': '',
|
||||
\ }, {
|
||||
\ 'name': 'frazzle',
|
||||
\ 'source': '',
|
||||
\ }],
|
||||
\ 'offset': 1,
|
||||
\ 'line': 1,
|
||||
|
||||
Reference in New Issue
Block a user