File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 290290 "vmArgs" : {
291291 "type" : [
292292 " string" ,
293+ " array" ,
293294 " null"
294295 ],
296+ "items" : {
297+ "type" : " string" ,
298+ "description" : " %jdk.debugger.configuration.vmArgs.items.description%"
299+ },
295300 "description" : " %jdk.debugger.configuration.vmArgs.description%" ,
296301 "default" : null
297302 },
Original file line number Diff line number Diff line change 5050 "jdk.debugger.configuration.classPaths.description" : " The classpaths for launching the JVM." ,
5151 "jdk.debugger.configuration.console.description" : " The specified console to launch the program." ,
5252 "jdk.debugger.configuration.args.description" : " Arguments for the executed class" ,
53+ "jdk.debugger.configuration.vmArgs.items.description" : " Single argument to the Java VM" ,
5354 "jdk.debugger.configuration.vmArgs.description" : " Arguments for the Java VM" ,
5455 "jdk.debugger.configuration.cwd.description" : " Working directory for the program execution" ,
5556 "jdk.debugger.configuration.env.description" : " Environment variables for the program execution" ,
Original file line number Diff line number Diff line change @@ -237,7 +237,11 @@ class RunConfigurationProvider implements vscode.DebugConfigurationProvider {
237237 if ( vmArgs ) {
238238 if ( ! config . vmArgs ) {
239239 config . vmArgs = vmArgs ;
240+ } else if ( Array . isArray ( config . vmArgs ) ) {
241+ let cfg : string [ ] = config . vmArgs ;
242+ cfg . push ( vmArgs ) ;
240243 } else {
244+ // assume the config is a string
241245 config . vmArgs = `${ config . vmArgs } ${ vmArgs } ` ;
242246 }
243247 }
You can’t perform that action at this time.
0 commit comments