FixMaster icon indicating copy to clipboard operation
FixMaster copied to clipboard

Warn the user if they attempt to save a pretty printed log over the top of the original file

Open GaryHughes opened this issue 1 year ago • 2 comments

GaryHughes avatar Apr 18 '24 10:04 GaryHughes

I noticed this most when quitting VSCode with a pretty-printed window open. On restart, the file had been overwritten.

Another possible and perhaps cleaner solution is to do the pretty print not into the existing buffer but into a new buffer not associated with a file, and leave the original buffer/file alone.

gnbond avatar Apr 19 '24 04:04 gnbond

A new buffer is a good idea, I'll experiment with that and see how it looks.

GaryHughes avatar Apr 19 '24 23:04 GaryHughes