File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,10 @@ async function handleBuildFailure(operationId: string, err: any): Promise<boolea
36
36
} ) ;
37
37
setErrorCode ( error , Number ( err ) ) ;
38
38
sendOperationError ( operationId , "build" , error ) ;
39
- if ( err === Jdtls . CompileWorkspaceStatus . Witherror || err === Jdtls . CompileWorkspaceStatus . Failed ) {
39
+ // Workaround: Since VS Code 1.53, the contributed command would no longer throw exact error message when an error occurs.
40
+ // This change breaks the existing build error reporting, so we make a workaround here.
41
+ // Related issue: https://github.com/microsoft/vscode/issues/116932
42
+ if ( err instanceof Error || err === Jdtls . CompileWorkspaceStatus . Witherror || err === Jdtls . CompileWorkspaceStatus . Failed ) {
40
43
if ( checkErrorsReportedByJavaExtension ( ) ) {
41
44
commands . executeCommand ( "workbench.actions.view.problems" ) ;
42
45
}
You can’t perform that action at this time.
0 commit comments