summaryrefslogtreecommitdiff
path: root/test/completion/test_completion_events.vader
diff options
context:
space:
mode:
authorDonnie West <me@donniewest.com>2019-10-17 21:47:07 -0500
committerDonnie West <me@donniewest.com>2019-10-17 23:22:31 -0500
commitb27df1b169cabb12e94b102cd8b6a788b2c864b2 (patch)
tree409c5d9323678355cdaf432cc15cccce1ea77333 /test/completion/test_completion_events.vader
parentdfe9b7cc2650c03127c5f897767bcb85bc0bad1f (diff)
downloadale-b27df1b169cabb12e94b102cd8b6a788b2c864b2.zip
Allow code actions to work on callback based sources
Diffstat (limited to 'test/completion/test_completion_events.vader')
-rw-r--r--test/completion/test_completion_events.vader6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/completion/test_completion_events.vader b/test/completion/test_completion_events.vader
index e06ac98b..d70fefeb 100644
--- a/test/completion/test_completion_events.vader
+++ b/test/completion/test_completion_events.vader
@@ -431,6 +431,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'}