diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-08-07 15:27:55 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-08-07 15:27:55 +0800 |
commit | 957693a43162559719dba79b67f9cd03a56f0f86 (patch) | |
tree | 1556dc759c5d0b41241eb14afd2954185d6eaa09 /server | |
parent | 58d09d2cec471f09821488c84268c20e92fa16c5 (diff) | |
download | lua-language-server-957693a43162559719dba79b67f9cd03a56f0f86.zip |
重复method的判断在跨文件后不准,先去掉吧
Diffstat (limited to 'server')
-rw-r--r-- | server/src/core/diagnostics.lua | 12 | ||||
-rw-r--r-- | server/test/diagnostics/init.lua | 14 |
2 files changed, 13 insertions, 13 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua index 549ddc77..07c3379d 100644 --- a/server/src/core/diagnostics.lua +++ b/server/src/core/diagnostics.lua @@ -877,12 +877,12 @@ return function (vm, lines, uri) } end) -- 往表里面塞重复的method - session:doDiagnostics(session.searchDuplicateMethod, 'duplicate-method', function (key, related) - return { - message = lang.script('DIAG_DUPLICATE_METHOD', key), - related = related, - } - end) + --session:doDiagnostics(session.searchDuplicateMethod, 'duplicate-method', function (key, related) + -- return { + -- message = lang.script('DIAG_DUPLICATE_METHOD', key), + -- related = related, + -- } + --end) -- 空代码块 session:doDiagnostics(session.searchEmptyBlock, 'empty-block', function () return { diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua index 4a34c3db..9e3bc0b4 100644 --- a/server/test/diagnostics/init.lua +++ b/server/test/diagnostics/init.lua @@ -475,13 +475,13 @@ local x x = x or -1 ]] -TEST [[ -local t = {} -function t:<!a!>() -end -function t:<!a!>() -end -]] +--TEST [[ +--local t = {} +--function t:<!a!>() +--end +--function t:<!a!>() +--end +--]] TEST [[ local t = {} |