From 47ec23b81ece55b082ee38dbfdd51fac665aa096 Mon Sep 17 00:00:00 2001 From: Martin Fleck Date: Tue, 23 Apr 2024 06:55:07 +0000 Subject: [PATCH] Bind Extension search bar within view container so it is re-created (#13623) Fixes https://github.com/eclipse-theia/theia/issues/13622 --- .../vsx-registry/src/browser/vsx-registry-frontend-module.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vsx-registry/src/browser/vsx-registry-frontend-module.ts b/packages/vsx-registry/src/browser/vsx-registry-frontend-module.ts index fe3b8f4416b00..2bb0b34eec0c9 100644 --- a/packages/vsx-registry/src/browser/vsx-registry-frontend-module.ts +++ b/packages/vsx-registry/src/browser/vsx-registry-frontend-module.ts @@ -78,6 +78,7 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => { progressLocationId: 'extensions' }); child.bind(VSXExtensionsViewContainer).toSelf(); + child.bind(VSXExtensionsSearchBar).toSelf().inSingletonScope(); const viewContainer = child.get(VSXExtensionsViewContainer); const widgetManager = child.get(WidgetManager); for (const id of [ @@ -96,7 +97,6 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => { })).inSingletonScope(); bind(VSXExtensionsSearchModel).toSelf().inSingletonScope(); - bind(VSXExtensionsSearchBar).toSelf().inSingletonScope(); rebind(LanguageQuickPickService).to(VSXLanguageQuickPickService).inSingletonScope();