Struct languageserver_types::WorkspaceEdit [−][src]
pub struct WorkspaceEdit {
pub changes: Option<HashMap<Url, Vec<TextEdit>>>,
pub document_changes: Option<DocumentChanges>,
}A workspace edit represents changes to many resources managed in the workspace.
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.
Methods
impl WorkspaceEdit[src]
impl WorkspaceEditTrait Implementations
impl Debug for WorkspaceEdit[src]
impl Debug for WorkspaceEditfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Eq for WorkspaceEdit[src]
impl Eq for WorkspaceEditimpl PartialEq for WorkspaceEdit[src]
impl PartialEq for WorkspaceEditfn eq(&self, other: &WorkspaceEdit) -> bool[src]
fn eq(&self, other: &WorkspaceEdit) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &WorkspaceEdit) -> bool[src]
fn ne(&self, other: &WorkspaceEdit) -> boolThis method tests for !=.
impl Clone for WorkspaceEdit[src]
impl Clone for WorkspaceEditfn clone(&self) -> WorkspaceEdit[src]
fn clone(&self) -> WorkspaceEditReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Default for WorkspaceEdit[src]
impl Default for WorkspaceEditfn default() -> WorkspaceEdit[src]
fn default() -> WorkspaceEditReturns the "default value" for a type. Read more
Auto Trait Implementations
impl Send for WorkspaceEdit
impl Send for WorkspaceEditimpl Sync for WorkspaceEdit
impl Sync for WorkspaceEdit