mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 16:05:12 +00:00
Allow switching between stdout and stderr logs in config.ts
This commit is contained in:
@ -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
|
||||
});
|
||||
}
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user