import * as vscode from 'vscode' ; export class Config { private getConfiguration = vscode . workspace . getConfiguration ; private section : string = 'sonicpieditor' ; private rubySection : string = 'ruby.interpreter' ; public flashBackgroundColor ( ) { return this . getConfiguration ( this . section ) . flashBackgroundColor ; } public flashTextColor ( ) { return this . getConfiguration ( this . section ) . flashTextColor ; } public launchSonicPiServerAutomatically ( ) { return this . getConfiguration ( this . section ) . launchSonicPiServerAutomatically ; } public runFileWhenRunSelectedIsEmpty ( ) { return this . getConfiguration ( this . section ) . runFileWhenRunSelectedIsEmpty ; } public sonicPiRootDirectory ( ) { return this . getConfiguration ( this . section ) . sonicPiRootDirectory ; } public launchSonicPiServerCustomExtension ( ) { return this . getConfiguration ( this . section ) . launchSonicPiServerCustomExtension ; } public invertStereo ( ) { return this . getConfiguration ( this . section ) . invertStereo ; } public forceMono ( ) { return this . getConfiguration ( this . section ) . forceMono ; } public logClearOnRun ( ) { return this . getConfiguration ( this . section ) . logClearOnRun ; } public safeMode ( ) { return this . getConfiguration ( this . section ) . safeMode ; } public updateRunFileWhenRunSelectedIsEmpty ( value ) { this . getConfiguration ( this . section ) . update ( 'runFileWhenRunSelectedIsEmpty' , value , true ) ; } public commandPath ( ) { return this . getConfiguration ( this . rubySection ) . commandPath ; } }