use empty model when content is empty

This commit is contained in:
Sandeep Somavarapu
2019-06-23 16:22:30 +02:00
parent a426717b50
commit 4ebbe06e0c

View File

@@ -49,7 +49,7 @@ export class UserConfiguration extends Disposable {
async reload(): Promise<ConfigurationModel> {
try {
const content = await this.userDataService.read(USER_CONFIGURATION_KEY);
const content = (await this.userDataService.read(USER_CONFIGURATION_KEY)) || '{}';
this.parser.parseContent(content);
return this.parser.configurationModel;
} catch (e) {