Skip to content

Commit 388eef2

Browse files
committed
Support unit test debugging options when attaching to unit test process
1 parent cd6cdea commit 388eef2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/lsptoolshost/roslynLanguageServer.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,13 @@ export class RoslynLanguageServer {
577577
client.onRequest<RoslynProtocol.DebugAttachParams, RoslynProtocol.DebugAttachResult, void>(
578578
RoslynProtocol.DebugAttachRequest.type,
579579
async (request) => {
580+
let debugOptions: any = vscode.workspace.getConfiguration('csharp').get('unitTestDebuggingOptions');
581+
if (typeof debugOptions !== 'object') {
582+
debugOptions = {};
583+
}
584+
580585
const debugConfiguration: vscode.DebugConfiguration = {
586+
...debugOptions,
581587
name: '.NET Core Attach',
582588
type: 'coreclr',
583589
request: 'attach',

0 commit comments

Comments
 (0)