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

Ensure error is from linting not compile logs

Alasdair Smith 9 лет назад
Родитель
Сommit
fc4a260d95
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/public/coffee/ide/editor/directives/aceEditor.coffee

+ 1 - 1
services/web/public/coffee/ide/editor/directives/aceEditor.coffee

@@ -378,7 +378,7 @@ define [
 					session.on('changeAnnotation', () ->
 						hasErrors = session
 							.getAnnotations()
-							.filter((annotation) -> annotation.type == 'error')
+							.filter((annotation) -> annotation.fromLinting && annotation.type == 'error')
 							.length > 0
 
 						if ($rootScope.hasLintingError != hasErrors)