@@ -572,6 +572,7 @@ describe('AwsSamDebugConfigurationProvider', async () => {
572
572
folder ,
573
573
input
574
574
) ) ! as DotNetCoreDebugConfiguration
575
+ const codeRoot = `${ appDir } ${ input . invokeTarget . projectRoot } `
575
576
const expectedCodeRoot = ( actual . baseBuildDir ?? 'fail' ) + '/input'
576
577
const expected : SamLaunchRequestArgs = {
577
578
request : 'attach' , // Input "direct-invoke", output "attach".
@@ -603,24 +604,24 @@ describe('AwsSamDebugConfigurationProvider', async () => {
603
604
//
604
605
// Csharp-related fields
605
606
//
606
- debuggerPath : expectedCodeRoot + '/.vsdbg' , // Normalized to absolute path.
607
+ debuggerPath : codeRoot + '/.vsdbg' , // Normalized to absolute path.
607
608
processId : '1' ,
608
609
pipeTransport : {
609
610
debuggerPath : '/tmp/lambci_debug_files/vsdbg' ,
610
611
// tslint:disable-next-line: no-invalid-template-strings
611
612
pipeArgs : [ '-c' , 'docker exec -i $(docker ps -q -f publish=5858) ${debuggerCommand}' ] ,
612
- pipeCwd : expectedCodeRoot ,
613
+ pipeCwd : codeRoot ,
613
614
pipeProgram : 'sh' ,
614
615
} ,
615
616
sourceFileMap : {
616
- '/var/task' : expectedCodeRoot ,
617
+ '/var/task' : codeRoot ,
617
618
} ,
618
619
windows : {
619
620
pipeTransport : {
620
621
debuggerPath : '/tmp/lambci_debug_files/vsdbg' ,
621
622
// tslint:disable-next-line: no-invalid-template-strings
622
623
pipeArgs : [ '-c' , 'docker exec -i $(docker ps -q -f publish=5858) ${debuggerCommand}' ] ,
623
- pipeCwd : expectedCodeRoot ,
624
+ pipeCwd : codeRoot ,
624
625
pipeProgram : 'powershell' ,
625
626
} ,
626
627
} ,
@@ -710,6 +711,7 @@ describe('AwsSamDebugConfigurationProvider', async () => {
710
711
folder ,
711
712
input
712
713
) ) ! as DotNetCoreDebugConfiguration
714
+ const codeRoot = `${ appDir } /src/HelloWorld`
713
715
const expectedCodeRoot = ( actual . baseBuildDir ?? 'fail' ) + '/input'
714
716
const expected : SamLaunchRequestArgs = {
715
717
request : 'attach' , // Input "direct-invoke", output "attach".
@@ -738,24 +740,24 @@ describe('AwsSamDebugConfigurationProvider', async () => {
738
740
//
739
741
// Csharp-related fields
740
742
//
741
- debuggerPath : expectedCodeRoot + '/.vsdbg' , // Normalized to absolute path.
743
+ debuggerPath : codeRoot + '/.vsdbg' , // Normalized to absolute path.
742
744
processId : '1' ,
743
745
pipeTransport : {
744
746
debuggerPath : '/tmp/lambci_debug_files/vsdbg' ,
745
747
// tslint:disable-next-line: no-invalid-template-strings
746
748
pipeArgs : [ '-c' , 'docker exec -i $(docker ps -q -f publish=5858) ${debuggerCommand}' ] ,
747
- pipeCwd : expectedCodeRoot ,
749
+ pipeCwd : codeRoot ,
748
750
pipeProgram : 'sh' ,
749
751
} ,
750
752
sourceFileMap : {
751
- '/var/task' : expectedCodeRoot ,
753
+ '/var/task' : codeRoot ,
752
754
} ,
753
755
windows : {
754
756
pipeTransport : {
755
757
debuggerPath : '/tmp/lambci_debug_files/vsdbg' ,
756
758
// tslint:disable-next-line: no-invalid-template-strings
757
759
pipeArgs : [ '-c' , 'docker exec -i $(docker ps -q -f publish=5858) ${debuggerCommand}' ] ,
758
- pipeCwd : expectedCodeRoot ,
760
+ pipeCwd : codeRoot ,
759
761
pipeProgram : 'powershell' ,
760
762
} ,
761
763
} ,
0 commit comments