Skip to content

Commit a7d44fa

Browse files
authored
Merge pull request #70 from armbrmaSICKAG/diagnostics-descriptions2
Descriptions for configuration options
2 parents 1e9036b + 6ea4c86 commit a7d44fa

File tree

4 files changed

+40
-4
lines changed

4 files changed

+40
-4
lines changed

package.nls.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.",
3737
"config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.",
3838
"config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.",
39-
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
39+
"config.diagnostics.circle-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
4040
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
4141
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
4242
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",
@@ -65,6 +65,7 @@
6565
"config.diagnostics.ignoredFiles.Disable": "These files are not diagnosed.",
6666
"config.diagnostics.ignoredFiles.Enable": "Always diagnose these files.",
6767
"config.diagnostics.ignoredFiles.Opened": "Only when these files are opened will it be diagnosed.",
68+
"config.diagnostics.invisible": "Enable diagnostics for accesses to fields which are invisible.",
6869
"config.diagnostics.libraryFiles": "How to diagnose files loaded via `Lua.workspace.library`.",
6970
"config.diagnostics.libraryFiles.Disable": "These files are not diagnosed.",
7071
"config.diagnostics.libraryFiles.Enable": "Always diagnose these files.",
@@ -153,6 +154,10 @@
153154
"config.misc.parameters": "[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language server in VSCode.",
154155
"config.runtime.builtin": "Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.\n\n* `default`: Indicates that the library will be enabled or disabled according to the runtime version\n* `enable`: always enable\n* `disable`: always disable\n",
155156
"config.runtime.fileEncoding": "File encoding. The `ansi` option is only available under the `Windows` platform.",
157+
"config.runtime.fileEncoding.utf8" : "utf8",
158+
"config.runtime.fileEncoding.ansi": "ansi",
159+
"config.runtime.fileEncoding.utf16le" : "utf16le",
160+
"config.runtime.fileEncoding.utf16be": "utf16be",
156161
"config.runtime.meta": "Format of the directory name of the meta files.",
157162
"config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.",
158163
"config.runtime.path": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n",
@@ -172,6 +177,10 @@
172177
"config.type.castNumberToInteger": "Allowed to assign the `number` type to the `integer` type.",
173178
"config.type.weakNilCheck": "When checking the type of union type, ignore the `nil` in it.\n\nWhen this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.\n",
174179
"config.type.weakUnionCheck": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n",
180+
"config.typeFormat.config": "Configures the formatting behavior while typing Lua code.",
181+
"config.typeFormat.config.auto_complete_end": "Controls if `end` is automatically completed at suitable positions.",
182+
"config.typeFormat.config.auto_complete_table_sep": "Controls if a separator is automatically appended at the end of a table declaration.",
183+
"config.typeFormat.config.format_line": "Controls if a line is formatted at all.",
175184
"config.window.progressBar": "Show progress bar in status bar.",
176185
"config.window.statusBar": "Show extension status in status bar.",
177186
"config.workspace.checkThirdParty": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",

