提交 2c74afbf 编写于 作者: R Rob Lourens

Settings editor - fix initially unselected TOC item

上级 19b17ef7
......@@ -147,8 +147,10 @@ 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(() => {
return this.render(token);
// Init TOC selection
this.updateTreeScrollSync();
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册