syntaxTreeAvailable

fun syntaxTreeAvailable(state: EditorState, upto: Int = state.doc.length): Boolean

Check whether a complete syntax tree is available up to the given position. In Kodemirror's synchronous parsing model, the tree always covers the full document, so this returns true whenever a language is configured.

Parameters

upto

The position to check coverage for. Defaults to the full document length.