Ensure error is from linting not compile logs

This commit is contained in:
Alasdair Smith
2017-09-04 13:22:49 +01:00
parent 9f1adfd0c0
commit fc4a260d95

View File

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