提交 643a15e5 编写于 作者: R Rob Lourens

Settings editor - fix not focusing search when restoring editor

setInput must be actually async. Will be fixed naturally when we aren't using winJS promises...
上级 7f5beafe
......@@ -139,8 +139,8 @@ export class SettingsEditor2 extends BaseEditor {
this.inSettingsEditorContextKey.set(true);
return super.setInput(input, options, token)
.then(() => {
this.render(token);
});
return this.render(token);
}).then(() => new Promise(process.nextTick)); // Force setInput to be async
}
clearInput(): void {
......@@ -573,7 +573,7 @@ export class SettingsEditor2 extends BaseEditor {
this._register(model.onDidChangeGroups(() => this.onConfigUpdate()));
this.defaultSettingsEditorModel = model;
this.onConfigUpdate();
return this.onConfigUpdate();
});
}
return TPromise.as(null);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册