-
-
Notifications
You must be signed in to change notification settings - Fork 459
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
fix "editor.formatOnSaveMode": "modifications" #2447
Conversation
248c47f
to
f89ab7a
Compare
@ntotten could you review this? It’s a significant QoL improvement. |
This looks great, can you add some tests though and then I will get it merged. |
I didn't add a test that actually relies on an SCM, but I did add one for formatting multiple ranges, which should test the same code paths. In the process, I also discovered a bug in Prettier: prettier/prettier#12540 |
Awesome. Thanks! |
D'oh! I committed some junk which caused the test to break. Could you try that again please? |
That's great improvement. However, I tested the latest |
@nickqi-tubi what's the file type? |
Hi @rotu , the file type is |
Well, that wrecks my main theory. Maybe you could see if you can reproduce the issue in the prettier web playground? https://prettier.io/playground/ |
fix #630
fix #1562
fix #1677
fix #2295
fix #2330
CHANGELOG.md
with a summary of your changes