Skip to content

Commit a8ea071

Browse files
committed
make 3rds
1 parent 04ab770 commit a8ea071

File tree

5 files changed

+234
-56
lines changed

5 files changed

+234
-56
lines changed

.vscode/launch.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
"luaexe": "${workspaceFolder}/bin/lua-language-server",
5151
"program": "${workspaceRoot}/tools/build-3rd-meta.lua",
5252
"cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so",
53+
"console": "integratedTerminal",
54+
"internalConsoleOptions": "openOnSessionStart",
5355
"arg": [
5456
],
5557
"luaVersion": "latest",
@@ -67,6 +69,8 @@
6769
"luaexe": "${workspaceFolder}/bin/lua-language-server",
6870
"program": "${workspaceRoot}/tools/locale.lua",
6971
"cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so",
72+
"console": "integratedTerminal",
73+
"internalConsoleOptions": "openOnSessionStart",
7074
"arg": [
7175
],
7276
"luaVersion": "latest",
@@ -84,6 +88,8 @@
8488
"luaexe": "${workspaceFolder}/bin/lua-language-server",
8589
"program": "${workspaceRoot}/tools/build-doc.lua",
8690
"cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so",
91+
"console": "integratedTerminal",
92+
"internalConsoleOptions": "openOnSessionStart",
8793
"arg": [
8894
],
8995
"luaVersion": "latest",

doc/en-us/config.md

Lines changed: 57 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# addonManager.enable
2+
3+
Whether the addon manager is enabled or not.
4+
5+
## type
6+
7+
```ts
8+
boolean
9+
```
10+
11+
## default
12+
13+
```jsonc
14+
true
15+
```
16+
117
# codeLens.enable
218

