class LSP::WorkspaceEdit
- LSP::WorkspaceEdit
- Reference
- Object
Overview
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.
Included Modules
- JSON::Serializable
- LSP::Initializer
Defined in:
base/workspace_edit.crConstructors
Instance Method Summary
-
#changes : Hash(String, Array(TextEdit))
Holds changes to existing resources.
-
#changes=(changes : Hash(String, Array(TextEdit)))
Holds changes to existing resources.
- #document_changes : Array(TextDocumentEdit) | Array(TextDocumentEdit | CreateFile | RenameFile | DeleteFile) | Nil
- #document_changes=(document_changes : Array(TextDocumentEdit) | Array(TextDocumentEdit | CreateFile | RenameFile | DeleteFile) | Nil)
Constructor Detail
Instance Method Detail
Holds changes to existing resources.
def document_changes : Array(TextDocumentEdit) | Array(TextDocumentEdit | CreateFile | RenameFile | DeleteFile) | Nil
#
def document_changes=(document_changes : Array(TextDocumentEdit) | Array(TextDocumentEdit | CreateFile | RenameFile | DeleteFile) | Nil)
#