diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-26 16:32:05 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-26 16:32:05 +0800 |
commit | a7a37c564f0b584b993eaec4c3dd164abdbd543f (patch) | |
tree | f39176779926cfc7d259f17c7c5997fe5ec70aa8 /script/vm/doc.lua | |
parent | 08135e067336d2767029c4a7b907e5df0a0d942b (diff) | |
download | lua-language-server-a7a37c564f0b584b993eaec4c3dd164abdbd543f.zip |
cleanup
Diffstat (limited to 'script/vm/doc.lua')
-rw-r--r-- | script/vm/doc.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/script/vm/doc.lua b/script/vm/doc.lua index 055b3d49..e2b383b6 100644 --- a/script/vm/doc.lua +++ b/script/vm/doc.lua @@ -3,7 +3,6 @@ local guide = require 'parser.guide' ---@class vm local vm = require 'vm.vm' local config = require 'config' -local globalMgr = require 'vm.global-manager' ---获取class与alias ---@param suri uri @@ -11,13 +10,13 @@ local globalMgr = require 'vm.global-manager' ---@return parser.object[] function vm.getDocSets(suri, name) if name then - local global = globalMgr.getGlobal('type', name) + local global = vm.getGlobal('type', name) if not global then return {} end return global:getSets(suri) else - return globalMgr.getGlobalSets(suri, 'type') + return vm.getGlobalSets(suri, 'type') end end |