Support local paths in hover MarkdownString
See original GitHub issueCurrently 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:
- Created 4 years ago
- Reactions:54
- Comments:14 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@DanTup See #142051
🙂 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!