LanguageClient-neovim icon indicating copy to clipboard operation
LanguageClient-neovim copied to clipboard

Change LanguageClient#complete to not use runSync

Open martskins opened this issue 4 years ago • 1 comments

This PR changes LanguageClient#complete to use a callback instead of LanguageClient#runSync to get the completion items so that a misbehaving server (one that does not reply or takes too long to reply) doesn't hang the editor for 60 seconds.

Fixes #1169

martskins avatar Dec 09 '20 14:12 martskins

This has an issue with expanding completion item snippets. It doesn't work when you try to do that after <C-X><C-O>, trying to figure this out now.

martskins avatar Dec 09 '20 23:12 martskins