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 = {
4646 startupCondition : appendPrefixToCommand ( 'startup.condition' ) ,
4747 nbEventListener : appendPrefixToCommand ( 'addEventListener' ) ,
4848 selectEditorProjs : appendPrefixToCommand ( 'select.editor.projects' ) ,
49- attachDebugger : appendPrefixToCommand ( "java.attachDebugger.connector" ) ,
49+ attachDebuggerConnector : appendPrefixToCommand ( "java.attachDebugger.connector" ) ,
50+ attachDebuggerConfigurations : appendPrefixToCommand ( "java.attachDebugger.configurations" ) ,
5051 loadWorkspaceTests : appendPrefixToCommand ( "load.workspace.tests" ) ,
5152 projectDeleteEntry : appendPrefixToCommand ( "foundProjects.deleteEntry" )
5253}
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ class NetBeansConfigurationDynamicProvider implements vscode.DebugConfigurationP
151151 return [ ] ;
152152 }
153153 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 ) ;
155155 if ( attachConnectors ) {
156156 for ( let ac of attachConnectors ) {
157157 const debugConfig : vscode . DebugConfiguration = {
@@ -163,7 +163,7 @@ class NetBeansConfigurationDynamicProvider implements vscode.DebugConfigurationP
163163 let defaultValue : string = ac . defaultValues [ i ] ;
164164 if ( ! defaultValue . startsWith ( "${command:" ) ) {
165165 // 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 ] } ` ;
167167 debugConfig [ ac . arguments [ i ] ] = "${command:" + cmd + "}" ;
168168 if ( ! commandValues . has ( cmd ) ) {
169169 commandValues . set ( cmd , ac . defaultValues [ i ] ) ;
You can’t perform that action at this time.
0 commit comments