onSelectionAsync

fun onSelectionAsync(callback: suspend CoroutineScope.(EditorSelection) -> Unit): Extension

Create an extension that launches callback in a coroutine whenever the selection changes.