diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-13 18:18:27 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-13 18:18:27 +0800 |
commit | bd54db4d15cfb1cc4f46936dcdaeec98d926bb27 (patch) | |
tree | fe2ec2383bc75823702074a56320b00f277f378f | |
parent | 1d18e5e3035f954e4aec43aaab05be5f25068cf8 (diff) | |
download | lua-language-server-bd54db4d15cfb1cc4f46936dcdaeec98d926bb27.zip |
库对象显示对象名
-rw-r--r-- | server/src/matcher/hover.lua | 2 | ||||
-rw-r--r-- | server/test/hover/init.lua | 6 |
2 files changed, 7 insertions, 1 deletions
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 <?obj?> = setmetatable({}, mt) ]] "local: *class" + +TEST[[ +local fs = require 'bee.filesystem' +local <?root?> = fs.current_path() +]] +"*bee::filesystem" |