Merge pull request #1607 from atom/ks-bump-max-size-to-two-mb

Bump max size to 2MB
This commit is contained in:
Kevin Sawicki
2014-02-27 15:39:10 -08:00

View File

@@ -189,8 +189,8 @@ class Project extends Model
#
# Returns a promise that resolves to the {TextBuffer}.
buildBuffer: (absoluteFilePath) ->
if fs.getSizeSync(absoluteFilePath) >= 1048576 # 1MB
throw new Error("Atom can only handle files < 1MB, for now.")
if fs.getSizeSync(absoluteFilePath) >= 2 * 1048576 # 2MB
throw new Error("Atom can only handle files < 2MB, for now.")
buffer = new TextBuffer({filePath: absoluteFilePath})
@addBuffer(buffer)