Skip to content

Commit bb4f591

Browse files
committed
3.6.20
1 parent ff1015c commit bb4f591

12 files changed

+552
-27
lines changed

changelog.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# changelog
22

3+
## 3.6.20
4+
`2023-5-23`
5+
* `NEW` support connecting by socket with `--socket=PORT`
6+
* `FIX` [#2113]
7+
8+
[#2113]: https://github.com/LuaLS/lua-language-server/issues/2113
9+
310
## 3.6.19
411
`2023-4-26`
512
* `FIX` commandline parameter `checklevel` may not work

package.json

+95-1
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,11 @@
225225
"miss-space-between",
226226
"miss-symbol",
227227
"missing-global-doc",
228+
"missing-local-export-doc",
228229
"missing-parameter",
229230
"missing-return",
230231
"missing-return-value",
232+
"name-style-check",
231233
"need-check-nil",
232234
"need-paren",
233235
"nesting-long-mark",
@@ -994,6 +996,19 @@
994996
],
995997
"type": "string"
996998
},
999+
"missing-local-export-doc": {
1000+
"default": "None",
1001+
"description": "%config.diagnostics.missing-local-export-doc%",
1002+
"enum": [
1003+
"Any",
1004+
"Opened",
1005+
"None",
1006+
"Any!",
1007+
"Opened!",
1008+
"None!"
1009+
],
1010+
"type": "string"
1011+
},
9971012
"missing-parameter": {
9981013
"default": "Any",
9991014
"description": "%config.diagnostics.missing-parameter%",
@@ -1033,6 +1048,19 @@
10331048
],
10341049
"type": "string"
10351050
},
1051+
"name-style-check": {
1052+
"default": "None",
1053+
"description": "%config.diagnostics.name-style-check%",
1054+
"enum": [
1055+
"Any",
1056+
"Opened",
1057+
"None",
1058+
"Any!",
1059+
"Opened!",
1060+
"None!"
1061+
],
1062+
"type": "string"
1063+
},
10361064
"need-check-nil": {
10371065
"default": "Opened",
10381066
"description": "%config.diagnostics.need-check-nil%",
@@ -1809,6 +1837,21 @@
18091837
],
18101838
"type": "string"
18111839
},
1840+
"missing-local-export-doc": {
1841+
"default": "Warning",
1842+
"description": "%config.diagnostics.missing-local-export-doc%",
1843+
"enum": [
1844+
"Error",
1845+
"Warning",
1846+
"Information",
1847+
"Hint",
1848+
"Error!",
1849+
"Warning!",
1850+
"Information!",
1851+
"Hint!"
1852+
],
1853+
"type": "string"
1854+
},
18121855
"missing-parameter": {
18131856
"default": "Warning",
18141857
"description": "%config.diagnostics.missing-parameter%",
@@ -1854,6 +1897,21 @@
18541897
],
18551898
"type": "string"
18561899
},
1900+
"name-style-check": {
1901+
"default": "Warning",
1902+
"description": "%config.diagnostics.name-style-check%",
1903+
"enum": [
1904+
"Error",
1905+
"Warning",
1906+
"Information",
1907+
"Hint",
1908+
"Error!",
1909+
"Warning!",
1910+
"Information!",
1911+
"Hint!"
1912+
],
1913+
"type": "string"
1914+
},
18571915
"need-check-nil": {
18581916
"default": "Warning",
18591917
"description": "%config.diagnostics.need-check-nil%",
@@ -2507,6 +2565,22 @@
25072565
"scope": "resource",
25082566
"type": "array"
25092567
},
2568+
"Lua.nameStyle.config": {
2569+
"additionalProperties": false,
2570+
"default": {},
2571+
"markdownDescription": "%config.nameStyle.config%",
2572+
"patternProperties": {
2573+
".*": {
2574+
"type": [
2575+
"string",
2576+
"array"
2577+
]
2578+
}
2579+
},
2580+
"scope": "resource",
2581+
"title": "config",
2582+
"type": "object"
2583+
},
25102584
"Lua.runtime.builtin": {
25112585
"additionalProperties": false,
25122586
"markdownDescription": "%config.runtime.builtin%",
@@ -2601,6 +2675,26 @@
26012675
],
26022676
"type": "string"
26032677
},
2678+
"jit.profile": {
2679+
"default": "default",
2680+
"description": "%config.runtime.builtin.jit.profile%",
2681+
"enum": [
2682+
"default",
2683+
"enable",
2684+
"disable"
2685+
],
2686+
"type": "string"
2687+
},
2688+
"jit.util": {
2689+
"default": "default",
2690+
"description": "%config.runtime.builtin.jit.util%",
2691+
"enum": [
2692+
"default",
2693+
"enable",
2694+
"disable"
2695+
],
2696+
"type": "string"
2697+
},
26042698
"math": {
26052699
"default": "default",
26062700
"description": "%config.runtime.builtin.math%",
@@ -3180,5 +3274,5 @@
31803274
"sponsor": {
31813275
"url": "https://github.com/LuaLS/lua-language-server/issues/484"
31823276
},
3183-
"version": "3.6.19"
3277+
"version": "3.6.20"
31843278
}

