-
Notifications
You must be signed in to change notification settings - Fork 814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
documentLink/resolve has insufficient information in its request parameter #401
Comments
@rcjsuen nice find. Points out no one every implemented it. We could do two things. Either add a resource to it so that the URI is known. Alternatively we can do the same as with the CompletionItem. That one has a data field that is preserved that lets the server to add information it can access on resolve. I actually tend to do the same for DocumentLink since it is a more flexible approach. The additional informaiton the server put in might not necessarily be the document. It might be something else. |
@rcjsuen do you want to look into this? |
In principal yes. For this special case since it never worked I would argue we can leave it out. |
Closed by #464... |
Does anyone use or implement
documentLink/resolve
? I was going to implement this request but then realized that the single parameter of aDocumentLink
in the request is not useful at all. The client may have three files opened in its editor and then asks the server to resolve a link. Then what? All the server has is aDocumentLink
object with an arbitraryrange
. It is not possible for the server to figure out which of the three files the range is for so it can't even know what content string the range encompasses. Maybe it'sabc
, maybe it's123
, maybe it'shttp://github.com
, who knows?Am I missing something here?
The text was updated successfully, but these errors were encountered: