Skip to content

Commit

Permalink
make 3rds
Browse files Browse the repository at this point in the history
  • Loading branch information
sumneko committed Jul 19, 2023
1 parent 04ab770 commit a8ea071
Show file tree
Hide file tree
Showing 5 changed files with 234 additions and 56 deletions.
6 changes: 6 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
"luaexe": "${workspaceFolder}/bin/lua-language-server",
"program": "${workspaceRoot}/tools/build-3rd-meta.lua",
"cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so",
"console": "integratedTerminal",
"internalConsoleOptions": "openOnSessionStart",
"arg": [
],
"luaVersion": "latest",
Expand All @@ -67,6 +69,8 @@
"luaexe": "${workspaceFolder}/bin/lua-language-server",
"program": "${workspaceRoot}/tools/locale.lua",
"cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so",
"console": "integratedTerminal",
"internalConsoleOptions": "openOnSessionStart",
"arg": [
],
"luaVersion": "latest",
Expand All @@ -84,6 +88,8 @@
"luaexe": "${workspaceFolder}/bin/lua-language-server",
"program": "${workspaceRoot}/tools/build-doc.lua",
"cpath": "${workspaceFolder}/bin/?.dll;${workspaceFolder}/bin/?.so",
"console": "integratedTerminal",
"internalConsoleOptions": "openOnSessionStart",
"arg": [
],
"luaVersion": "latest",
Expand Down
71 changes: 57 additions & 14 deletions doc/en-us/config.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# addonManager.enable

Whether the addon manager is enabled or not.

## type

```ts
boolean
```

## default

```jsonc
true
```

# codeLens.enable

