File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Extension/src/LanguageServer Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -447,13 +447,12 @@ class CustomBuildTaskTerminal implements Pseudoterminal {
447447 }
448448
449449 private printBuildSummary ( error : string , stdout : string , stderr : string ) : void {
450- if ( error || ( ! stdout && stderr && stderr . includes ( "error" ) ) ) {
450+ if ( error || ( ! stdout && stderr && stderr . includes ( "error" ) ) ||
451+ ( stdout && stdout . includes ( "error C" ) ) ) { // cl.exe compiler errors
451452 telemetry . logLanguageServerEvent ( "cppBuildTaskError" ) ;
452453 this . writeEmitter . fire ( localize ( "build.finished.with.error" , "Build finished with error(s)." ) + this . endOfLine ) ;
453- } else if ( ! stdout && stderr ) { // gcc/clang
454- telemetry . logLanguageServerEvent ( "cppBuildTaskWarnings" ) ;
455- this . writeEmitter . fire ( localize ( "build.finished.with.warnings" , "Build finished with warning(s)." ) + this . endOfLine ) ;
456- } else if ( stdout && stdout . includes ( "warning C" ) ) { // cl.exe, compiler warnings
454+ } else if ( ( ! stdout && stderr ) || // gcc/clang
455+ ( stdout && stdout . includes ( "warning C" ) ) ) { // cl.exe compiler warnings
457456 telemetry . logLanguageServerEvent ( "cppBuildTaskWarnings" ) ;
458457 this . writeEmitter . fire ( localize ( "build.finished.with.warnings" , "Build finished with warning(s)." ) + this . endOfLine ) ;
459458 } else {
You can’t perform that action at this time.
0 commit comments