Add new data field to DocumentLink to support documentLink/resolve properly

Without any context, it is not possible for a documentLink/resolve
request to resolve anything because all a DocumentLink has is a
non-null Range. To allow information to be transferred between a
textDocument/documentLink request and a documentLink/resolve request,
a new data field has been added for servers to populate it with
information necessary for the resolution of the link.

Signed-off-by: Remy Suen <remy.suen@gmail.com>
This commit is contained in:
Remy Suen 2018-04-26 08:44:07 -04:00
parent f841596796
commit 7d805bc595

View file

@ -3244,6 +3244,11 @@ interface DocumentLink {
* The uri this link points to. If missing a resolve request is sent later.
*/
target?: DocumentUri;
/**
* A data entry field that is preserved on a document link between a
* DocumentLinkRequest and a DocumentLinkResolveRequest.
*/
data?: any;
}
```
* error: code and message set in case an exception happens during the document link request.