import { ExtensionContext , Memento , workspace , WorkspaceConfiguration } from 'vscode' ; export class WorkspaceUtils { private context : ExtensionContext | undefined ; private static _instance : WorkspaceUtils ; public static get instance ( ) { if ( WorkspaceUtils . _instance === undefined ) { WorkspaceUtils . _instance = new WorkspaceUtils ( ) ; } return WorkspaceUtils . _instance ; } public init ( extensionContext ) { this . context = extensionContext ; } public getGlobalStore ( ) { return this . context && this . context . globalState ; } public getWorkspaceSettings ( ) { return workspace . getConfiguration ( 'salesforcedx-vscode-lwc' ) ; } }