File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ export const extCommands = {
46
46
startupCondition : appendPrefixToCommand ( 'startup.condition' ) ,
47
47
nbEventListener : appendPrefixToCommand ( 'addEventListener' ) ,
48
48
selectEditorProjs : appendPrefixToCommand ( 'select.editor.projects' ) ,
49
- attachDebugger : appendPrefixToCommand ( "java.attachDebugger.connector" ) ,
49
+ attachDebuggerConnector : appendPrefixToCommand ( "java.attachDebugger.connector" ) ,
50
+ attachDebuggerConfigurations : appendPrefixToCommand ( "java.attachDebugger.configurations" ) ,
50
51
loadWorkspaceTests : appendPrefixToCommand ( "load.workspace.tests" ) ,
51
52
projectDeleteEntry : appendPrefixToCommand ( "foundProjects.deleteEntry" )
52
53
}
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ class NetBeansConfigurationDynamicProvider implements vscode.DebugConfigurationP
151
151
return [ ] ;
152
152
}
153
153
let result : vscode . DebugConfiguration [ ] = [ ] ;
154
- const attachConnectors : DebugConnector [ ] | null | undefined = await vscode . commands . executeCommand ( extCommands . attachDebugger ) ;
154
+ const attachConnectors : DebugConnector [ ] | null | undefined = await vscode . commands . executeCommand ( extCommands . attachDebuggerConfigurations ) ;
155
155
if ( attachConnectors ) {
156
156
for ( let ac of attachConnectors ) {
157
157
const debugConfig : vscode . DebugConfiguration = {
@@ -163,7 +163,7 @@ class NetBeansConfigurationDynamicProvider implements vscode.DebugConfigurationP
163
163
let defaultValue : string = ac . defaultValues [ i ] ;
164
164
if ( ! defaultValue . startsWith ( "${command:" ) ) {
165
165
// Create a command that asks for the argument value:
166
- let cmd : string = `${ extCommands . attachDebugger } .${ ac . id } .${ ac . arguments [ i ] } ` ;
166
+ let cmd : string = `${ extCommands . attachDebuggerConnector } .${ ac . id } .${ ac . arguments [ i ] } ` ;
167
167
debugConfig [ ac . arguments [ i ] ] = "${command:" + cmd + "}" ;
168
168
if ( ! commandValues . has ( cmd ) ) {
169
169
commandValues . set ( cmd , ac . defaultValues [ i ] ) ;
You can’t perform that action at this time.
0 commit comments