package.nls.pt-br.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.",
3737
"config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.",
3838
"config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.",
39-
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
39+
"config.diagnostics.circle-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
4040
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
4141
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
4242
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",
@@ -69,6 +69,7 @@
6969
"config.diagnostics.libraryFiles.Disable": "These files are not diagnosed.",
7070
"config.diagnostics.libraryFiles.Enable": "Always diagnose these files.",
7171
"config.diagnostics.libraryFiles.Opened": "Only when these files are opened will it be diagnosed.",
72+
"config.diagnostics.invisible": "Enable diagnostics for accesses to fields which are invisible.",
7273
"config.diagnostics.lowercase-global": "首字母小写的全局变量定义",
7374
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
7475
"config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.",
@@ -153,6 +154,10 @@
153154
"config.misc.parameters": "[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.",
154155
"config.runtime.builtin": "Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.\n\n* `default`: Indicates that the library will be enabled or disabled according to the runtime version\n* `enable`: always enable\n* `disable`: always disable\n",
155156
"config.runtime.fileEncoding": "File encoding. The `ansi` option is only available under the `Windows` platform.",
157+
"config.runtime.fileEncoding.utf8" : "utf8",
158+
"config.runtime.fileEncoding.ansi": "ansi",
159+
"config.runtime.fileEncoding.utf16le" : "utf16le",
160+
"config.runtime.fileEncoding.utf16be": "utf16be",
156161
"config.runtime.meta": "Format of the directory name of the meta files.",
157162
"config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.",
158163
"config.runtime.path": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n",
@@ -172,6 +177,10 @@
172177
"config.type.castNumberToInteger": "Allowed to assign the `number` type to the `integer` type.",
173178
"config.type.weakNilCheck": "When checking the type of union type, ignore the `nil` in it.\n\nWhen this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.\n",
174179
"config.type.weakUnionCheck": "Once one subtype of a union type meets the condition, the union type also meets the condition.\n\nWhen this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`.\n",
180+
"config.typeFormat.config": "Configures the formatting behavior while typing Lua code.",
181+
"config.typeFormat.config.auto_complete_end": "Controls if `end` is automatically completed at suitable positions.",
182+
"config.typeFormat.config.auto_complete_table_sep": "Controls if a separator is automatically appended at the end of a table declaration.",
183+
"config.typeFormat.config.format_line": "Controls if a line is formatted at all.",
175184
"config.window.progressBar": "Show progress bar in status bar.",
176185
"config.window.statusBar": "Show extension status in status bar.",
177186
"config.workspace.checkThirdParty": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",

package.nls.zh-cn.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.",
3737
"config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.",
3838
"config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.",
39-
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
39+
"config.diagnostics.circle-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
4040
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
4141
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
4242
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",
@@ -69,6 +69,7 @@
6969
"config.diagnostics.libraryFiles.Disable": "不诊断这些文件。",
7070
"config.diagnostics.libraryFiles.Enable": "总是诊断这些文件。",
7171
"config.diagnostics.libraryFiles.Opened": "只有打开这些文件时才会诊断。",
72+
"config.diagnostics.invisible": "Enable diagnostics for accesses to fields which are invisible.",
7273
"config.diagnostics.lowercase-global": "首字母小写的全局变量定义",
7374
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
7475
"config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.",
@@ -153,6 +154,10 @@
153154
"config.misc.parameters": "VSCode中启动语言服务时的[命令行参数](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#arguments)。",
154155
"config.runtime.builtin": "调整内置库的启用状态,你可以根据实际运行环境禁用掉不存在的库(或重新定义)。\n\n* `default`: 表示库会根据运行版本启用或禁用\n* `enable`: 总是启用\n* `disable`: 总是禁用\n",
155156
"config.runtime.fileEncoding": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。",
157+
"config.runtime.fileEncoding.utf8" : "utf8",
158+
"config.runtime.fileEncoding.ansi": "ansi",
159+
"config.runtime.fileEncoding.utf16le" : "utf16le",
160+
"config.runtime.fileEncoding.utf16be": "utf16be",
156161
"config.runtime.meta": "meta文件的目录名称格式。",
157162
"config.runtime.nonstandardSymbol": "支持非标准的符号。请务必确认你的运行环境支持这些符号。",
158163
"config.runtime.path": "当使用 `require` 时,如何根据输入的名字来查找文件。\n此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索 `{workspace}/myfile/init.lua`。\n当 `runtime.pathStrict` 设置为 `false` 时,还会尝试搜索 `${workspace}/**/myfile/init.lua`。\n如果你想要加载工作区以外的文件,你需要先设置 `Lua.workspace.library`。\n",
@@ -172,6 +177,10 @@
172177
"config.type.castNumberToInteger": "允许将 `number` 类型赋给 `integer` 类型。",
173178
"config.type.weakNilCheck": "对联合类型进行类型检查时,忽略其中的 `nil`。\n\n此设置为 `false` 时,`numer|nil` 类型无法赋给 `number` 类型;为 `true` 是则可以。\n",
174179
"config.type.weakUnionCheck": "联合类型中只要有一个子类型满足条件,则联合类型也满足条件。\n\n此设置为 `false` 时,`number|boolean` 类型无法赋给 `number` 类型;为 `true` 时则可以。\n",
180+
"config.typeFormat.config": "Configures the formatting behavior while typing Lua code.",
181+
"config.typeFormat.config.auto_complete_end": "Controls if `end` is automatically completed at suitable positions.",
182+
"config.typeFormat.config.auto_complete_table_sep": "Controls if a separator is automatically appended at the end of a table declaration.",
183+
"config.typeFormat.config.format_line": "Controls if a line is formatted at all.",
175184
"config.window.progressBar": "在状态栏显示进度条。",
176185
"config.window.statusBar": "在状态栏显示插件状态。",
177186
"config.workspace.checkThirdParty": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",

