summaryrefslogtreecommitdiff
path: root/script/files.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-01 17:10:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-01 17:10:06 +0800
commitfb4322c6de02a043ca684b47ce4ce133d5eb2c92 (patch)
tree220c245bdcd898bb109a8b830e8947663bc6621d /script/files.lua
parent1e6663b47a911773f655589ee02fe358c65d6984 (diff)
downloadlua-language-server-fb4322c6de02a043ca684b47ce4ce133d5eb2c92.zip
10M is considered a huge file
Diffstat (limited to 'script/files.lua')
-rw-r--r--script/files.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/files.lua b/script/files.lua
index 29a66d48..9b22ea41 100644
--- a/script/files.lua
+++ b/script/files.lua
@@ -124,7 +124,7 @@ function m.setText(uri, text, isTrust)
if not text then
return
end
- if #text > 1024 * 1024 * 100 then
+ if #text > 1024 * 1024 * 10 then
local client = require 'client'
client.showMessage('Warning', lang.script('WORKSPACE_SKIP_HUGE_FILE', uri))
return