Language-server-protocol: Link to navigate to a document at line X column Y in MD documentation (hover)

Created on 18 Jan 2018  路  2Comments  路  Source: microsoft/language-server-protocol

Eclipse JDT documentation hovers have links to navigate to a document, line X column Y or open document and select a range in it. The link is a hyperlink with some special protocol. The URL handler for this protocol is registered and handles a click as navigate to source code at a position provided in the URL.
Many LSP clients (VSCode, Atom and soon Eclipse) have support such URLs. These URL's are special for each client (vscode://, atom:// etc.).
If LSP could define some universal format for such URLs (lsp://file:///Users/abv/project/src/Main.java?line=X&column=Y) then clients can convert this URL into client specific URL and provide the behaviour described above from LSP hovers.

completion feature-request help wanted hover

Most helpful comment

In general this seems like a useful addition for Hover to link to both local files as well as URLs (as links may be included in documentation itself). Are there any plans to support both use cases?

All 2 comments

In general this seems like a useful addition for Hover to link to both local files as well as URLs (as links may be included in documentation itself). Are there any plans to support both use cases?

Would be nice for Hovers and CompletionItems

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pajatopmr picture pajatopmr  路  3Comments

Razzeee picture Razzeee  路  4Comments

Wosi picture Wosi  路  6Comments

Khaos66 picture Khaos66  路  5Comments

lanza picture lanza  路  6Comments