소스 검색

Add comment explaining lint errors vs compile log errors

Alasdair Smith 9 년 전
부모
커밋
9cde236bc8
1개의 변경된 파일과 4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      services/web/public/coffee/ide/editor/directives/aceEditor.coffee

+ 4 - 0
services/web/public/coffee/ide/editor/directives/aceEditor.coffee

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