From 8a8d98935b6ff15dff25748f51f3e95feaadc88c Mon Sep 17 00:00:00 2001 From: Alasdair Smith Date: Thu, 7 Sep 2017 10:04:10 +0100 Subject: [PATCH] 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 --- .../web/public/coffee/ide/editor/directives/aceEditor.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee index b6455d8e93..7660178182 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee +++ b/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)