mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-24 01:29:35 +02:00
Filter out "source: compile' annotations (#5324)
GitOrigin-RevId: f0febf42fa46a28b357b2c4c2768f2a9b543e609
This commit is contained in:
@@ -843,7 +843,11 @@ App.directive(
|
||||
const hasErrors =
|
||||
session
|
||||
.getAnnotations()
|
||||
.filter(annotation => annotation.type !== 'info').length > 0
|
||||
.filter(
|
||||
annotation =>
|
||||
annotation.type !== 'info' &&
|
||||
annotation.source !== 'compile'
|
||||
).length > 0
|
||||
|
||||
if ($rootScope.hasLintingError !== hasErrors) {
|
||||
return ($rootScope.hasLintingError = hasErrors)
|
||||
|
||||
Reference in New Issue
Block a user