Fix specification around LocationLink#targetRange and LocationLink#targetSelectionRange

This commit is contained in:
Dirk Baeumer 2019-01-14 10:46:06 +01:00
parent f6b58d4121
commit 39a7a274dc

View file

@ -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;
}
```