Skip to content

Commit

Permalink
Fix build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SeeminglyScience committed Sep 13, 2023
1 parent f357fa1 commit bed8cc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ internal struct HostStartOptions
public bool SupportsBreakpointSync { get; set; }

public bool ShellIntegrationEnabled { get; set; }
}
}
2 changes: 1 addition & 1 deletion src/PowerShellEditorServices/Utility/PathUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ internal static bool HasPowerShellScriptExtension(string fileNameOrPath)
return false;
}

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

0 comments on commit bed8cc3

Please sign in to comment.