diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5c96d0d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +npm-debug.log \ No newline at end of file diff --git a/protocol.md b/protocol.md index 127aef6..2ba90a7 100644 --- a/protocol.md +++ b/protocol.md @@ -440,7 +440,7 @@ If multiple `TextEdit`s are applied to a text document, all text edits describe >#### New: TextDocumentEdit -Describes textual changes on a single text document. The text document is referred to as a `VersionedTextDocumentIdentifier` to allow clients to check the text document version before an edit is applied. +Describes textual changes on a single text document. The text document is referred to as a `VersionedTextDocumentIdentifier` to allow clients to check the text document version before an edit is applied. A `TextDocumentEdit` describes all changes on a version Si and after they are applied move the document to version Si+1. So the creator of a `TextDocumentEdit` doesn't need to sort the array or do any kind of ordering. However the edits must be non overlapping. ```typescript export interface TextDocumentEdit {