When goto definition is triggered for a none-async action, whole vim "freezes" for the duration of 30 seconds before the timeout happens.
:CocOpenLog right after the problem occurs gives:
2020-04-14T14:51:19.757 INFO (pid:16453) [language-client-index] - phpls started with 16468
2020-04-14T14:51:19.769 INFO (pid:16453) [plugin] - coc 0.0.78-fc983ce6dd initialized with node: v12.16.1
Jump to definition only works after a 30 seconds timeout when jumping to a definition which is defined in the same buffer.
To Reproduce
class Foo
Foo::caller()
andFoo::callee()
callee
fromFoo::caller
... i.e.$this->callee()
callee
insideFoo::caller
method, use coc'sgoto definition
to jump tocallee
Expected behavior Goto definition shouldn't end up in a 30 seconds timeout.
Videos![asciicast](https://asciinema.org/a/TyDqkJvi5oHIRHXxAjLEmZgVe.svg)
Desktop
coc-settings.json
~/.config/coc/extensions/package.json
contents:Additional information
Using
CocActionAsync
solves the problem.When goto definition is triggered for a none-async action, whole vim "freezes" for the duration of 30 seconds before the timeout happens.
:CocOpenLog
right after the problem occurs gives:Temporary solution: