Skip to content

Commit bed8cc3

Browse files
Fix build errors
1 parent f357fa1 commit bed8cc3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/PowerShellEditorServices/Services/PowerShell/Host/HostStartOptions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ internal struct HostStartOptions
1212
public bool SupportsBreakpointSync { get; set; }
1313

1414
public bool ShellIntegrationEnabled { get; set; }
15+
}
1516
}

src/PowerShellEditorServices/Utility/PathUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ internal static bool HasPowerShellScriptExtension(string fileNameOrPath)
7070
return false;
7171
}
7272

73-
ReadOnlySpan<char> pathSeparators = stackalloc char[] { DefaultPathSeparator, AlternatePathSeparator };
73+
ReadOnlySpan<char> pathSeparators = stackalloc char[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar };
7474
ReadOnlySpan<char> asSpan = fileNameOrPath.AsSpan().TrimEnd(pathSeparators);
7575
int separatorIndex = asSpan.LastIndexOfAny(pathSeparators);
7676
if (separatorIndex is not -1)

0 commit comments

Comments
 (0)