Skip to content

Commit 74d063a

Browse files
committed
3.6.5
1 parent 98edb4f commit 74d063a

14 files changed

+149
-152
lines changed

.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/*.map
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
@@ -29,6 +29,12 @@
2929
],
3030
"configuration": {
3131
"properties": {
32+
"Lua.codeLens.enable": {
33+
"default": false,
34+
"markdownDescription": "%config.codeLens.enable%",
35+
"scope": "resource",
36+
"type": "boolean"
37+
},
3238
"Lua.completion.autoRequire": {
3339
"default": true,
3440
"markdownDescription": "%config.completion.autoRequire%",
@@ -207,6 +213,7 @@
207213
"missing-return-value",
208214
"need-check-nil",
209215
"need-paren",
216+
"nesting-long-mark",
210217
"newfield-call",
211218
"newline-call",
212219
"no-unknown",
@@ -2229,7 +2236,7 @@
22292236
},
22302237
"Lua.format.defaultConfig": {
22312238
"additionalProperties": false,
2232-
"default": {},
2239+
"default": [],
22332240
"markdownDescription": "%config.format.defaultConfig%",
22342241
"patternProperties": {
22352242
".*": {
@@ -2654,7 +2661,7 @@
26542661
},
26552662
"Lua.runtime.special": {
26562663
"additionalProperties": false,
2657-
"default": {},
2664+
"default": [],
26582665
"markdownDescription": "%config.runtime.special%",
26592666
"patternProperties": {
26602667
".*": {
@@ -2745,18 +2752,6 @@
27452752
"scope": "resource",
27462753
"type": "array"
27472754
},
2748-
"Lua.telemetry.enable": {
2749-
"default": null,
2750-
"markdownDescription": "%config.telemetry.enable%",
2751-
"scope": "resource",
2752-
"tags": [
2753-
"telemetry"
2754-
],
2755-
"type": [
2756-
"boolean",
2757-
"null"
2758-
]
2759-
},
27602755
"Lua.type.castNumberToInteger": {
27612756
"default": true,
27622757
"markdownDescription": "%config.type.castNumberToInteger%",
@@ -3068,5 +3063,5 @@
30683063
"sponsor": {
30693064
"url": "https://github.com/sumneko/lua-language-server/issues/484"
30703065
},
3071-
"version": "3.6.4"
3066+
"version": "3.6.5"
30723067
}

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",

package.nls.zh-tw.json

Lines changed: 2 additions & 5 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": "Enable code lens.",
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",
@@ -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",

package/build.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local json = require 'json-beautify'
22

3-
local VERSION = "3.6.4"
3+
local VERSION = "3.6.5"
44

55
local package = require 'package.package'
66
local fsu = require 'fs-utility'

0 commit comments

Comments
 (0)