signal server started as soon as process is there

This commit is contained in:
Johannes Rieken 2015-12-11 13:50:27 +01:00
Родитель cb66b7ee9f
Коммит e99a7cba5d
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -169,11 +169,11 @@ export abstract class OmnisharpServer {
return omnisharpLauncher(cwd, argv).then(value => {
this._serverProcess = value.process;
this._fireEvent('stdout', `[INFO] Started OmniSharp from '${value.command}' with process id ${value.process.pid}...\n`);
this._fireEvent('stdout', `[INFO] Started OmniSharp from '${value.command}' with process id ${value.process.pid}...\n`);
this._fireEvent('ServerStart', solutionPath);
this._setState(ServerState.Started);
return this._doConnect();
}).then(_ => {
this._fireEvent('ServerStart', solutionPath);
this._setState(ServerState.Started);
this._processQueue();
}, err => {
this._fireEvent('ServerError', err);