Skip to content

Commit

Permalink
debug: support winx86
Browse files Browse the repository at this point in the history
fixes #1696
  • Loading branch information
isidorn committed Feb 5, 2016
1 parent c4e15e3 commit 7679884
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/vs/workbench/parts/debug/common/debug.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export interface IRawAdapter extends IRawEnvAdapter {
configurationAttributes?: any;
initialConfigurations?: any[];
win?: IRawEnvAdapter;
winx86?: IRawEnvAdapter;
windows?: IRawEnvAdapter;
osx?: IRawEnvAdapter;
linux?: IRawEnvAdapter;
Expand Down
14 changes: 9 additions & 5 deletions src/vs/workbench/parts/debug/node/debugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,23 @@ export class Adapter {
if (rawAdapter.windows) {
rawAdapter.win = rawAdapter.windows;
}
if (platform.isWindows && rawAdapter.win) {

if (platform.isWindows && !process.env.hasOwnProperty('PROCESSOR_ARCHITEW6432') && rawAdapter.winx86) {
this.runtime = rawAdapter.winx86.runtime;
this.runtimeArgs = rawAdapter.winx86.runtimeArgs;
this.program = rawAdapter.winx86.program;
this.args = rawAdapter.winx86.args;
} else if (platform.isWindows && rawAdapter.win) {
this.runtime = rawAdapter.win.runtime;
this.runtimeArgs = rawAdapter.win.runtimeArgs;
this.program = rawAdapter.win.program;
this.args = rawAdapter.win.args;
}
if (platform.isMacintosh && rawAdapter.osx) {
} else if (platform.isMacintosh && rawAdapter.osx) {
this.runtime = rawAdapter.osx.runtime;
this.runtimeArgs = rawAdapter.osx.runtimeArgs;
this.program = rawAdapter.osx.program;
this.args = rawAdapter.osx.args;
}
if (platform.isLinux && rawAdapter.linux) {
} else if (platform.isLinux && rawAdapter.linux) {
this.runtime = rawAdapter.linux.runtime;
this.runtimeArgs = rawAdapter.linux.runtimeArgs;
this.program = rawAdapter.linux.program;
Expand Down

0 comments on commit 7679884

Please sign in to comment.