Skip to content

Commit 0f0c1c5

Browse files
committed
update docs
1 parent 3b7b8b5 commit 0f0c1c5

File tree

4 files changed

+36
-44
lines changed

4 files changed

+36
-44
lines changed

doc/en-us/config.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ object<string, string>
398398
*/
399399
"global": "Fallback",
400400
/*
401-
* cast-type-mismatch
402401
* circle-doc-class
403402
* doc-field-no-class
404403
* duplicate-doc-alias
@@ -517,7 +516,6 @@ object<string, string>
517516
*/
518517
"global": "Fallback",
519518
/*
520-
* cast-type-mismatch
521519
* circle-doc-class
522520
* doc-field-no-class
523521
* duplicate-doc-alias
@@ -659,7 +657,7 @@ object<string, string>
659657
"assign-type-mismatch": "Opened",
660658
"await-in-sync": "None",
661659
"cast-local-type": "Opened",
662-
"cast-type-mismatch": "Any",
660+
"cast-type-mismatch": "Opened",
663661
"circle-doc-class": "Any",
664662
"close-non-object": "Any",
665663
"code-after-break": "Opened",
@@ -694,7 +692,7 @@ object<string, string>
694692
"missing-return-value": "Any",
695693
"need-check-nil": "Opened",
696694
/*
697-
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
695+
Enable newfield call diagnostics. It is raised when the parenthesis of a function call appear on the following line when defining a field in a table.
698696
*/
699697
"newfield-call": "Any",
700698
/*
@@ -830,7 +828,7 @@ object<string, string>
830828
"missing-return-value": "Warning",
831829
"need-check-nil": "Warning",
832830
/*
833-
在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作
831+
Enable newfield call diagnostics. It is raised when the parenthesis of a function call appear on the following line when defining a field in a table.
834832
*/
835833
"newfield-call": "Warning",
836834
/*
@@ -1413,17 +1411,17 @@ string
14131411

14141412
# runtime.pluginArgs
14151413

1416-
Arguments to pass to to the runtime plug.
1414+
Additional arguments for the plugin.
14171415

14181416
## type
14191417

14201418
```ts
1421-
array<string>
1419+
Array<string>
14221420
```
14231421

1424-
## default
1422+
## default
14251423

1426-
```json
1424+
```jsonc
14271425
[]
14281426
```
14291427

@@ -1616,7 +1614,7 @@ boolean
16161614
## default
16171615

16181616
```jsonc
1619-
false
1617+
true
16201618
```
16211619

16221620
# type.weakNilCheck
@@ -1839,4 +1837,4 @@ Array<string>
18391837

18401838
```jsonc
18411839
[]
1842-
```
1840+
```

doc/pt-br/config.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ object<string, string>
398398
*/
399399
"global": "Fallback",
400400
/*
401-
* cast-type-mismatch
402401
* circle-doc-class
403402
* doc-field-no-class
404403
* duplicate-doc-alias
@@ -517,7 +516,6 @@ object<string, string>
517516
*/
518517
"global": "Fallback",
519518
/*
520-
* cast-type-mismatch
521519
* circle-doc-class
522520
* doc-field-no-class
523521
* duplicate-doc-alias
@@ -653,13 +651,13 @@ object<string, string>
653651
```jsonc
654652
{
655653
/*
656-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
654+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
657655
*/
658656
"ambiguity-1": "Any",
659657
"assign-type-mismatch": "Opened",
660658
"await-in-sync": "None",
661659
"cast-local-type": "Opened",
662-
"cast-type-mismatch": "Any",
660+
"cast-type-mismatch": "Opened",
663661
"circle-doc-class": "Any",
664662
"close-non-object": "Any",
665663
"code-after-break": "Opened",
@@ -789,7 +787,7 @@ object<string, string>
789787
```jsonc
790788
{
791789
/*
792-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
790+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
793791
*/
794792
"ambiguity-1": "Warning",
795793
"assign-type-mismatch": "Warning",
@@ -1413,17 +1411,17 @@ string
14131411

14141412
# runtime.pluginArgs
14151413

1416-
Arguments to pass to to the runtime plug.
1414+
Additional arguments for the plugin.
14171415

14181416
## type
14191417

14201418
```ts
1421-
array<string>
1419+
Array<string>
14221420
```
14231421

1424-
## default
1422+
## default
14251423

1426-
```json
1424+
```jsonc
14271425
[]
14281426
```
14291427

@@ -1616,7 +1614,7 @@ boolean
16161614
## default
16171615

16181616
```jsonc
1619-
false
1617+
true
16201618
```
16211619

