File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
vscode-extensions/vscode-spring-boot/lib Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import { ListenablePreferenceSetting } from "@pivotal-tools/commons-vscode/lib/l
88const JMX_VM_ARG = '-Dspring.jmx.enabled='
99const ADMIN_VM_ARG = '-Dspring.application.admin.enabled='
1010const BOOT_PROJECT_ARG = '-Dspring.boot.project.name=' ;
11+ const RMI_HOSTNAME = '-Djava.rmi.server.hostname=localhost' ;
1112
1213class SpringBootDebugConfigProvider implements DebugConfigurationProvider {
1314
@@ -23,8 +24,11 @@ class SpringBootDebugConfigProvider implements DebugConfigurationProvider {
2324 if ( debugConfiguration . vmArgs . indexOf ( BOOT_PROJECT_ARG ) < 0 ) {
2425 debugConfiguration . vmArgs += ` ${ BOOT_PROJECT_ARG } ${ debugConfiguration . projectName } ` ;
2526 }
27+ if ( debugConfiguration . vmArgs . indexOf ( RMI_HOSTNAME ) < 0 ) {
28+ debugConfiguration . vmArgs += ` ${ RMI_HOSTNAME } ` ;
29+ }
2630 } else {
27- debugConfiguration . vmArgs = `${ JMX_VM_ARG } true ${ ADMIN_VM_ARG } true ${ BOOT_PROJECT_ARG } ${ debugConfiguration . projectName } ` ;
31+ debugConfiguration . vmArgs = `${ JMX_VM_ARG } true ${ ADMIN_VM_ARG } true ${ BOOT_PROJECT_ARG } ${ debugConfiguration . projectName } ${ RMI_HOSTNAME } ` ;
2832 }
2933 }
3034 return debugConfiguration ;
You can’t perform that action at this time.
0 commit comments