Class DidChangeTextDocumentParams
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.DidChangeTextDocumentParams
The change text document notification's parameters.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DidChangeTextDocumentParamscreate(VersionedTextDocumentIdentifier textDocument, List<TextDocumentContentChangeEvent> contentChanges) booleanThe actual content changes.The document that did change.inthashCode()setContentChanges(List<TextDocumentContentChangeEvent> contentChanges) setTextDocument(VersionedTextDocumentIdentifier textDocument)
-
Method Details
-
getTextDocument
The document that did change. The version number points to the version after all provided content changes have been applied. -
setTextDocument
-
getContentChanges
The actual content changes. The content changes describe single state changes to the document. So if there are two content changes c1 (at array index 0) and c2 (at array index 1) for a document in state S then c1 moves the document from S to S' and c2 from S' to S''. So c1 is computed on the state S and c2 is computed on the state S'. -
setContentChanges
public DidChangeTextDocumentParams setContentChanges(List<TextDocumentContentChangeEvent> contentChanges) -
equals
-
hashCode
public int hashCode() -
create
public static DidChangeTextDocumentParams create(VersionedTextDocumentIdentifier textDocument, List<TextDocumentContentChangeEvent> contentChanges)
-