Closed evandrocoan closed 6 years ago
This change was introduced not that long ago and I think the above-mentioned Sublime Text behavior in that comment is still valid. I believe I observed this at least on Sublime Text build 3126 - you can try to comment out or remove this line and take a look at the outcome yourself.
I just tested, Sublime Text does not do that. This plugin does that:
File: Data/Packages/SQLTools/SQLToolsAPI/Storage.py
8: class Storage:
9: def __init__(self, filename, default=None):
10: self.storageFile = filename
11: self.defaultFile = default
12: self.items = {}
13:
14: # copy entire file, to keep comments
15: if not os.path.isfile(filename) and default and os.path.isfile(default):
16: shutil.copyfile(default, filename)
On the lines we can find it:
Above has the comment:
However I never saw Sublime Text doing such thing on version 3. Perhaps this is a fix Sublime Text version 2?