summaryrefslogtreecommitdiff
path: root/server/src/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-03-28 15:31:04 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-03-28 15:31:04 +0800
commitf9d9266198cb54cadb7e75815a39bf2ce29ff045 (patch)
tree4214e85a2cc3e216585ca2bd86ace82a4a5beafb /server/src/core
parentdeaf17c3d358085dcf9b8c4cf014b83daf5bf149 (diff)
downloadlua-language-server-f9d9266198cb54cadb7e75815a39bf2ce29ff045.zip
解决 x or 0 + 1
Diffstat (limited to 'server/src/core')
-rw-r--r--server/src/core/diagnostics.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/core/diagnostics.lua b/server/src/core/diagnostics.lua
index a43cbf2f..e6ba6f83 100644
--- a/server/src/core/diagnostics.lua
+++ b/server/src/core/diagnostics.lua
@@ -329,7 +329,7 @@ return function (vm, lines, uri)
-- x or 0 + 1
session:doDiagnostics(session.searchAmbiguity1, 'ambiguity-1', function (op, num)
return {
- level = DiagnosticSeverity.Information,
+ level = DiagnosticSeverity.Warning,
message = lang.script('DIAG_AMBIGUITY_1', op, num),
}
end)