Merge branch 'master' into ns-fix-editor-auto-height

# Conflicts:
#	src/text-editor.coffee
This commit is contained in:
Antonio Scandurra
2016-08-19 13:27:26 +02:00
8 changed files with 98 additions and 45 deletions

View File

@@ -550,7 +550,7 @@ class Workspace extends Model
fileSize = fs.getSizeSync(filePath)
largeFileMode = fileSize >= 2 * 1048576 # 2MB
if fileSize >= 20 * 1048576 # 20MB
if fileSize >= @config.get('core.warnOnLargeFileLimit') * 1048576 # 20MB by default
choice = @applicationDelegate.confirm
message: 'Atom will be unresponsive during the loading of very large files.'
detailedMessage: "Do you still want to load this file?"