diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-09-15 21:12:53 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-09-15 21:12:53 +0800 |
commit | 2dfcd22e91e12515e0bba146de4cb57e539d7d25 (patch) | |
tree | 550fdd662dd88e3a42675cb1f6b6d3f0b3e3b59c /script-beta/core | |
parent | 3913f3beba3196119c2ae9c483a97637eee2fe5e (diff) | |
download | lua-language-server-2dfcd22e91e12515e0bba146de4cb57e539d7d25.zip |
修正一个bug
Diffstat (limited to 'script-beta/core')
-rw-r--r-- | script-beta/core/rename.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script-beta/core/rename.lua b/script-beta/core/rename.lua index 2de21bac..e2c98b6f 100644 --- a/script-beta/core/rename.lua +++ b/script-beta/core/rename.lua @@ -283,7 +283,7 @@ local function rename(source, newname, callback) return ofLocal(source, newname, callback) elseif source.type == 'setlocal' or source.type == 'getlocal' then - return ofLocal(source, newname, callback) + return ofLocal(source.node, newname, callback) elseif source.type == 'field' or source.type == 'method' or source.type == 'index' then |