Skip to content

Commit 93b0d31

Browse files
committed
2.3.0
1 parent 17f3446 commit 93b0d31

File tree

8 files changed

+48
-10
lines changed

8 files changed

+48
-10
lines changed

changelog.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
# changelog
22

3+
## 2.3.0
4+
`2021-7-16`
5+
* `NEW` `VSCode`: click the status bar icon to operate:
6+
* run workspace diagnostics
7+
* `NEW` `LuaDoc`: supports `[1]` as field:
8+
```lua
9+
---@class position
10+
---@field [1] number
11+
---@field [2] number
12+
---@field [3] number
13+
```
14+
* `NEW` hover: view array `local array = {'a', 'b', 'c'}`:
15+
```lua
16+
local array: {
17+
[1]: string = "a",
18+
[2]: string = "b",
19+
[3]: string = "c",
20+
}
21+
```
22+
* `NEW` completion: supports enums in `fun()`
23+
```lua
24+
---@type fun(x: "'aaa'"|"'bbb'")
25+
local f
26+
27+
f(--[[show `'aaa'` and `'bbb'` here]])
28+
```
29+
* `FIX` loading workspace may hang
30+
* `FIX` `debug.getuservalue` and `debug.setuservalue` should not exist in `Lua 5.1`
31+
* `FIX` infer of `---@type class[][]`
32+
* `FIX` infer of `---@type {}[]`
33+
* `FIX` completion: displaying `@fenv` in `Lua 5.1`
34+
* `FIX` completion: incorrect at end of line
35+
* `FIX` when a file is renamed, the file will still be loaded even if the new file name has been set to ignore
36+
* `FIX` [#596](https://github.com/sumneko/lua-language-server/issues/596)
37+
* `FIX` [#597](https://github.com/sumneko/lua-language-server/issues/597)
38+
* `FIX` [#598](https://github.com/sumneko/lua-language-server/issues/598)
39+
* `FIX` [#601](https://github.com/sumneko/lua-language-server/issues/601)
40+
341
## 2.2.3
442
`2021-7-9`
543
* `CHG` improve `auto require`

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,7 +1300,7 @@
13001300
"Lua.workspace.checkThirdParty": {
13011301
"default": true,
13021302
"markdownDescription": "%config.workspace.checkThirdParty%",
1303-
"scope": "source",
1303+
"scope": "resource",
13041304
"type": "boolean"
13051305
},
13061306
"Lua.workspace.ignoreDir": {
@@ -1411,5 +1411,5 @@
14111411
"type": "git",
14121412
"url": "https://github.com/sumneko/lua-language-server"
14131413
},
1414-
"version": "2.2.3"
1414+
"version": "2.3.0"
14151415
}

package.nls.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n",
5353
"config.window.progressBar": "Show progress bar in status bar.",
5454
"config.window.statusBar": "Show extension status in status bar.",
55-
"config.workspace.checkThirdParty": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n * OpenResty\n * Cocos4.0\n * Jass\n",
55+
"config.workspace.checkThirdParty": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* Jass\n",
5656
"config.workspace.ignoreDir": "Ignored files and directories (Use `.gitignore` grammar).\n",
5757
"config.workspace.ignoreSubmodules": "Ignore submodules.",
5858
"config.workspace.library": "The directory path of the external function library.\nThe language service will additionally load the lua files in these directories, even if they are not in the current workspace, for definition, completion and other features.\n",

package.nls.zh-cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"config.telemetry.enable": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。\n",
5656
"config.window.progressBar": "在状态栏显示进度条。",
5757
"config.window.statusBar": "在状态栏显示插件状态。",
58-
"config.workspace.checkThirdParty": "自动检测与适配第三方库,目前支持的库为:\n * OpenResty\n * Cocos4.0\n * Jass\n",
58+
"config.workspace.checkThirdParty": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* Jass\n",
5959
"config.workspace.ignoreDir": "忽略的文件与目录(使用 `.gitignore` 语法)。\n",
6060
"config.workspace.ignoreSubmodules": "忽略子模块。",
6161
"config.workspace.library": "外部函数库的目录路径。\n语言服务会额外加载这些目录中的lua文件,即使他们不在当前的工作目录中,用于函数定义、自动完成等功能。\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 = "2.2.3"
3+
local VERSION = "2.3.0"
44

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

server

setting/schema-zh-cn.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,8 +1272,8 @@
12721272
},
12731273
"Lua.workspace.checkThirdParty": {
12741274
"default": true,
1275-
"markdownDescription": "自动检测与适配第三方库,目前支持的库为:\n * OpenResty\n * Cocos4.0\n * Jass\n",
1276-
"scope": "source",
1275+
"markdownDescription": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* Jass\n",
1276+
"scope": "resource",
12771277
"type": "boolean"
12781278
},
12791279
"Lua.workspace.ignoreDir": {

setting/schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,8 +1272,8 @@
12721272
},
12731273
"Lua.workspace.checkThirdParty": {
12741274
"default": true,
1275-
"markdownDescription": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n * OpenResty\n * Cocos4.0\n * Jass\n",
1276-
"scope": "source",
1275+
"markdownDescription": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* Jass\n",
1276+
"scope": "resource",
12771277
"type": "boolean"
12781278
},
12791279
"Lua.workspace.ignoreDir": {

0 commit comments

Comments
 (0)