Interface TextDocumentShowOptions

Represents options to configure the behavior of showing a document in an editor.

interface TextDocumentShowOptions {
    preserveFocus?: boolean;
    preview?: boolean;
    selection?: Range;
    viewColumn?: ViewColumn;
}

Properties

preserveFocus?: boolean

An optional flag that when true will stop the editor from taking focus.

preview?: boolean

An optional flag that controls if an editor-tab will be replaced with the next editor or if it will be kept.

selection?: Range

An optional selection to apply for the document in the editor.

viewColumn?: ViewColumn

An optional view column in which the editor should be shown. The default is the active, other values are adjusted to be Min(column, columnCount + 1), the active-column is not adjusted. Use ViewColumn.Beside to open the editor to the side of the currently active one.