From 755d6db442931c9185d565c00e302797ea179424 Mon Sep 17 00:00:00 2001 From: isidor Date: Thu, 17 Nov 2016 16:47:33 +0100 Subject: [PATCH] debug: fix test failure --- src/vs/workbench/parts/debug/node/debugAdapter.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/vs/workbench/parts/debug/node/debugAdapter.ts b/src/vs/workbench/parts/debug/node/debugAdapter.ts index 81134cd3202..8375e8ef2b7 100644 --- a/src/vs/workbench/parts/debug/node/debugAdapter.ts +++ b/src/vs/workbench/parts/debug/node/debugAdapter.ts @@ -182,16 +182,17 @@ export class Adapter { } private getAttributeBasedOnPlatform(key: string): any { + let result: any; if (platform.isWindows && !process.env.hasOwnProperty('PROCESSOR_ARCHITEW6432') && this.rawAdapter.winx86) { - return this.rawAdapter.winx86[key]; + result = this.rawAdapter.winx86[key]; } else if (platform.isWindows && this.rawAdapter.win) { - return this.rawAdapter.win[key]; + result = this.rawAdapter.win[key]; } else if (platform.isMacintosh && this.rawAdapter.osx) { - return this.rawAdapter.osx[key]; + result = this.rawAdapter.osx[key]; } else if (platform.isLinux && this.rawAdapter.linux) { - return this.rawAdapter.linux[key]; + result = this.rawAdapter.linux[key]; } - return this.rawAdapter[key]; + return result || this.rawAdapter[key]; } } -- GitLab