提交 7446ff46 编写于 作者: R Rob Lourens

#3355 - ensure UI is rerendered when changing a setting, even if it doesn't...

#3355 - ensure UI is rerendered when changing a setting, even if it doesn't result in a onDidChangeConfiguration firing
上级 1800414c
......@@ -136,7 +136,7 @@ export class SettingsEditor2 extends BaseEditor {
this.remoteSearchThrottle = new ThrottledDelayer(200);
this.searchResultModel = new SearchResultModel();
this._register(configurationService.onDidChangeConfiguration(() => this.render()));
this._register(configurationService.onDidChangeConfiguration(() => this.renderEntries()));
}
createEditor(parent: HTMLElement): void {
......@@ -279,8 +279,10 @@ export class SettingsEditor2 extends BaseEditor {
}
private onDidChangeSetting(key: string, value: any): void {
// ConfigurationService displays the error
this.configurationService.updateValue(key, value, <ConfigurationTarget>this.settingsTargetsWidget.settingsTarget);
// ConfigurationService displays the error if this fails.
// Force a render afterwards because onDidConfigurationUpdate doesn't fire if the update doesn't result in an effective setting value change
this.configurationService.updateValue(key, value, <ConfigurationTarget>this.settingsTargetsWidget.settingsTarget)
.then(() => this.renderEntries());
const reportModifiedProps = {
key,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册