author : Alex Chao
 *  function param returns changelog import * as vscode from 'vscode' ; const fs = require ( 'fs' ) ; const path = require ( 'path' ) ; function parseConfigFile ( rootPath ) { const gqConfigFilePath = `${ rootPath }/graphquill.config.js` ; delete require . cache [ gqConfigFilePath ] ; let entryPoint ; let allowServerTimeoutConfigSetting ; let portNumber ; if ( fs . existsSync ( gqConfigFilePath ) ) { const configObject = require ( `${ gqConfigFilePath }` ) ; entryPoint = configObject . entry . slice ( 0 , 4 ) === 'http' ? configObject . entry : path . resolve ( rootPath , configObject . entry ) ; portNumber = configObject . portNumber ; allowServerTimeoutConfigSetting = configObject . serverStartupTimeAllowed ; } else { entryPoint = '' ; portNumber = 0 ; } return { entryPoint , portNumber , allowServerTimeoutConfigSetting } ; } module . exports = parseConfigFile ;