Prettier-atom: Format undoes all editor folds

Created on 30 Jun 2017  路  5Comments  路  Source: prettier/prettier-atom

Here's a gif of the behavior. This happens whether I format manually or hit save to format.

bad

Not 100% certain you can do anything about this, but maybe? Perhaps keep track of all the folded coded and refold it when you're done?

enhancement help wanted

All 5 comments

I'm not sure, I'd have to take a deeper look at how code folding is done. Unlike #105, this isn't just based on arbitrary line numbers (which can become inaccurate after formatting), so this one might be more within the realm of possibility.

Sorry to hear that @phil-andrews. This is an open source project, so if it matters that much to you I'm certain that @robwise would welcome a pull request :smile:

I guess he'd rather delete his post instead 馃槙

To anyone reading this, I definitely DO appreciate pull requests! If you're new to OSS, check out Kent's free course on OSS (see his link). Also, let me know what I can do to make it easier to contribute!

The comment I left added nothing to the conversation and shouldn't have been left in the first place so I felt it was better to delete it. I do appreciate the direction towards contributing 馃憤

I'm not sure it's possible to do this and it's not a huge deal to me anyway so I'm going to go ahead and close this :)

Was this page helpful?
0 / 5 - 0 ratings