amatiasq / vsc-sort-imports

Sort ES6 imports automatically.
ISC License
58 stars 24 forks source link

Keep code folding on after imports sort #32

Closed sergeyzwezdin closed 5 years ago

sergeyzwezdin commented 5 years ago

I use sort-imports extension and run it on each file save. It's convenient, but I have a problem with large files. When I save the file, the folds expand and the current file position changes.

After googling I came across this post and found that the reason is your extension.

Could you please make it possible not to expand folded regions?

amatiasq commented 5 years ago

This is related to the fact the whole file gets processed when the sorting operation is executed as stated in #7.

This bug has proven really hard to fix, any help will be much appreciated.

amatiasq commented 5 years ago

I'm happy to say this was fixed in #34, all credit goes to @jansav 😄