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
In the current implementation of coc.nvim, when there are isIncomplete items in the completion panel, the entire panel is blocked waiting for the completion results of these isIncomplete items. During this time, even if the user has other inputs, the completion panel will not update because it is completely blocked.
This behavior is not very user-friendly, as the completion results for isIncomplete items may be slow, leading to a poor experience with the entire completion panel. I suggest that for these isIncomplete items, completion should be performed asynchronously in the background. The completion panel can then be updated once their completion results are returned, rather than blocking the entire panel.
Meanwhile, other non-isIncomplete items should be able to display their results immediately, instead of being blocked along with the isIncomplete items.
20240531_145749.mp4
As can be seen from the screenshot above, when I input s and remove it, the entire completion panel updates very slowly, it is completely blocked by the [Cop] completion source. In this example, the [A] completion source should not wait for the results of [Cop], it should update immediately when s changes, and then update the entire completion panel again after the results of [Cop] are returned.
The text was updated successfully, but these errors were encountered:
Related #5028
A better way is adding a languageID pattern in languageserver/extension configuration, but this needs pass through more layers, needs more works, just made this quickfix for now.
In the current implementation of coc.nvim, when there are
isIncomplete
items in the completion panel, the entire panel is blocked waiting for the completion results of theseisIncomplete
items. During this time, even if the user has other inputs, the completion panel will not update because it is completely blocked.This behavior is not very user-friendly, as the completion results for
isIncomplete
items may be slow, leading to a poor experience with the entire completion panel. I suggest that for theseisIncomplete
items, completion should be performed asynchronously in the background. The completion panel can then be updated once their completion results are returned, rather than blocking the entire panel.Meanwhile, other non-
isIncomplete
items should be able to display their results immediately, instead of being blocked along with theisIncomplete
items.20240531_145749.mp4
As can be seen from the screenshot above, when I input
s
and remove it, the entire completion panel updates very slowly, it is completely blocked by the[Cop]
completion source. In this example, the[A]
completion source should not wait for the results of[Cop]
, it should update immediately whens
changes, and then update the entire completion panel again after the results of[Cop]
are returned.The text was updated successfully, but these errors were encountered: