mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 11:38:36 -05:00
Some general cleanup/fixes for Arc dashboards (#11066)
* Some general cleanup/fixes for Arc dashboards * more disposables * refresh controller model for miaa dashboard too * fixes
This commit is contained in:
@@ -4,12 +4,21 @@
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
import * as azdata from 'azdata';
|
||||
import * as vscode from 'vscode';
|
||||
import { InitializingComponent } from './initializingComponent';
|
||||
|
||||
export abstract class DashboardPage extends InitializingComponent {
|
||||
|
||||
protected disposables: vscode.Disposable[] = [];
|
||||
|
||||
constructor(protected modelView: azdata.ModelView) {
|
||||
super();
|
||||
this.disposables.push(modelView.onClosed(() => {
|
||||
// Clean up best we can
|
||||
this.disposables.forEach(d => {
|
||||
try { d.dispose(); } catch { }
|
||||
});
|
||||
}));
|
||||
}
|
||||
|
||||
public get tab(): azdata.DashboardTab {
|
||||
|
||||
Reference in New Issue
Block a user