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 links to source locations in OutputEvents #94
When you write to the browser console in Firefox or Chrome (e.g. console.log("foo")), the console will show a clickable link to the source location of the console.log(...) call. Please support links to source locations (i.e. a Source object with line and column) in the debug protocol and VS Code.
I found that it is already possible to output links to source locations: if the message in an OutputEvent contains <filepath>:<line>:<column>, then that part of the message is turned into a link.
But it would still be nice to have explicit support for these links and have them rendered as in the attached screenshot:
the (absolute) filepath is usually quite long, the link should only show the filename (and perhaps the full path in a tooltip)
the link should be rendered separate from the message
Activity
weinand commentedon May 2, 2017
roblourens would it work for the Chrome/Inspector debuggers if we just add a "Source" attribute to the Output event?
roblourens commentedon May 2, 2017
Yes
hbenl commentedon May 2, 2017
I found that it is already possible to output links to source locations: if the message in an OutputEvent contains
<filepath>:<line>:<column>, then that part of the message is turned into a link.But it would still be nice to have explicit support for these links and have them rendered as in the attached screenshot:
filepathis usually quite long, the link should only show the filename (and perhaps the full path in a tooltip)weinand commentedon Aug 25, 2017
I've added
source,line, andcolumnattributes to theOutputevent.0.4.8 thrown exceptions will now link to the throwing file. new vscod…
0.4.8 thrown exceptions will now link to the throwing file. new vscod…