mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-10 07:15:52 +08:00
Fix #1568 - Filter LSP completion results with the prefixes
This commit is contained in:
2 files changed
+43
No files matched your search
@@ -296,6 +296,10 @@ function! ale#completion#ParseLSPCompletions(response) abort
|
||||
\})
|
||||
endfor
|
||||
|
||||
if has_key(l:info, 'prefix')
|
||||
return ale#completion#Filter(l:buffer, l:results, l:info.prefix)
|
||||
endif
|
||||
|
||||
return l:results
|
||||
endfunction
|
||||
|
||||
|
||||
Reference in new issue
Block a user