diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-06-16 20:12:06 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-06-16 20:12:06 +0800 |
commit | 7ea152ca14332a637b4b2eb6f1fda103ceb7377b (patch) | |
tree | e9a6be8ea14525fff35728d0fe671fe8e348894e /script/core | |
parent | 9341ca6cad1af3d3460361d48997027dca617fd3 (diff) | |
download | lua-language-server-7ea152ca14332a637b4b2eb6f1fda103ceb7377b.zip |
fix
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/highlight.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/script/core/highlight.lua b/script/core/highlight.lua index 3ae4dcb2..d1f11906 100644 --- a/script/core/highlight.lua +++ b/script/core/highlight.lua @@ -265,6 +265,9 @@ return function (uri, offset) if isLiteral ~= isLiteralValue(target) then return end + if not files.eq(uri, guide.getUri(target)) then + return + end local kind if target.type == 'getfield' then target = target.field |