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
3636 } ) ;
3737 setErrorCode ( error , Number ( err ) ) ;
3838 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 ) {
4043 if ( checkErrorsReportedByJavaExtension ( ) ) {
4144 commands . executeCommand ( "workbench.actions.view.problems" ) ;
4245 }
You can’t perform that action at this time.
0 commit comments