From 1c557402aececc1fc2bd3f331eb40dea140078fc Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Fri, 8 Sep 2017 16:34:48 +0200 Subject: [PATCH] Fixes #279 --- .gitignore | 1 + protocol.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..5c96d0d93 --- /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 83734659f..86bdd7e05 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 {