-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
core: Command Save All
only formats the file if it is dirty
#8554
core: Command Save All
only formats the file if it is dirty
#8554
Conversation
Save All
only formats the file if it is dirtySave All
only formats the file if it is dirty
e2dad66
to
a95f620
Compare
Save All
only formats the file if it is dirtySave All
only formats the file if it is dirty
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.
I have a few comments about the code itself, I have yet to perform a review but overall it looks good!
3b46e6f
to
466128f
Compare
@vince-fugnitto Thanks for the feedbacks. I've updated this PR according to your review. |
934b4ef
to
060bd77
Compare
060bd77
to
9bfbeb6
Compare
9bfbeb6
to
652ff57
Compare
9822692
to
39a4731
Compare
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.
I just had a few nitpick, LGTM otherwise!
39a4731
to
d70e2d4
Compare
0c33905
to
1bc9fca
Compare
+ Refactor `SaveOptions` + Command `Save All` only formats the file if it is dirty Signed-off-by: Duc Nguyen <duc.a.nguyen@ericsson.com>
1bc9fca
to
52ad2f0
Compare
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.
The changes work well for me 👍
Use Case | Result |
---|---|
Save |
saves and formats the given document |
Save (preference off) |
saves but does not format the given document |
Save All (with dirty) |
saves the dirty documents and formats them |
Save All (without dirty) |
does not format the documents |
Save without Formattting |
saves the document without formatting |
I'll merge tomorrow if there are no objections 👍 |
What it does
Fixes #8548
Save All
now formats all open editors #8551 and [core][monaco] ImplementSave without Formatting
command #8543Save All
now only formats the file if it is dirtyHow to test
formatOnSave
Save All
from command palette or by using shortcutReview checklist
Reminder for reviewers
Signed-off-by: Duc Nguyen duc.a.nguyen@ericsson.com