Vasily-X / AutoFoldCode

A Sublime Text package that saves/restores folded code regions in files automatically.
25 stars 5 forks source link

Why is the settings file so large? #20

Open WoodrowShigeru opened 1 year ago

WoodrowShigeru commented 1 year ago

My AutoFoldCode.sublime-settings has grown to 6 MB and it slows down saving and closing files.

I've had a look inside and I'm seeing lots of commented-out blocks. For testing, I've opened the first referenced file and cleared any folding. Closing the file did not remove that first file block. When instead I've added a fresh new single small fold to the file and closed it, a new entry was saved into the settings. Reopening the file, clearing the fold and closing it did indeed comment out that new block.

Why does AutoFoldCode.sublime-settings store old information like that?

Arkane-x6 commented 10 months ago

Mine was 32 MB I believe this is due to ST's behavior of settings modifications. Changes (most) will result to a commented old data, as we can see in User/Preferences.sublime-settings