Make sure snippet apply method adds input.complete user event #19
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "jk-snippet-user-event"
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?
The user event is added by
insertCompletionText:github.com/codemirror/autocomplete@ffaa367319/src/state.ts (L297-L303))But the snippet apply doesn't add the event.
It looks like the return value of
insertCompletionTextwill already include this. Am I missing something?snippet(template)is a customapply, so it falls into the second branch in the conditional above :)Ah, I see what you mean now. Attached patch adds this in a way that doesn't affect calls that don't pass a completion.
Fantastic, thank you!
Pull request closed