import * as vscode from "vscode" ; const home = process . env . HOME || process . env . USERPROFILE ; export class Config { private static get _config ( ) { return vscode . workspace . getConfiguration ( ) ; } static hasConfig ( key ) { const conf = this . getConfig ( key ) ; return conf !== null && conf !== undefined && conf !== "" ; } static getConfig ( key ) { return this . _config . has ( `stories.${ key }` ) ? this . _config . get ( `stories.${ key }` ) : null ; } static async setConfig ( key , value ) { return await this . _config . update ( `stories.${ key }` , value , vscode . ConfigurationTarget . Global ) ; } }