class LSP::WorkspaceEdit

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

Defined in:

base/workspace_edit.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(**args) #

[View source]

Instance Method Detail

def changes : Hash(String, Array(TextEdit)) #

Holds changes to existing resources.


[View source]
def changes=(changes : Hash(String, Array(TextEdit))) #

Holds changes to existing resources.


[View source]
def document_changes : Array(TextDocumentEdit) | Array(TextDocumentEdit | CreateFile | RenameFile | DeleteFile) | Nil #

[View source]
def document_changes=(document_changes : Array(TextDocumentEdit) | Array(TextDocumentEdit | CreateFile | RenameFile | DeleteFile) | Nil) #

[View source]