import * as Collections from 'typescript-collections' ; import * as vscode from 'vscode' ; export class TestMemento implements vscode . Memento { storage : Collections . Dictionary < string , any > ; constructor ( ) { this . storage = new Collections . Dictionary < string , any > ( ) ; } get ( key ) { if ( typeof key === 'string' ) { return this . storage . getValue ( key ) ; } return ; } update ( key , value ) { this . storage . setValue ( key , value ) ; return Promise . resolve ( ) ; } }