diff --git a/src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts b/src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts index df153f089e62e..44ad8bb9512f8 100644 --- a/src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts +++ b/src/vs/workbench/contrib/preferences/browser/settingsEditor2.ts @@ -343,10 +343,7 @@ export class SettingsEditor2 extends EditorPane { super.setEditorVisible(visible, group); if (!visible) { - // Wait for editor to be removed from DOM #106303 - process.nextTick(() => { - this.searchWidget.onHide(); - }); + this.searchWidget.onHide(); } }