diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-11-18 17:37:38 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-11-18 17:37:38 +0800 |
commit | f170f8d14a8d607db9cc9447c6e562c0649817fd (patch) | |
tree | 33dcf19d8b7108c03054d98d39f28a8cd3f2d366 /script-beta/core | |
parent | c2f380e1c138cdb29c1ed4ccbf160ccc70f426b7 (diff) | |
download | lua-language-server-f170f8d14a8d607db9cc9447c6e562c0649817fd.zip |
搜索引用不会找到meta文件
Diffstat (limited to 'script-beta/core')
-rw-r--r-- | script-beta/core/reference.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script-beta/core/reference.lua b/script-beta/core/reference.lua index 57b06a84..e5162be8 100644 --- a/script-beta/core/reference.lua +++ b/script-beta/core/reference.lua @@ -75,6 +75,9 @@ return function (uri, offset) if not root then goto CONTINUE end + if vm.isMetaFile(root.uri) then + goto CONTINUE + end if src.type == 'setfield' or src.type == 'getfield' or src.type == 'tablefield' then |