summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-24 16:01:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-24 16:01:35 +0800
commit4051db5c13ea69feb97c17b3f7fa71cc85eb9224 (patch)
tree338a31b6bd5b9522411587ca5a243aac35b9db0a
parent0418e03a734218fcee1fc7cd3097b8777aed4c5a (diff)
downloadlua-language-server-4051db5c13ea69feb97c17b3f7fa71cc85eb9224.zip
fix #266 library files should not be limited
-rw-r--r--script/workspace/workspace.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/workspace/workspace.lua b/script/workspace/workspace.lua
index 63060e40..c5744666 100644
--- a/script/workspace/workspace.lua
+++ b/script/workspace/workspace.lua
@@ -173,7 +173,7 @@ local function loadFileFactory(root, progress, isLibrary)
if not files.isLua(uri) then
return
end
- if progress.preload >= config.config.workspace.maxPreload then
+ if not isLibrary and progress.preload >= config.config.workspace.maxPreload then
if not m.hasHitMaxPreload then
m.hasHitMaxPreload = true
proto.notify('window/showMessage', {