Utility functions for the LspTextEditor component.

Static methods

staticlspPositionToTextEditorPosition(pos:Position):TextEditorPosition

Converts a Position used by the TextEditor component to a TextEditorPosition value object from the language server protocol.

staticlspTextEditToTextEditorChange(textEdit:TextEdit):TextEditorChange

Converts a TextEdit value object from the language server protocol to a TextEditorChange object used by the TextEditor component.

statictextEditorPositionToLspPosition(pos:TextEditorPosition):Position

Converts a TextEditorPosition value object from the language server protocol to a Position object used by the TextEditor component.