Close Model Alerts view when Model editor closes (#3468)

This commit is contained in:
Charis Kyriakou
2024-03-14 10:39:44 +00:00
committed by GitHub
parent bbc881e7c7
commit aa2f371583

View File

@@ -87,5 +87,13 @@ export class ModelAlertsView extends AbstractWebview<
}
}),
);
this.push(
this.modelingEvents.onDbClosed(async (event) => {
if (event === this.dbItem.databaseUri.toString()) {
this.dispose();
}
}),
);
}
}