Skip to content

ICursorSelectionChangedEvent

原文链接

https://microsoft.github.io/monaco-editor/docs.html#interfaces/editor.ICursorSelectionChangedEvent.html

描述光标选择已更改的事件。

ts
interface ICursorSelectionChangedEvent {
    modelVersionId: number;
    oldModelVersionId: number;
    oldSelections: Selection[];
    reason: CursorChangeReason;
    secondarySelections: Selection[];
    selection: Selection;
    source: string;
}

modelVersionId

  • 类型: number
  • 描述:模型版本ID。

oldModelVersionId

  • 类型: number
  • 描述:旧模型版本ID。

oldSelections

reason

secondarySelections

selection

source

  • 类型: string
  • 描述:来源。