File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -160,13 +160,12 @@ end
160160
161161--- Wait a few seconds for line diagnostics, erroring if none arrive.
162162function helpers .wait_for_line_diagnostics ()
163+ local params = vim .lsp .util .make_position_params (0 , ' utf-16' )
163164 local succeeded , _ = vim .wait (15000 , function ()
164- if progress .at (vim . lsp . util . make_position_params () ) == progress .Kind .processing then
165+ if progress .at (params ) == progress .Kind .processing then
165166 return false
166167 end
167- local diagnostics = util .lean_lsp_diagnostics {
168- lnum = vim .api .nvim_win_get_cursor (0 )[1 ] - 1 ,
169- }
168+ local diagnostics = util .lean_lsp_diagnostics { lnum = params .position .line }
170169 return # diagnostics > 0
171170 end )
172171 assert .message (' Waited for line diagnostics but none came.' ).True (succeeded )
You can’t perform that action at this time.
0 commit comments