diff --git a/src/project.coffee b/src/project.coffee index 0081f3fcc..28a7bed42 100644 --- a/src/project.coffee +++ b/src/project.coffee @@ -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)