diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-17 15:09:43 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-17 15:09:43 +0800 |
commit | 53cba927958f6db6c979b3b6bfc7d50c706b9213 (patch) | |
tree | e5fd461b63e3e39cda7864998d1c1904cfa1d757 /server/src | |
parent | 110b227257ce5d7f4af0bd19e78f2187e276ee95 (diff) | |
download | lua-language-server-53cba927958f6db6c979b3b6bfc7d50c706b9213.zip |
重定义变量过滤隐藏变量
Diffstat (limited to 'server/src')
-rw-r--r-- | server/src/core/diagnostics.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index a8d38448..41a64da7 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -134,6 +134,9 @@ local function searchRedefinition(results, uri, callback) then goto NEXT_VAR end + if var.hide then + goto NEXT_VAR + end local shadow = var.shadow if not shadow then goto NEXT_VAR |