Skip to content

Commit 4a22b46

Browse files
committed
2.2.0
1 parent 95b508c commit 4a22b46

File tree

9 files changed

+52
-4
lines changed

9 files changed

+52
-4
lines changed

changelog.md

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

3+
## 2.2.0
4+
`2021-7-8`
5+
* `NEW` detect and apply third-party libraries, including:
6+
* OpenResty
7+
* Cocos4.0
8+
* Jass
9+
* `NEW` `LuaDoc`: supports literal table:
10+
```lua
11+
---@generic T
12+
---@param x T
13+
---@return { x: number, y: T, z?: boolean}
14+
local function f(x) end
15+
16+
local t = f('str')
17+
-- hovering "t" shows:
18+
local t: {
19+
x: number,
20+
y: string,
21+
z?: boolean,
22+
}
23+
```
24+
* `CHG` improve changing config from server side
25+
* `CHG` improve hover color
26+
* `CHG` improve performance
27+
* `CHG` telemetry: sends version of this extension
28+
* `FIX` supports for file with LF
29+
* `FIX` may infer a custom class as a string
30+
331
## 2.1.0
432
`2021-7-2`
533
* `NEW` supports local config file, using `--configpath="config.json"`, [learn more here](https://github.com/sumneko/lua-language-server/wiki/Setting-without-VSCode)

client/3rd/vscode-lua-doc

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1297,6 +1297,12 @@
12971297
"scope": "resource",
12981298
"type": "boolean"
12991299
},
1300+
"Lua.workspace.checkThirdParty": {
1301+
"default": true,
1302+
"markdownDescription": "%config.workspace.checkThirdParty%",
1303+
"scope": "source",
1304+
"type": "boolean"
1305+
},
13001306
"Lua.workspace.ignoreDir": {
13011307
"default": [
13021308
".vscode"
@@ -1405,5 +1411,5 @@
14051411
"type": "git",
14061412
"url": "https://github.com/sumneko/lua-language-server"
14071413
},
1408-
"version": "2.1.0"
1414+
"version": "2.2.0"
14091415
}

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +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",
5556
"config.workspace.ignoreDir": "Ignored files and directories (Use `.gitignore` grammar).\n",
5657
"config.workspace.ignoreSubmodules": "Ignore submodules.",
5758
"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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +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",
5859
"config.workspace.ignoreDir": "忽略的文件与目录(使用 `.gitignore` 语法)。\n",
5960
"config.workspace.ignoreSubmodules": "忽略子模块。",
6061
"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.1.0"
3+
local VERSION = "2.2.0"
44

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

server

setting/schema-zh-cn.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,12 @@
12701270
"scope": "resource",
12711271
"type": "boolean"
12721272
},
1273+
"Lua.workspace.checkThirdParty": {
1274+
"default": true,
1275+
"markdownDescription": "自动检测与适配第三方库,目前支持的库为:\n * OpenResty\n * Cocos4.0\n * Jass\n",
1276+
"scope": "source",
1277+
"type": "boolean"
1278+
},
12731279
"Lua.workspace.ignoreDir": {
12741280
"default": [
12751281
".vscode"

setting/schema.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,6 +1270,12 @@
12701270
"scope": "resource",
12711271
"type": "boolean"
12721272
},
1273+
"Lua.workspace.checkThirdParty": {
1274+
"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",
1277+
"type": "boolean"
1278+
},
12731279
"Lua.workspace.ignoreDir": {
12741280
"default": [
12751281
".vscode"

0 commit comments

Comments
 (0)