Open jadestrong opened 4 years ago
Here also has an another problem, when should-filter
is t
, but company-lsp--cache-put
only cached the unfiltered candidates.
Then company-lsp--cache-get
will return the unfiltered candidates.
Maybe we should filter cache-item in company-lsp--cache-get
, not cache filtered candidates? Then we can reuse the candidates when there had a prefix closed to the cached prefix.
https://github.com/tigersoldier/company-lsp/blob/f921ffa0cdc542c21dc3dd85f2c93df4288e83bd/company-lsp.el#L427
I think there should be if company-lsp-cache-candidates not nil, then get config from filter candidates , so the code should be: