Struct lsp_document::TextChange [−][src]
Expand description
Native representation of a change that replaces a part of the target text.
Can be converted to and from lsp_types::TextDocumentContentChangeEvent
by
TextAdapter
.
Fields
range: Option<Range<Pos>>
Specifies the part of the text that needs to be replaced. When None
the
whole text needs to be replaced.
patch: String
The replacement text.