Class: LSP::WorkspaceChange
Overview
export declare class WorkspaceChange
private _workspaceEdit;
private _textEditChanges;
constructor(workspaceEdit?: WorkspaceEdit);
/**
* Returns the underlying [WorkspaceEdit](#WorkspaceEdit) literal
* use to be returned from a workspace edit operation like rename.
*/
get edit(): WorkspaceEdit;
/**
* Returns the [TextEditChange](#TextEditChange) to manage text edits
* for resources.
*/
getTextEditChange(textDocument: VersionedTextDocumentIdentifier): TextEditChange;
getTextEditChange(uri: DocumentUri): TextEditChange;
createFile(uri: DocumentUri, options?: CreateFileOptions): void;
renameFile(oldUri: DocumentUri, newUri: DocumentUri, options?: RenameFileOptions): void;
deleteFile(uri: DocumentUri, options?: DeleteFileOptions): void;
private checkDocumentChanges;
Instance Method Summary collapse
Methods inherited from LSPBase
Constructor Details
This class inherits a constructor from LSP::LSPBase
Instance Method Details
#from_h!(value) ⇒ Object
652 653 654 655 |
# File 'lib/lsp/lsp_types.rb', line 652 def from_h!(value) value = {} if value.nil? self end |