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

Add filesystem func to transform a path to a URI #55454

Merged
merged 1 commit into from
Sep 24, 2024

Commits on Aug 24, 2024

  1. Add filesystem func to transform a path to a URI

    In a few places across Base and the stdlib, we emit paths that we like
    people to be able to click on in their terminal and editor. Up to this
    point, we have relied on auto-filepath detection, but this does not
    allow for alternative link text, such as contracted paths.
    
    Doing so (via OSC 8 terminal links for example) requires filepath URI
    encoding.
    
    This functionality was previously part of a PR modifying stacktrace
    printing, but after that became held up for unrelated reasons and
    another PR appeared that would benefit from this utility, I've split out
    this functionality so it can be used before the stacktrace printing PR
    is resolved.
    tecosaur committed Aug 24, 2024
    Configuration menu
    Copy the full SHA
    9e1084e View commit details
    Browse the repository at this point in the history