import * as child_process from 'child_process' ; import * as vscode from 'vscode' ; export class smartClientLaunch { private _Process : child_process . ChildProcess ; private _Path : string ; private _output : vscode . OutputChannel ; private _statusbar : vscode . StatusBarItem ; private _args = new Array < string > ( ) ; constructor ( path ) { this . _Path = path ; } public start ( ) { if ( process . platform == "darwin" ) { this . _args . push ( this . _Path + "smartclient.app" ) ; this . _Process = child_process . execFile ( "open" , this . _args ) ; } else if ( process . platform == "linux" ) { this . _Process = child_process . spawn ( this . _Path + "smartclient" , this . _args ) ; } else { this . _args . push ( '-M' ) ; this . _Process = child_process . spawn ( this . _Path + "smartclient.exe" , this . _args ) ; } } }