When hard disk on to which files is saved is full, SQL Tools simply saves a corrupted version of file without any error messages. This file is not readable at all.
Used many versions of 1.5 and 1.6 including latest 1.6 Beta build 15 and same thing happens. This caused me to loss many files. Also I save to a network drive which is mapped to my windows machine as a drive in my computer.