Skip to content

Commit

Permalink
Fix bug EasyAbp#238 MenuContributor problem
Browse files Browse the repository at this point in the history
  • Loading branch information
naderjavid committed Jun 26, 2024
1 parent 39aea50 commit d1043a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ CSharpSyntaxNode MainMenu(CSharpSyntaxNode root) => root.Descendants<MethodDecla
usingForAppText,
modifyCondition: root => root.NotContains(usingForAppText)
));
builders.Add(new DeletionBuilder<CSharpSyntaxNode>(
root => MainMenu(root).GetEndLine() - 1,
root => MainMenu(root).GetEndLine() - 1,
modifyCondition: root => !root.NotContains("return Task.CompletedTask;")
));
builders.Add(
new InsertionBuilder<CSharpSyntaxNode>(
root => MainMenu(root).GetEndLine(),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{~ if !Option.SkipPermissions ~}}
using {{ ProjectInfo.FullName }}.Permissions;
{{~ end ~}}
private async Task ConfigureMainMenuAsync(MenuConfigurationContext context)

0 comments on commit d1043a2

Please sign in to comment.