From bd54db4d15cfb1cc4f46936dcdaeec98d926bb27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 13 Dec 2018 18:18:27 +0800 Subject: =?UTF-8?q?=E5=BA=93=E5=AF=B9=E8=B1=A1=E6=98=BE=E7=A4=BA=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/matcher/hover.lua | 2 +- server/test/hover/init.lua | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/server/src/matcher/hover.lua b/server/src/matcher/hover.lua index aba25268..71b7a6a0 100644 --- a/server/src/matcher/hover.lua +++ b/server/src/matcher/hover.lua @@ -171,7 +171,7 @@ local function getLibHover(lib, fullKey, oo) elseif lib.type == 'string' then cache[lib] = lib.description or '' else - cache[lib] = '' + cache[lib] = '*' .. lib.type end end diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua index 8c4e916d..94730770 100644 --- a/server/test/hover/init.lua +++ b/server/test/hover/init.lua @@ -137,3 +137,9 @@ mt.__index = mt local = setmetatable({}, mt) ]] "local: *class" + +TEST[[ +local fs = require 'bee.filesystem' +local = fs.current_path() +]] +"*bee::filesystem" -- cgit v1.2.3