mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 03:54:24 +01:00
use empty model when content is empty
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user