@@ -16,7 +16,7 @@ import { IApplicationShell, IDebugService } from '../../../client/common/applica
16
16
import { EXTENSION_ROOT_DIR } from '../../../client/common/constants' ;
17
17
import '../../../client/common/extensions' ;
18
18
import { IConfigurationService , IPythonSettings } from '../../../client/common/types' ;
19
- import { DebuggerTypeName } from '../../../client/debugger/constants' ;
19
+ import { PythonDebuggerTypeName } from '../../../client/debugger/constants' ;
20
20
import { IDebugEnvironmentVariablesService } from '../../../client/debugger/extension/configuration/resolvers/helper' ;
21
21
import { LaunchConfigurationResolver } from '../../../client/debugger/extension/configuration/resolvers/launch' ;
22
22
import { DebugOptions } from '../../../client/debugger/types' ;
@@ -166,7 +166,7 @@ suite('Unit Tests - Debug Launcher', () => {
166
166
function getDefaultDebugConfig ( ) : DebugConfiguration {
167
167
return {
168
168
name : 'Debug Unit Test' ,
169
- type : DebuggerTypeName ,
169
+ type : PythonDebuggerTypeName ,
170
170
request : 'launch' ,
171
171
console : 'internalConsole' ,
172
172
env : { } ,
@@ -329,7 +329,7 @@ suite('Unit Tests - Debug Launcher', () => {
329
329
} ;
330
330
const expected = getDefaultDebugConfig ( ) ;
331
331
expected . name = 'spam' ;
332
- setupSuccess ( options , 'unittest' , expected , [ { name : 'spam' , type : DebuggerTypeName , request : 'test' } ] ) ;
332
+ setupSuccess ( options , 'unittest' , expected , [ { name : 'spam' , type : PythonDebuggerTypeName , request : 'test' } ] ) ;
333
333
334
334
await debugLauncher . launchDebugger ( options ) ;
335
335
@@ -363,7 +363,7 @@ suite('Unit Tests - Debug Launcher', () => {
363
363
} ;
364
364
const expected = {
365
365
name : 'my tests' ,
366
- type : DebuggerTypeName ,
366
+ type : PythonDebuggerTypeName ,
367
367
request : 'launch' ,
368
368
python : 'some/dir/bin/py3' ,
369
369
debugAdapterPython : 'some/dir/bin/py3' ,
@@ -388,7 +388,7 @@ suite('Unit Tests - Debug Launcher', () => {
388
388
setupSuccess ( options , 'unittest' , expected , [
389
389
{
390
390
name : 'my tests' ,
391
- type : DebuggerTypeName ,
391
+ type : PythonDebuggerTypeName ,
392
392
request : 'test' ,
393
393
pythonPath : expected . python ,
394
394
stopOnEntry : expected . stopOnEntry ,
@@ -417,9 +417,9 @@ suite('Unit Tests - Debug Launcher', () => {
417
417
const expected = getDefaultDebugConfig ( ) ;
418
418
expected . name = 'spam1' ;
419
419
setupSuccess ( options , 'unittest' , expected , [
420
- { name : 'spam1' , type : DebuggerTypeName , request : 'test' } ,
421
- { name : 'spam2' , type : DebuggerTypeName , request : 'test' } ,
422
- { name : 'spam3' , type : DebuggerTypeName , request : 'test' } ,
420
+ { name : 'spam1' , type : PythonDebuggerTypeName , request : 'test' } ,
421
+ { name : 'spam2' , type : PythonDebuggerTypeName , request : 'test' } ,
422
+ { name : 'spam3' , type : PythonDebuggerTypeName , request : 'test' } ,
423
423
] ) ;
424
424
425
425
await debugLauncher . launchDebugger ( options ) ;
@@ -446,15 +446,15 @@ suite('Unit Tests - Debug Launcher', () => {
446
446
'// test 2 \n\
447
447
{ \n\
448
448
"name": "spam", \n\
449
- "type": "python ", \n\
449
+ "type": "debugpy ", \n\
450
450
"request": "test" \n\
451
451
} \n\
452
452
' ,
453
453
'// test 3 \n\
454
454
[ \n\
455
455
{ \n\
456
456
"name": "spam", \n\
457
- "type": "python ", \n\
457
+ "type": "debugpy ", \n\
458
458
"request": "test" \n\
459
459
} \n\
460
460
] \n\
@@ -464,7 +464,7 @@ suite('Unit Tests - Debug Launcher', () => {
464
464
"configurations": [ \n\
465
465
{ \n\
466
466
"name": "spam", \n\
467
- "type": "python ", \n\
467
+ "type": "debugpy ", \n\
468
468
"request": "test" \n\
469
469
} \n\
470
470
] \n\
@@ -499,10 +499,10 @@ suite('Unit Tests - Debug Launcher', () => {
499
499
setupSuccess ( options , 'unittest' , expected , [
500
500
{ } as DebugConfiguration ,
501
501
{ name : 'spam1' } as DebugConfiguration ,
502
- { name : 'spam2' , type : DebuggerTypeName } as DebugConfiguration ,
502
+ { name : 'spam2' , type : PythonDebuggerTypeName } as DebugConfiguration ,
503
503
{ name : 'spam3' , request : 'test' } as DebugConfiguration ,
504
- { type : DebuggerTypeName } as DebugConfiguration ,
505
- { type : DebuggerTypeName , request : 'test' } as DebugConfiguration ,
504
+ { type : PythonDebuggerTypeName } as DebugConfiguration ,
505
+ { type : PythonDebuggerTypeName , request : 'test' } as DebugConfiguration ,
506
506
{ request : 'test' } as DebugConfiguration ,
507
507
] ) ;
508
508
@@ -532,7 +532,7 @@ suite('Unit Tests - Debug Launcher', () => {
532
532
testProvider : 'unittest' ,
533
533
} ;
534
534
const expected = getDefaultDebugConfig ( ) ;
535
- setupSuccess ( options , 'unittest' , expected , [ { name : 'spam' , type : DebuggerTypeName , request : 'bogus' } ] ) ;
535
+ setupSuccess ( options , 'unittest' , expected , [ { name : 'spam' , type : PythonDebuggerTypeName , request : 'bogus' } ] ) ;
536
536
537
537
await debugLauncher . launchDebugger ( options ) ;
538
538
@@ -547,8 +547,8 @@ suite('Unit Tests - Debug Launcher', () => {
547
547
} ;
548
548
const expected = getDefaultDebugConfig ( ) ;
549
549
setupSuccess ( options , 'unittest' , expected , [
550
- { name : 'spam' , type : DebuggerTypeName , request : 'launch' } ,
551
- { name : 'spam' , type : DebuggerTypeName , request : 'attach' } ,
550
+ { name : 'spam' , type : PythonDebuggerTypeName , request : 'launch' } ,
551
+ { name : 'spam' , type : PythonDebuggerTypeName , request : 'attach' } ,
552
552
] ) ;
553
553
554
554
await debugLauncher . launchDebugger ( options ) ;
@@ -567,9 +567,9 @@ suite('Unit Tests - Debug Launcher', () => {
567
567
setupSuccess ( options , 'unittest' , expected , [
568
568
{ name : 'foo1' , type : 'other' , request : 'bar' } ,
569
569
{ name : 'foo2' , type : 'other' , request : 'bar' } ,
570
- { name : 'spam1' , type : DebuggerTypeName , request : 'launch' } ,
571
- { name : 'spam2' , type : DebuggerTypeName , request : 'test' } ,
572
- { name : 'spam3' , type : DebuggerTypeName , request : 'attach' } ,
570
+ { name : 'spam1' , type : PythonDebuggerTypeName , request : 'launch' } ,
571
+ { name : 'spam2' , type : PythonDebuggerTypeName , request : 'test' } ,
572
+ { name : 'spam3' , type : PythonDebuggerTypeName , request : 'attach' } ,
573
573
{ name : 'xyz' , type : 'another' , request : 'abc' } ,
574
574
] ) ;
575
575
@@ -599,7 +599,7 @@ suite('Unit Tests - Debug Launcher', () => {
599
599
{ \n\
600
600
// "test" debug config \n\
601
601
"name": "spam", /* non-empty */ \n\
602
- "type": "python ", /* must be "python" */ \n\
602
+ "type": "debugpy ", /* must be "python" */ \n\
603
603
"request": "test", /* must be "test" */ \n\
604
604
// extra stuff here: \n\
605
605
"stopOnEntry": true \n\
0 commit comments