|
@@ -85,7 +85,11 @@ define [
|
|
|
isTimeNonMonotonic = timeSinceLastCompile < 0
|
|
isTimeNonMonotonic = timeSinceLastCompile < 0
|
|
|
|
|
|
|
|
if isTimeNonMonotonic || timeSinceLastCompile >= AUTO_COMPILE_TIMEOUT
|
|
if isTimeNonMonotonic || timeSinceLastCompile >= AUTO_COMPILE_TIMEOUT
|
|
|
- if (!ide.$scope.hasLintingError)
|
|
|
|
|
|
|
+ # If user has code check disabled, it is likely because they have
|
|
|
|
|
+ # linting errors that they are ignoring. Therefore it doesn't make sense
|
|
|
|
|
+ # to block auto compiles. It also causes problems where server-provided
|
|
|
|
|
+ # linting errors aren't cleared after typing
|
|
|
|
|
+ if (ide.$scope.settings.syntaxValidation and !ide.$scope.hasLintingError)
|
|
|
$scope.recompile(isAutoCompileOnChange: true)
|
|
$scope.recompile(isAutoCompileOnChange: true)
|
|
|
else
|
|
else
|
|
|
# Extend remainder of timeout
|
|
# Extend remainder of timeout
|