Skip to content

Commit

Permalink
Use workspacePath to derive temporary storage location
Browse files Browse the repository at this point in the history
- When no workspace is opened, storageUri will be null, but
  workspacePath will be within the temporary storage location
- Fix redhat-developer#2231

Signed-off-by: Roland Grunberg <[email protected]>
  • Loading branch information
rgrunber committed Nov 29, 2021
1 parent 244bf26 commit 48a5e59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/javaServerStarter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ function prepareParams(requirements: RequirementsData, javaConfiguration, worksp
params.push(HEAP_DUMP);
}
if (vmargs.indexOf(HEAP_DUMP_LOCATION) < 0) {
params.push(`${HEAP_DUMP_LOCATION}${context.storageUri.fsPath}`);
params.push(`${HEAP_DUMP_LOCATION}${path.dirname(workspacePath)}`);
}
}

Expand Down

0 comments on commit 48a5e59

Please sign in to comment.