When using buffer-focus as parse condition instead of mode-enabled the first opened ycmd-mode buffer that starts the server doesn't get parsed by ycmd--on-unparsed-buffer-focus because the status is stopped until the server is up and running.
Add new ycmd status when server is starting and use status in
ycmd--on-window-configuration-change for buffer-focus condition.
Add only one hook to window-configuration-change-hook and perform deferred parse
in ycmd--on-window-configuration-change.
When using
buffer-focus
as parse condition instead ofmode-enabled
the first openedycmd-mode
buffer that starts the server doesn't get parsed byycmd--on-unparsed-buffer-focus
because the status isstopped
until the server is up and running.Add new ycmd status when server is starting and use status in
ycmd--on-window-configuration-change
for buffer-focus condition. Add only one hook to window-configuration-change-hook and perform deferred parse in ycmd--on-window-configuration-change.