mirror of
https://github.com/atom/atom.git
synced 2026-01-23 13:58:08 -05:00
Revert "Don't tokenize files that have more than 10000 lines"
This was a premature optimization. The real problem is
with the spell-check package.
This reverts commit 987d1da233.
This commit is contained in:
@@ -62,11 +62,8 @@ class TokenizedBuffer
|
||||
@invalidateRow(0)
|
||||
@trigger "changed", { start: 0, end: lastRow, delta: 0 }
|
||||
|
||||
tooBigToTokenize: ->
|
||||
@screenLines.length > 10000
|
||||
|
||||
tokenizeInBackground: ->
|
||||
return if not @visible or @pendingChunk or @tooBigToTokenize()
|
||||
return if not @visible or @pendingChunk
|
||||
@pendingChunk = true
|
||||
_.defer =>
|
||||
@pendingChunk = false
|
||||
|
||||
Reference in New Issue
Block a user