Avoid paths with invalid characters in IsRider
(cherry picked from commit 34c3966510
)
This commit is contained in:
parent
9d1a972b49
commit
8f426262c8
1 changed files with 3 additions and 0 deletions
|
@ -66,6 +66,9 @@ namespace GodotTools.Ides.Rider
|
||||||
if (string.IsNullOrEmpty(path))
|
if (string.IsNullOrEmpty(path))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (path.IndexOfAny(System.IO.Path.GetInvalidPathChars()) != -1)
|
||||||
|
return false;
|
||||||
|
|
||||||
var fileInfo = new FileInfo(path);
|
var fileInfo = new FileInfo(path);
|
||||||
string filename = fileInfo.Name.ToLowerInvariant();
|
string filename = fileInfo.Name.ToLowerInvariant();
|
||||||
return filename.StartsWith("rider", StringComparison.Ordinal);
|
return filename.StartsWith("rider", StringComparison.Ordinal);
|
||||||
|
|
Loading…
Reference in a new issue