File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 3
3
" options = {
4
4
" 'server': '', " optional
5
5
" }
6
- function ! lsp#internal#diagnostics#under_cursor#get_diagnostic () abort
6
+ function ! lsp#internal#diagnostics#under_cursor#get_diagnostic (... ) abort
7
7
let l: options = get (a: 000 , 0 , {})
8
8
let l: server = get (l: options , ' server' , ' ' )
9
9
let l: bufnr = bufnr (' %' )
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function! lsp#ui#vim#code_action#do(option) abort
39
39
let l: bufnr = bufnr (' %' )
40
40
let l: command_id = lsp#_new_command ()
41
41
for l: server_name in l: server_names
42
- let l: diagnostic = lsp#internal#diagnostics#under_cursor#get_diagnostic (l: server_name )
42
+ let l: diagnostic = lsp#internal#diagnostics#under_cursor#get_diagnostic ({ ' server ' : l: server_name} )
43
43
call lsp#send_request (l: server_name , {
44
44
\ ' method' : ' textDocument/codeAction' ,
45
45
\ ' params' : {
You can’t perform that action at this time.
0 commit comments