Skip to content

Commit 3c4db98

Browse files
committed
1.10.0
1 parent 71482a8 commit 3c4db98

8 files changed

+85
-7
lines changed

changelog.md

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

3+
## 1.10.0
4+
`2021-1-4`
5+
* `NEW` workspace: supports `.dll`(`.so`) in `require`
6+
* `NEW` folding: `---@class`, `--#region` and docs of function
7+
* `NEW` diagnostic: `count-down-loop`
8+
* `CHG` supports `~` in command line
9+
* `CHG` completion: improve workspace words
10+
* `CHG` completion: show words in string
11+
* `CHG` completion: split `for .. in` to `for .. ipairs` and `for ..pairs`
12+
* `CHG` diagnostic: `unused-function` checks recursive
13+
* `FIX` [#339](https://github.com/sumneko/lua-language-server/issues/339)
14+
315
## 1.9.0
416
`2020-12-31`
517
* `NEW` YEAR! Peace and love!

package.json

+23-1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,16 @@
165165
"scope": "resource",
166166
"type": "string"
167167
},
168+
"count-down-loop": {
169+
"default": "Any",
170+
"description": "%config.diagnostics.count-down-loop%",
171+
"enum": [
172+
"Any",
173+
"Opened"
174+
],
175+
"scope": "resource",
176+
"type": "string"
177+
},
168178
"doc-field-no-class": {
169179
"default": "Any",
170180
"description": "%config.diagnostics.doc-field-no-class%",
@@ -471,6 +481,18 @@
471481
"scope": "resource",
472482
"type": "string"
473483
},
484+
"count-down-loop": {
485+
"default": "Warning",
486+
"description": "%config.diagnostics.count-down-loop%",
487+
"enum": [
488+
"Error",
489+
"Warning",
490+
"Information",
491+
"Hint"
492+
],
493+
"scope": "resource",
494+
"type": "string"
495+
},
474496
"doc-field-no-class": {
475497
"default": "Warning",
476498
"description": "%config.diagnostics.doc-field-no-class%",
@@ -1019,5 +1041,5 @@
10191041
"type": "git",
10201042
"url": "https://github.com/sumneko/lua-language-server"
10211043
},
1022-
"version": "1.9.0"
1044+
"version": "1.10.0"
10231045
}

