Sergey Mikolaitis
2 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
5 additions and
0 deletions
-
src/tools/Avalonia.Generators/NameGenerator/AvaloniaNameIncrementalGenerator.cs
|
|
@ -34,6 +34,11 @@ public class AvaloniaNameIncrementalGenerator : IIncrementalGenerator |
|
|
var (options, optionsProvider) = pair.Right; |
|
|
var (options, optionsProvider) = pair.Right; |
|
|
var filePath = text.Path; |
|
|
var filePath = text.Path; |
|
|
|
|
|
|
|
|
|
|
|
if (!options.AvaloniaNameGeneratorIsEnabled) |
|
|
|
|
|
{ |
|
|
|
|
|
return false; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
if (!(filePath.EndsWith(".xaml", StringComparison.OrdinalIgnoreCase) || |
|
|
if (!(filePath.EndsWith(".xaml", StringComparison.OrdinalIgnoreCase) || |
|
|
filePath.EndsWith(".paml", StringComparison.OrdinalIgnoreCase) || |
|
|
filePath.EndsWith(".paml", StringComparison.OrdinalIgnoreCase) || |
|
|
filePath.EndsWith(".axaml", StringComparison.OrdinalIgnoreCase))) |
|
|
filePath.EndsWith(".axaml", StringComparison.OrdinalIgnoreCase))) |
|
|
|