Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
zx8 opened this issue Feb 26, 2025 · 0 comments
Open

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

zx8 opened this issue Feb 26, 2025 · 0 comments

Comments

@zx8
Copy link

zx8 commented Feb 26, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant