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) #

def self.new(**args) #

Instance Method Detail

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

Holds changes to existing resources.


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

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) #