summaryrefslogtreecommitdiff
path: root/script-beta/provider/diagnostic.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-11-03 12:41:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-11-03 12:41:06 +0800
commit106150b3063ac8ae9300373c664e0f9b7a3220c9 (patch)
tree46547e6cd13432f3166f93d35be9664b8e00ed73 /script-beta/provider/diagnostic.lua
parent181408ad7cc99eb2dc84fa318ebdb0100137fb1c (diff)
downloadlua-language-server-106150b3063ac8ae9300373c664e0f9b7a3220c9.zip
修正语法错误会显示2次的bug
Diffstat (limited to 'script-beta/provider/diagnostic.lua')
-rw-r--r--script-beta/provider/diagnostic.lua5
1 files changed, 0 insertions, 5 deletions
diff --git a/script-beta/provider/diagnostic.lua b/script-beta/provider/diagnostic.lua
index 9c2a7267..02cbebfb 100644
--- a/script-beta/provider/diagnostic.lua
+++ b/script-beta/provider/diagnostic.lua
@@ -161,11 +161,6 @@ function m.doDiagnostic(uri)
local syntax = m.syntaxErrors(uri, ast)
local diags = {}
- if syntax then
- for _, err in ipairs(syntax) do
- diags[#diags+1] = err
- end
- end
local function pushResult()
local full = merge(syntax, diags)