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/core/rename.lua | |
parent | 08135e067336d2767029c4a7b907e5df0a0d942b (diff) | |
download | lua-language-server-a7a37c564f0b584b993eaec4c3dd164abdbd543f.zip |
cleanup
Diffstat (limited to 'script/core/rename.lua')
-rw-r--r-- | script/core/rename.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/script/core/rename.lua b/script/core/rename.lua index ec21e87c..7599fad6 100644 --- a/script/core/rename.lua +++ b/script/core/rename.lua @@ -3,7 +3,6 @@ local vm = require 'vm' local util = require 'utility' local findSource = require 'core.find-source' local guide = require 'parser.guide' -local globalMgr = require 'vm.global-manager' local Forcing @@ -191,7 +190,7 @@ end ---@async local function ofGlobal(source, newname, callback) local key = guide.getKeyName(source) - local global = globalMgr.getGlobal('variable', key) + local global = vm.getGlobal('variable', key) if not global then return end @@ -214,7 +213,7 @@ end ---@async local function ofDocTypeName(source, newname, callback) local oldname = source[1] - local global = globalMgr.getGlobal('type', oldname) + local global = vm.getGlobal('type', oldname) if not global then return end |