diff --git a/src/vs/workbench/parts/debug/node/debugAdapter.ts b/src/vs/workbench/parts/debug/node/debugAdapter.ts index 81134cd32024eddfacf44b0b9cb722786f262b5f..8375e8ef2b7b7c3698c13c28df96cd6c266a8e81 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]; } }