# Wait for a response message from the LSP server for the request "req"
# Waits for a maximum of 5 seconds
def s:waitForReponse(lspserver: dict<any>, req: dict<any>)
- var maxCount: number = 500
+ var maxCount: number = 2500
var key: string = req.id->string()
while lspserver.requests->has_key(key) && maxCount > 0
- sleep 10m
+ sleep 2m
maxCount -= 1
endwhile
enddef
SETLOCAL
SET VIMPRG="vim.exe"
-SET VIM_CMD=%VIMPRG% -u NONE -U NONE -i NONE --noplugin -N
+SET VIM_CMD=%VIMPRG% -u NONE -U NONE -i NONE --noplugin -N --not-a-term
%VIM_CMD% -S unit_tests.vim
# Script to run the unit-tests for the LSP Vim plugin
VIMPRG=${VIMPRG:=/usr/bin/vim}
-VIM_CMD="$VIMPRG -u NONE -U NONE -i NONE --noplugin -N"
+VIM_CMD="$VIMPRG -u NONE -U NONE -i NONE --noplugin -N --not-a-term"
$VIM_CMD -S unit_tests.vim