提交 243f5041 编写于 作者: R Rob Lourens

Fix #57470 - Show the correct values for a persisted settings editor

上级 a31af941
......@@ -155,13 +155,17 @@ export class SettingsEditor2 extends BaseEditor {
this.inSettingsEditorContextKey.set(true);
return super.setInput(input, options, token)
.then(() => new Promise(process.nextTick)) // Force setInput to be async
.then(() => this.render(token))
.then(() => {
const target = this.getSettingsTarget(input);
this.settingsTargetsWidget.settingsTarget = target;
this.viewState.settingsTarget = target;
return this.render(token);
})
.then(() => {
// Init TOC selection
this.updateTreeScrollSync();
this.settingsTargetsWidget.settingsTarget = this.getSettingsTarget(input);
this.onSearchInputChanged();
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册