/**
 * All cached data will lost on vscode reload.
 */ const cache = { } ; function hasCache ( key ) { return Object . hasOwnProperty . call ( cache , key ) ; } function setCache < T > ( key , value ) { cache [ key ] = value ; return value ; } function getCache < T = any > ( key , value ? ) { if ( cache [ key ] === undefined ) cache [ key ] = value ; return cache [ key ] ; } export { hasCache , getCache , setCache } ;