diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-12-10 09:26:03 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-12-10 09:26:03 +0800 |
commit | 32f431765faaddb1920f1ef4be82ea3e5ed6683c (patch) | |
tree | 1189427ddb12b54cbcd5c0cb7196493000bfec36 | |
parent | eaed7673a1ff4e167afa6cc568f714931cf370d6 (diff) | |
download | lua-language-server-32f431765faaddb1920f1ef4be82ea3e5ed6683c.zip |
重定义2此就不警告了
-rw-r--r-- | package.json | 2 | ||||
-rw-r--r-- | server/src/matcher/diagnostics.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/package.json b/package.json index 2d25e0a1..8de7a68c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lua-language-server", "displayName": "Lua Language Server", - "description": "Lua Language Server For VSCode", + "description": "Lua Language Server for VSCode", "author": "sumneko", "license": "MIT", "version": "0.0.1", diff --git a/server/src/matcher/diagnostics.lua b/server/src/matcher/diagnostics.lua index 29cd4559..0ec84c9f 100644 --- a/server/src/matcher/diagnostics.lua +++ b/server/src/matcher/diagnostics.lua @@ -106,7 +106,7 @@ local function searchRedefinition(results, uri, callback) goto NEXT_VAR end -- 如果多次重定义,则不再警告 - if #shadow >= 4 then + if #shadow >= 3 then goto NEXT_VAR end local related = {} |