You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support relative paths for markdown images in doc comments #2390
I'm trying to have an image appear for each IconData in our icon font, similar to Icons.foo in Flutter.
I finally got the images generated from the .ttf file, but they only show correctly in the doc-comment-popup if it uses an absolute path to the image, which means it won't work for anyone else.
// Works/// staticconst icon =IconData(\x0000, fontFamily:'MyFont');
// Does not work/// staticconst icon =IconData(\x0000, fontFamily:'MyFont');
I have tried relative paths:
plain (like above)
with leading ./
with leading / (html style)
using .../../.. as necessary to navigate from the file to the root of the project
using <img src="">
Reacted by Sergey Shustikov, Marcos Antônio, Valentin Vignal, macness, Aloïs Deniel, JanHomola, Dabbit-Chan, Hector Aguero and Ramzes5614
Thanks for the report! The markdown here is rendered by VS Code, so this would be best fixed there (the same bug exists in other languages - the relative path is resolved from the VS Code application folder). I've opened an issue you can put a 👍 on here:
The VS Code issue was closed as a dupe of microsoft/vscode#86564. I'll close this as a dupe too, as I believe once fixed in VS Code, it'll just work here. Thanks!
changed the title [-]Relative path resolution for markdown images in doc comments.[/-][+]Support relative paths for markdown images in doc comments[/+]on May 26, 2022
This is blocked on support from VS Code - see microsoft/vscode#86564. Once supported there, it may require an update to the VS Code LSP client library.
Activity
DanTup commentedon Apr 23, 2020
Thanks for the report! The markdown here is rendered by VS Code, so this would be best fixed there (the same bug exists in other languages - the relative path is resolved from the VS Code application folder). I've opened an issue you can put a 👍 on here:
microsoft/vscode#95947
DanTup commentedon May 4, 2020
The VS Code issue was closed as a dupe of microsoft/vscode#86564. I'll close this as a dupe too, as I believe once fixed in VS Code, it'll just work here. Thanks!
DanTup commentedon May 26, 2022
I suspect this won't get done without a contribution to the VS Code LSP Client, so re-opening this as a placeholder/reminder.
[-]Relative path resolution for markdown images in doc comments.[/-][+]Support relative paths for markdown images in doc comments[/+]Dabbit-Chan commentedon Sep 29, 2024
any update?
DanTup commentedon Sep 30, 2024
This is blocked on support from VS Code - see microsoft/vscode#86564. Once supported there, it may require an update to the VS Code LSP client library.
Edit: microsoft/language-server-protocol#1443