@@ -40,22 +40,23 @@ suite("DebugAdapter Unit Test Suite", () => {
40
40
} ) ;
41
41
42
42
suite ( "getLaunchConfigType()" , ( ) => {
43
- test ( "returns SWIFT_EXTENSION when Swift version >=6.0.0 and swift.debugger.debugAdapter is set to lldb-dap" , ( ) => {
43
+ test ( "returns LLDB_DAP when Swift version >=6.0.0 and swift.debugger.debugAdapter is set to lldb-dap" , ( ) => {
44
44
mockDebugConfig . debugAdapter = "lldb-dap" ;
45
45
expect ( DebugAdapter . getLaunchConfigType ( new Version ( 6 , 0 , 1 ) ) ) . to . equal (
46
46
LaunchConfigType . LLDB_DAP
47
47
) ;
48
48
} ) ;
49
49
50
- test ( "returns CODE_LLDB when Swift version >=6.0.0 and swift.debugger.debugAdapter is set to auto or CodeLLDB" , ( ) => {
51
- // Try with the setting set to auto
50
+ test ( "returns LLDB_DAP when Swift version >=6.0.0 and swift.debugger.debugAdapter is set to auto" , ( ) => {
52
51
mockDebugConfig . debugAdapter = "auto" ;
53
- expect ( DebugAdapter . getLaunchConfigType ( new Version ( 5 , 10 , 0 ) ) ) . to . equal (
54
- LaunchConfigType . CODE_LLDB
52
+ expect ( DebugAdapter . getLaunchConfigType ( new Version ( 6 , 0 , 1 ) ) ) . to . equal (
53
+ LaunchConfigType . LLDB_DAP
55
54
) ;
56
- // Try with the setting set to CodeLLDB
55
+ } ) ;
56
+
57
+ test ( "returns CODE_LLDB when Swift version >=6.0.0 and swift.debugger.debugAdapter is set to CODE_LLDB" , ( ) => {
57
58
mockDebugConfig . debugAdapter = "CodeLLDB" ;
58
- expect ( DebugAdapter . getLaunchConfigType ( new Version ( 5 , 10 , 0 ) ) ) . to . equal (
59
+ expect ( DebugAdapter . getLaunchConfigType ( new Version ( 6 , 0 , 1 ) ) ) . to . equal (
59
60
LaunchConfigType . CODE_LLDB
60
61
) ;
61
62
} ) ;
0 commit comments