# Wait for the LSP server to load and process a file. This works by waiting
# for a certain number of diagnostic messages from the server.
def g:WaitForServerFileLoad(diagCount: number)
- redraw!
+ :redraw!
var waitCount = diagCount
if waitCount == 0
# Introduce a temporary diagnostic
END
setline(1, lines)
- g:WaitForServerFileLoad(5)
:redraw!
+ :sleep 3
+ g:WaitForServerFileLoad(5)
:LspDiagShow
var qfl: list<dict<any>> = getloclist(0)
assert_equal('quickfix', getwinvar(winnr('$'), '&buftype'))
]
setline(1, lines)
+ :redraw!
+ :sleep 3
g:WaitForServerFileLoad(0)
cursor(8, 1)