Struct lsp_types::TextDocumentEdit [−][src]
pub struct TextDocumentEdit {
pub text_document: OptionalVersionedTextDocumentIdentifier,
pub edits: Vec<OneOf<TextEdit, AnnotatedTextEdit>>,
}Expand description
Describes textual changes on a single text document. The text document is referred to as a
OptionalVersionedTextDocumentIdentifier to allow clients to check the text document version before an
edit is applied. A TextDocumentEdit describes all changes on a version Si and after they are
applied move the document to version Si+1. So the creator of a TextDocumentEdit doesn’t need to
sort the array or do any kind of ordering. However the edits must be non overlapping.
Fields
text_document: OptionalVersionedTextDocumentIdentifierThe text document to change.
edits: Vec<OneOf<TextEdit, AnnotatedTextEdit>>The edits to be applied.
@since 3.16.0 - support for AnnotatedTextEdit. This is guarded by the
client capability workspace.workspaceEdit.changeAnnotationSupport
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for TextDocumentEditimpl Send for TextDocumentEditimpl Sync for TextDocumentEditimpl Unpin for TextDocumentEditimpl UnwindSafe for TextDocumentEditBlanket Implementations
Mutably borrows from an owned value. Read more