You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because some LSP servers (e.g. https://texlab.netlify.com/) refresh possible completions on every call and do not return every completion initially, so the caching means that completion results are incomplete and do not get updated as the user continues to type.
I've made this an issue rather than a PR as I don't know how broadly true this is (i.e. other LSP servers seemed to work correctly without this change), so I'm uncertain if this ought to be a global change or something configurable per-server.
To reproduce: Use texlab with the native LSP implementation. Note that you get completions when initially typing \, but continuing to type (e.g. trying to complete \hypersetup by typing \hy, etc.) will lead to empty completions. Hitting space and backspace will refresh the completion list with correct completions.
The text was updated successfully, but these errors were encountered:
As the title mentions, the native LSP configuration needs to set
refresh=1
when callingncm2#complete
, here:ncm2/lua/ncm2/init.lua
Line 7 in 6596df4
This is because some LSP servers (e.g. https://texlab.netlify.com/) refresh possible completions on every call and do not return every completion initially, so the caching means that completion results are incomplete and do not get updated as the user continues to type.
I've made this an issue rather than a PR as I don't know how broadly true this is (i.e. other LSP servers seemed to work correctly without this change), so I'm uncertain if this ought to be a global change or something configurable per-server.
To reproduce: Use
texlab
with the native LSP implementation. Note that you get completions when initially typing\
, but continuing to type (e.g. trying to complete\hypersetup
by typing\hy
, etc.) will lead to empty completions. Hittingspace
andbackspace
will refresh the completion list with correct completions.The text was updated successfully, but these errors were encountered: