mirror of
https://github.com/microsoft/language-server-protocol.git
synced 2025-12-23 08:48:16 +00:00
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:
parent
f841596796
commit
7d805bc595
1 changed files with 5 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue