mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Don't tokenize files that have more than 10000 lines
This commit is contained in:
@@ -62,8 +62,11 @@ class TokenizedBuffer
|
||||
@invalidateRow(0)
|
||||
@trigger "changed", { start: 0, end: lastRow, delta: 0 }
|
||||
|
||||
tooBigToTokenize: ->
|
||||
@screenLines.length > 10000
|
||||
|
||||
tokenizeInBackground: ->
|
||||
return if not @visible or @pendingChunk
|
||||
return if not @visible or @pendingChunk or @tooBigToTokenize()
|
||||
@pendingChunk = true
|
||||
_.defer =>
|
||||
@pendingChunk = false
|
||||
|
||||
Reference in New Issue
Block a user