From 39a7a274dc348089d8f845cd60e1f45b8f35f856 Mon Sep 17 00:00:00 2001 From: Dirk Baeumer Date: Mon, 14 Jan 2019 10:46:06 +0100 Subject: [PATCH] Fix specification around LocationLink#targetRange and LocationLink#targetSelectionRange --- specification.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/specification.md b/specification.md index fddd77a..87efa57 100644 --- a/specification.md +++ b/specification.md @@ -312,14 +312,17 @@ interface LocationLink { targetUri: string; /** - * The full target range of this link. + * The full target range of this link. If the target for example is a symbol then target range is the + * range enclosing this symbol not including leading/trailing whitespace but everything else + * like comments. This information is typically used to highlight the range in the editor. */ targetRange: Range; /** - * The span of this link. + * The range that should be selected and revealed when this link is being followed, e.g the name of a function. + * Must be contained by the the `targetRange`. See also `DocumentSymbol#range` */ - targetSelectionRange?: Range; + targetSelectionRange: Range; } ```