Skip to content

Support links to source locations in OutputEvents #94

Closed

Description

@hbenl

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.
screenshot_2017-01-14_13-57-01

Activity

  1. weinand commented on May 2, 2017

    @weinand
    Contributor

    roblourens would it work for the Chrome/Inspector debuggers if we just add a "Source" attribute to the Output event?

  2. roblourens commented on May 2, 2017

    @roblourens
    Member

    Yes

  3. hbenl commented on May 2, 2017

    @hbenl
    ContributorAuthor

    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
  4. weinand commented on Aug 25, 2017

    @weinand
    Contributor

    I've added source, line, and column attributes to the Output event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions