import * as vscode from 'vscode' ; /**
 * A memento represents a storage utility. It can store and retrieve
 * values.
 */ export class FakeMemento implements vscode . Memento { private store : Map < string , any > = new Map ( ) ; param key param defaultValue return get < T > ( key , defaultValue ? ) { if ( this . store . get ( key ) !== undefined ) { return this . store . get ( key ) ; } return defaultValue ! ; } param key param value async update ( key , value ) { this . store . set ( key , value ) ; } }