package.nls.zh-tw.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.",
3737
"config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.",
3838
"config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.",
39-
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
39+
"config.diagnostics.circle-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
4040
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
4141
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
4242
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",
@@ -65,6 +65,7 @@
6565
"config.diagnostics.ignoredFiles.Disable": "不診斷這些檔案。",
6666
"config.diagnostics.ignoredFiles.Enable": "總是診斷這些檔案。",
6767
"config.diagnostics.ignoredFiles.Opened": "只有打開這些檔案時才會診斷。",
68+
"config.diagnostics.invisible": "Enable diagnostics for accesses to fields which are invisible.",
6869
"config.diagnostics.libraryFiles": "如何診斷透過 `Lua.workspace.library` 載入的檔案。",
6970
"config.diagnostics.libraryFiles.Disable": "不診斷這些檔案。",
7071
"config.diagnostics.libraryFiles.Enable": "總是診斷這些檔案。",
@@ -153,6 +154,10 @@
153154
"config.misc.parameters": "VSCode中啟動語言伺服時的[命令列參數](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#arguments)。",
154155
"config.runtime.builtin": "調整內建庫的啟用狀態,你可以根據實際執行環境停用(或重新定義)不存在的庫。\n\n* `default`: 表示庫會根據執行版本啟用或停用\n* `enable`: 總是啟用\n* `disable`: 總是停用\n",
155156
"config.runtime.fileEncoding": "檔案編碼,選項 `ansi` 只在 `Windows` 平台下有效。",
157+
"config.runtime.fileEncoding.utf8" : "utf8",
158+
"config.runtime.fileEncoding.ansi": "ansi",
159+
"config.runtime.fileEncoding.utf16le" : "utf16le",
160+
"config.runtime.fileEncoding.utf16be": "utf16be",
156161
"config.runtime.meta": "meta檔案的目錄名稱格式",
157162
"config.runtime.nonstandardSymbol": "支援非標準的符號。請務必確認你的執行環境支援這些符號。",
158163
"config.runtime.path": "當使用 `require` 時,如何根據輸入的名字來尋找檔案。\n此選項設定為 `?/init.lua` 意味著當你輸入 `require 'myfile'` 時,會從已載入的檔案中搜尋 `{workspace}/myfile/init.lua`。\n當 `runtime.pathStrict` 設定為 `false` 時,還會嘗試搜尋 `${workspace}/**/myfile/init.lua`。\n如果你想要載入工作區以外的檔案,你需要先設定 `Lua.workspace.library`。\n",
@@ -172,6 +177,10 @@
172177
"config.type.castNumberToInteger": "允許將 `number` 類型賦值給 `integer` 類型。",
173178
"config.type.weakNilCheck": "When checking the type of union type, ignore the `nil` in it.\n\nWhen this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`.\n",
174179
"config.type.weakUnionCheck": "同位類型中只要有一個子類型滿足條件,則同位類型也滿足條件。\n\n此設定為 `false` 時,`number|boolean` 類型無法賦給 `number` 類型;為 `true` 時則可以。\n",
180+
"config.typeFormat.config": "Configures the formatting behavior while typing Lua code.",
181+
"config.typeFormat.config.auto_complete_end": "Controls if `end` is automatically completed at suitable positions.",
182+
"config.typeFormat.config.auto_complete_table_sep": "Controls if a separator is automatically appended at the end of a table declaration.",
183+
"config.typeFormat.config.format_line": "Controls if a line is formatted at all.",
175184
"config.window.progressBar": "在狀態欄顯示進度條。",
176185
"config.window.statusBar": "在狀態欄顯示延伸模組狀態。",
177186
"config.workspace.checkThirdParty": "自動偵測與適應第三方庫,目前支援的庫為:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",

0 commit comments

Comments
 (0)