import * as os from "os" ; import * as path from "path" ; import * as nls from "vscode-nls" ; nls . config ( { messageFormat : nls . MessageFormat . bundle , bundleFormat : nls . BundleFormat . standalone } ) ( ) ; const localize = nls . loadMessageBundle ( ) ; export function settingsHome ( ) { switch ( os . platform ( ) ) { case "win32" : return path . join ( process . env [ "APPDATA" ] , "vscode-cordova" ) ; case "darwin" : case "linux" : return path . join ( process . env [ "HOME" ] , ".vscode-cordova" ) ; default : throw new Error ( localize ( "UnexpectedPlatform" , "Unexpected Platform" ) ) ; } }