Просмотр исходного кода

Don't use code check on .bib files

James Allen 9 лет назад
Родитель
Сommit
68aab6e05c
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      services/web/public/coffee/ide/editor/directives/aceEditor.coffee

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

@@ -279,7 +279,7 @@ define [
 
 					session.setUseWrapMode(true)
 					# use syntax validation only when explicitly set
-					if scope.syntaxValidation? and syntaxValidationEnabled
+					if scope.syntaxValidation? and syntaxValidationEnabled and !scope.fileName.match(/\.bib$/)
 						session.setOption("useWorker", scope.syntaxValidation);
 
 					# now attach session to editor