summaryrefslogtreecommitdiff
path: root/locale/zh-cn
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-10-17 20:20:18 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-10-17 20:20:18 +0800
commit4e647a342a525eda45418398f1409c8e5a57adff (patch)
tree5d0ccd3849e2f545b02c5c6f50c4be2d539cb36e /locale/zh-cn
parent279c1ad7b88e464535971143660712fb0ea259ca (diff)
downloadlua-language-server-4e647a342a525eda45418398f1409c8e5a57adff.zip
new setting `Lua.diagnostics.workspaceEvent`
set the time to trigger workspace diagnostics. resolve #1626
Diffstat (limited to 'locale/zh-cn')
-rw-r--r--locale/zh-cn/setting.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/locale/zh-cn/setting.lua b/locale/zh-cn/setting.lua
index 841aafb6..93bdc7ff 100644
--- a/locale/zh-cn/setting.lua
+++ b/locale/zh-cn/setting.lua
@@ -76,8 +76,16 @@ config.diagnostics.groupFileStatus =
设置为 `Fallback` 意味着组中的诊断由 `diagnostics.neededFileStatus` 单独设置。
其他设置将覆盖单独设置,但是不会覆盖以 `!` 结尾的设置。
]]
+config.diagnostics.workspaceEvent =
+"设置触发工作区诊断的时机。"
+config.diagnostics.workspaceEvent.OnChange =
+"当文件发生变化时触发工作区诊断。"
+config.diagnostics.workspaceEvent.OnSave =
+"当文件保存时触发工作区诊断。"
+config.diagnostics.workspaceEvent.None =
+"关闭工作区诊断。"
config.diagnostics.workspaceDelay =
-"进行工作区诊断的延迟(毫秒)。当你启动工作区,或编辑了任意文件后,将会在后台对整个工作区进行重新诊断。设置为负数可以禁用工作区诊断。"
+"进行工作区诊断的延迟(毫秒)。"
config.diagnostics.workspaceRate =
"工作区诊断的运行速率(百分比)。降低该值会减少CPU占用,但是也会降低工作区诊断的速度。你当前正在编辑的文件的诊断总是全速完成,不受该选项影响。"
config.diagnostics.libraryFiles =