mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Add comment explaining lint errors vs compile log errors
This commit is contained in:
parent
a8cdfb7ecc
commit
9cde236bc8
1 changed files with 4 additions and 0 deletions
|
@ -376,6 +376,10 @@ define [
|
|||
|
||||
$rootScope.hasLintingError = false
|
||||
session.on('changeAnnotation', () ->
|
||||
# Both linter errors and compile logs are set as error annotations,
|
||||
# however when the user types something, the compile logs are
|
||||
# replaced with linter errors. When we check for lint errors before
|
||||
# autocompile we are guaranteed to get linter errors
|
||||
hasErrors = session
|
||||
.getAnnotations()
|
||||
.filter((annotation) -> annotation.type == 'error')
|
||||
|
|
Loading…
Reference in a new issue