Skip to content

Commit 35d7ad6

Browse files
authored
Merge pull request #1747 from armbrmaSICKAG/diagnostics-descriptions2
Descriptions for configuration options
2 parents 3dcbab2 + 32ed8bb commit 35d7ad6

File tree

8 files changed

+1309
-9
lines changed

8 files changed

+1309
-9
lines changed

doc/en-us/config.md

Lines changed: 156 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,36 @@ Array<string>
224224
* ``"exp-in-action"``
225225
* ``"global-in-nil-env"``
226226
* ``"index-in-func-name"``
227+
* ``"invisible"``
227228
* ``"jump-local-scope"``
228229
* ``"keyword"``
229230
* ``"local-limit"``
230231
* ``"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"``
231257
* ``"malformed-number"``
232258
* ``"miss-end"``
233259
* ``"miss-esc-x"``
@@ -245,6 +271,7 @@ Array<string>
245271
* ``"missing-return"``
246272
* ``"missing-return-value"``
247273
* ``"need-check-nil"``
274+
* ``"need-paren"``
248275
* ``"newfield-call"``
249276
* ``"newline-call"``
250277
* ``"no-unknown"``
@@ -420,6 +447,7 @@ object<string, string>
420447
* close-non-object
421448
* deprecated
422449
* discard-returns
450+
* invisible
423451
*/
424452
"strict": "Fallback",
425453
/*
@@ -538,6 +566,7 @@ object<string, string>
538566
* close-non-object
539567
* deprecated
540568
* discard-returns
569+
* invisible
541570
*/
542571
"strict": "Fallback",
543572
/*
@@ -723,7 +752,7 @@ object<string, string>
723752
/*
724753
Enable diagnostics for setting the same field in a class more than once.
725754
*/
726-
"duplicate-set-field": "Any",
755+
"duplicate-set-field": "Opened",
727756
/*
728757
Enable empty code block diagnostics.
729758
*/
@@ -733,6 +762,10 @@ object<string, string>
733762
*/
734763
"global-in-nil-env": "Any",
735764
/*
765+
Enable diagnostics for accesses to fields which are invisible.
766+
*/
767+
"invisible": "Any",
768+
/*
736769
Enable lowercase global variable definition diagnostics.
737770
*/
738771
"lowercase-global": "Any",
@@ -977,6 +1010,10 @@ object<string, string>
9771010
*/
9781011
"global-in-nil-env": "Warning",
9791012
/*
1013+
Enable diagnostics for accesses to fields which are invisible.
1014+
*/
1015+
"invisible": "Warning",
1016+
/*
9801017
Enable lowercase global variable definition diagnostics.
9811018
*/
9821019
"lowercase-global": "Information",
@@ -1129,7 +1166,7 @@ Array<string>
11291166

11301167
# diagnostics.workspaceDelay
11311168

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.
11331170

11341171
## type
11351172

@@ -1143,6 +1180,28 @@ integer
11431180
3000
11441181
```
11451182

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+
11461205
# diagnostics.workspaceRate
11471206

11481207
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
11591218
100
11601219
```
11611220

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+
11621269
# format.defaultConfig
11631270

11641271
The default format configuration. Has a lower priority than `.editorconfig` file in the workspace.
@@ -1436,9 +1543,25 @@ integer
14361543
1000
14371544
```
14381545

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+
14391562
# misc.parameters
14401563

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.
14421565

14431566
## type
14441567

@@ -1490,6 +1613,7 @@ object<string, string>
14901613
"os": "default",
14911614
"package": "default",
14921615
"string": "default",
1616+
"string.buffer": "default",
14931617
"table": "default",
14941618
"table.clear": "default",
14951619
"table.new": "default",
@@ -1872,6 +1996,35 @@ boolean
18721996
false
18731997
```
18741998

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.
2019+
*/
2020+
"auto_complete_table_sep": "true",
2021+
/*
2022+
Controls if a line is formatted at all.
2023+
*/
2024+
"format_line": "true"
2025+
}
2026+
```
2027+
18752028
# window.progressBar
18762029

18772030
Show progress bar in status bar.

0 commit comments

Comments
 (0)