You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/en-us/config.md
+156-3Lines changed: 156 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -224,10 +224,36 @@ Array<string>
224
224
*``"exp-in-action"``
225
225
*``"global-in-nil-env"``
226
226
*``"index-in-func-name"``
227
+
*``"invisible"``
227
228
*``"jump-local-scope"``
228
229
*``"keyword"``
229
230
*``"local-limit"``
230
231
*``"lowercase-global"``
232
+
*``"lua-doc-miss-sign"``
233
+
*``"luadoc-error-diag-mode"``
234
+
*``"luadoc-miss-alias-extends"``
235
+
*``"luadoc-miss-alias-name"``
236
+
*``"luadoc-miss-arg-name"``
237
+
*``"luadoc-miss-cate-name"``
238
+
*``"luadoc-miss-class-extends-name"``
239
+
*``"luadoc-miss-class-name"``
240
+
*``"luadoc-miss-diag-mode"``
241
+
*``"luadoc-miss-diag-name"``
242
+
*``"luadoc-miss-field-extends"``
243
+
*``"luadoc-miss-field-name"``
244
+
*``"luadoc-miss-fun-after-overload"``
245
+
*``"luadoc-miss-generic-name"``
246
+
*``"luadoc-miss-local-name"``
247
+
*``"luadoc-miss-module-name"``
248
+
*``"luadoc-miss-operator-name"``
249
+
*``"luadoc-miss-param-extends"``
250
+
*``"luadoc-miss-param-name"``
251
+
*``"luadoc-miss-see-name"``
252
+
*``"luadoc-miss-sign-name"``
253
+
*``"luadoc-miss-symbol"``
254
+
*``"luadoc-miss-type-name"``
255
+
*``"luadoc-miss-vararg-type"``
256
+
*``"luadoc-miss-version"``
231
257
*``"malformed-number"``
232
258
*``"miss-end"``
233
259
*``"miss-esc-x"``
@@ -245,6 +271,7 @@ Array<string>
245
271
*``"missing-return"``
246
272
*``"missing-return-value"``
247
273
*``"need-check-nil"``
274
+
*``"need-paren"``
248
275
*``"newfield-call"``
249
276
*``"newline-call"``
250
277
*``"no-unknown"``
@@ -420,6 +447,7 @@ object<string, string>
420
447
* close-non-object
421
448
* deprecated
422
449
* discard-returns
450
+
* invisible
423
451
*/
424
452
"strict":"Fallback",
425
453
/*
@@ -538,6 +566,7 @@ object<string, string>
538
566
* close-non-object
539
567
* deprecated
540
568
* discard-returns
569
+
* invisible
541
570
*/
542
571
"strict":"Fallback",
543
572
/*
@@ -723,7 +752,7 @@ object<string, string>
723
752
/*
724
753
Enable diagnostics for setting the same field in a class more than once.
725
754
*/
726
-
"duplicate-set-field":"Any",
755
+
"duplicate-set-field":"Opened",
727
756
/*
728
757
Enable empty code block diagnostics.
729
758
*/
@@ -733,6 +762,10 @@ object<string, string>
733
762
*/
734
763
"global-in-nil-env":"Any",
735
764
/*
765
+
Enable diagnostics for accesses to fields which are invisible.
766
+
*/
767
+
"invisible":"Any",
768
+
/*
736
769
Enable lowercase global variable definition diagnostics.
737
770
*/
738
771
"lowercase-global":"Any",
@@ -977,6 +1010,10 @@ object<string, string>
977
1010
*/
978
1011
"global-in-nil-env":"Warning",
979
1012
/*
1013
+
Enable diagnostics for accesses to fields which are invisible.
1014
+
*/
1015
+
"invisible":"Warning",
1016
+
/*
980
1017
Enable lowercase global variable definition diagnostics.
981
1018
*/
982
1019
"lowercase-global":"Information",
@@ -1129,7 +1166,7 @@ Array<string>
1129
1166
1130
1167
# diagnostics.workspaceDelay
1131
1168
1132
-
Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit any file, the entire workspace will be re-diagnosed in the background. Set to negative to disable workspace diagnostics.
1169
+
Latency (milliseconds) for workspace diagnostics.
1133
1170
1134
1171
## type
1135
1172
@@ -1143,6 +1180,28 @@ integer
1143
1180
3000
1144
1181
```
1145
1182
1183
+
# diagnostics.workspaceEvent
1184
+
1185
+
Set the time to trigger workspace diagnostics.
1186
+
1187
+
## type
1188
+
1189
+
```ts
1190
+
string
1191
+
```
1192
+
1193
+
## enum
1194
+
1195
+
*``"OnChange"``: Trigger workspace diagnostics when the file is changed.
1196
+
*``"OnSave"``: Trigger workspace diagnostics when the file is saved.
1197
+
*``"None"``: Disable workspace diagnostics.
1198
+
1199
+
## default
1200
+
1201
+
```jsonc
1202
+
"OnSave"
1203
+
```
1204
+
1146
1205
# diagnostics.workspaceRate
1147
1206
1148
1207
Workspace diagnostics run rate (%). Decreasing this value reduces CPU usage, but also reduces the speed of workspace diagnostics. The diagnosis of the file you are currently editing is always done at full speed and is not affected by this setting.
@@ -1159,6 +1218,54 @@ integer
1159
1218
100
1160
1219
```
1161
1220
1221
+
# doc.packageName
1222
+
1223
+
Treat specific field names as package, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are package, witch can only be accessed in the file where the definition is located.
1224
+
1225
+
## type
1226
+
1227
+
```ts
1228
+
Array<string>
1229
+
```
1230
+
1231
+
## default
1232
+
1233
+
```jsonc
1234
+
[]
1235
+
```
1236
+
1237
+
# doc.privateName
1238
+
1239
+
Treat specific field names as private, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are private, witch can only be accessed in the class where the definition is located.
1240
+
1241
+
## type
1242
+
1243
+
```ts
1244
+
Array<string>
1245
+
```
1246
+
1247
+
## default
1248
+
1249
+
```jsonc
1250
+
[]
1251
+
```
1252
+
1253
+
# doc.protectedName
1254
+
1255
+
Treat specific field names as protected, e.g. `m_*` means `XXX.m_id` and `XXX.m_type` are protected, witch can only be accessed in the class where the definition is located and its subclasses.
1256
+
1257
+
## type
1258
+
1259
+
```ts
1260
+
Array<string>
1261
+
```
1262
+
1263
+
## default
1264
+
1265
+
```jsonc
1266
+
[]
1267
+
```
1268
+
1162
1269
# format.defaultConfig
1163
1270
1164
1271
The default format configuration. Has a lower priority than `.editorconfig` file in the workspace.
@@ -1436,9 +1543,25 @@ integer
1436
1543
1000
1437
1544
```
1438
1545
1546
+
# misc.executablePath
1547
+
1548
+
Specify the executable path in VSCode.
1549
+
1550
+
## type
1551
+
1552
+
```ts
1553
+
string
1554
+
```
1555
+
1556
+
## default
1557
+
1558
+
```jsonc
1559
+
""
1560
+
```
1561
+
1439
1562
# misc.parameters
1440
1563
1441
-
[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.
1564
+
[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language server in VSCode.
1442
1565
1443
1566
## type
1444
1567
@@ -1490,6 +1613,7 @@ object<string, string>
1490
1613
"os":"default",
1491
1614
"package":"default",
1492
1615
"string":"default",
1616
+
"string.buffer":"default",
1493
1617
"table":"default",
1494
1618
"table.clear":"default",
1495
1619
"table.new":"default",
@@ -1872,6 +1996,35 @@ boolean
1872
1996
false
1873
1997
```
1874
1998
1999
+
# typeFormat.config
2000
+
2001
+
Configures the formatting behavior while typing Lua code.
2002
+
2003
+
## type
2004
+
2005
+
```ts
2006
+
object<string, string>
2007
+
```
2008
+
2009
+
## default
2010
+
2011
+
```jsonc
2012
+
{
2013
+
/*
2014
+
Controls if `end` is automatically completed at suitable positions.
2015
+
*/
2016
+
"auto_complete_end":"true",
2017
+
/*
2018
+
Controls if a separator is automatically appended at the end of a table declaration.
0 commit comments