File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
src/PowerShellEditorServices Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,5 @@ internal struct HostStartOptions
12
12
public bool SupportsBreakpointSync { get ; set ; }
13
13
14
14
public bool ShellIntegrationEnabled { get ; set ; }
15
+ }
15
16
}
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ internal static bool HasPowerShellScriptExtension(string fileNameOrPath)
70
70
return false ;
71
71
}
72
72
73
- ReadOnlySpan < char > pathSeparators = stackalloc char [ ] { DefaultPathSeparator , AlternatePathSeparator } ;
73
+ ReadOnlySpan < char > pathSeparators = stackalloc char [ ] { Path . DirectorySeparatorChar , Path . AltDirectorySeparatorChar } ;
74
74
ReadOnlySpan < char > asSpan = fileNameOrPath . AsSpan ( ) . TrimEnd ( pathSeparators ) ;
75
75
int separatorIndex = asSpan . LastIndexOfAny ( pathSeparators ) ;
76
76
if ( separatorIndex is not - 1 )
You can’t perform that action at this time.
0 commit comments