summaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-08-07 15:27:55 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-08-07 15:27:55 +0800
commit957693a43162559719dba79b67f9cd03a56f0f86 (patch)
tree1556dc759c5d0b41241eb14afd2954185d6eaa09 /server/src
parent58d09d2cec471f09821488c84268c20e92fa16c5 (diff)
downloadlua-language-server-957693a43162559719dba79b67f9cd03a56f0f86.zip
重复method的判断在跨文件后不准,先去掉吧
Diffstat (limited to 'server/src')
-rw-r--r--server/src/core/diagnostics.lua12
1 files changed, 6 insertions, 6 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 {