Merge pull request #64085 from raulsntos/fix-rider-check

This commit is contained in:
Rémi Verschelde 2022-08-08 08:58:21 +02:00 committed by GitHub
commit 01ce034398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,6 +66,9 @@ namespace GodotTools.Ides.Rider
if (string.IsNullOrEmpty(path))
return false;
if (path.IndexOfAny(Path.GetInvalidPathChars()) != -1)
return false;
var fileInfo = new FileInfo(path);
string filename = fileInfo.Name.ToLowerInvariant();
return filename.StartsWith("rider", StringComparison.Ordinal);