diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-01-08 17:16:11 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-01-08 17:16:11 +0800 |
commit | 948138c24288aec89f2dac53b45f3b34e87a7aff (patch) | |
tree | e7a56f2caaf6ac40b8af14538c73409f687f789d /server/src/method/textDocument/publishDiagnostics.lua | |
parent | 8ef1f94094cc5ee3457564bf3fa2ff0383b6e479 (diff) | |
download | lua-language-server-948138c24288aec89f2dac53b45f3b34e87a7aff.zip |
区分一下诊断和语法检查
Diffstat (limited to 'server/src/method/textDocument/publishDiagnostics.lua')
-rw-r--r-- | server/src/method/textDocument/publishDiagnostics.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/method/textDocument/publishDiagnostics.lua b/server/src/method/textDocument/publishDiagnostics.lua index c0d86845..b45f38a0 100644 --- a/server/src/method/textDocument/publishDiagnostics.lua +++ b/server/src/method/textDocument/publishDiagnostics.lua @@ -45,7 +45,7 @@ end local function createInfo(data, lines) local diagnostic = { - source = 'Lua Language Server', + source = 'Diagnostics', range = getRange(data.start, data.finish, lines), severity = data.level, message = data.message, @@ -78,7 +78,7 @@ end local function buildError(err, lines) local diagnostic = { - source = 'Lua Language Server', + source = 'Syntax Check', message = lang.script('PARSER_'..err.type, err.info) } if err.level == 'error' then |