-
Notifications
You must be signed in to change notification settings - Fork 436
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
Surround with try/catch reformats document #1572
Comments
Can you check if it is the same behavior in Eclipse? If yes, then that would need to be fixed in upstream JDT |
I can confirm this. It doesn't happen on Eclipse. Tried with Version: 2020-06 (4.16.0) Build id: 20200615-1200. |
I just noticed, when you type `var` and use the "Change type of '...' to
'...'" then this reformats happens as well.
It is also really aggressive with comments.
|
Any updates on this issue? I noticed that this happens for any source action in VSCode. Today I tried to automatically add getter setter for a particular field and it reformatted the whole class. However, the source action and formatting are happening in 2 separate stages. I was able to undo the formatting and keep the source action result. |
Wondering if this is being looked into. |
This behaviour is more then a year old, but it often bugs me so hard that I thought it's time for a report.
It just happened again on a really large file where I noticed it way too late.
Ok, when using try/catch the whole document gets reformatted:
before:
after:
Environment
The text was updated successfully, but these errors were encountered: