From 9913df598d1a71e41b2f69e0c204d04dcc33aa99 Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Sat, 17 Sep 2016 16:20:05 +0200 Subject: [PATCH] Fixed #53: Clarification needed for TextDocumentContentChangeEvent --- protocol.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/protocol.md b/protocol.md index f60db7c..1c1f5b0 100644 --- a/protocol.md +++ b/protocol.md @@ -186,7 +186,7 @@ The protocol currently assumes that one server serves one tool. There is current #### Position -Position in a text document expressed as zero-based line and character offset. +Position in a text document expressed as zero-based line and character offset. A position is between two characters like an 'insert' cursor in a editor. ```typescript interface Position { @@ -203,7 +203,8 @@ interface Position { ``` #### Range -A range in a text document expressed as (zero-based) start and end positions. +A range in a text document expressed as (zero-based) start and end positions. A range is comparable to a selection in an editor. Therefore the end position is exclusive. + ```typescript interface Range { /**