From 9f54935bc1447c07a29a3fc4357a0dcbafd36a37 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, 11 Oct 2023 10:48:36 +0800 Subject: update doc and locale --- doc/zh-cn/config.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'doc/zh-cn') diff --git a/doc/zh-cn/config.md b/doc/zh-cn/config.md index bf33501d..26b54ad5 100644 --- a/doc/zh-cn/config.md +++ b/doc/zh-cn/config.md @@ -258,6 +258,7 @@ Array * ``"global-in-nil-env"`` * ``"incomplete-signature-doc"`` * ``"index-in-func-name"`` +* ``"inject-field"`` * ``"invisible"`` * ``"jump-local-scope"`` * ``"keyword"`` @@ -505,6 +506,7 @@ object * assign-type-mismatch * cast-local-type * cast-type-mismatch + * inject-field * need-check-nil * param-type-mismatch * return-type-mismatch @@ -633,6 +635,7 @@ object * assign-type-mismatch * cast-local-type * cast-type-mismatch + * inject-field * need-check-nil * param-type-mismatch * return-type-mismatch @@ -738,7 +741,7 @@ object ```jsonc { /* - 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` + 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` */ "ambiguity-1": "Any", /* @@ -826,6 +829,7 @@ object Incomplete @param or @return annotations for functions. */ "incomplete-signature-doc": "None", + "inject-field": "Opened", /* Enable diagnostics for accesses to fields which are invisible. */ @@ -1006,7 +1010,7 @@ object ```jsonc { /* - 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` + 优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` */ "ambiguity-1": "Warning", /* @@ -1094,6 +1098,7 @@ object Incomplete @param or @return annotations for functions. */ "incomplete-signature-doc": "Warning", + "inject-field": "Warning", /* Enable diagnostics for accesses to fields which are invisible. */ @@ -1659,7 +1664,7 @@ string # misc.parameters -VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage/#arguments)。 +VSCode中启动语言服务时的[命令行参数](https://luals.github.io/wiki/usage#arguments)。 ## type @@ -2290,4 +2295,4 @@ Array ```jsonc [] -``` +``` \ No newline at end of file -- cgit v1.2.3