Closed marcuskrahl closed 5 years ago
This is a known limitation of current implementation. At the moment all requests are handled sequentially and blocking other calls. Had to wait for rust async/await before turning them to async handlers.
For my own education, what about futures
or tokio
/mio
crates? Are they a viable option nowadays in Rust for async support?
It is possible to use futures/tokio at the moment. But I don't think this is prime time to onboard as the language is adding syntax support and apis are in flux.
Describe the bug
When running
LanguageClient#textDocument_codeAction()
in a typescript project the available actions are shown almost immediately, but after selecting an action, the action is applied only after the language client timeout.Environment
nvim --version
orvim --version
): neovim v0.3.1git rev-parse --short HEAD
): a1b90a7bin/languageclient --version
): 0.1.106My full vimrc is available at https://github.com/marcuskrahl/dotfiles
Relevant parts:
To Reproduce
Steps to reproduce the behavior:
nvim -u min-vimrc.vim
src/app/app.component.ts
Current behavior
The action is only applied after the language client timeout (
g:LanguageClient_waitOutputTimeout
). There is an error in the log as well.If I set the timeout to a lower value (10s -> 2s) the action is successfully applied after this shorter timeout
Expected behavior
The action should be applied as soon as possible
Log