maptz.vscode.extensions.customfolding
maptz.vscode.extensions.customfolding copied to clipboard
Question: How to Disable Code Reformatting
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!
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! ❤️
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).