CodeMirrorEditor.setSelections method
CodeMirrorEditor › setSelections
Unofficial
Set multiple selections, optionally specifying the primary selection index.Signature:
setSelections(selections: EditorSelection[], primaryIndex?: number | undefined): voidParameters:
| Parameter | Type | Description |
|---|---|---|
| selections | EditorSelection[] | The selections to set. |
| primaryIndex? | number | undefined | The index of the primary selection. |
Returns: void