maptz.vscode.extensions.customfolding icon indicating copy to clipboard operation
maptz.vscode.extensions.customfolding copied to clipboard

Question: How to Disable Code Reformatting

Open NotGovernor opened this issue 1 year ago • 2 comments

Hey, great extension! Thanks for your work on it.

I'm using it for the first time with Rust at the moment and when calling "wrap selection with region tags" it seems to be adding the region tags correctly and then automatically running a format document of some kind on the code file. I then have to UNDO the formatting each time.

My question is how to disable this formatting call? I just need the region tags. Thanks again!

NotGovernor avatar Aug 01 '23 01:08 NotGovernor

Looks like there's no setting for disabling this behavior.

https://github.com/maptz/maptz.vscode.extensions.customfolding/blob/4ccfb4cb824e7d393662dfd469b5daf12299f7cc/src/engine/RegionWrapper.ts#L82C16-L87C19

So perhaps this should be a feature request! ❤️

NotGovernor avatar Aug 01 '23 01:08 NotGovernor

I'm also looking forward to this. I would consider this a bug instead of a feaure request. It actually ignores user default settings, it should not be a thing at all or opt-in configuration I suppose. I will stick to undoing the formatting until it is fixed (eventually).

MaxDesignFR avatar Oct 17 '23 16:10 MaxDesignFR