Procházet zdrojové kódy

Filter out "source: compile' annotations (#5324)

GitOrigin-RevId: f0febf42fa46a28b357b2c4c2768f2a9b543e609
Alf Eaton před 5 roky
rodič
revize
4adf32cb43

+ 5 - 1
services/web/frontend/js/ide/editor/directives/aceEditor.js

@@ -843,7 +843,11 @@ App.directive(
             const hasErrors =
               session
                 .getAnnotations()
-                .filter(annotation => annotation.type !== 'info').length > 0
+                .filter(
+                  annotation =>
+                    annotation.type !== 'info' &&
+                    annotation.source !== 'compile'
+                ).length > 0
 
             if ($rootScope.hasLintingError !== hasErrors) {
               return ($rootScope.hasLintingError = hasErrors)