package.nls.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
4545
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
4646
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
47-
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",
47+
"config.diagnostics.codestyle": "* codestyle-check\n* name-style-check\n* spell-check",
4848
"config.diagnostics.codestyle-check": "Enable diagnostics for incorrectly styled lines.",
4949
"config.diagnostics.conventions": "* global-element",
5050
"config.diagnostics.count-down-loop": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.",
@@ -79,11 +79,13 @@
7979
"config.diagnostics.libraryFiles.Enable": "Always diagnose these files.",
8080
"config.diagnostics.libraryFiles.Opened": "Only when these files are opened will it be diagnosed.",
8181
"config.diagnostics.lowercase-global": "Enable lowercase global variable definition diagnostics.",
82-
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* incomplete-signature-doc\n* missing-global-doc\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
82+
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* incomplete-signature-doc\n* missing-global-doc\n* missing-local-export-doc\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
8383
"config.diagnostics.missing-global-doc": "Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.",
84+
"config.diagnostics.missing-local-export-doc": "Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.",
8485
"config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.",
8586
"config.diagnostics.missing-return": "Enable diagnostics for functions with return annotations which have no return statement.",
8687
"config.diagnostics.missing-return-value": "Enable diagnostics for return statements without values although the containing function declares returns.",
88+
"config.diagnostics.name-style-check": "Enable diagnostics for name style.",
8789
"config.diagnostics.need-check-nil": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.",
8890
"config.diagnostics.neededFileStatus": "* Opened: only diagnose opened files\n* Any: diagnose all files\n* None: disable this diagnostic\n\nEnd with `!` means override the group setting `diagnostics.groupFileStatus`.\n",
8991
"config.diagnostics.newfield-call": "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.",
@@ -161,6 +163,7 @@
161163
"config.intelliSense.searchDepth": "Set the search depth for IntelliSense. Increasing this value increases accuracy, but decreases performance. Different workspace have different tolerance for this setting. Please adjust it to the appropriate value.",
162164
"config.misc.executablePath": "Specify the executable path in VSCode.",
163165
"config.misc.parameters": "[Command line parameters](https://github.com/LuaLS/lua-telemetry-server/tree/master/method) when starting the language server in VSCode.",
166+
"config.nameStyle.config": "Set name style config",
164167
"config.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.\n\n* `default`: Indicates that the library will be enabled or disabled according to the runtime version\n* `enable`: always enable\n* `disable`: always disable\n",
165168
"config.runtime.builtin.basic": "",
166169
"config.runtime.builtin.bit": "",
@@ -171,6 +174,8 @@
171174
"config.runtime.builtin.ffi": "",
172175
"config.runtime.builtin.io": "",
173176
"config.runtime.builtin.jit": "",
177+
"config.runtime.builtin.jit.profile": "",
178+
"config.runtime.builtin.jit.util": "",
174179
"config.runtime.builtin.math": "",
175180
"config.runtime.builtin.os": "",
176181
"config.runtime.builtin.package": "",

package.nls.pt-br.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
4545
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
4646
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
47-
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",
47+
"config.diagnostics.codestyle": "* codestyle-check\n* name-style-check\n* spell-check",
4848
"config.diagnostics.codestyle-check": "Enable diagnostics for incorrectly styled lines.",
4949
"config.diagnostics.conventions": "* global-element",
5050
"config.diagnostics.count-down-loop": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.",
@@ -79,11 +79,13 @@
7979
"config.diagnostics.libraryFiles.Enable": "Always diagnose these files.",
8080
"config.diagnostics.libraryFiles.Opened": "Only when these files are opened will it be diagnosed.",
8181
"config.diagnostics.lowercase-global": "首字母小写的全局变量定义",
82-
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* incomplete-signature-doc\n* missing-global-doc\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
82+
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* incomplete-signature-doc\n* missing-global-doc\n* missing-local-export-doc\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
8383
"config.diagnostics.missing-global-doc": "Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.",
84+
"config.diagnostics.missing-local-export-doc": "Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.",
8485
"config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.",
8586
"config.diagnostics.missing-return": "Enable diagnostics for functions with return annotations which have no return statement.",
8687
"config.diagnostics.missing-return-value": "Enable diagnostics for return statements without values although the containing function declares returns.",
88+
"config.diagnostics.name-style-check": "Enable diagnostics for name style.",
8789
"config.diagnostics.need-check-nil": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.",
8890
"config.diagnostics.neededFileStatus": "* Opened: only diagnose opened files\n* Any: diagnose all files\n* None: disable this diagnostic\n\nEnd with `!` means override the group setting `diagnostics.groupFileStatus`.\n",
8991
"config.diagnostics.newfield-call": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作",
@@ -161,6 +163,7 @@
161163
"config.intelliSense.searchDepth": "Set the search depth for IntelliSense. Increasing this value increases accuracy, but decreases performance. Different workspace have different tolerance for this setting. Please adjust it to the appropriate value.",
162164
"config.misc.executablePath": "Specify the executable path in VSCode.",
163165
"config.misc.parameters": "[Command line parameters](https://github.com/LuaLS/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.",
166+
"config.nameStyle.config": "Set name style config",
164167
"config.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.\n\n* `default`: Indicates that the library will be enabled or disabled according to the runtime version\n* `enable`: always enable\n* `disable`: always disable\n",
165168
"config.runtime.builtin.basic": "",
166169
"config.runtime.builtin.bit": "",
@@ -171,6 +174,8 @@
171174
"config.runtime.builtin.ffi": "",
172175
"config.runtime.builtin.io": "",
173176
"config.runtime.builtin.jit": "",
177+
"config.runtime.builtin.jit.profile": "",
178+
"config.runtime.builtin.jit.util": "",
174179
"config.runtime.builtin.math": "",
175180
"config.runtime.builtin.os": "",
176181
"config.runtime.builtin.package": "",

