vim-lsc icon indicating copy to clipboard operation
vim-lsc copied to clipboard

:wqa causes waiting for language server exit

Open Bilaboz opened this issue 3 years ago • 4 comments

Hello

I noticed that :wqa causes Waiting for language server exit: clangd --log=error ... and waits around 6 seconds before closing vim.

It doesn't happen with :qa or :wa

Bilaboz avatar Oct 31 '22 20:10 Bilaboz

A temporary fix, add this line to your .vimrc cabbrev wqa wa <BAR> qa

Bilaboz avatar Nov 12 '22 23:11 Bilaboz

It's likely that the document/didSave notifications cause a delay in the shutdown for the server.

There is a 5 second timeout which we could make configurable.

natebosch avatar Mar 25 '23 19:03 natebosch

It's surprising that :wa|qa would be faster, I'm not sure what could cause a behavior difference.

natebosch avatar Mar 25 '23 19:03 natebosch

This also happens occasionally for me when either using :wq or ZZ but I cannot reproduce it consistently.

cwegener avatar May 09 '23 22:05 cwegener