about summary refs log tree commit diff
path: root/editors/code/src/persistent_state.ts
AgeCommit message (Collapse)AuthorLines
2020-03-19Rewrite auto-updateAleksey Kladov-36/+28
Everything now happens in main.ts, in the bootstrap family of functions. The current flow is: * check everything only on extension installation. * if the user is on nightly channel, try to download the nightly extension and reload. * when we install nightly extension, we persist its release id, so that we can check if the current release is different. * if server binary was not downloaded by the current version of the extension, redownload it (we persist the version of ext that downloaded the server).
2020-03-16Separate persistent mutable state from configAleksey Kladov-0/+49
That way, we clearly see which things are not change, and we also clearly see which things are persistent.