Skip to content

Fix file access for "file" URI scheme - #2484

Merged
Vincent Biret (baywet) merged 1 commit into
microsoft:mainfrom
jkporter:main
Sep 8, 2025
Merged

Fix file access for "file" URI scheme#2484
Vincent Biret (baywet) merged 1 commit into
microsoft:mainfrom
jkporter:main

Conversation

@jkporter

Copy link
Copy Markdown
Contributor

fix: Allow files with spaces in path to work

Updated the file access method to use absoluteUri.LocalPath instead of absoluteUri.AbsolutePath when the URI scheme is "file". This change ensures correct file opening for local files when there are escaped characters in the path such as spaces.

Updated the file access method to use `absoluteUri.LocalPath` instead of `absoluteUri.AbsolutePath` when the URI scheme is "file". This change ensures correct file opening for local files.
@jkporter
Jonathan Porter (jkporter) requested a review from a team as a code owner September 5, 2025 22:59

@baywet Vincent Biret (baywet) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@baywet
Vincent Biret (baywet) merged commit 6dded81 into microsoft:main Sep 8, 2025
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants