Skip to content

Commit

Permalink
Merge pull request #1663 from gregg-miskelly/UnitTestDebugType
Browse files Browse the repository at this point in the history
Allow 'type' to be customized for unit test debugging
  • Loading branch information
DustinCampbell authored Jul 26, 2017
2 parents ab5ced3 + dbe6f6b commit 89460ae
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,15 @@
"default": true
}
}
},
"type": {
"type": "string",
"enum": [
"coreclr",
"clr"
],
"description": "Type type of code to debug. Can be either 'coreclr' for .NET Core debugging, or 'clr' for Desktop .NET Framework. 'clr' only works on Windows as the Desktop framework is Windows-only.",
"default": "coreclr"
}
}
},
Expand Down
5 changes: 4 additions & 1 deletion src/features/dotnetTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,12 @@ function createLaunchConfiguration(program: string, args: string, cwd: string, d
result = {};
}

if (!result.type) {
result.type = "coreclr";
}

// Now fill in the rest of the options
result.name = ".NET Test Launch";
result.type = "coreclr";
result.request = "launch";
result.debuggerEventsPipeName = debuggerEventsPipeName;
result.program = program;
Expand Down

0 comments on commit 89460ae

Please sign in to comment.