mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user