summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-23 15:45:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-23 15:45:04 +0800
commitedeadaad1c8b168e010236b72a0dfa5dfc43c915 (patch)
treee950af879d4ae5cec412cfae015a1177912d053e /script
parent22d7f6c23be209c7b5de149f18efa850f84915f1 (diff)
downloadlua-language-server-edeadaad1c8b168e010236b72a0dfa5dfc43c915.zip
ignore dll
Diffstat (limited to 'script')
-rw-r--r--script/core/diagnostics/different-requires.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/diagnostics/different-requires.lua b/script/core/diagnostics/different-requires.lua
index 9e3dfc8f..5b86d8de 100644
--- a/script/core/diagnostics/different-requires.lua
+++ b/script/core/diagnostics/different-requires.lua
@@ -26,6 +26,9 @@ return function (uri, callback)
if not result then
return
end
+ if not files.isLua(result) then
+ return
+ end
local other = cache[result]
if not other then
cache[result] = {