Skip to content

Commit 530a3f6

Browse files
committed
Use workspacePath to derive temporary storage location
- When no workspace is opened, storageUri will be null, but workspacePath will be within the temporary storage location - Fix #2231 Signed-off-by: Roland Grunberg <[email protected]>
1 parent 244bf26 commit 530a3f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/javaServerStarter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ function prepareParams(requirements: RequirementsData, javaConfiguration, worksp
115115
params.push(HEAP_DUMP);
116116
}
117117
if (vmargs.indexOf(HEAP_DUMP_LOCATION) < 0) {
118-
params.push(`${HEAP_DUMP_LOCATION}${context.storageUri.fsPath}`);
118+
params.push(`${HEAP_DUMP_LOCATION}${path.dirname(workspacePath)}`);
119119
}
120120
}
121121

0 commit comments

Comments
 (0)