summaryrefslogtreecommitdiffstatshomepage
path: root/test/functional/vimscript/executable_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2026-02-20 02:38:14 +0800
committerGitHub <noreply@github.com>2026-02-19 10:38:14 -0800
commitdec3c6fa346b298e7feb72398f9fdd5d59c11444 (patch)
treef695b5fef7a0a9ee2981514705505bf9f759f1e5 /test/functional/vimscript/executable_spec.lua
parent08f4811061c9fde22b730e5d73f7fb49f61f7184 (diff)
test(lsp): fix fake LSP server timeout not working (#37970)
Problem: Fake LSP server does not timeout or respond to SIGTERM as it does not run the event loop. Solution: Instead of io.read(), use stdioopen()'s on_stdin callback to accumulate input and use vim.wait() to wait for input. Also, in the test suite, don't stop a session when it's not running, as calling uv.stop() outside uv.run() will instead cause the next uv.run() to stop immediately, which cancels the next RPC request.
Diffstat (limited to 'test/functional/vimscript/executable_spec.lua')
0 files changed, 0 insertions, 0 deletions