Skip to content

Commit

Permalink
added frontend requirements of apache#7697
Browse files Browse the repository at this point in the history
  • Loading branch information
Achal1607 committed Feb 21, 2025
1 parent 65bce92 commit 23fea05
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,13 @@
"vmArgs": {
"type": [
"string",
"array",
"null"
],
"items": {
"type": "string",
"description": "%jdk.debugger.configuration.vmArgs.items.description%"
},
"description": "%jdk.debugger.configuration.vmArgs.description%",
"default": null
},
Expand Down
1 change: 1 addition & 0 deletions vscode/package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"jdk.debugger.configuration.classPaths.description": "The classpaths for launching the JVM.",
"jdk.debugger.configuration.console.description": "The specified console to launch the program.",
"jdk.debugger.configuration.args.description": "Arguments for the executed class",
"jdk.debugger.configuration.vmArgs.items.description": "Single argument to the Java VM",
"jdk.debugger.configuration.vmArgs.description": "Arguments for the Java VM",
"jdk.debugger.configuration.cwd.description": "Working directory for the program execution",
"jdk.debugger.configuration.env.description": "Environment variables for the program execution",
Expand Down
4 changes: 4 additions & 0 deletions vscode/src/debugger/debugger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,11 @@ class RunConfigurationProvider implements vscode.DebugConfigurationProvider {
if (vmArgs) {
if (!config.vmArgs) {
config.vmArgs = vmArgs;
} else if (Array.isArray(config.vmArgs)) {
let cfg: string[] = config.vmArgs;
cfg.push(vmArgs);
} else {
// assume the config is a string
config.vmArgs = `${config.vmArgs} ${vmArgs}`;
}
}
Expand Down

0 comments on commit 23fea05

Please sign in to comment.