summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-12-05 20:42:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-12-05 20:42:09 +0800
commit3dcbab2103ebb66fb4bd95c91a49f03f0f449421 (patch)
treeca17d7ce91fd36ea671968dd4df08179d2c101f8 /script
parent98efc5696e8fa512f64dff9508e79143e6aeb200 (diff)
downloadlua-language-server-3dcbab2103ebb66fb4bd95c91a49f03f0f449421.zip
fix detecting of library
Diffstat (limited to 'script')
-rw-r--r--script/library.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/library.lua b/script/library.lua
index 7ff735cc..da4d77d5 100644
--- a/script/library.lua
+++ b/script/library.lua
@@ -569,6 +569,10 @@ local function check3rdByFileName(uri, configs)
if hasAsked[cfg.name] then
goto CONTINUE
end
+ local library = ('%s/library'):format(cfg.dirname)
+ if util.arrayHas(config.get(uri, 'Lua.workspace.library'), library) then
+ goto CONTINUE
+ end
for _, filename in ipairs(cfg.files) do
await.delay()
if wholeMatch(path, filename) then