javavscode icon indicating copy to clipboard operation
javavscode copied to clipboard

Formatting modifies content

Open anthonyvdotbe opened this issue 1 year ago • 2 comments

#65 still occurs and is very annoying because it doesn't mess up the whole file contents. So it might not mess up the part of the code I'm working on and then 10 minutes later I might scroll down and see the mess it has created.

Instead of closing as non-reproducible, please provide me with instructions on how to help you reproduce, so this can actually be fixed.

anthonyvdotbe avatar Jul 16 '24 15:07 anthonyvdotbe

I'm encountering this issue too.

By the way, the problem is more severe when using generative AI completion (e.g. GitHub Copilot).

https://github.com/user-attachments/assets/550a7083-aef0-44c2-b4fb-cace542f6996

balthild avatar Mar 24 '25 22:03 balthild

Hi @balthild. In the last released version of the extension, one of the reasons for the formatter spoiling the code was fixed. It was related to formatting occurring when the code contained syntax errors.

Would you please try and see if your issue is also resolved with this? Thank you.

sid-srini avatar Nov 07 '25 11:11 sid-srini