Files
azuredatastudio/src/sql/workbench/contrib/executionPlan/browser/executionPlanFileViewCache.ts
Aasim Khan 387f4cd116 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
2022-04-12 12:52:24 -07:00

23 lines
905 B
TypeScript

/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the Source EULA. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { ExecutionPlanFileView } from 'sql/workbench/contrib/executionPlan/browser/executionPlanFileView';
export class ExecutionPlanFileViewCache {
private static instance: ExecutionPlanFileViewCache;
public executionPlanFileViewMap: Map<string, ExecutionPlanFileView> = new Map();
private constructor() { }
public static getInstance(): ExecutionPlanFileViewCache {
if (!ExecutionPlanFileViewCache.instance) {
ExecutionPlanFileViewCache.instance = new ExecutionPlanFileViewCache();
}
return ExecutionPlanFileViewCache.instance;
}
}