lighttiger2505 / deoplete-vim-lsp

deoplete source for vim-lsp
MIT License
80 stars 8 forks source link

WIP: debounce feature #4

Closed hrsh7th closed 5 years ago

hrsh7th commented 5 years ago

improved version of #3.

  1. Request are debounced if repeatedly fast input changes.

    • Can detect waitings timer by checks:timer_id != -1.
    • Waiting timer can cancel. If it cancel, does not send request for server.
  2. Request are defer if server process running.

    • If running server process, request are defer, because server process can't cancel.
    • Check has next request at get server response.
    • If exists next response, client try request it.
hrsh7th commented 5 years ago

This PR is works well in my vim.

Please test it in your vim.

hrsh7th commented 5 years ago

I use this in my work. hmm... I think, i can more improve this.

I change PR status to WIP.

hrsh7th commented 5 years ago

Fixed ecd99471ffb8960ec57e3a63fa39143fd9fd08d8