Fix #121362

上级 564bcfe4
......@@ -290,18 +290,16 @@ export class SettingsEditor2 extends EditorPane {
}));
this.defaultSettingsEditorModel = model;
// Don't block setInput on render (which can trigger an async search)
this.onConfigUpdate(undefined, true).then(() => {
options = options || SettingsEditorOptions.create({});
if (!this.viewState.settingsTarget) {
if (!options.target) {
options.target = ConfigurationTarget.USER_LOCAL;
}
options = options || SettingsEditorOptions.create({});
if (!this.viewState.settingsTarget) {
if (!options.target) {
options.target = ConfigurationTarget.USER_LOCAL;
}
}
this._setOptions(options);
this._setOptions(options);
// Don't block setInput on render (which can trigger an async search)
this.onConfigUpdate(undefined, true).then(() => {
this._register(input.onWillDispose(() => {
this.searchWidget.setValue('');
}));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册