Skip to content

🚀 Render line numbers as 0 when there is no line number #1965

@zx8

Description

@zx8

Using v0.18.2

My current setup is:

--hyperlinks-file-link-format="vscode://file{path}:{line}"

However, when clicking on file links at the top of the diff output (rather than than hunk links), there is no line number, so the link is rendered as:

vscode://file/Users/zx8/example/foo.tf:

And when I click on it, I get a No file or directory error, because the trailing : is treated as part of the path.

If this were rendered as 0 when there is no line number, I think the links would work as expected.

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