Roald87 / TcBlack

Opnionated code formatter for TwinCAT.
MIT License
105 stars 10 forks source link

Only find files with .sln extension #23

Closed Roald87 closed 4 years ago

Roald87 commented 4 years ago

Currently if there is a file which is called .slnbak then it can't find a single .sln file and thus it will return an empty sln path.

Roald87 commented 4 years ago

It sometimes finds multiple files due to

https://docs.microsoft.com/en-us/dotnet/api/system.io.directory.enumeratefiles?view=netcore-3.1

If the specified extension is exactly three characters long, the method returns files with extensions that begin with the specified extension. For example, "*.xls" returns both "book.xls" and "book.xlsx".