question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support local paths in hover MarkdownString

See original GitHub issue

Currently paths to images / links used in hover docs must be absolute, otherwise they will not work. Consider a file main.ts:

/**
 * [link](main.ts)
 */
function main() {
}

If you hover over main and click the link, it will attempt to open /main.ts file, which does not exist. I think it would be sensible if the behavior was exactly the same as with markdown preview. Example of file main.md:

[link](main.ts)

Here, clicking the link would properly open the main.ts file, assuming that it’s in the same directory.

Here is a project with these two files: project.zip

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:54
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
mjbvzcommented, Feb 3, 2022
2reactions
vscodebot[bot]commented, Mar 15, 2020

🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

Happy Coding!

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code API | Visual Studio Code Extension API
VS Code API. VS Code API is a set of JavaScript APIs that you can invoke in your Visual Studio Code extension. This...
Read more >
replace only relative paths in a markdown text string
I have a markdown file loaded into a javascript string mdText. The images and links that are relatively pathed need to be prefixed...
Read more >
Language Server Protocol Specification - 3.17
The base protocol offers support for request cancellation. To cancel a request, ... This includes the server capabilities property path and JSON structure....
Read more >
What Is the MATLAB Search Path? - Files and Folders
Hover the pointer over any dimmed file or folder in the Current Folder browser to find out why it is dimmed. A tooltip...
Read more >
How to use links in documentation - Contributor guide
There are two types of hyperlinks supported by the publishing system: URLs and file links. A URL link can be a URL path...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found