Skip to content

VSCode-compatible line number output #6

@Gama11

Description

@Gama11

JStack combos really well with VSCode's output panel, because it detects file paths and makes them clickable:

However, as you can see, it only takes me to the file (first line), not the correct line number in that file. This comment suggests that #lineNumber works, and sure enough, after hacking that into Callstack.itemToString(), this works perfectly:

Could this be supported by jstack somehow? I guess you'd have to re-implement Callstack.itemToString(), and also differentiate by OS (that comment suggests that the syntax for Mac is different right now, don't know about Linux).

Not sure if this should be the default behavior or configurable in some way - depends on whether or not other tools rely on the current output format I guess?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions