The LSP protocol supports fetching a list of clickable links in a document using the `textDocument/documentLink` method: [textDocument/documentLink](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#textDocument_documentLink) Examples of LSP servers which support it: - `gopls` [gopls DocumentLink Docs](https://github.com/golang/tools/blob/master/gopls/doc/features/passive.md#document-link) - `vscode-json-language-server` (link needed - `yaml-language-server` use it to link `$ref`s in openapi/swagger documents. - `shipify/ruby-lsp`: https://github.com/Shopify/ruby-lsp/pull/195 Originally mentioned by @icholy in this discussion https://github.com/zed-industries/zed/discussions/33553
The LSP protocol supports fetching a list of clickable links in a document using the
textDocument/documentLinkmethod: textDocument/documentLinkExamples of LSP servers which support it:
goplsgopls DocumentLink Docsvscode-json-language-server(link neededyaml-language-serveruse it to link$refs in openapi/swagger documents.shipify/ruby-lsp: Support DocumentLink request Shopify/ruby-lsp#195Originally mentioned by @icholy in this discussion #33553