Skip to content

Commit dbe6f6b

Browse files
Allow 'type' to be customized for unit test debugging
This checkin allows the unit test debugging options to set 'type'. This resolves #1586.
1 parent 1ff45ec commit dbe6f6b

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)