Enable code lens.
Expand Down Expand Up @@ -290,6 +306,7 @@ Array<string>
* ``"missing-parameter"``
* ``"missing-return"``
* ``"missing-return-value"``
* ``"name-style-check"``
* ``"need-check-nil"``
* ``"need-paren"``
* ``"nesting-long-mark"``
Expand Down Expand Up @@ -431,10 +448,15 @@ object<string, string>
"await": "Fallback",
/*
* codestyle-check
* name-style-check
* spell-check
*/
"codestyle": "Fallback",
/*
* global-element
*/
"conventions": "Fallback",
/*
* duplicate-index
* duplicate-set-field
*/
Expand Down Expand Up @@ -475,10 +497,6 @@ object<string, string>
*/
"strict": "Fallback",
/*
* global-element
*/
"conventions": "None",
/*
* no-unknown
*/
"strong": "Fallback",
Expand Down Expand Up @@ -557,10 +575,15 @@ object<string, string>
"await": "Fallback",
/*
* codestyle-check
* name-style-check
* spell-check
*/
"codestyle": "Fallback",
/*
* global-element
*/
"conventions": "Fallback",
/*
* duplicate-index
* duplicate-set-field
*/
Expand Down Expand Up @@ -601,10 +624,6 @@ object<string, string>
*/
"strict": "Fallback",
/*
* global-element
*/
"conventions": "Fallback",
/*
* no-unknown
*/
"strong": "Fallback",
Expand Down Expand Up @@ -801,7 +820,7 @@ object<string, string>
*/
"global-in-nil-env": "Any",
/*
Enable diagnostics for function definitions which are not fully annotated.
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "None",
/*
Expand All @@ -813,11 +832,11 @@ object<string, string>
*/
"lowercase-global": "Any",
/*
Enable diagnostics for global function definitions which are not fully annotated.
Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.
*/
"missing-global-doc": "None",
/*
Enable diagnostics for exported local function definitions which are not fully annotated.
Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.
*/
"missing-local-export-doc": "None",
/*
Expand All @@ -833,6 +852,10 @@ object<string, string>
*/
"missing-return-value": "Any",
/*
Enable diagnostics for name style.
*/
"name-style-check": "None",
/*
Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.
*/
"need-check-nil": "Opened",
Expand Down Expand Up @@ -1065,7 +1088,7 @@ object<string, string>
*/
"global-in-nil-env": "Warning",
/*
Enable diagnostics for function definitions which are not fully annotated.
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "Warning",
/*
Expand All @@ -1077,11 +1100,11 @@ object<string, string>
*/
"lowercase-global": "Information",
/*
Enable diagnostics for global function definitions which are not annotated.
Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.
*/
"missing-global-doc": "Warning",
/*
Enable diagnostics for exported local function definitions which are not annotated.
Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.
*/
"missing-local-export-doc": "Warning",
/*
Expand All @@ -1097,6 +1120,10 @@ object<string, string>
*/
"missing-return-value": "Warning",
/*
Enable diagnostics for name style.
*/
"name-style-check": "Warning",
/*
Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.
*/
"need-check-nil": "Warning",
Expand Down Expand Up @@ -1642,6 +1669,22 @@ Array<string>
[]
```

# nameStyle.config

Set name style config

## type

```ts
Object<string, table: 0000029B6DB8EAE0>
```

## default

```jsonc
{}
```

# runtime.builtin

Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.
Expand Down
71 changes: 57 additions & 14 deletions doc/pt-br/config.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# addonManager.enable

Whether the addon manager is enabled or not.

## type

```ts
boolean
```

## default

```jsonc
true
```

# codeLens.enable

Enable code lens.
Expand Down Expand Up @@ -290,6 +306,7 @@ Array<string>
* ``"missing-parameter"``
* ``"missing-return"``
* ``"missing-return-value"``
* ``"name-style-check"``
* ``"need-check-nil"``
* ``"need-paren"``
* ``"nesting-long-mark"``
Expand Down Expand Up @@ -431,10 +448,15 @@ object<string, string>
"await": "Fallback",
/*
* codestyle-check
* name-style-check
* spell-check
*/
"codestyle": "Fallback",
/*
* global-element
*/
"conventions": "Fallback",
/*
* duplicate-index
* duplicate-set-field
*/
Expand Down Expand Up @@ -475,10 +497,6 @@ object<string, string>
*/
"strict": "Fallback",
/*
* global-element
*/
"conventionss": "None",
/*
* no-unknown
*/
"strong": "Fallback",
Expand Down Expand Up @@ -557,10 +575,15 @@ object<string, string>
"await": "Fallback",
/*
* codestyle-check
* name-style-check
* spell-check
*/
"codestyle": "Fallback",
/*
* global-element
*/
"conventions": "Fallback",
/*
* duplicate-index
* duplicate-set-field
*/
Expand Down Expand Up @@ -601,10 +624,6 @@ object<string, string>
*/
"strict": "Fallback",
/*
* global-element
*/
"conventionss": "Fallback",
/*
* no-unknown
*/
"strong": "Fallback",
Expand Down Expand Up @@ -801,7 +820,7 @@ object<string, string>
*/
"global-in-nil-env": "Any",
/*
Enable diagnostics for function definitions which are not fully annotated.
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "None",
/*
Expand All @@ -813,11 +832,11 @@ object<string, string>
*/
"lowercase-global": "Any",
/*
Enable diagnostics for global function definitions which are not fully annotated.
Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.
*/
"missing-global-doc": "None",
/*
Enable diagnostics for exported local function definitions which are not fully annotated.
Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.
*/
"missing-local-export-doc": "None",
/*
Expand All @@ -833,6 +852,10 @@ object<string, string>
*/
"missing-return-value": "Any",
/*
Enable diagnostics for name style.
*/
"name-style-check": "None",
/*
Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.
*/
"need-check-nil": "Opened",
Expand Down Expand Up @@ -1065,7 +1088,7 @@ object<string, string>
*/
"global-in-nil-env": "Warning",
/*
Enable diagnostics for function definitions which are not fully annotated.
Incomplete @param or @return annotations for functions.
*/
"incomplete-signature-doc": "Warning",
/*
Expand All @@ -1077,11 +1100,11 @@ object<string, string>
*/
"lowercase-global": "Information",
/*
Enable diagnostics for global function definitions which are not annotated.
Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.
*/
"missing-global-doc": "Warning",
/*
Enable diagnostics for exported local function definitions which are not annotated.
Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.
*/
"missing-local-export-doc": "Warning",
/*
Expand All @@ -1097,6 +1120,10 @@ object<string, string>
*/
"missing-return-value": "Warning",
/*
Enable diagnostics for name style.
*/
"name-style-check": "Warning",
/*
Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.
*/
"need-check-nil": "Warning",
Expand Down Expand Up @@ -1642,6 +1669,22 @@ Array<string>
[]
```

# nameStyle.config

Set name style config

## type

```ts
Object<string, table: 0000029B6DB8EAE0>
```

## default

```jsonc
{}
```

# runtime.builtin

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

0 comments on commit a8ea071

Please sign in to comment.