mirror of
https://github.com/dense-analysis/ale.git
synced 2026-07-29 11:16:46 +08:00
Fix infinite autocompletion loop (#5130)
CI / Build (push) Has been cancelled
CI / Neovim 0.10 Windows (push) Has been cancelled
CI / Neovim 0.12 Windows (push) Has been cancelled
CI / Vim 8.2 Windows (push) Has been cancelled
CI / Vim 9.2 Windows (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Lua (push) Has been cancelled
CI / Neovim 0.10 Linux (push) Has been cancelled
CI / Neovim 0.12 Linux (push) Has been cancelled
CI / Vim 8.2 Linux (push) Has been cancelled
CI / Vim 9.2 Linux (push) Has been cancelled
CI / Build (push) Has been cancelled
CI / Neovim 0.10 Windows (push) Has been cancelled
CI / Neovim 0.12 Windows (push) Has been cancelled
CI / Vim 8.2 Windows (push) Has been cancelled
CI / Vim 9.2 Windows (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Lua (push) Has been cancelled
CI / Neovim 0.10 Linux (push) Has been cancelled
CI / Neovim 0.12 Linux (push) Has been cancelled
CI / Vim 8.2 Linux (push) Has been cancelled
CI / Vim 9.2 Linux (push) Has been cancelled
* Check for timeout while waiting for language server result * Return empty result if language server has no completion capabilities * Add test for OmniFunc timeout * Add documentation for timeout option
This commit is contained in:
+14
@@ -1143,6 +1143,20 @@ g:ale_completion_max_suggestions
|
||||
Adjust this option as needed, depending on the complexity of your codebase
|
||||
and your available processing power.
|
||||
|
||||
*ale-options.completion_timeout*
|
||||
*g:ale_completion_timeout*
|
||||
completion_timeout
|
||||
g:ale_completion_timeout
|
||||
Type: |Number|
|
||||
Default: `3`
|
||||
|
||||
The maximum time in seconds ale#completion#OmniFunc() will wait for a
|
||||
completion result from the language server.
|
||||
|
||||
When the timeout is exceeded ale#completion#OmniFunc() will print an error
|
||||
message and return an empty result. Setting a higher value allows longer
|
||||
response times, but it may also keep Vim unresponsible for a longer time.
|
||||
|
||||
*ale-options.cursor_detail*
|
||||
*g:ale_cursor_detail*
|
||||
cursor_detail
|
||||
|
||||
Reference in New Issue
Block a user