vizhub-core / vzcode

Mob Programming Code Editor
MIT License
55 stars 13 forks source link

Bug: You can create files with duplicate names, which then deletes the originanal file. #653

Closed enuessle closed 2 months ago

enuessle commented 2 months ago

In the VZCode interface, naming file to a name that already exists works, and creates a new file in VZCode. Two Index js

On the file system however it just ends up deleting all the contents of the original file, which goes against what the VZCode interface is saying Deletes Contents

Ideally it should work like VSCode and not let you name something if it already exists, or just add some numeral at the end to mark it as separate and not break things.

curran commented 2 months ago

Aha! Very nice observation. I'd definitely welcome this change. Thanks for spotting this!