We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fa07db commit 0a89523Copy full SHA for 0a89523
src/PowerShellEditorServices/Workspace/Workspace.cs
@@ -714,11 +714,12 @@ public static string ConvertPathToDocumentUri(string path)
714
docUriStrBld.Append(escapedPath).Replace("%2F", "/");
715
}
716
717
-#if !CoreCLR
718
- // ' is not encoded by Uri.EscapeDataString in Windows PowerShell 5.x.
719
- // This is apparently a difference between .NET Framework and .NET Core.
720
- docUriStrBld.Replace("'", "%27");
721
-#endif
+ if (!Utils.IsNetCore)
+ {
+ // ' is not encoded by Uri.EscapeDataString in Windows PowerShell 5.x.
+ // This is apparently a difference between .NET Framework and .NET Core.
+ docUriStrBld.Replace("'", "%27");
722
+ }
723
724
return docUriStrBld.ToString();
725
0 commit comments