16221620
# type.weakNilCheck
@@ -1839,4 +1837,4 @@ Array<string>
18391837

18401838
```jsonc
18411839
[]
1842-
```
1840+
```

doc/zh-cn/config.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ object<string, string>
398398
*/
399399
"global": "Fallback",
400400
/*
401-
* cast-type-mismatch
402401
* circle-doc-class
403402
* doc-field-no-class
404403
* duplicate-doc-alias
@@ -517,7 +516,6 @@ object<string, string>
517516
*/
518517
"global": "Fallback",
519518
/*
520-
* cast-type-mismatch
521519
* circle-doc-class
522520
* doc-field-no-class
523521
* duplicate-doc-alias
@@ -653,13 +651,13 @@ object<string, string>
653651
```jsonc
654652
{
655653
/*
656-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
654+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
657655
*/
658656
"ambiguity-1": "Any",
659657
"assign-type-mismatch": "Opened",
660658
"await-in-sync": "None",
661659
"cast-local-type": "Opened",
662-
"cast-type-mismatch": "Any",
660+
"cast-type-mismatch": "Opened",
663661
"circle-doc-class": "Any",
664662
"close-non-object": "Any",
665663
"code-after-break": "Opened",
@@ -788,7 +786,7 @@ object<string, string>
788786
```jsonc
789787
{
790788
/*
791-
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
789+
优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1`
792790
*/
793791
"ambiguity-1": "Warning",
794792
"assign-type-mismatch": "Warning",
@@ -1412,17 +1410,17 @@ string
14121410

14131411
# runtime.pluginArgs
14141412

1415-
Arguments to pass to to the runtime plug.
1413+
Additional arguments for the plugin.
14161414

14171415
## type
14181416

14191417
```ts
1420-
array<string>
1418+
Array<string>
14211419
```
14221420

1423-
## default
1421+
## default
14241422

1425-
```json
1423+
```jsonc
14261424
[]
14271425
```
14281426

@@ -1587,7 +1585,7 @@ Array<string>
15871585

15881586
# telemetry.enable
15891587

1590-
启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81)阅读我们的隐私声明。
1588+
启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/Home#privacy)阅读我们的隐私声明。
15911589

15921590

15931591
## type
@@ -1615,7 +1613,7 @@ boolean
16151613
## default
16161614

16171615
```jsonc
1618-
false
1616+
true
16191617
```
16201618

16211619
# type.weakNilCheck
@@ -1838,4 +1836,4 @@ Array<string>
18381836

18391837
```jsonc
18401838
[]
1841-
```
1839+
```

doc/zh-tw/config.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,6 @@ object<string, string>
398398
*/
399399
"global": "Fallback",
400400
/*
401-
* cast-type-mismatch
402401
* circle-doc-class
403402
* doc-field-no-class
404403
* duplicate-doc-alias
@@ -517,7 +516,6 @@ object<string, string>
517516
*/
518517
"global": "Fallback",
519518
/*
520-
* cast-type-mismatch
521519
* circle-doc-class
522520
* doc-field-no-class
523521
* duplicate-doc-alias
@@ -659,7 +657,7 @@ object<string, string>
659657
"assign-type-mismatch": "Opened",
660658
"await-in-sync": "None",
661659
"cast-local-type": "Opened",
662-
"cast-type-mismatch": "Any",
660+
"cast-type-mismatch": "Opened",
663661
"circle-doc-class": "Any",
664662
"close-non-object": "Any",
665663
"code-after-break": "Opened",
@@ -1412,17 +1410,17 @@ string
14121410

14131411
# runtime.pluginArgs
14141412

1415-
Arguments to pass to to the runtime plug.
1413+
Additional arguments for the plugin.
14161414

14171415
## type
14181416

14191417
```ts
1420-
array<string>
1418+
Array<string>
14211419
```
14221420

1423-
## default
1421+
## default
14241422

1425-
```json
1423+
```jsonc
14261424
[]
14271425
```
14281426

@@ -1587,7 +1585,7 @@ Array<string>
15871585

15881586
# telemetry.enable
15891587

1590-
啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%B1%E7%A7%81)閱讀我們的隱私聲明。
1588+
啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/sumneko/lua-language-server/wiki/Home#privacy)閱讀我們的隱私聲明。
15911589

15921590

15931591
## type
@@ -1615,7 +1613,7 @@ boolean
16151613
## default
16161614

16171615
```jsonc
1618-
false
1616+
true
16191617
```
16201618

16211619
# type.weakNilCheck
@@ -1838,4 +1836,4 @@ Array<string>
18381836

18391837
```jsonc
18401838
[]
1841-
```
1839+
```

0 commit comments

Comments
 (0)