Skip to content

Commit aa2f371

Browse files
authored
Close Model Alerts view when Model editor closes (#3468)
1 parent bbc881e commit aa2f371

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

extensions/ql-vscode/src/model-editor/model-alerts/model-alerts-view.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,13 @@ export class ModelAlertsView extends AbstractWebview<
8787
}
8888
}),
8989
);
90+
91+
this.push(
92+
this.modelingEvents.onDbClosed(async (event) => {
93+
if (event === this.dbItem.databaseUri.toString()) {
94+
this.dispose();
95+
}
96+
}),
97+
);
9098
}
9199
}

0 commit comments

Comments
 (0)