From 368f27a4109f71df48a4b8576f41a3e8ba6be4af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= <sumneko@hotmail.com> Date: Sat, 20 Feb 2021 17:54:14 +0800 Subject: [PATCH] 1.16.0 --- changelog.md | 15 +++++++++++++++ package.json | 12 +++++++++++- package.nls.json | 1 + package.nls.zh-cn.json | 1 + package/build.lua | 2 +- publish.lua | 8 +++++++- server | 2 +- setting/schema-zh-cn.json | 10 ++++++++++ setting/schema.json | 10 ++++++++++ 9 files changed, 57 insertions(+), 4 deletions(-) diff --git a/changelog.md b/changelog.md index 5d58431..c35052d 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,20 @@ # changelog +## 1.16.0 +`2021-2-20` +* `NEW` file encoding supports `ansi` +* `NEW` completion: supports interface, see [#384](https://github.com/sumneko/lua-language-server/issues/384) +* `NEW` `LuaDoc`: supports multiple class inheritance: `---@class Food: Burger, Pizza, Pie, Pasta` +* `CHG` rename `table*` to `tablelib` +* `CHG` `LuaDoc`: revert compatible with `--@`, see [#392](https://github.com/sumneko/lua-language-server/issues/392) +* `CHG` improve performance +* `FIX` missed syntax error `f() = 1` +* `FIX` missed global `bit` in `LuaJIT` +* `FIX` completion: may insert error text when continuous inputing +* `FIX` completion: may insert error text after resolve +* `FIX` [#349](https://github.com/sumneko/lua-language-server/issues/349) +* `FIX` [#396](https://github.com/sumneko/lua-language-server/issues/396) + ## 1.15.1 `2021-2-18` * `CHG` diagnostic: `unused-local` excludes `doc.param` diff --git a/package.json b/package.json index 1d3d084..ba6600e 100644 --- a/package.json +++ b/package.json @@ -1022,6 +1022,16 @@ "markdownDescription": "%config.workspace.useGitIgnore%", "scope": "resource", "type": "boolean" + }, + "lua.runtime.fileEncoding": { + "default": "utf8", + "enum": [ + "utf8", + "ansi" + ], + "markdownDescription": "%config.runtime.fileEncoding%", + "scope": "resource", + "type": "string" } }, "title": "Lua", @@ -1083,5 +1093,5 @@ "type": "git", "url": "https://github.com/sumneko/lua-language-server" }, - "version": "1.15.1" + "version": "1.16.0" } diff --git a/package.nls.json b/package.nls.json index 7ea1399..e413c16 100644 --- a/package.nls.json +++ b/package.nls.json @@ -36,6 +36,7 @@ "config.hover.viewStringMax": "The maximum length of a hover to view the contents of a string.", "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.", "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.", + "config.runtime.fileEncoding": "File encoding. The `ansi` option is only available under the `Windows` platform.", "config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.", "config.runtime.path": "`package.path`", "config.runtime.plugin": "(Proposed) Plugin path.", diff --git a/package.nls.zh-cn.json b/package.nls.zh-cn.json index d63ef96..bfdb17b 100644 --- a/package.nls.zh-cn.json +++ b/package.nls.zh-cn.json @@ -39,6 +39,7 @@ "config.hover.viewStringMax": "悬停提示查看字符串内容时的最大长度。", "config.intelliSense.fastGlobal": "在对全局变量进行补全,及查看 `_G` 的悬浮提示时进行优化。这会略微降低类型推测的准确度,但是对于大量使用全局变量的项目会有大幅的性能提升。", "config.intelliSense.searchDepth": "设置智能感知的搜索深度。增大该值可以增加准确度,但会降低性能。不同的项目对该设置的容忍度差异较大,请自己调整为合适的值。", + "config.runtime.fileEncoding": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。", "config.runtime.nonstandardSymbol": "支持非标准的符号。请务必确认你的运行环境支持这些符号。", "config.runtime.path": "`package.path`", "config.runtime.plugin": "(实验)插件路径。", diff --git a/package/build.lua b/package/build.lua index ba804c7..38c5273 100644 --- a/package/build.lua +++ b/package/build.lua @@ -1,6 +1,6 @@ local json = require 'json-beautify' -local VERSION = "1.15.1" +local VERSION = "1.16.0" local package = require 'package.package' local fsu = require 'fs-utility' diff --git a/publish.lua b/publish.lua index 43960de..6811dea 100644 --- a/publish.lua +++ b/publish.lua @@ -203,9 +203,13 @@ for i = 5, 0, -1 do end local function shell(command) - command.cwd = out command.stdout = true command.stderr = true + local show = {} + for _, c in ipairs(command) do + show[#show+1] = tostring(c) + end + print(table.concat(show, ' ')) local p, err = subprocess.shell(command) if not p then error(err) @@ -219,6 +223,7 @@ local vsix = ROOT / 'publish' / ('lua-' .. version .. '.vsix') shell { 'vsce', 'package', '-o', vsix, + cwd = out, } shell { @@ -243,6 +248,7 @@ shell { shell { 'vsce', 'publish', + cwd = out, } local ovsxToken = fsu.loadFile(ROOT / 'ovsx-token') diff --git a/server b/server index 068c105..ebbf09b 160000 --- a/server +++ b/server @@ -1 +1 @@ -Subproject commit 068c105b3347f37da940e61bcd7daa7e3d7d5a03 +Subproject commit ebbf09bb27bf54168701f92af51ca774205b77d0 diff --git a/setting/schema-zh-cn.json b/setting/schema-zh-cn.json index 6955216..2edfced 100644 --- a/setting/schema-zh-cn.json +++ b/setting/schema-zh-cn.json @@ -1006,6 +1006,16 @@ "markdownDescription": "忽略 `.gitignore` 中列举的文件。", "scope": "resource", "type": "boolean" + }, + "lua.runtime.fileEncoding": { + "default": "utf8", + "enum": [ + "utf8", + "ansi" + ], + "markdownDescription": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。", + "scope": "resource", + "type": "string" } }, "title": "setting", diff --git a/setting/schema.json b/setting/schema.json index 9104eab..c66a183 100644 --- a/setting/schema.json +++ b/setting/schema.json @@ -1006,6 +1006,16 @@ "markdownDescription": "Ignore files list in `.gitignore` .", "scope": "resource", "type": "boolean" + }, + "lua.runtime.fileEncoding": { + "default": "utf8", + "enum": [ + "utf8", + "ansi" + ], + "markdownDescription": "File encoding. The `ansi` option is only available under the `Windows` platform.", + "scope": "resource", + "type": "string" } }, "title": "setting", -- GitLab