repl: allow to inspect repl output of inactive sessions

This commit is contained in:
isidor
2018-10-09 12:07:13 +02:00
parent 5bd6ebe2db
commit 099c23febc
12 changed files with 155 additions and 132 deletions

View File

@@ -190,7 +190,7 @@ export class MainThreadDebugService implements MainThreadDebugServiceShape, IDeb
}
public $customDebugAdapterRequest(sessionId: DebugSessionUUID, request: string, args: any): Thenable<any> {
const session = this.debugService.getSession(sessionId);
const session = this.debugService.getModel().getSessions(true).filter(s => s.getId() === sessionId).pop();
if (session) {
return session.customRequest(request, args).then(response => {
if (response && response.success) {