export startCompletionEffect and closeCompletionEffect #24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "export-completion-effects"
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?
Trying to programmatically open the autocompletion menu when CodeMirror is empty and focused, as opposed to requiring a Ctrl+Space.
Would need to have state effects exported if I want to use https://codemirror.net/docs/ref/#state.EditorState^transactionExtender.
Work-around right now is using updateListener, and calling startCompletion.
This works but requires an additional check that completionState isn't already open to prevent an infinite loop of updates.
But I view this as more similar to the auto language example here https://codemirror.net/examples/config/
I think your workaround is decent enough. Exporting these doesn't seem worth it without a more compelling use case.
Pull request closed