Skip to content

Commit 59e6079

Browse files
Escape the whitespace if the argfiles path contains space (microsoft#358)
1 parent 631fb2a commit 59e6079

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

com.microsoft.java.debug.core/src/main/java/com/microsoft/java/debug/core/adapter/handler/LaunchRequestHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ protected CompletableFuture<Response> handleLaunchCommand(Arguments arguments, R
130130
} else if (launchArguments.shortenCommandLine == ShortenApproach.ARGFILE) {
131131
try {
132132
Path tempfile = AdapterUtils.generateArgfile(launchArguments.classPaths, launchArguments.modulePaths);
133-
launchArguments.vmArgs += " @" + tempfile.toAbsolutePath().toString();
133+
launchArguments.vmArgs += " \"@" + tempfile.toAbsolutePath().toString() + "\"";
134134
launchArguments.classPaths = new String[0];
135135
launchArguments.modulePaths = new String[0];
136136
context.setArgsfile(tempfile);

0 commit comments

Comments
 (0)