Skip to content

Commit d35c87e

Browse files
committed
Merge branch 'release-3.6.5'
2 parents c3598eb + d49c8ee commit d35c87e

File tree

15 files changed

+152
-153
lines changed

15 files changed

+152
-153
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,4 +108,6 @@ jobs:
108108

109109
- name: Publish to Open VSX Registry
110110
if: startsWith(github.ref, 'refs/tags/')
111-
run: ovsx publish -i ${{ steps.vars.outputs.PKG_NAME }} -p ${{ secrets.OVSX_TOKEN }}
111+
run: |
112+
npm install -g ovsx
113+
ovsx publish -i ${{ steps.vars.outputs.PKG_NAME }} -p ${{ secrets.OVSX_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/client/node_modules
2-
/client/out
2+
/client/out/
33
/publish/
44
/luadoc/out/
55
/ovsx-token

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# lua-language-server
22

33
![build](https://github.com/sumneko/lua-language-server/workflows/build/badge.png)
4-
[![version](https://vsmarketplacebadge.apphb.com/version-short/sumneko.lua.png)](https://marketplace.visualstudio.com/items?itemName=sumneko.lua)
5-
![installs](https://vsmarketplacebadge.apphb.com/installs-short/sumneko.lua.png)
6-
![downloads](https://vsmarketplacebadge.apphb.com/downloads-short/sumneko.lua.png)
4+
[![version](https://vsmarketplacebadges.dev/version-short/sumneko.lua.png)](https://marketplace.visualstudio.com/items?itemName=sumneko.lua)
5+
![installs](https://vsmarketplacebadges.dev/installs-short/sumneko.lua.png)
6+
![downloads](https://vsmarketplacebadges.dev/downloads-short/sumneko.lua.png)
77
[![Average time to resolve an issue](https://isitmaintained.com/badge/resolution/sumneko/lua-language-server.png)](https://github.com/sumneko/lua-language-server/issues "Average time to resolve an issue")
88

99

changelog.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,41 @@
11
# changelog
22

3-
`2022-11-29`
3+
## 3.6.5
4+
`2023-1-16`
5+
* `NEW` support casting global variables
6+
* `NEW` code lens: this feature is disabled by default.
7+
* `NEW` settings:
8+
* `Lua.codeLens.enable`: Enable code lens.
9+
* `CHG` improve memory usage for large libraries
10+
* `CHG` definition: supports finding definitions for `@class` and `@alias`, since they may be defined multi times
11+
* `CHG` rename: supports `@field`
12+
* `CHG` improve patch for `.luarc.json`
13+
* `CHG` `---@meta [name]`: once declared `name`, user can only require this file by declared name. meta file can not be required with name `_`
14+
* `CHG` remove telemetry
15+
* `FIX` [#831]
16+
* `FIX` [#1729]
17+
* `FIX` [#1737]
18+
* `FIX` [#1751]
19+
* `FIX` [#1767]
20+
* `FIX` [#1796]
21+
* `FIX` [#1805]
22+
* `FIX` [#1808]
23+
* `FIX` [#1811]
24+
* `FIX` [#1824]
25+
26+
[#831]: https://github.com/sumneko/lua-language-server/issues/831
27+
[#1729]: https://github.com/sumneko/lua-language-server/issues/1729
28+
[#1737]: https://github.com/sumneko/lua-language-server/issues/1737
29+
[#1751]: https://github.com/sumneko/lua-language-server/issues/1751
30+
[#1767]: https://github.com/sumneko/lua-language-server/issues/1767
31+
[#1796]: https://github.com/sumneko/lua-language-server/issues/1796
32+
[#1805]: https://github.com/sumneko/lua-language-server/issues/1805
33+
[#1808]: https://github.com/sumneko/lua-language-server/issues/1808
34+
[#1811]: https://github.com/sumneko/lua-language-server/issues/1811
35+
[#1824]: https://github.com/sumneko/lua-language-server/issues/1824
36+
437
## 3.6.4
38+
`2022-11-29`
539
* `NEW` modify `require` after renaming files
640
* `FIX` circulation reference in process analysis
741
```lua

package.json

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
],
3434
"configuration": {
3535
"properties": {
36+
"Lua.codeLens.enable": {
37+
"default": false,
38+
"markdownDescription": "%config.codeLens.enable%",
39+
"scope": "resource",
40+
"type": "boolean"
41+
},
3642
"Lua.completion.autoRequire": {
3743
"default": true,
3844
"markdownDescription": "%config.completion.autoRequire%",
@@ -211,6 +217,7 @@
211217
"missing-return-value",
212218
"need-check-nil",
213219
"need-paren",
220+
"nesting-long-mark",
214221
"newfield-call",
215222
"newline-call",
216223
"no-unknown",
@@ -2233,7 +2240,7 @@
22332240
},
22342241
"Lua.format.defaultConfig": {
22352242
"additionalProperties": false,
2236-
"default": {},
2243+
"default": [],
22372244
"markdownDescription": "%config.format.defaultConfig%",
22382245
"patternProperties": {
22392246
".*": {
@@ -2658,7 +2665,7 @@
26582665
},
26592666
"Lua.runtime.special": {
26602667
"additionalProperties": false,
2661-
"default": {},
2668+
"default": [],
26622669
"markdownDescription": "%config.runtime.special%",
26632670
"patternProperties": {
26642671
".*": {
@@ -2749,18 +2756,6 @@
27492756
"scope": "resource",
27502757
"type": "array"
27512758
},
2752-
"Lua.telemetry.enable": {
2753-
"default": null,
2754-
"markdownDescription": "%config.telemetry.enable%",
2755-
"scope": "resource",
2756-
"tags": [
2757-
"telemetry"
2758-
],
2759-
"type": [
2760-
"boolean",
2761-
"null"
2762-
]
2763-
},
27642759
"Lua.type.castNumberToInteger": {
27652760
"default": true,
27662761
"markdownDescription": "%config.type.castNumberToInteger%",
@@ -3078,5 +3073,5 @@
30783073
"sponsor": {
30793074
"url": "https://github.com/sumneko/lua-language-server/issues/484"
30803075
},
3081-
"version": "3.6.4"
3076+
"version": "3.6.5"
30823077
}

package.nls.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"config.IntelliSense.traceFieldInject": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
44
"config.IntelliSense.traceLocalSet": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
55
"config.IntelliSense.traceReturn": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
6+
"config.codeLens.enable": "Enable code lens.",
67
"config.color.mode": "Color mode.",
78
"config.color.mode.Grammar": "Grammar color.",
89
"config.color.mode.Semantic": "Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.",
@@ -36,7 +37,7 @@
3637
"config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.",
3738
"config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.",
3839
"config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.",
39-
"config.diagnostics.circle-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
40+
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
4041
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
4142
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
4243
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",
@@ -154,10 +155,6 @@
154155
"config.misc.parameters": "[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language server in VSCode.",
155156
"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",
156157
"config.runtime.fileEncoding": "File encoding. The `ansi` option is only available under the `Windows` platform.",
157-
"config.runtime.fileEncoding.utf8" : "utf8",
158-
"config.runtime.fileEncoding.ansi": "ansi",
159-
"config.runtime.fileEncoding.utf16le" : "utf16le",
160-
"config.runtime.fileEncoding.utf16be": "utf16be",
161158
"config.runtime.meta": "Format of the directory name of the meta files.",
162159
"config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.",
163160
"config.runtime.path": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n",

package.nls.pt-br.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"config.IntelliSense.traceFieldInject": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
44
"config.IntelliSense.traceLocalSet": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
55
"config.IntelliSense.traceReturn": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
6+
"config.codeLens.enable": "Enable code lens.",
67
"config.color.mode": "Color mode.",
78
"config.color.mode.Grammar": "Grammar color.",
89
"config.color.mode.Semantic": "Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.",
@@ -36,7 +37,7 @@
3637
"config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.",
3738
"config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.",
3839
"config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.",
39-
"config.diagnostics.circle-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
40+
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
4041
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
4142
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
4243
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",
@@ -65,11 +66,11 @@
6566
"config.diagnostics.ignoredFiles.Disable": "These files are not diagnosed.",
6667
"config.diagnostics.ignoredFiles.Enable": "Always diagnose these files.",
6768
"config.diagnostics.ignoredFiles.Opened": "Only when these files are opened will it be diagnosed.",
69+
"config.diagnostics.invisible": "Enable diagnostics for accesses to fields which are invisible.",
6870
"config.diagnostics.libraryFiles": "How to diagnose files loaded via `Lua.workspace.library`.",
6971
"config.diagnostics.libraryFiles.Disable": "These files are not diagnosed.",
7072
"config.diagnostics.libraryFiles.Enable": "Always diagnose these files.",
7173
"config.diagnostics.libraryFiles.Opened": "Only when these files are opened will it be diagnosed.",
72-
"config.diagnostics.invisible": "Enable diagnostics for accesses to fields which are invisible.",
7374
"config.diagnostics.lowercase-global": "首字母小写的全局变量定义",
7475
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
7576
"config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.",
@@ -154,10 +155,6 @@
154155
"config.misc.parameters": "[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.",
155156
"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",
156157
"config.runtime.fileEncoding": "File encoding. The `ansi` option is only available under the `Windows` platform.",
157-
"config.runtime.fileEncoding.utf8" : "utf8",
158-
"config.runtime.fileEncoding.ansi": "ansi",
159-
"config.runtime.fileEncoding.utf16le" : "utf16le",
160-
"config.runtime.fileEncoding.utf16be": "utf16be",
161158
"config.runtime.meta": "Format of the directory name of the meta files.",
162159
"config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.",
163160
"config.runtime.path": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n",

package.nls.zh-cn.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"config.IntelliSense.traceFieldInject": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
44
"config.IntelliSense.traceLocalSet": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
55
"config.IntelliSense.traceReturn": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
6+
"config.codeLens.enable": "启用代码度量。",
67
"config.color.mode": "着色模式。",
78
"config.color.mode.Grammar": "语法着色。",
89
"config.color.mode.Semantic": "语义着色。你可能需要同时将 `editor.semanticHighlighting.enabled` 设置为 `true` 才能生效。",
@@ -36,7 +37,7 @@
3637
"config.diagnostics.await-in-sync": "Enable diagnostics for calls of asynchronous functions within a synchronous function.",
3738
"config.diagnostics.cast-local-type": "Enable diagnostics for casts of local variables where the target type does not match the defined type.",
3839
"config.diagnostics.cast-type-mismatch": "Enable diagnostics for casts where the target type does not match the initial type.",
39-
"config.diagnostics.circle-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
40+
"config.diagnostics.circular-doc-class": "Enable diagnostics for two classes inheriting from each other introducing a circular relation.",
4041
"config.diagnostics.close-non-object": "Enable diagnostics for attempts to close a variable with a non-object.",
4142
"config.diagnostics.code-after-break": "Enable diagnostics for code placed after a break statement in a loop.",
4243
"config.diagnostics.codestyle": "* codestyle-check\n* spell-check",
@@ -65,11 +66,11 @@
6566
"config.diagnostics.ignoredFiles.Disable": "不诊断这些文件。",
6667
"config.diagnostics.ignoredFiles.Enable": "总是诊断这些文件。",
6768
"config.diagnostics.ignoredFiles.Opened": "只有打开这些文件时才会诊断。",
69+
"config.diagnostics.invisible": "Enable diagnostics for accesses to fields which are invisible.",
6870
"config.diagnostics.libraryFiles": "如何诊断通过 `Lua.workspace.library` 加载的文件。",
6971
"config.diagnostics.libraryFiles.Disable": "不诊断这些文件。",
7072
"config.diagnostics.libraryFiles.Enable": "总是诊断这些文件。",
7173
"config.diagnostics.libraryFiles.Opened": "只有打开这些文件时才会诊断。",
72-
"config.diagnostics.invisible": "Enable diagnostics for accesses to fields which are invisible.",
7374
"config.diagnostics.lowercase-global": "首字母小写的全局变量定义",
7475
"config.diagnostics.luadoc": "* circle-doc-class\n* doc-field-no-class\n* duplicate-doc-alias\n* duplicate-doc-field\n* duplicate-doc-param\n* undefined-doc-class\n* undefined-doc-name\n* undefined-doc-param\n* unknown-cast-variable\n* unknown-diag-code\n* unknown-operator",
7576
"config.diagnostics.missing-parameter": "Enable diagnostics for function calls where the number of arguments is less than the number of annotated function parameters.",
@@ -154,10 +155,6 @@
154155
"config.misc.parameters": "VSCode中启动语言服务时的[命令行参数](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#arguments)。",
155156
"config.runtime.builtin": "调整内置库的启用状态,你可以根据实际运行环境禁用掉不存在的库(或重新定义)。\n\n* `default`: 表示库会根据运行版本启用或禁用\n* `enable`: 总是启用\n* `disable`: 总是禁用\n",
156157
"config.runtime.fileEncoding": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。",
157-
"config.runtime.fileEncoding.utf8" : "utf8",
158-
"config.runtime.fileEncoding.ansi": "ansi",
159-
"config.runtime.fileEncoding.utf16le" : "utf16le",
160-
"config.runtime.fileEncoding.utf16be": "utf16be",
161158
"config.runtime.meta": "meta文件的目录名称格式。",
162159
"config.runtime.nonstandardSymbol": "支持非标准的符号。请务必确认你的运行环境支持这些符号。",
163160
"config.runtime.path": "当使用 `require` 时,如何根据输入的名字来查找文件。\n此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索 `{workspace}/myfile/init.lua`。\n当 `runtime.pathStrict` 设置为 `false` 时,还会尝试搜索 `${workspace}/**/myfile/init.lua`。\n如果你想要加载工作区以外的文件,你需要先设置 `Lua.workspace.library`。\n",

0 commit comments

Comments
 (0)