Closed tuomashatakka closed 7 years ago
Now it's a bit more bullet-proof than the previous way it was done. There seems to be a way to use less functions without actually writing them on a file - it needs a bit more research though.
Changed the config file to be written into the atom's storage folder and changed the write to be synchronous. Also added throttling so now an extensive amount of write operations should not occur
Related:
With async writing of the configuration file it's possible for multiple streams to write into the configuration file simultaneously. Oftentimes the resulting file is invalidated by the less compiler and causes the atom to crash on theme activation.
Write calls also need to be debounced and the amount of them needs to be reduced.