amatiasq / vsc-sort-imports

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

VSCode collapse distorted. #116

Open ensemblebd opened 1 month ago

ensemblebd commented 1 month ago

So I thought it was a fluke. But today I tried this plugin again on an entirely separate computer, and the exact same thing happened.

After you hit save on a file, and it sorts the imports (which it does well I might add), from then on - the collapse regions are broken. It'll show the arrow to collapse on an incorrect position, and wildly applies collapse as a result.

image

As you can see, the collapse arrow is in a strange position, on a return statement (just one example). Hitting collapse produces this: image

Even after I remove the plugin completely, all of collapse arrows are completely messed up. I've never had this problem, until installing this. And it's made editing impossible for large files.

Does anyone know how to reset the collapse system in vs code? And how am I the only one reporting this?