import * as vscode from 'vscode' ; import * as path from 'path' ; export class SettingConfigurations { static readonly FABRIC_RUNTIME : string = 'ibm-blockchain-platform.v2.fabric.runtime' ; static readonly FABRIC_CLIENT_TIMEOUT : string = 'ibm-blockchain-platform.fabric.client.timeout' ; static readonly EXTENSION_DIRECTORY : string = 'ibm-blockchain-platform.ext.directory' ; static readonly EXTENSION_BYPASS_PREREQS : string = 'ibm-blockchain-platform.ext.bypassPreReqs' ; static readonly EXTENSION_LOCAL_FABRIC : string = 'ibm-blockchain-platform.ext.enableLocalFabric' ; static readonly EXTENSION_SAAS_CONFIG_UPDATES : string = 'ibm-blockchain-platform.ext.PollForConfigUpdatesWhenConnectedToIBM BlockchainPlatformOnIBM CloudEnvironments' ; static readonly EXTENSION_ENABLE_CUSTOM_LOCAL_ENVIRONMENT_START_IMAGE : string = 'ibm-blockchain-platform.ext.enableCustomLocalEnvironmentStartImage' ; static readonly EXTENSION_CUSTOM_LOCAL_ENVIRONMENT_START_IMAGE_VALUE : string = 'ibm-blockchain-platform.ext.customLocalEnvironmentStartImage' ; static readonly HOME_SHOW_ON_STARTUP : string = 'ibm-blockchain-platform.home.showOnStartup' ; static readonly HOME_SHOW_ON_NEXT_ACTIVATION : string = 'ibm-blockchain-platform.home.showOnNextActivation' ; static readonly FEATURE_FLAGS : string = 'ibm-blockchain-platform.ext.featureFlags' ; static readonly DISCOVER_SAAS_ENVS : string = 'ibm-blockchain-platform.ext.discoverSaasEnvs' ; static getExtensionDir ( ) { const extDir = vscode . workspace . getConfiguration ( ) . get ( SettingConfigurations . EXTENSION_DIRECTORY ) ; return path . join ( extDir , 'v2' ) ; } }