Allow switching between stdout and stderr logs in config.ts

This commit is contained in:
Kristóf Tóth
2018-05-28 16:36:19 +02:00
parent 0aa67b25aa
commit 1b8a36331c
5 changed files with 17 additions and 9 deletions

View File

@ -63,7 +63,7 @@ export class IdeComponent implements OnInit {
language: string = config.ide.defaultLanguage;
theme = 'cobalt';
@Output() newLog = new EventEmitter<string>();
@Output() newLog = new EventEmitter<any>();
options: any = {enableBasicAutocompletion: true,
enableSnippets: true,
@ -101,7 +101,10 @@ export class IdeComponent implements OnInit {
config.ide.deployProcessName,
(event) => {
this.deploymentNotificationService.deploying.next(false);
this.newLog.emit(event.data.log);
this.newLog.emit({
stdout: event.data.stdout,
stderr: event.data.stderr
});
}
);