Skip to content

Commit db9dd7e

Browse files
committed
Still need to unescape / on macOs & Linux
1 parent 66ea10a commit db9dd7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/PowerShellEditorServices/Workspace/Workspace.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,9 @@ public static string ConvertPathToDocumentUri(string path)
709709
}
710710
else
711711
{
712-
// On non-Windows system, simply append the escaped path.
713-
docUriStrBld.Append(escapedPath);
712+
// On non-Windows systems, append the escapedPath and undo the over-aggressive
713+
// escaping of / done by Uri.EscapeDataString.
714+
docUriStrBld.Append(escapedPath).Replace("%2F", "/");
714715
}
715716

716717
#if !CoreCLR

0 commit comments

Comments
 (0)