Skip to content

Commit 6703a22

Browse files
authored
Do not show PROBLEMS panel for build server project (#1372)
1 parent dda5427 commit 6703a22

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/build.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ enum CompileWorkspaceStatus {
1818
SUCCEED = 1,
1919
WITHERROR = 2,
2020
CANCELLED = 3,
21+
GRADLE_BS_COMPILATION_ERROR = 100,
2122
}
2223

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

0 commit comments

Comments
 (0)