File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 403403 "description" : " %java.debugger.attach.hostName.description%"
404404 },
405405 "port" : {
406- "type" : " number" ,
406+ "type" : [ " number" , " string " ] ,
407407 "description" : " %java.debugger.attach.port.description%"
408408 },
409409 "processId" : {
Original file line number Diff line number Diff line change @@ -313,7 +313,8 @@ export class JavaDebugConfigurationProvider implements vscode.DebugConfiguration
313313 }
314314 }
315315 } else if ( config . request === "attach" ) {
316- if ( config . hostName && config . port ) {
316+ if ( config . hostName && config . port && Number . isInteger ( Number ( config . port ) ) ) {
317+ config . port = Number ( config . port ) ;
317318 config . processId = undefined ;
318319 // Continue if the hostName and port are configured.
319320 } else if ( config . processId !== undefined ) {
You can’t perform that action at this time.
0 commit comments