Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ async function handleBuildFailure(operationId: string, err: any): Promise<boolea
});
setErrorCode(error, Number(err));
sendOperationError(operationId, "build", error);
if (err === Jdtls.CompileWorkspaceStatus.Witherror || err === Jdtls.CompileWorkspaceStatus.Failed) {
// Workaround: Since VS Code 1.53, the contributed command would no longer throw exact error message when an error occurs.
// This change breaks the existing build error reporting, so we make a workaround here.
// Related issue: https://github.com/microsoft/vscode/issues/116932
if (err instanceof Error || err === Jdtls.CompileWorkspaceStatus.Witherror || err === Jdtls.CompileWorkspaceStatus.Failed) {
if (checkErrorsReportedByJavaExtension()) {
commands.executeCommand("workbench.actions.view.problems");
}
Expand Down