Improve run config argument handling, should work with spaces a bit better. (#524)

This commit is contained in:
modmuss50
2021-10-24 14:11:01 +01:00
committed by GitHub
parent 7359dc4e98
commit 61b5cfa733
7 changed files with 76 additions and 63 deletions

View File

@@ -103,8 +103,8 @@ public class GenVsCodeProjectTask extends AbstractLoomTask {
VsCodeConfiguration(RunConfig runConfig) {
this.name = runConfig.configName;
this.mainClass = runConfig.mainClass;
this.vmArgs = runConfig.vmArgs;
this.args = runConfig.programArgs;
this.vmArgs = RunConfig.joinArguments(runConfig.vmArgs);
this.args = RunConfig.joinArguments(runConfig.programArgs);
this.cwd = "${workspaceFolder}/" + runConfig.runDir;
if (getProject().getRootProject() != getProject()) {