package.nls.zh-cn.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
4545
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
4646
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
47-
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",
47+
"config.diagnostics.codestyle": "* codestyle-check\n* name-style-check\n* spell-check",
4848
"config.diagnostics.codestyle-check": "Enable diagnostics for incorrectly styled lines.",
4949
"config.diagnostics.conventions": "* global-element",
5050
"config.diagnostics.count-down-loop": "Enable diagnostics for `for` loops which will never reach their max/limit because the loop is incrementing instead of decrementing.",
@@ -79,11 +79,13 @@
7979
"config.diagnostics.libraryFiles.Enable": "总是诊断这些文件。",
8080
"config.diagnostics.libraryFiles.Opened": "只有打开这些文件时才会诊断。",
8181
"config.diagnostics.lowercase-global": "首字母小写的全局变量定义",
82-
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* incomplete-signature-doc\n* missing-global-doc\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
82+
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* incomplete-signature-doc\n* missing-global-doc\n* missing-local-export-doc\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
8383
"config.diagnostics.missing-global-doc": "Missing annotations for globals! Global functions must have a comment and annotations for all parameters and return values.",
84+
"config.diagnostics.missing-local-export-doc": "Missing annotations for exported locals! Exported local functions must have a comment and annotations for all parameters and return values.",
8485
"config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.",
8586
"config.diagnostics.missing-return": "Enable diagnostics for functions with return annotations which have no return statement.",
8687
"config.diagnostics.missing-return-value": "Enable diagnostics for return statements without values although the containing function declares returns.",
88+
"config.diagnostics.name-style-check": "Enable diagnostics for name style.",
8789
"config.diagnostics.need-check-nil": "Enable diagnostics for variable usages if `nil` or an optional (potentially `nil`) value was assigned to the variable before.",
8890
"config.diagnostics.neededFileStatus": "* Opened: 只诊断打开的文件\n* Any: 诊断任何文件\n* None: 禁用此诊断\n\n以 `!` 结尾的设置优先级高于组设置 `diagnostics.groupFileStatus`。\n",
8991
"config.diagnostics.newfield-call": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作",
@@ -161,6 +163,7 @@
161163
"config.intelliSense.searchDepth": "设置智能感知的搜索深度。增大该值可以增加准确度,但会降低性能。不同的项目对该设置的容忍度差异较大,请自己调整为合适的值。",
162164
"config.misc.executablePath": "VSCode中指定可执行文件路径。",
163165
"config.misc.parameters": "VSCode中启动语言服务时的[命令行参数](https://github.com/LuaLS/lua-language-server/wiki/Getting-Started#arguments)。",
166+
"config.nameStyle.config": "设定命名风格检查的配置",
164167
"config.runtime.builtin": "调整内置库的启用状态,你可以根据实际运行环境禁用掉不存在的库(或重新定义)。\n\n* `default`: 表示库会根据运行版本启用或禁用\n* `enable`: 总是启用\n* `disable`: 总是禁用\n",
165168
"config.runtime.builtin.basic": "",
166169
"config.runtime.builtin.bit": "",
@@ -171,6 +174,8 @@
171174
"config.runtime.builtin.ffi": "",
172175
"config.runtime.builtin.io": "",
173176
"config.runtime.builtin.jit": "",
177+
"config.runtime.builtin.jit.profile": "",
178+
"config.runtime.builtin.jit.util": "",
174179
"config.runtime.builtin.math": "",
175180
"config.runtime.builtin.os": "",
176181
"config.runtime.builtin.package": "",

0 commit comments

Comments
 (0)