module author : Ed Greenberg
 *  function changelog changelog changelog import * as vscode from 'vscode' ; const childProcess = require ( 'child_process' ) ; const serverOn = ( entryPoint , gqChannel ) => { const terminal = childProcess . spawn ( 'bash' ) ; terminal . stdout . on ( 'data' , ( data ) => { if ( data . toString ( ) . includes ( 'ERR' ) ) { gqChannel . append ( `\n\nERROR TRYING TO START THE SERVER\n\n${ data . toString ( ) }` ) ; } } ) ; return new Promise ( ( resolve ) => { setTimeout ( ( ) => { terminal . stdin . write ( `node ${ entryPoint }\n` ) ; terminal . stdin . end ( ) ; resolve ( ) ; vscode . window . showInformationMessage ( 'The GraphQuill server has been started' ) ; } , 1 ) ; } ) ; } ; module . exports = serverOn ;