import * as vscode from "vscode" ; import { CordovaWorkspaceManager } from "./cordovaWorkspaceManager" ; export class ProjectsStorage { public static readonly projectsCache : { [ key ] : CordovaWorkspaceManager ; } = { } ; public static addFolder ( workspaceFolder , workspaceManager ) { this . projectsCache [ workspaceFolder . uri . fsPath . toLowerCase ( ) ] = workspaceManager ; } public static getFolder ( workspaceFolder ) { return this . projectsCache [ workspaceFolder . uri . fsPath . toLowerCase ( ) ] ; } public static delFolder ( workspaceFolder ) { let key = "" ; if ( typeof workspaceFolder === "string" ) { key = workspaceFolder . toLowerCase ( ) ; } else { key = workspaceFolder . uri . fsPath . toLowerCase ( ) ; } delete this . projectsCache [ key ] ; } }