Skip to content

Commit 368f27a

Browse files
committed
1.16.0
1 parent 3a29406 commit 368f27a

File tree

9 files changed

+57
-4
lines changed

9 files changed

+57
-4
lines changed

changelog.md

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

3+
## 1.16.0
4+
`2021-2-20`
5+
* `NEW` file encoding supports `ansi`
6+
* `NEW` completion: supports interface, see [#384](https://github.com/sumneko/lua-language-server/issues/384)
7+
* `NEW` `LuaDoc`: supports multiple class inheritance: `---@class Food: Burger, Pizza, Pie, Pasta`
8+
* `CHG` rename `table*` to `tablelib`
9+
* `CHG` `LuaDoc`: revert compatible with `--@`, see [#392](https://github.com/sumneko/lua-language-server/issues/392)
10+
* `CHG` improve performance
11+
* `FIX` missed syntax error `f() = 1`
12+
* `FIX` missed global `bit` in `LuaJIT`
13+
* `FIX` completion: may insert error text when continuous inputing
14+
* `FIX` completion: may insert error text after resolve
15+
* `FIX` [#349](https://github.com/sumneko/lua-language-server/issues/349)
16+
* `FIX` [#396](https://github.com/sumneko/lua-language-server/issues/396)
17+
318
## 1.15.1
419
`2021-2-18`
520
* `CHG` diagnostic: `unused-local` excludes `doc.param`

package.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,6 +1022,16 @@
10221022
"markdownDescription": "%config.workspace.useGitIgnore%",
10231023
"scope": "resource",
10241024
"type": "boolean"
1025+
},
1026+
"lua.runtime.fileEncoding": {
1027+
"default": "utf8",
1028+
"enum": [
1029+
"utf8",
1030+
"ansi"
1031+
],
1032+
"markdownDescription": "%config.runtime.fileEncoding%",
1033+
"scope": "resource",
1034+
"type": "string"
10251035
}
10261036
},
10271037
"title": "Lua",
@@ -1083,5 +1093,5 @@
10831093
"type": "git",
10841094
"url": "https://github.com/sumneko/lua-language-server"
10851095
},
1086-
"version": "1.15.1"
1096+
"version": "1.16.0"
10871097
}

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"config.hover.viewStringMax": "The maximum length of a hover to view the contents of a string.",
3737
"config.intelliSense.fastGlobal": "In the global variable completion, and view `_G` suspension prompt. This will slightly reduce the accuracy of type speculation, but it will have a significant performance improvement for projects that use a lot of global variables.",
3838
"config.intelliSense.searchDepth": "Set the search depth for IntelliSense. Increasing this value increases accuracy, but decreases performance. Different workspace have different tolerance for this setting. Please adjust it to the appropriate value.",
39+
"config.runtime.fileEncoding": "File encoding. The `ansi` option is only available under the `Windows` platform.",
3940
"config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.",
4041
"config.runtime.path": "`package.path`",
4142
"config.runtime.plugin": "(Proposed) Plugin path.",

package.nls.zh-cn.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"config.hover.viewStringMax": "悬停提示查看字符串内容时的最大长度。",
4040
"config.intelliSense.fastGlobal": "在对全局变量进行补全,及查看 `_G` 的悬浮提示时进行优化。这会略微降低类型推测的准确度,但是对于大量使用全局变量的项目会有大幅的性能提升。",
4141
"config.intelliSense.searchDepth": "设置智能感知的搜索深度。增大该值可以增加准确度,但会降低性能。不同的项目对该设置的容忍度差异较大,请自己调整为合适的值。",
42+
"config.runtime.fileEncoding": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。",
4243
"config.runtime.nonstandardSymbol": "支持非标准的符号。请务必确认你的运行环境支持这些符号。",
4344
"config.runtime.path": "`package.path`",
4445
"config.runtime.plugin": "(实验)插件路径。",

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 = "1.15.1"
3+
local VERSION = "1.16.0"
44

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

publish.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,13 @@ for i = 5, 0, -1 do
203203
end
204204

205205
local function shell(command)
206-
command.cwd = out
207206
command.stdout = true
208207
command.stderr = true
208+
local show = {}
209+
for _, c in ipairs(command) do
210+
show[#show+1] = tostring(c)
211+
end
212+
print(table.concat(show, ' '))
209213
local p, err = subprocess.shell(command)
210214
if not p then
211215
error(err)
@@ -219,6 +223,7 @@ local vsix = ROOT / 'publish' / ('lua-' .. version .. '.vsix')
219223
shell {
220224
'vsce', 'package',
221225
'-o', vsix,
226+
cwd = out,
222227
}
223228

224229
shell {
@@ -243,6 +248,7 @@ shell {
243248

244249
shell {
245250
'vsce', 'publish',
251+
cwd = out,
246252
}
247253

248254
local ovsxToken = fsu.loadFile(ROOT / 'ovsx-token')

server

setting/schema-zh-cn.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,16 @@
10061006
"markdownDescription": "忽略 `.gitignore` 中列举的文件。",
10071007
"scope": "resource",
10081008
"type": "boolean"
1009+
},
1010+
"lua.runtime.fileEncoding": {
1011+
"default": "utf8",
1012+
"enum": [
1013+
"utf8",
1014+
"ansi"
1015+
],
1016+
"markdownDescription": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。",
1017+
"scope": "resource",
1018+
"type": "string"
10091019
}
10101020
},
10111021
"title": "setting",

setting/schema.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,6 +1006,16 @@
10061006
"markdownDescription": "Ignore files list in `.gitignore` .",
10071007
"scope": "resource",
10081008
"type": "boolean"
1009+
},
1010+
"lua.runtime.fileEncoding": {
1011+
"default": "utf8",
1012+
"enum": [
1013+
"utf8",
1014+
"ansi"
1015+
],
1016+
"markdownDescription": "File encoding. The `ansi` option is only available under the `Windows` platform.",
1017+
"scope": "resource",
1018+
"type": "string"
10091019
}
10101020
},
10111021
"title": "setting",

0 commit comments

Comments
 (0)