diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-10-28 20:04:13 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-10-28 20:04:13 +0800 |
commit | 21333235026c2b2bc3a93765ed427a730428b73c (patch) | |
tree | b64ace2873b07407d29d846e2e7d11593a388732 /script/files.lua | |
parent | ad5a1169e69c054a185c3e96ab91cde863ce65ce (diff) | |
download | lua-language-server-21333235026c2b2bc3a93765ed427a730428b73c.zip |
fix
Diffstat (limited to 'script/files.lua')
-rw-r--r-- | script/files.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/files.lua b/script/files.lua index 0cf41646..29a66d48 100644 --- a/script/files.lua +++ b/script/files.lua @@ -11,7 +11,6 @@ local guide = require 'parser.guide' local smerger = require 'string-merger' local progress = require "progress" local encoder = require 'encoder' -local client = require 'client' ---@class files local m = {} @@ -126,6 +125,7 @@ function m.setText(uri, text, isTrust) return end if #text > 1024 * 1024 * 100 then + local client = require 'client' client.showMessage('Warning', lang.script('WORKSPACE_SKIP_HUGE_FILE', uri)) return end |