WSL2 support - fixes #271

This commit is contained in:
Eugene Pankov
2020-04-19 14:56:31 +02:00
parent f58cab0820
commit b29ab2690f
9 changed files with 34 additions and 20 deletions

View File

@@ -155,6 +155,8 @@ export class ConfigService {
}
save (): void {
// Scrub undefined values
this._store = JSON.parse(JSON.stringify(this._store))
fs.writeFileSync(this.path, yaml.safeDump(this._store), 'utf8')
this.emitChange()
this.hostApp.broadcastConfigChange(this.store)