From 6d7cff9c0062d03c5a2dd1287c2956b81b203eba Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Wed, 2 Dec 2020 14:58:35 +0000 Subject: [PATCH] codefix: Fix LSP MenuCallback invocation (E119, not enough args) --- autoload/ale/codefix.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/ale/codefix.vim b/autoload/ale/codefix.vim index 69bf36fa..4a78063b 100644 --- a/autoload/ale/codefix.vim +++ b/autoload/ale/codefix.vim @@ -261,7 +261,10 @@ function! ale#codefix#HandleLSPResponse(conn_id, response) abort " Send the results to the menu callback, if set. if l:MenuCallback isnot v:null - call l:MenuCallback(map(copy(l:result), '[''lsp'', v:val]')) + call l:MenuCallback( + \ l:data, + \ map(copy(l:result), '[''lsp'', v:val]') + \) return endif