diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-09-17 08:21:11 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-17 08:21:11 +0800 |
| commit | 8d5476691cd177ee2166bc8f4c64679292cc7559 (patch) | |
| tree | 5d37bf0d0d6470e3c188dc609f337633abbe8ddd /test/functional/vimscript/string_spec.lua | |
| parent | cbfa7f0d7b55c5329e6ffd36451b41b7f41b645c (diff) | |
| download | rneovim-8d5476691cd177ee2166bc8f4c64679292cc7559.tar.gz rneovim-8d5476691cd177ee2166bc8f4c64679292cc7559.tar.bz2 rneovim-8d5476691cd177ee2166bc8f4c64679292cc7559.zip | |
test(lsp): make async format test work properly (#35794)
Overriding vim.lsp.handlers['textDocument/formatting'] doesn't work here
because fake_lsp_server_setup() uses a table with __index to specify
client handlers, which takes priority over vim.lsp.handlers[], and as a
result the overridden handler is never called, and the test ends before
the vim.wait() even finishes.
Instead, set a global variable from the handler that is actually reached
(by vim.rpcrequest() from client handler), and avoid stopping the event
loop too early.
Diffstat (limited to 'test/functional/vimscript/string_spec.lua')
0 files changed, 0 insertions, 0 deletions