提交 55fa388f 编写于 作者: S Sandeep Somavarapu

fix #65272

上级 03a2a1ef
......@@ -453,7 +453,7 @@ export class DefaultSettings extends Disposable {
getContent(forceUpdate = false): string {
if (!this._content || forceUpdate) {
this._content = this.toContent(true, this.getSettingsGroups(forceUpdate));
this.initialize();
}
return this._content;
......@@ -461,12 +461,17 @@ export class DefaultSettings extends Disposable {
getSettingsGroups(forceUpdate = false): ISettingsGroup[] {
if (!this._allSettingsGroups || forceUpdate) {
this._allSettingsGroups = this.parse();
this.initialize();
}
return this._allSettingsGroups;
}
private initialize(): void {
this._allSettingsGroups = this.parse();
this._content = this.toContent(true, this._allSettingsGroups);
}
private parse(): ISettingsGroup[] {
const settingsGroups = this.getRegisteredGroups();
this.initAllSettingsMap(settingsGroups);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册