Skip to content

Commit

Permalink
fix: allow to reopen AI history widget
Browse files Browse the repository at this point in the history
The AI history widget was bound as a singleton. Therefore once a new
instance was requested, the old disposed instance was reused instead.
This is now fixed by removing the singleton scope.

Fixes #14236

Signed-off-by: Stefan Dirix <[email protected]>
  • Loading branch information
sdirix committed Nov 8, 2024
1 parent c7a1f49 commit 527d278
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default new ContainerModule(bind => {

bindViewContribution(bind, AIHistoryViewContribution);

bind(AIHistoryView).toSelf().inSingletonScope();
bind(AIHistoryView).toSelf();
bind(WidgetFactory).toDynamicValue(context => ({
id: AIHistoryView.ID,
createWidget: () => context.container.get<AIHistoryView>(AIHistoryView)
Expand Down

0 comments on commit 527d278

Please sign in to comment.