microsoft/language-server-protocol

Link to navigate to a document at line X column Y in MD documentation (hover)

Open

#379 aberto em 18 de jan. de 2018

Ver no GitHub
 (2 comments) (5 reactions) (0 assignees)HTML (956 forks)batch import
completionfeature-requesthelp wantedhover

Métricas do repositório

Stars
 (12.810 stars)
Métricas de merge de PR
 (Mesclagem média 19h 29m) (12 fundiu PRs em 30d)

Description

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.

Guia do colaborador