bracketJumpTargetOffset
bracketJumpTargetOffset(
brackets,caretOffset,scanBudget?):number|null
Offset to move a caret to when jumping to the matching bracket. Mirrors the editor convention of landing after the partner, so a second jump returns to where the first one started.
Parameters
Section titled “Parameters”brackets
Section titled “brackets”readonly BracketInfo[]
caretOffset
Section titled “caretOffset”number
scanBudget?
Section titled “scanBudget?”number
Returns
Section titled “Returns”number | null