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

Holds changes to existing resources.

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]

Trait Implementations

impl Debug for WorkspaceEdit
[src]

Formats the value using the given formatter. Read more

impl Eq for WorkspaceEdit
[src]

impl PartialEq for WorkspaceEdit
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for WorkspaceEdit
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for WorkspaceEdit
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations