Skip to content

Commit

Permalink
Do not show PROBLEMS panel for build server project (#1372)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo authored Aug 4, 2023
1 parent dda5427 commit 6703a22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ enum CompileWorkspaceStatus {
SUCCEED = 1,
WITHERROR = 2,
CANCELLED = 3,
GRADLE_BS_COMPILATION_ERROR = 100,
}

export interface BuildParams {
Expand Down Expand Up @@ -77,7 +78,8 @@ async function handleBuildFailure(operationId: string, err: any, progressReporte
sendOperationError(operationId, "build", error);
const errorDiagnostics = traceErrorTypes(operationId);
if (!onBuildFailureProceed && err) {
if (errorDiagnostics) {
// build failure information is not displayed in PROBLEMS panel for build server project.
if (errorDiagnostics && err !== CompileWorkspaceStatus.GRADLE_BS_COMPILATION_ERROR) {
vscode.commands.executeCommand("workbench.actions.view.problems");
}

Expand Down

0 comments on commit 6703a22

Please sign in to comment.