Просмотр исходного кода

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

GitOrigin-RevId: f0febf42fa46a28b357b2c4c2768f2a9b543e609
Alf Eaton 4 лет назад
Родитель
Сommit
4adf32cb43
1 измененных файлов с 5 добавлено и 1 удалено
  1. 5 1
      services/web/frontend/js/ide/editor/directives/aceEditor.js

+ 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)