Skip to content

Commit 0dafbaa

Browse files
committed
update config
1 parent aedeae4 commit 0dafbaa

File tree

4 files changed

+17
-1
lines changed

4 files changed

+17
-1
lines changed

package/configuration.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,12 @@ local config = {
273273
default = 0,
274274
markdownDescription = "%config.intelliSense.searchDepth%"
275275
},
276+
['Lua.telemetry.enable'] = {
277+
scope = "resource",
278+
type = "boolean",
279+
default = true,
280+
markdownDescription = "%config.telemetry.enable%"
281+
}
276282
}
277283

278284
local DiagSeverity = config["Lua.diagnostics.severity"].properties

package/nls-zh-cn.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ return {
5050
['config.develop.debuggerWait'] = '调试器连接之前挂起。',
5151
['config.intelliSense.searchDepth'] = '设置智能感知的搜索深度。增大该值可以增加准确度,但会降低性能。不同的项目对该设置的容忍度差异较大,请自己调整为合适的值。',
5252
['config.intelliSense.fastGlobal'] = '在对全局变量进行补全,及查看 `_G` 的悬浮提示时进行优化。这会略微降低类型推测的准确度,但是对于大量使用全局变量的项目会有大幅的性能提升。',
53+
['config.telemetry.enable'] = [[
54+
启用遥测,通过网络发送你的编辑器信息与错误日志
55+
* [会发送哪些数据](https://github.com/sumneko/lua-language-server/blob/master/script/service/telemetry.lua)
56+
* [如何使用这些数据](https://github.com/sumneko/lua-telemetry-server/tree/master/method)
57+
]],
5358

5459
-- TODO 英文翻译
5560
['config.diagnostics.unused-local'] = '未使用的局部变量',

package/nls.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,9 @@ The following example shows loaded files in `C:/lua` and `../lib` ,exclude `../l
5050
['config.develop.debuggerWait'] = 'Suspend before debugger connects.',
5151
['config.intelliSense.searchDepth'] = 'Set the search depth for IntelliSense. Increasing this value increases accuracy, but decreases performance. Different workspace have different tolerance for this setting. Please adjust it to the appropriate value.',
5252
['config.intelliSense.fastGlobal'] = 'In the global variable completion, and view `_G` suspension prompt. This will slightly reduce the accuracy of type speculation, but it will have a significant performance improvement for projects that use a lot of global variables.',
53+
['config.telemetry.enable'] = [[
54+
Enable telemetry to send your editor information and error logs over the network
55+
* [What data will be sent](https://github.com/sumneko/lua-language-server/blob/master/script/service/telemetry.lua)
56+
* [How to use this data](https://github.com/sumneko/lua-telemetry-server/tree/master/method)
57+
]],
5358
}

server

0 commit comments

Comments
 (0)