Skip to content

Commit 89460ae

Browse files
Merge pull request #1663 from gregg-miskelly/UnitTestDebugType
Allow 'type' to be customized for unit test debugging
2 parents ab5ced3 + dbe6f6b commit 89460ae

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

package.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,15 @@
315315
"default": true
316316
}
317317
}
318+
},
319+
"type": {
320+
"type": "string",
321+
"enum": [
322+
"coreclr",
323+
"clr"
324+
],
325+
"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.",
326+
"default": "coreclr"
318327
}
319328
}
320329
},

src/features/dotnetTest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,12 @@ function createLaunchConfiguration(program: string, args: string, cwd: string, d
111111
result = {};
112112
}
113113

114+
if (!result.type) {
115+
result.type = "coreclr";
116+
}
117+
114118
// Now fill in the rest of the options
115119
result.name = ".NET Test Launch";
116-
result.type = "coreclr";
117120
result.request = "launch";
118121
result.debuggerEventsPipeName = debuggerEventsPipeName;
119122
result.program = program;

0 commit comments

Comments
 (0)