319
Enable code lens.
@@ -290,6 +306,7 @@ Array<string>
290306
* ``"missing-parameter"``
291307
* ``"missing-return"``
292308
* ``"missing-return-value"``
309+
* ``"name-style-check"``
293310
* ``"need-check-nil"``
294311
* ``"need-paren"``
295312
* ``"nesting-long-mark"``
@@ -431,10 +448,15 @@ object<string, string>
431448
"await": "Fallback",
432449
/*
433450
* codestyle-check
451+
* name-style-check
434452
* spell-check
435453
*/
436454
"codestyle": "Fallback",
437455
/*
456+
* global-element
457+
*/
458+
"conventions": "Fallback",
459+
/*
438460
* duplicate-index
439461
* duplicate-set-field
440462
*/
@@ -475,10 +497,6 @@ object<string, string>
475497
*/
476498
"strict": "Fallback",
477499
/*
478-
* global-element
479-
*/
480-
"conventions": "None",
481-
/*
482500
* no-unknown
483501
*/
484502
"strong": "Fallback",
@@ -557,10 +575,15 @@ object<string, string>
557575
"await": "Fallback",
558576
/*
559577
* codestyle-check
578+
* name-style-check
560579
* spell-check
561580
*/
562581
"codestyle": "Fallback",
563582
/*
583+
* global-element
584+
*/
585+
"conventions": "Fallback",
586+
/*
564587
* duplicate-index
565588
* duplicate-set-field
566589
*/
@@ -601,10 +624,6 @@ object<string, string>
601624
*/
602625
"strict": "Fallback",
603626
/*
604-
* global-element
605-
*/
606-
"conventions": "Fallback",
607-
/*
608627
* no-unknown
609628
*/
610629
"strong": "Fallback",
@@ -801,7 +820,7 @@ object<string, string>
801820
*/
802821
"global-in-nil-env": "Any",
803822
/*
804-
Enable diagnostics for function definitions which are not fully annotated.
823+
Incomplete @param or @return annotations for functions.
805824
*/
806825
"incomplete-signature-doc": "None",
807826
/*
@@ -813,11 +832,11 @@ object<string, string>
813832
*/
814833
"lowercase-global": "Any",
815834
/*
816-
Enable diagnostics for global function definitions which are not fully annotated.
835+
Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.
817836
*/
818837
"missing-global-doc": "None",
819838
/*
820-
Enable diagnostics for exported local function definitions which are not fully annotated.
839+
Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.
821840
*/
822841
"missing-local-export-doc": "None",
823842
/*
@@ -833,6 +852,10 @@ object<string, string>
833852
*/
834853
"missing-return-value": "Any",
835854
/*
855+
Enable diagnostics for name style.
856+
*/
857+
"name-style-check": "None",
858+
/*
836859
Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.
837860
*/
838861
"need-check-nil": "Opened",
@@ -1065,7 +1088,7 @@ object<string, string>
10651088
*/
10661089
"global-in-nil-env": "Warning",
10671090
/*
1068-
Enable diagnostics for function definitions which are not fully annotated.
1091+
Incomplete @param or @return annotations for functions.
10691092
*/
10701093
"incomplete-signature-doc": "Warning",
10711094
/*
@@ -1077,11 +1100,11 @@ object<string, string>
10771100
*/
10781101
"lowercase-global": "Information",
10791102
/*
1080-
Enable diagnostics for global function definitions which are not annotated.
1103+
Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.
10811104
*/
10821105
"missing-global-doc": "Warning",
10831106
/*
1084-
Enable diagnostics for exported local function definitions which are not annotated.
1107+
Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.
10851108
*/
10861109
"missing-local-export-doc": "Warning",
10871110
/*
@@ -1097,6 +1120,10 @@ object<string, string>
10971120
*/
10981121
"missing-return-value": "Warning",
10991122
/*
1123+
Enable diagnostics for name style.
1124+
*/
1125+
"name-style-check": "Warning",
1126+
/*
11001127
Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.
11011128
*/
11021129
"need-check-nil": "Warning",
@@ -1642,6 +1669,22 @@ Array<string>
16421669
[]
16431670
```
16441671

1672+
# nameStyle.config
1673+
1674+
Set name style config
1675+
1676+
## type
1677+
1678+
```ts
1679+
Object<string, table: 0000029B6DB8EAE0>
1680+
```
1681+
1682+
## default
1683+
1684+
```jsonc
1685+
{}
1686+
```
1687+
16451688
# runtime.builtin
16461689

16471690
Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.

doc/pt-br/config.md

Lines changed: 57 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# addonManager.enable
2+
3+
Whether the addon manager is enabled or not.
4+
5+
## type
6+
7+
```ts
8+
boolean
9+
```
10+
11+
## default
12+
13+
```jsonc
14+
true
15+
```
16+
117
# codeLens.enable
218

319
Enable code lens.
@@ -290,6 +306,7 @@ Array<string>
290306
* ``"missing-parameter"``
291307
* ``"missing-return"``
292308
* ``"missing-return-value"``
309+
* ``"name-style-check"``
293310
* ``"need-check-nil"``
294311
* ``"need-paren"``
295312
* ``"nesting-long-mark"``
@@ -431,10 +448,15 @@ object<string, string>
431448
"await": "Fallback",
432449
/*
433450
* codestyle-check
451+
* name-style-check
434452
* spell-check
435453
*/
436454
"codestyle": "Fallback",
437455
/*
456+
* global-element
457+
*/
458+
"conventions": "Fallback",
459+
/*
438460
* duplicate-index
439461
* duplicate-set-field
440462
*/
@@ -475,10 +497,6 @@ object<string, string>
475497
*/
476498
"strict": "Fallback",
477499
/*
478-
* global-element
479-
*/
480-
"conventionss": "None",
481-
/*
482500
* no-unknown
483501
*/
484502
"strong": "Fallback",
@@ -557,10 +575,15 @@ object<string, string>
557575
"await": "Fallback",
558576
/*
559577
* codestyle-check
578+
* name-style-check
560579
* spell-check
561580
*/
562581
"codestyle": "Fallback",
563582
/*
583+
* global-element
584+
*/
585+
"conventions": "Fallback",
586+
/*
564587
* duplicate-index
565588
* duplicate-set-field
566589
*/
@@ -601,10 +624,6 @@ object<string, string>
601624
*/
602625
"strict": "Fallback",
603626
/*
604-
* global-element
605-
*/
606-
"conventionss": "Fallback",
607-
/*
608627
* no-unknown
609628
*/
610629
"strong": "Fallback",
@@ -801,7 +820,7 @@ object<string, string>
801820
*/
802821
"global-in-nil-env": "Any",
803822
/*
804-
Enable diagnostics for function definitions which are not fully annotated.
823+
Incomplete @param or @return annotations for functions.
805824
*/
806825
"incomplete-signature-doc": "None",
807826
/*
@@ -813,11 +832,11 @@ object<string, string>
813832
*/
814833
"lowercase-global": "Any",
815834
/*
816-
Enable diagnostics for global function definitions which are not fully annotated.
835+
Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.
817836
*/
818837
"missing-global-doc": "None",
819838
/*
820-
Enable diagnostics for exported local function definitions which are not fully annotated.
839+
Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.
821840
*/
822841
"missing-local-export-doc": "None",
823842
/*
@@ -833,6 +852,10 @@ object<string, string>
833852
*/
834853
"missing-return-value": "Any",
835854
/*
855+
Enable diagnostics for name style.
856+
*/
857+
"name-style-check": "None",
858+
/*
836859
Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.
837860
*/
838861
"need-check-nil": "Opened",
@@ -1065,7 +1088,7 @@ object<string, string>
10651088
*/
10661089
"global-in-nil-env": "Warning",
10671090
/*
1068-
Enable diagnostics for function definitions which are not fully annotated.
1091+
Incomplete @param or @return annotations for functions.
10691092
*/
10701093
"incomplete-signature-doc": "Warning",
10711094
/*
@@ -1077,11 +1100,11 @@ object<string, string>
10771100
*/
10781101
"lowercase-global": "Information",
10791102
/*
1080-
Enable diagnostics for global function definitions which are not annotated.
1103+
Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.
10811104
*/
10821105
"missing-global-doc": "Warning",
10831106
/*
1084-
Enable diagnostics for exported local function definitions which are not annotated.
1107+
Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.
10851108
*/
10861109
"missing-local-export-doc": "Warning",
10871110
/*
@@ -1097,6 +1120,10 @@ object<string, string>
10971120
*/
10981121
"missing-return-value": "Warning",
10991122
/*
1123+
Enable diagnostics for name style.
1124+
*/
1125+
"name-style-check": "Warning",
1126+
/*
11001127
Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.
11011128
*/
11021129
"need-check-nil": "Warning",
@@ -1642,6 +1669,22 @@ Array<string>
16421669
[]
16431670
```
16441671

1672+
# nameStyle.config
1673+
1674+
Set name style config
1675+
1676+
## type
1677+
1678+
```ts
1679+
Object<string, table: 0000029B6DB8EAE0>
1680+
```
1681+
1682+
## default
1683+
1684+
```jsonc
1685+
{}
1686+
```
1687+
16451688
# runtime.builtin
16461689

16471690
Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.

0 commit comments

Comments
 (0)