mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-23 17:23:02 -05:00
Adding caching to execution plan and refactoring code and some other fixes (#18913)
* Making ep code modular for easy swithcing in and out * Changing to innerText * Fixing renames * Fixing var name in one file
This commit is contained in:
@@ -5,9 +5,20 @@
|
||||
|
||||
import type * as azdata from 'azdata';
|
||||
|
||||
/**
|
||||
* This class holds the view and the graphs of the execution plans
|
||||
* displayed in the results tab of a query editor
|
||||
*/
|
||||
export class ExecutionPlanState {
|
||||
graphs: azdata.executionPlan.ExecutionPlanGraph[] = [];
|
||||
clearExecutionPlanState() {
|
||||
this.graphs = [];
|
||||
|
||||
private _graphs: azdata.executionPlan.ExecutionPlanGraph[] = [];
|
||||
public executionPlanFileViewUUID: string;
|
||||
|
||||
public get graphs(): azdata.executionPlan.ExecutionPlanGraph[] {
|
||||
return this._graphs;
|
||||
}
|
||||
|
||||
public set graphs(v: azdata.executionPlan.ExecutionPlanGraph[]) {
|
||||
this._graphs = v;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,7 +29,6 @@ export class ResultsViewState {
|
||||
this.gridPanelState.dispose();
|
||||
this.chartState.dispose();
|
||||
this.queryPlanState.dispose();
|
||||
this.executionPlanState.clearExecutionPlanState();
|
||||
this.dynamicModelViewTabsState.forEach((state: QueryModelViewState, identifier: string) => {
|
||||
state.dispose();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user