summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-08-05 17:12:00 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-08-05 17:12:00 +0800
commitd8a982155d589f4b19dd1e066e4f01b90c66840f (patch)
treec48d1bb119572ed1cb9abb53ef85d797af427ff5 /script/core/diagnostics/init.lua
parentcc0f8bcae6bd3a0820243145ef50e1e5bd9a54a1 (diff)
downloadlua-language-server-d8a982155d589f4b19dd1e066e4f01b90c66840f.zip
improve log
Diffstat (limited to 'script/core/diagnostics/init.lua')
-rw-r--r--script/core/diagnostics/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/diagnostics/init.lua b/script/core/diagnostics/init.lua
index 09688f6e..b44d6a2c 100644
--- a/script/core/diagnostics/init.lua
+++ b/script/core/diagnostics/init.lua
@@ -57,7 +57,7 @@ local function check(uri, name, results)
end, name)
local passed = os.clock() - clock
if passed >= 0.5 then
- log.warn(('Diagnostics [%s] @ [%s] takes [%.3f] sec!'):format(name, uri, passed))
+ log.warn(('Diagnostics [%s] @ [%s] takes [%.3f] sec!'):format(name, files.getOriginUri(uri), passed))
end
if DIAGTIMES then
DIAGTIMES[name] = (DIAGTIMES[name] or 0) + passed