Struct lsp_types::WorkspaceEdit [−][src]
A workspace edit represents changes to many resources managed in the workspace.
The edit should either provide changes or documentChanges.
If the client can handle versioned document edits and if documentChanges are present,
the latter are preferred over changes.
Fields
changes: Option<HashMap<Url, Vec<TextEdit>>>Holds changes to existing resources.
document_changes: Option<DocumentChanges>Depending on the client capability workspace.workspaceEdit.resourceOperations document changes
are either an array of TextDocumentEdits to express changes to n different text documents
where each text document edit addresses a specific version of a text document. Or it can contain
above TextDocumentEdits mixed with create, rename and delete file / folder operations.
Whether a client supports versioned document edits is expressed via
workspace.workspaceEdit.documentChanges client capability.
If a client neither supports documentChanges nor workspace.workspaceEdit.resourceOperations then
only plain TextEdits using the changes property are supported.
change_annotations: Option<HashMap<ChangeAnnotationIdentifier, ChangeAnnotation>>A map of change annotations that can be referenced in
AnnotatedTextEdits or create, rename and delete file / folder
operations.
Whether clients honor this property depends on the client capability
workspace.changeAnnotationSupport.
@since 3.16.0
Implementations
impl WorkspaceEdit[src]
Trait Implementations
impl Clone for WorkspaceEdit[src]
fn clone(&self) -> WorkspaceEdit[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for WorkspaceEdit[src]
impl Default for WorkspaceEdit[src]
fn default() -> WorkspaceEdit[src]
impl<'de> Deserialize<'de> for WorkspaceEdit[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for WorkspaceEdit[src]
impl PartialEq<WorkspaceEdit> for WorkspaceEdit[src]
fn eq(&self, other: &WorkspaceEdit) -> bool[src]
fn ne(&self, other: &WorkspaceEdit) -> bool[src]
impl Serialize for WorkspaceEdit[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for WorkspaceEdit[src]
impl StructuralPartialEq for WorkspaceEdit[src]
Auto Trait Implementations
impl RefUnwindSafe for WorkspaceEdit[src]
impl Send for WorkspaceEdit[src]
impl Sync for WorkspaceEdit[src]
impl Unpin for WorkspaceEdit[src]
impl UnwindSafe for WorkspaceEdit[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,