Skip to content
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

Use file URIs for MD links in hover popups for Sublime too #954

Merged
merged 2 commits into from
Jun 14, 2021
Merged

Use file URIs for MD links in hover popups for Sublime too #954

merged 2 commits into from
Jun 14, 2021

Conversation

jwortmann
Copy link
Contributor

The LSP client for Sublime Text doesn't support (anymore) the filepath:line format as it is used for Markdown link destinations to other files in hover results. There is some special casing by the server for VS Code to use a file URIs with a #line suffix, and those can be handled by the Sublime Text client (on the latest main branch) too, so this change would restore the functionality to open file links there. The name used in clientInfo is "Sublime Text LSP".

I haven't checked if the file URI format is supported by the other clients for Emacs/vim too, but perhaps this special check for VSCode (and now Sublime) could even be removed completely in favor of always using file URIs instead.

The LSP client for Sublime Text doesn't support the filepath:line format
as it is used for Markdown link destinations in hover results (anymore),
but can handle file URIs with a `#line` suffix, like they are already
used for VS Code. This change allows to open links to other files in
hover popups in Sublime Text too.
@pfitzseb
Copy link
Member

pfitzseb commented Jun 4, 2021

Cool, thanks!

@pfitzseb pfitzseb merged commit b575676 into julia-vscode:master Jun 14, 2021
@jwortmann jwortmann deleted the hover-uri branch June 14, 2021 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants