提交 e93a8262 编写于 作者: S Sandeep Somavarapu

Fix #19443

上级 0cb79bfe
......@@ -268,20 +268,21 @@ export class ConfigModel<T> implements IConfigModel<T> {
}
export class DefaultConfigModel<T> extends ConfigModel<T> {
private _keys: string[];
constructor() {
super(null);
this.update();
}
protected get _contents(): T {
return getDefaultValues(); // defaults coming from contributions to registries
}
protected set _contents(arg: T) {
//no op
public get keys(): string[] {
return this._keys;
}
public get keys(): string[] {
return getConfigurationKeys();
public update(): void {
this._contents = getDefaultValues(); // defaults coming from contributions to registries
this._keys = getConfigurationKeys();
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册