From bed8cc351086afbe3bc360290375dfdc94ad577f Mon Sep 17 00:00:00 2001 From: Patrick Meinecke Date: Wed, 13 Sep 2023 14:26:34 -0400 Subject: [PATCH] Fix build errors --- .../Services/PowerShell/Host/HostStartOptions.cs | 1 + src/PowerShellEditorServices/Utility/PathUtils.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/PowerShellEditorServices/Services/PowerShell/Host/HostStartOptions.cs b/src/PowerShellEditorServices/Services/PowerShell/Host/HostStartOptions.cs index 025008e30..b2e882a5b 100644 --- a/src/PowerShellEditorServices/Services/PowerShell/Host/HostStartOptions.cs +++ b/src/PowerShellEditorServices/Services/PowerShell/Host/HostStartOptions.cs @@ -12,4 +12,5 @@ internal struct HostStartOptions public bool SupportsBreakpointSync { get; set; } public bool ShellIntegrationEnabled { get; set; } + } } diff --git a/src/PowerShellEditorServices/Utility/PathUtils.cs b/src/PowerShellEditorServices/Utility/PathUtils.cs index 7cab92092..f744f987a 100644 --- a/src/PowerShellEditorServices/Utility/PathUtils.cs +++ b/src/PowerShellEditorServices/Utility/PathUtils.cs @@ -70,7 +70,7 @@ internal static bool HasPowerShellScriptExtension(string fileNameOrPath) return false; } - ReadOnlySpan pathSeparators = stackalloc char[] { DefaultPathSeparator, AlternatePathSeparator }; + ReadOnlySpan pathSeparators = stackalloc char[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }; ReadOnlySpan asSpan = fileNameOrPath.AsSpan().TrimEnd(pathSeparators); int separatorIndex = asSpan.LastIndexOfAny(pathSeparators); if (separatorIndex is not -1)