提交 3d688527 编写于 作者: R Rob Lourens

Settings editor - fix editing settings during search

上级 e38de720
......@@ -565,6 +565,10 @@ export class SettingsEditor2 extends BaseEditor {
resolvedSettingsRoot.children.push(resolveExtensionsSettings(dividedGroups.extension || []));
if (this.searchResultModel) {
this.searchResultModel.updateChildren();
}
if (this.settingsTreeModel) {
this.settingsTreeModel.update(resolvedSettingsRoot);
} else {
......
......@@ -907,10 +907,12 @@ export class SearchResultModel {
}
this.rawSearchResults[type] = result;
this.updateChildren();
}
// Recompute children
updateChildren(): void {
this.children = this.getFlatSettings()
.map(s => createSettingsTreeSettingElement(s, result, this._viewState.settingsTarget, this._configurationService));
.map(s => createSettingsTreeSettingElement(s, this, this._viewState.settingsTarget, this._configurationService));
}
private getFlatSettings(): ISetting[] {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册