debug: keep repl elements per session

This commit is contained in:
isidor
2018-10-05 11:52:57 +02:00
parent b58200ca9f
commit aa351d8293
10 changed files with 141 additions and 149 deletions

View File

@@ -205,7 +205,10 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
public $appendDebugConsole(value: string): Thenable<void> {
// Use warning as severity to get the orange color for messages coming from the debug extension
this.debugService.logToRepl(value, severity.Warning);
const session = this.debugService.getViewModel().focusedSession;
if (session) {
session.appendToRepl(value, severity.Warning);
}
return TPromise.wrap<void>(undefined);
}