From a8ea07192788c26f13baf4391c84a2d703b56812 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 19 Jul 2023 16:42:03 +0800 Subject: [PATCH] make 3rds --- .vscode/launch.json | 6 ++++ doc/en-us/config.md | 71 ++++++++++++++++++++++++++++++++++++--------- doc/pt-br/config.md | 71 ++++++++++++++++++++++++++++++++++++--------- doc/zh-cn/config.md | 71 ++++++++++++++++++++++++++++++++++++--------- doc/zh-tw/config.md | 71 ++++++++++++++++++++++++++++++++++++--------- 5 files changed, 234 insertions(+), 56 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index efc6d6029..8c86fcbee 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -50,6 +50,8 @@ "luaexe": "${workspaceFolder}/bin/lua-language-server", "program": "${workspaceRoot}/tools/build-3rd-meta.lua", "cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so", + "console": "integratedTerminal", + "internalConsoleOptions": "openOnSessionStart", "arg": [ ], "luaVersion": "latest", @@ -67,6 +69,8 @@ "luaexe": "${workspaceFolder}/bin/lua-language-server", "program": "${workspaceRoot}/tools/locale.lua", "cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so", + "console": "integratedTerminal", + "internalConsoleOptions": "openOnSessionStart", "arg": [ ], "luaVersion": "latest", @@ -84,6 +88,8 @@ "luaexe": "${workspaceFolder}/bin/lua-language-server", "program": "${workspaceRoot}/tools/build-doc.lua", "cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so", + "console": "integratedTerminal", + "internalConsoleOptions": "openOnSessionStart", "arg": [ ], "luaVersion": "latest", diff --git a/doc/en-us/config.md b/doc/en-us/config.md index 65d471c8e..84a3e9d65 100644 --- a/doc/en-us/config.md +++ b/doc/en-us/config.md @@ -1,3 +1,19 @@ +# addonManager.enable + +Whether the addon manager is enabled or not. + +## type + +```ts +boolean +``` + +## default + +```jsonc +true +``` + # codeLens.enable Enable code lens. @@ -290,6 +306,7 @@ Array * ``"missing-parameter"`` * ``"missing-return"`` * ``"missing-return-value"`` +* ``"name-style-check"`` * ``"need-check-nil"`` * ``"need-paren"`` * ``"nesting-long-mark"`` @@ -431,10 +448,15 @@ object "await": "Fallback", /* * codestyle-check + * name-style-check * spell-check */ "codestyle": "Fallback", /* + * global-element + */ + "conventions": "Fallback", + /* * duplicate-index * duplicate-set-field */ @@ -475,10 +497,6 @@ object */ "strict": "Fallback", /* - * global-element - */ - "conventions": "None", - /* * no-unknown */ "strong": "Fallback", @@ -557,10 +575,15 @@ object "await": "Fallback", /* * codestyle-check + * name-style-check * spell-check */ "codestyle": "Fallback", /* + * global-element + */ + "conventions": "Fallback", + /* * duplicate-index * duplicate-set-field */ @@ -601,10 +624,6 @@ object */ "strict": "Fallback", /* - * global-element - */ - "conventions": "Fallback", - /* * no-unknown */ "strong": "Fallback", @@ -801,7 +820,7 @@ object */ "global-in-nil-env": "Any", /* - Enable diagnostics for function definitions which are not fully annotated. + Incomplete @param or @return annotations for functions. */ "incomplete-signature-doc": "None", /* @@ -813,11 +832,11 @@ object */ "lowercase-global": "Any", /* - Enable diagnostics for global function definitions which are not fully annotated. + Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values. */ "missing-global-doc": "None", /* - Enable diagnostics for exported local function definitions which are not fully annotated. + Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values. */ "missing-local-export-doc": "None", /* @@ -833,6 +852,10 @@ object */ "missing-return-value": "Any", /* + Enable diagnostics for name style. + */ + "name-style-check": "None", + /* Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before. */ "need-check-nil": "Opened", @@ -1065,7 +1088,7 @@ object */ "global-in-nil-env": "Warning", /* - Enable diagnostics for function definitions which are not fully annotated. + Incomplete @param or @return annotations for functions. */ "incomplete-signature-doc": "Warning", /* @@ -1077,11 +1100,11 @@ object */ "lowercase-global": "Information", /* - Enable diagnostics for global function definitions which are not annotated. + Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values. */ "missing-global-doc": "Warning", /* - Enable diagnostics for exported local function definitions which are not annotated. + Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values. */ "missing-local-export-doc": "Warning", /* @@ -1097,6 +1120,10 @@ object */ "missing-return-value": "Warning", /* + Enable diagnostics for name style. + */ + "name-style-check": "Warning", + /* Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before. */ "need-check-nil": "Warning", @@ -1642,6 +1669,22 @@ Array [] ``` +# nameStyle.config + +Set name style config + +## type + +```ts +Object +``` + +## default + +```jsonc +{} +``` + # 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. diff --git a/doc/pt-br/config.md b/doc/pt-br/config.md index 1e86df352..de932f6a7 100644 --- a/doc/pt-br/config.md +++ b/doc/pt-br/config.md @@ -1,3 +1,19 @@ +# addonManager.enable + +Whether the addon manager is enabled or not. + +## type + +```ts +boolean +``` + +## default + +```jsonc +true +``` + # codeLens.enable Enable code lens. @@ -290,6 +306,7 @@ Array * ``"missing-parameter"`` * ``"missing-return"`` * ``"missing-return-value"`` +* ``"name-style-check"`` * ``"need-check-nil"`` * ``"need-paren"`` * ``"nesting-long-mark"`` @@ -431,10 +448,15 @@ object "await": "Fallback", /* * codestyle-check + * name-style-check * spell-check */ "codestyle": "Fallback", /* + * global-element + */ + "conventions": "Fallback", + /* * duplicate-index * duplicate-set-field */ @@ -475,10 +497,6 @@ object */ "strict": "Fallback", /* - * global-element - */ - "conventionss": "None", - /* * no-unknown */ "strong": "Fallback", @@ -557,10 +575,15 @@ object "await": "Fallback", /* * codestyle-check + * name-style-check * spell-check */ "codestyle": "Fallback", /* + * global-element + */ + "conventions": "Fallback", + /* * duplicate-index * duplicate-set-field */ @@ -601,10 +624,6 @@ object */ "strict": "Fallback", /* - * global-element - */ - "conventionss": "Fallback", - /* * no-unknown */ "strong": "Fallback", @@ -801,7 +820,7 @@ object */ "global-in-nil-env": "Any", /* - Enable diagnostics for function definitions which are not fully annotated. + Incomplete @param or @return annotations for functions. */ "incomplete-signature-doc": "None", /* @@ -813,11 +832,11 @@ object */ "lowercase-global": "Any", /* - Enable diagnostics for global function definitions which are not fully annotated. + Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values. */ "missing-global-doc": "None", /* - Enable diagnostics for exported local function definitions which are not fully annotated. + Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values. */ "missing-local-export-doc": "None", /* @@ -833,6 +852,10 @@ object */ "missing-return-value": "Any", /* + Enable diagnostics for name style. + */ + "name-style-check": "None", + /* Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before. */ "need-check-nil": "Opened", @@ -1065,7 +1088,7 @@ object */ "global-in-nil-env": "Warning", /* - Enable diagnostics for function definitions which are not fully annotated. + Incomplete @param or @return annotations for functions. */ "incomplete-signature-doc": "Warning", /* @@ -1077,11 +1100,11 @@ object */ "lowercase-global": "Information", /* - Enable diagnostics for global function definitions which are not annotated. + Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values. */ "missing-global-doc": "Warning", /* - Enable diagnostics for exported local function definitions which are not annotated. + Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values. */ "missing-local-export-doc": "Warning", /* @@ -1097,6 +1120,10 @@ object */ "missing-return-value": "Warning", /* + Enable diagnostics for name style. + */ + "name-style-check": "Warning", + /* Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before. */ "need-check-nil": "Warning", @@ -1642,6 +1669,22 @@ Array [] ``` +# nameStyle.config + +Set name style config + +## type + +```ts +Object +``` + +## default + +```jsonc +{} +``` + # 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. diff --git a/doc/zh-cn/config.md b/doc/zh-cn/config.md index ef0945991..54caf6c79 100644 --- a/doc/zh-cn/config.md +++ b/doc/zh-cn/config.md @@ -1,3 +1,19 @@ +# addonManager.enable + +Whether the addon manager is enabled or not. + +## type + +```ts +boolean +``` + +## default + +```jsonc +true +``` + # codeLens.enable 启用代码度量。 @@ -290,6 +306,7 @@ Array * ``"missing-parameter"`` * ``"missing-return"`` * ``"missing-return-value"`` +* ``"name-style-check"`` * ``"need-check-nil"`` * ``"need-paren"`` * ``"nesting-long-mark"`` @@ -431,10 +448,15 @@ object "await": "Fallback", /* * codestyle-check + * name-style-check * spell-check */ "codestyle": "Fallback", /* + * global-element + */ + "conventions": "Fallback", + /* * duplicate-index * duplicate-set-field */ @@ -475,10 +497,6 @@ object */ "strict": "Fallback", /* - * global-element - */ - "conventions": "None", - /* * no-unknown */ "strong": "Fallback", @@ -557,10 +575,15 @@ object "await": "Fallback", /* * codestyle-check + * name-style-check * spell-check */ "codestyle": "Fallback", /* + * global-element + */ + "conventions": "Fallback", + /* * duplicate-index * duplicate-set-field */ @@ -601,10 +624,6 @@ object */ "strict": "Fallback", /* - * global-element - */ - "conventions": "Fallback", - /* * no-unknown */ "strong": "Fallback", @@ -801,7 +820,7 @@ object */ "global-in-nil-env": "Any", /* - Enable diagnostics for function definitions which are not fully annotated. + Incomplete @param or @return annotations for functions. */ "incomplete-signature-doc": "None", /* @@ -813,11 +832,11 @@ object */ "lowercase-global": "Any", /* - Enable diagnostics for global function definitions which are not fully annotated. + Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values. */ "missing-global-doc": "None", /* - Enable diagnostics for exported local function definitions which are not fully annotated. + Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values. */ "missing-local-export-doc": "None", /* @@ -833,6 +852,10 @@ object */ "missing-return-value": "Any", /* + Enable diagnostics for name style. + */ + "name-style-check": "None", + /* Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before. */ "need-check-nil": "Opened", @@ -1064,7 +1087,7 @@ object */ "global-in-nil-env": "Warning", /* - Enable diagnostics for function definitions which are not fully annotated. + Incomplete @param or @return annotations for functions. */ "incomplete-signature-doc": "Warning", /* @@ -1076,11 +1099,11 @@ object */ "lowercase-global": "Information", /* - Enable diagnostics for global function definitions which are not annotated. + Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values. */ "missing-global-doc": "Warning", /* - Enable diagnostics for exported local function definitions which are not annotated. + Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values. */ "missing-local-export-doc": "Warning", /* @@ -1096,6 +1119,10 @@ object */ "missing-return-value": "Warning", /* + Enable diagnostics for name style. + */ + "name-style-check": "Warning", + /* Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before. */ "need-check-nil": "Warning", @@ -1641,6 +1668,22 @@ Array [] ``` +# nameStyle.config + +设定命名风格检查的配置 + +## type + +```ts +Object +``` + +## default + +```jsonc +{} +``` + # runtime.builtin 调整内置库的启用状态,你可以根据实际运行环境禁用掉不存在的库(或重新定义)。 diff --git a/doc/zh-tw/config.md b/doc/zh-tw/config.md index ea2c95a97..c2c49c692 100644 --- a/doc/zh-tw/config.md +++ b/doc/zh-tw/config.md @@ -1,3 +1,19 @@ +# addonManager.enable + +Whether the addon manager is enabled or not. + +## type + +```ts +boolean +``` + +## default + +```jsonc +true +``` + # codeLens.enable Enable code lens. @@ -290,6 +306,7 @@ Array * ``"missing-parameter"`` * ``"missing-return"`` * ``"missing-return-value"`` +* ``"name-style-check"`` * ``"need-check-nil"`` * ``"need-paren"`` * ``"nesting-long-mark"`` @@ -431,10 +448,15 @@ object "await": "Fallback", /* * codestyle-check + * name-style-check * spell-check */ "codestyle": "Fallback", /* + * global-element + */ + "conventions": "Fallback", + /* * duplicate-index * duplicate-set-field */ @@ -475,10 +497,6 @@ object */ "strict": "Fallback", /* - * global-element - */ - "convention": "None", - /* * no-unknown */ "strong": "Fallback", @@ -557,10 +575,15 @@ object "await": "Fallback", /* * codestyle-check + * name-style-check * spell-check */ "codestyle": "Fallback", /* + * global-element + */ + "conventions": "Fallback", + /* * duplicate-index * duplicate-set-field */ @@ -601,10 +624,6 @@ object */ "strict": "Fallback", /* - * global-element - */ - "convention": "Fallback", - /* * no-unknown */ "strong": "Fallback", @@ -801,7 +820,7 @@ object */ "global-in-nil-env": "Any", /* - Enable diagnostics for function definitions which are not fully annotated. + Incomplete @param or @return annotations for functions. */ "incomplete-signature-doc": "None", /* @@ -813,11 +832,11 @@ object */ "lowercase-global": "Any", /* - Enable diagnostics for global function definitions which are not fully annotated. + Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values. */ "missing-global-doc": "None", /* - Enable diagnostics for exported local function definitions which are not fully annotated. + Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values. */ "missing-local-export-doc": "None", /* @@ -833,6 +852,10 @@ object */ "missing-return-value": "Any", /* + Enable diagnostics for name style. + */ + "name-style-check": "None", + /* Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before. */ "need-check-nil": "Opened", @@ -1064,7 +1087,7 @@ object */ "global-in-nil-env": "Warning", /* - Enable diagnostics for function definitions which are not fully annotated. + Incomplete @param or @return annotations for functions. */ "incomplete-signature-doc": "Warning", /* @@ -1076,11 +1099,11 @@ object */ "lowercase-global": "Information", /* - Enable diagnostics for global function definitions which are not annotated. + Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values. */ "missing-global-doc": "Warning", /* - Enable diagnostics for exported local function definitions which are not annotated. + Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values. */ "missing-local-export-doc": "Warning", /* @@ -1096,6 +1119,10 @@ object */ "missing-return-value": "Warning", /* + Enable diagnostics for name style. + */ + "name-style-check": "Warning", + /* Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before. */ "need-check-nil": "Warning", @@ -1641,6 +1668,22 @@ Array [] ``` +# nameStyle.config + +Set name style config + +## type + +```ts +Object +``` + +## default + +```jsonc +{} +``` + # runtime.builtin 調整內建庫的啟用狀態,你可以根據實際執行環境停用(或重新定義)不存在的庫。