-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code Quality: Clean up Files.Actions phase 1 #12677
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should consider opening a different PR to refactor the initialization of context
in most actions.
There are some little things that might be improved, but apart from that looks good
There are three missing ;
:
DecompressArchive.cs
at line36
DecompressArchiveHere.cs
at line30
BaseSetAsAction.cs
at line32
src/Files.App/Actions/Content/Archives/DecompressArchiveToChildFolderAction.cs
Show resolved
Hide resolved
How come should I? I think it’s fine so far. Probably I will split up phase 1 PR into multiple PRs, so reviewers can review quickly and easily. |
There are a lot of I think the assignment should be moved to the constructor |
All of them were moved. |
Ready for final review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There might be errors with tasks not awaited
src/Files.App/Actions/Navigation/CloseOtherTabsCurrentAction.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more style-related issues, but I don't think they are blockers
src/Files.App/Actions/Content/Archives/CompressIntoZipAction.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@yaira2 Ready to merge? |
@0x5bfa this looks like a big change, I'd like to get a second review before merging. |
Should I have split up into like 3 PRs? I can do that instead of fixing conflicts and waiting reviews. |
We can do them together |
@0x5bfa besides for formatting, were there any other changes? |
Change overview
|
Code Quality: Clean up Files.Actions
Motivation & Context
PR Checklist
Related Feature: Improving Performance, optimizations, reliability and codebase #4180
Screenshots
None