@@ -24,22 +24,18 @@ class WPILibDebugConfigurationProvider implements vscode.DebugConfigurationProvi
24
24
public resolveDebugConfiguration ( _ : vscode . WorkspaceFolder | undefined ,
25
25
config : vscode . DebugConfiguration , __ ?: vscode . CancellationToken ) :
26
26
vscode . ProviderResult < vscode . DebugConfiguration > {
27
- let debug = false ;
28
- if ( 'debug ' in config ) {
29
- debug = config . debug ;
27
+ let desktop = false ;
28
+ if ( 'desktop ' in config ) {
29
+ desktop = config . desktop ;
30
30
} else {
31
- console . log ( 'debugger has no debug argument. Assuming deploy ' ) ;
31
+ console . log ( 'debugger has no desktop argument. Assuming roboRIO ' ) ;
32
32
}
33
33
return new Promise < undefined > ( async ( resolve ) => {
34
34
const workspace = await this . preferences . getFirstOrSelectedWorkspace ( ) ;
35
35
if ( workspace === undefined ) {
36
36
return ;
37
37
}
38
- if ( debug ) {
39
- await this . debugDeployAPI . debugCode ( workspace ) ;
40
- } else {
41
- await this . debugDeployAPI . deployCode ( workspace ) ;
42
- }
38
+ await this . debugDeployAPI . debugCode ( workspace , desktop ) ;
43
39
resolve ( ) ;
44
40
} ) ;
45
41
}
@@ -48,15 +44,15 @@ class WPILibDebugConfigurationProvider implements vscode.DebugConfigurationProvi
48
44
__ ?: vscode . CancellationToken ) : vscode . ProviderResult < vscode . DebugConfiguration [ ] > {
49
45
const configurationDeploy : vscode . DebugConfiguration = {
50
46
type : 'wpilib' ,
51
- name : 'WPILib Deploy ' ,
47
+ name : 'WPILib roboRIO Debug ' ,
52
48
request : 'launch' ,
53
- debug : false
49
+ desktop : false
54
50
} ;
55
51
const configurationDebug : vscode . DebugConfiguration = {
56
52
type : 'wpilib' ,
57
- name : 'WPILib Debug' ,
53
+ name : 'WPILib Desktop Debug' ,
58
54
request : 'launch' ,
59
- debug : true
55
+ desktop : true
60
56
} ;
61
57
return [ configurationDeploy , configurationDebug ] ;
62
58
}
@@ -121,7 +117,7 @@ export class DeployDebugAPI extends IDeployDebugAPI {
121
117
this . languageChoices . push ( language ) ;
122
118
}
123
119
124
- public debugCode ( workspace : vscode . WorkspaceFolder ) : Promise < boolean > {
120
+ public debugCode ( workspace : vscode . WorkspaceFolder , _desktop : boolean ) : Promise < boolean > {
125
121
return this . deployCommon ( workspace , this . debuggers , true ) ;
126
122
}
127
123
public deployCode ( workspace : vscode . WorkspaceFolder ) : Promise < boolean > {
0 commit comments