From e6e416a0028c1606a00ecb249578d5344cf832e8 Mon Sep 17 00:00:00 2001 From: isidor Date: Thu, 12 May 2016 18:54:10 +0200 Subject: [PATCH] debug: handle php one thread stop behavior as a special case not as a general rule fixes #6304 --- .../parts/debug/electron-browser/debugService.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vs/workbench/parts/debug/electron-browser/debugService.ts b/src/vs/workbench/parts/debug/electron-browser/debugService.ts index 8c472f823bd60..3c1cebba67cb2 100644 --- a/src/vs/workbench/parts/debug/electron-browser/debugService.ts +++ b/src/vs/workbench/parts/debug/electron-browser/debugService.ts @@ -269,11 +269,11 @@ export class DebugService implements debug.IDebugService { this.toDisposeOnSessionEnd.push(this.session.onDidContinue(threadID => { aria.status(nls.localize('debuggingContinued', "Debugging continued.")); - // TODO@Isidor temporary workaround for #5835 - if (strings.equalsIgnoreCase(this.session.configuration.type, 'go')) { - this.model.clearThreads(false); - } else { + // TODO@Isidor temporary workaround for #1703 + if (this.session && strings.equalsIgnoreCase(this.session.configuration.type, 'php')) { this.model.clearThreads(false, threadID); + } else { + this.model.clearThreads(false); } // Get a top stack frame of a stopped thread if there is any.