resharper-fsharp icon indicating copy to clipboard operation
resharper-fsharp copied to clipboard

When applying formatting sometimes the file jump to the bottom

Open MangelMaxime opened this issue 2 years ago • 2 comments

This break a lot the workflow because then I need find the line I was at.

https://user-images.githubusercontent.com/4760796/186752943-cb7a4410-d5d9-4247-8074-0a96b6fca592.mp4

Version: 2022.2 Build: RD-222.3345.139 OS: Windows

MangelMaxime avatar Aug 25 '22 19:08 MangelMaxime

@DedSec256 Could you please check if this has been previously reported to YouTrack? I'm not sure if it's F#/Fantomas-specific.

auduchinok avatar Aug 26 '22 11:08 auduchinok

@auduchinok, I didn't find any related issue, so I created a new one

DedSec256 avatar Aug 27 '22 01:08 DedSec256

Fixed in https://github.com/JetBrains/resharper-fsharp/pull/484. For now, the fix will work if a global/local Fantomas tool version >6.0.0-alpha-004 is used. When the release version of Fantomas 6 is released, we will update the built-in version of the formatter in the plugin and it will work out of the box.

DedSec256 avatar Mar 03 '23 17:03 DedSec256