import * as vscode from "vscode" ; import { Constants } from "./constants" ; /**
 * Extension configuration, stored as name/value pair
 */ export class Configuration { param name static getProperty < T > ( name ) { return Configuration . instance . get < T > ( name ) ; } param name param value static async setGlobalProperty ( name , value ) { await Configuration . instance . update ( name , value , true ) ; } param name param value static async setWorkspaceProperty ( name , value ) { await Configuration . instance . update ( name , value , false ) ; } private static readonly instance : vscode . WorkspaceConfiguration = vscode . workspace . getConfiguration ( Constants . EXTENSION_NAME ) ; private constructor ( ) { } }