From 7d805bc5954007dbd2ac6d4238cd37b8f951bdff Mon Sep 17 00:00:00 2001 From: Remy Suen Date: Thu, 26 Apr 2018 08:44:07 -0400 Subject: [PATCH] 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 --- specification.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/specification.md b/specification.md index 9c4a6b9..035b2a4 100644 --- a/specification.md +++ b/specification.md @@ -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.