package.nls.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network\n* [What data will be sent](https://github.com/sumneko/lua-language-server/blob/master/script/service/telemetry.lua)\n* [How to use this data](https://github.com/sumneko/lua-telemetry-server/tree/master/method)\n",
4242
"config.workspace.ignoreDir": "Ignored directories (Use `.gitignore` grammar).\n",
4343
"config.workspace.ignoreSubmodules": "Ignore submodules.",
44-
"config.workspace.library": "Load external library.\nThis feature can load external Lua files, which can be used for definition, automatic completion and other functions. Note that the language server does not monitor changes in external files and needs to restart if the external files are modified.\nThe following example shows loaded files in `C:/lua` and `../lib` ,exclude `../lib/temp`.\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"temp/*\"\n ]\n}\n```\n",
44+
"config.workspace.library": "Load external library.\nThis feature can load external Lua files, which can be used for definition, automatic completion and other functions. Note that the language server does not monitor changes in external files and needs to restart if the external files are modified.\n",
4545
"config.workspace.maxPreload": "Max preloaded files.",
4646
"config.workspace.preloadFileSize": "Skip files larger than this value (KB) when preloading.",
4747
"config.workspace.useGitIgnore": "Ignore files list in `.gitignore` .",

package.nls.zh-cn.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"config.telemetry.enable": "启用遥测,通过网络发送你的编辑器信息与错误日志\n* [会发送哪些数据](https://github.com/sumneko/lua-language-server/blob/master/script/service/telemetry.lua)\n* [如何使用这些数据](https://github.com/sumneko/lua-telemetry-server/tree/master/method)\n",
4545
"config.workspace.ignoreDir": "忽略的目录(使用 `.gitignore` 语法)。\n",
4646
"config.workspace.ignoreSubmodules": "忽略子模块。",
47-
"config.workspace.library": "加载外部函数库。\n该功能可以加载外部的Lua文件,用于函数定义、自动完成等功能。注意,语言服务不会监视外部文件的变化,如果修改了外部文件需要重启。\n下面这个例子表示加载`C:/lua`与`../lib`中的所有文件,但不加载`../lib/temp`中的文件。\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"temp/*\"\n ]\n}\n```\n",
47+
"config.workspace.library": "加载外部函数库。\n该功能可以加载外部的Lua文件,用于函数定义、自动完成等功能。注意,语言服务不会监视外部文件的变化,如果修改了外部文件需要重启。\n",
4848
"config.workspace.maxPreload": "最大预加载文件数。",
4949
"config.workspace.preloadFileSize": "预加载时跳过大小大于该值(KB)的文件。",
5050
"config.workspace.useGitIgnore": "忽略 `.gitignore` 中列举的文件。",

package/build.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local json = require 'json-beautify'
22

3-
local VERSION = "1.9.0"
3+
local VERSION = "1.10.0"
44

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

server

setting/schema-zh-cn.json

+23-1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,16 @@
149149
"scope": "resource",
150150
"type": "string"
151151
},
152+
"count-down-loop": {
153+
"default": "Any",
154+
"description": "%config.diagnostics.count-down-loop%",
155+
"enum": [
156+
"Any",
157+
"Opened"
158+
],
159+
"scope": "resource",
160+
"type": "string"
161+
},
152162
"doc-field-no-class": {
153163
"default": "Any",
154164
"description": "%config.diagnostics.doc-field-no-class%",
@@ -455,6 +465,18 @@
455465
"scope": "resource",
456466
"type": "string"
457467
},
468+
"count-down-loop": {
469+
"default": "Warning",
470+
"description": "%config.diagnostics.count-down-loop%",
471+
"enum": [
472+
"Error",
473+
"Warning",
474+
"Information",
475+
"Hint"
476+
],
477+
"scope": "resource",
478+
"type": "string"
479+
},
458480
"doc-field-no-class": {
459481
"default": "Warning",
460482
"description": "%config.diagnostics.doc-field-no-class%",
@@ -921,7 +943,7 @@
921943
"type": "boolean"
922944
},
923945
"Lua.workspace.library": {
924-
"markdownDescription": "加载外部函数库。\n该功能可以加载外部的Lua文件,用于函数定义、自动完成等功能。注意,语言服务不会监视外部文件的变化,如果修改了外部文件需要重启。\n下面这个例子表示加载`C:/lua`与`../lib`中的所有文件,但不加载`../lib/temp`中的文件。\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"temp/*\"\n ]\n}\n```\n",
946+
"markdownDescription": "加载外部函数库。\n该功能可以加载外部的Lua文件,用于函数定义、自动完成等功能。注意,语言服务不会监视外部文件的变化,如果修改了外部文件需要重启。\n",
925947
"scope": "resource",
926948
"type": "object"
927949
},

setting/schema.json

+23-1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,16 @@
149149
"scope": "resource",
150150
"type": "string"
151151
},
152+
"count-down-loop": {
153+
"default": "Any",
154+
"description": "%config.diagnostics.count-down-loop%",
155+
"enum": [
156+
"Any",
157+
"Opened"
158+
],
159+
"scope": "resource",
160+
"type": "string"
161+
},
152162
"doc-field-no-class": {
153163
"default": "Any",
154164
"description": "%config.diagnostics.doc-field-no-class%",
@@ -455,6 +465,18 @@
455465
"scope": "resource",
456466
"type": "string"
457467
},
468+
"count-down-loop": {
469+
"default": "Warning",
470+
"description": "%config.diagnostics.count-down-loop%",
471+
"enum": [
472+
"Error",
473+
"Warning",
474+
"Information",
475+
"Hint"
476+
],
477+
"scope": "resource",
478+
"type": "string"
479+
},
458480
"doc-field-no-class": {
459481
"default": "Warning",
460482
"description": "%config.diagnostics.doc-field-no-class%",
@@ -921,7 +943,7 @@
921943
"type": "boolean"
922944
},
923945
"Lua.workspace.library": {
924-
"markdownDescription": "Load external library.\nThis feature can load external Lua files, which can be used for definition, automatic completion and other functions. Note that the language server does not monitor changes in external files and needs to restart if the external files are modified.\nThe following example shows loaded files in `C:/lua` and `../lib` ,exclude `../lib/temp`.\n```json\n\"Lua.workspace.library\": {\n \"C:/lua\": true,\n \"../lib\": [\n \"temp/*\"\n ]\n}\n```\n",
946+
"markdownDescription": "Load external library.\nThis feature can load external Lua files, which can be used for definition, automatic completion and other functions. Note that the language server does not monitor changes in external files and needs to restart if the external files are modified.\n",
925947
"scope": "resource",
926948
"type": "object"
927949
},

0 commit comments

Comments
 (0)