summaryrefslogtreecommitdiff
path: root/doc/pt-br/config.md
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-29 17:55:23 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-29 17:55:23 +0800
commite8e593c87e2a2319ea48b4ee4cffc7a256070416 (patch)
tree17ea47970fe1082c1ea6957287655e3a09b44e98 /doc/pt-br/config.md
parent31329202cbab5dc96104661f4a8a011d3757ef7f (diff)
downloadlua-language-server-e8e593c87e2a2319ea48b4ee4cffc7a256070416.zip
update `config.md`
Diffstat (limited to 'doc/pt-br/config.md')
-rw-r--r--doc/pt-br/config.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/doc/pt-br/config.md b/doc/pt-br/config.md
index 68efabb3..55604b55 100644
--- a/doc/pt-br/config.md
+++ b/doc/pt-br/config.md
@@ -333,12 +333,16 @@ object<string, string>
* cast-type-mismatch
* need-check-nil
* param-type-mismatch
+ * return-type-mismatch
* undefined-field
*/
"type-check": "Fallback",
/*
* missing-parameter
+ * missing-return
+ * missing-return-value
* redundant-parameter
+ * redundant-return-value
* redundant-value
* unbalanced-assignments
*/
@@ -446,12 +450,16 @@ object<string, string>
* cast-type-mismatch
* need-check-nil
* param-type-mismatch
+ * return-type-mismatch
* undefined-field
*/
"type-check": "Fallback",
/*
* missing-parameter
+ * missing-return
+ * missing-return-value
* redundant-parameter
+ * redundant-return-value
* redundant-value
* unbalanced-assignments
*/
@@ -580,6 +588,8 @@ object<string, string>
*/
"lowercase-global": "Any",
"missing-parameter": "Any",
+ "missing-return": "Any",
+ "missing-return-value": "Any",
"need-check-nil": "Opened",
/*
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
@@ -601,10 +611,12 @@ object<string, string>
*/
"redundant-parameter": "Any",
"redundant-return": "Opened",
+ "redundant-return-value": "Any",
/*
赋值操作时,值的数量比被赋值的对象多
*/
"redundant-value": "Any",
+ "return-type-mismatch": "Opened",
"spell-check": "None",
/*
后置空格
@@ -710,6 +722,8 @@ object<string, string>
*/
"lowercase-global": "Information",
"missing-parameter": "Warning",
+ "missing-return": "Warning",
+ "missing-return-value": "Warning",
"need-check-nil": "Warning",
/*
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
@@ -731,10 +745,12 @@ object<string, string>
*/
"redundant-parameter": "Warning",
"redundant-return": "Hint",
+ "redundant-return-value": "Warning",
/*
赋值操作时,值的数量比被赋值的对象多
*/
"redundant-value": "Warning",
+ "return-type-mismatch": "Warning",
"spell-check": "Information",
/*
后置空格
@@ -932,6 +948,28 @@ boolean
true
```
+# hint.semicolon
+
+If there is no semicolon at the end of the statement, display a virtual semicolon.
+
+## type
+
+```ts
+string
+```
+
+## enum
+
+* ``"All"``: All statements display virtual semicolons.
+* ``"SameLine"``: When two statements are on the same line, display a semicolon between them.
+* ``"Disable"``: Disable virtual semicolons.
+
+## default
+
+```jsonc
+"SameLine"
+```
+
# hint.setType
Show hints of type at assignment operation.