summaryrefslogtreecommitdiff
path: root/server/src/method/textDocument
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-01-10 10:04:09 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-01-10 10:04:09 +0800
commit2a0d80c2dfbb0b00414a58cca4d06c397ec8e691 (patch)
treec5164c8d2b6acec8685d69c0630893e156549a88 /server/src/method/textDocument
parenteb7c7b6dcae752b03332f4f6d9004381eb87d457 (diff)
downloadlua-language-server-2a0d80c2dfbb0b00414a58cca4d06c397ec8e691.zip
给诊断添加code,每一类都可以单独禁用
Diffstat (limited to 'server/src/method/textDocument')
-rw-r--r--server/src/method/textDocument/publishDiagnostics.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/method/textDocument/publishDiagnostics.lua b/server/src/method/textDocument/publishDiagnostics.lua
index fffd7f9d..9385c657 100644
--- a/server/src/method/textDocument/publishDiagnostics.lua
+++ b/server/src/method/textDocument/publishDiagnostics.lua
@@ -49,6 +49,7 @@ local function createInfo(data, lines)
range = getRange(data.start, data.finish, lines),
severity = data.level,
message = data.message,
+ code = data.code,
}
if data.related then
local related = {}