Export startCompletionEffect and closeCompletionEffect #25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "main"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This commit is exposing startCompletionEffect and closeCompletionEffect.
It allows us to modify StateFields whenever the completion popup opens/closes.
Let me know if there's a better way to update StateFields whenever the completion is either applied or aborted.
I thought about hooking into Candidate apply, CompletionResult validFor and CompletionResult map, but you're still missing some cases where the completion is, for example, canceled by deleting the whole word.
Ah, I just found that mine is a duplicate of https://github.com/codemirror/autocomplete/pull/24 , sorry.
Feel free to close if you don't like exposing the effect, I'll use the workaround of #24 in the meantime.
Yeah these are really intended to be internal.
Pull request closed