Vscode.TextEditor
type insertSnippetLocation = [
| `Position of Position.t
| `Range of Range.t
| `Positions of Position.t list
| `Ranges of Range.t list
]
val document : t -> TextDocument.t
val selection : t -> Selection.t
val set_selection : t -> Selection.t -> unit
val selections : t -> Selection.t list
val options : t -> TextEditorOptions.t
val viewColumn : t -> ViewColumn.t option
val edit :
t ->
callback:(editBuilder:TextEditorEdit.t -> unit) ->
?undoStopBefore:bool ->
?undoStopAfter:bool ->
unit ->
bool Promise.t
val insertSnippet :
t ->
snippet:SnippetString.t ->
?location:insertSnippetLocation ->
?undoStopBefore:bool ->
?undoStopAfter:bool ->
unit ->
bool Promise.t
val setDecorations :
t ->
decorationType:TextEditorDecorationType.t ->
rangesOrOptions:
[ `Ranges of Range.t list | `Options of DecorationOptions.t list ] ->
unit
val revealRange :
t ->
range:Range.t ->
?revealType:TextEditorRevealType.t ->
unit ->
unit