Преглед изворни кода

Remove unnecessary linting check in annotations listener

When user starts typing, compile log annotations are replaced with linter ones,
so log errrors can be ignored for this purpose. Because we don't try to
autocompile unless the user types something
Alasdair Smith пре 9 година
родитељ
комит
8a8d98935b
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.fromLinting && annotation.type == 'error')
+							.filter((annotation) -> annotation.type == 'error')
 							.length > 0
 
 						if ($rootScope.hasLintingError != hasErrors)