瀏覽代碼

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

GitOrigin-RevId: f0febf42fa46a28b357b2c4c2768f2a9b543e609
Alf Eaton 5 年之前
父節點
當前提交
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)