Skip to content
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][monaco] Implement Save without Formatting command #8543

Merged

Conversation

DucNgn
Copy link
Contributor

@DucNgn DucNgn commented Sep 22, 2020

What it does

Fixes: #8375

How to test

  • Make changes to a file (might be in wrong format/convention to better observe the functionality)
  • Use key binding: ctrlcmd+k s or choose from the command palette the option Save without Formatting
  • Expected behavior: The document is saved, but not formatted by the editor.

Review checklist

Reminder for reviewers

Signed-off-by: Duc Nguyen duc.a.nguyen@ericsson.com

@DucNgn DucNgn marked this pull request as draft September 22, 2020 16:07
@DucNgn DucNgn force-pushed the dn/CommandSaveWithoutFormatting branch from 5971b35 to ba9f9a2 Compare September 22, 2020 17:45
@DucNgn DucNgn marked this pull request as ready for review September 22, 2020 17:50
@vince-fugnitto vince-fugnitto added the filesystem issues related to the filesystem label Sep 22, 2020
Copy link
Member

@vince-fugnitto vince-fugnitto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes work very well with me, and I'm happy with the approach 👍
I'll give it time for others to review as well, we can potential include it after the release.

@vince-fugnitto
Copy link
Member

@kittaakos whenever you have an opportunity would you mind reviewing as well?

+ Adds key binding of `ctrlcmd+k s` to save without formatting
+ Implements the command

Signed-off-by: Duc Nguyen <duc.a.nguyen@ericsson.com>
@DucNgn DucNgn force-pushed the dn/CommandSaveWithoutFormatting branch from bb90dcf to 2f98e45 Compare September 24, 2020 13:22
@DucNgn
Copy link
Contributor Author

DucNgn commented Sep 24, 2020

I updated this PR with minor changes in variable name and documentation (as recommended by @vince-fugnitto #8554 (comment))

@vince-fugnitto vince-fugnitto merged commit 0e79595 into eclipse-theia:master Sep 28, 2020
@DucNgn DucNgn deleted the dn/CommandSaveWithoutFormatting branch September 28, 2020 15:04
@kittaakos
Copy link
Contributor

@dukengn, as I see VS Code does not have a menu item Save without formatting, this breaks the UX for downstream.

Screen Shot 2020-12-17 at 08 57 11

If we often break the UX, downstream will opt-out from Theia as the maintenance is problematic.

@vince-fugnitto
Copy link
Member

@dukengn, as I see VS Code does not have a menu item Save without formatting, this breaks the UX for downstream.
If we often break the UX, downstream will opt-out from Theia as the maintenance is problematic.

Sorry about that @kittaakos, I should have picked it up during the review.

For the future, I assume that adding new menu items which are also present in vscode is considered as the only non-breaking UX changes acceptable for downstream apps? Or, do you believe we should advertise (changelog) all menu changes as breaking UX, and even be cautious about including them in the framework.

@kittaakos
Copy link
Contributor

Sorry about that @kittaakos, I should have picked it up during the review.

No problem at all.

or the future, I assume that adding new menu items which are also present in vscode is considered as the only non-breaking UX changes acceptable for downstream apps?

We all should agree on something that fits for all of us. Let's have a dev call about it next year.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filesystem issues related to the filesystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New command: Save without formatting
5 participants