提交 750680d2 编写于 作者: R Rob Lourens 提交者: Daniel Imms

Fix #72354

上级 12cb89c8
......@@ -209,6 +209,9 @@ 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(() => {
return this.render(token);
})
.then(() => {
if (!options) {
if (!this.viewState.settingsTarget) {
......@@ -224,9 +227,6 @@ export class SettingsEditor2 extends BaseEditor {
this.searchWidget.setValue('');
}));
return this.render(token);
})
.then(() => {
// Init TOC selection
this.updateTreeScrollSync();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册