Sign up (with export icon)

InsertTextCommandOptions

Api-interface icon interface

Interface with parameters for executing InsertTextCommand.

Both range and selection parameters are used for defining selection but should not be used together. If both are defined, only selection will be considered.

Properties

  • Chevron-right icon

    range : ModelRange | undefined

    The range in which the text is inserted. Defaults to the first range in the current selection.

  • Chevron-right icon

    resultRange : ModelRange | undefined

    The range where the selection should be placed after the insertion. If not specified, the selection will be placed right after the inserted text.

  • Chevron-right icon

    The selection in which the text is inserted. Inserting a text into a selection deletes the current content within selection ranges. If the selection is not specified, the current selection in the model will be used instead.

  • Chevron-right icon

    text : string | undefined

    The text to be inserted.