import * as assert from 'assert' ; import { ConfigurationTarget } from "vscode" ; import { IConfiguration } from "../../extension.bundle" ; export class TestConfiguration implements IConfiguration { public Test_globalValues : Map < string , unknown > = new Map < string , unknown > ( ) ; public get < T > ( key ) { return < T > this . Test_globalValues . get ( key ) ; } public inspect < T > ( key ) { const value = < T > this . Test_globalValues . get ( key ) ; return { globalValue : value } ; } public async update ( section , value , configurationTarget ? ) { assert ( configurationTarget === ConfigurationTarget . Global , "NYI" ) ; this . Test_globalValues . set ( section , value ) ; } }