Ensure error is from linting not compile logs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user