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:
Aasim Khan
2022-04-12 12:52:24 -07:00
committed by GitHub
parent 675969eebc
commit 387f4cd116
21 changed files with 1902 additions and 1122 deletions

View File

@@ -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;
}
}

View File

@@ -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();
});