Skip to content
Snippets Groups Projects
Commit 368f27a4 authored by 最萌小汐's avatar 最萌小汐
Browse files

1.16.0

parent 3a294066
Branches
Tags
No related merge requests found
# changelog # 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 ## 1.15.1
`2021-2-18` `2021-2-18`
* `CHG` diagnostic: `unused-local` excludes `doc.param` * `CHG` diagnostic: `unused-local` excludes `doc.param`
......
...@@ -1022,6 +1022,16 @@ ...@@ -1022,6 +1022,16 @@
"markdownDescription": "%config.workspace.useGitIgnore%", "markdownDescription": "%config.workspace.useGitIgnore%",
"scope": "resource", "scope": "resource",
"type": "boolean" "type": "boolean"
},
"lua.runtime.fileEncoding": {
"default": "utf8",
"enum": [
"utf8",
"ansi"
],
"markdownDescription": "%config.runtime.fileEncoding%",
"scope": "resource",
"type": "string"
} }
}, },
"title": "Lua", "title": "Lua",
...@@ -1083,5 +1093,5 @@ ...@@ -1083,5 +1093,5 @@
"type": "git", "type": "git",
"url": "https://github.com/sumneko/lua-language-server" "url": "https://github.com/sumneko/lua-language-server"
}, },
"version": "1.15.1" "version": "1.16.0"
} }
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
"config.hover.viewStringMax": "The maximum length of a hover to view the contents of a string.", "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.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.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.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.",
"config.runtime.path": "`package.path`", "config.runtime.path": "`package.path`",
"config.runtime.plugin": "(Proposed) Plugin path.", "config.runtime.plugin": "(Proposed) Plugin path.",
......
...@@ -39,6 +39,7 @@ ...@@ -39,6 +39,7 @@
"config.hover.viewStringMax": "悬停提示查看字符串内容时的最大长度。", "config.hover.viewStringMax": "悬停提示查看字符串内容时的最大长度。",
"config.intelliSense.fastGlobal": "在对全局变量进行补全,及查看 `_G` 的悬浮提示时进行优化。这会略微降低类型推测的准确度,但是对于大量使用全局变量的项目会有大幅的性能提升。", "config.intelliSense.fastGlobal": "在对全局变量进行补全,及查看 `_G` 的悬浮提示时进行优化。这会略微降低类型推测的准确度,但是对于大量使用全局变量的项目会有大幅的性能提升。",
"config.intelliSense.searchDepth": "设置智能感知的搜索深度。增大该值可以增加准确度,但会降低性能。不同的项目对该设置的容忍度差异较大,请自己调整为合适的值。", "config.intelliSense.searchDepth": "设置智能感知的搜索深度。增大该值可以增加准确度,但会降低性能。不同的项目对该设置的容忍度差异较大,请自己调整为合适的值。",
"config.runtime.fileEncoding": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。",
"config.runtime.nonstandardSymbol": "支持非标准的符号。请务必确认你的运行环境支持这些符号。", "config.runtime.nonstandardSymbol": "支持非标准的符号。请务必确认你的运行环境支持这些符号。",
"config.runtime.path": "`package.path`", "config.runtime.path": "`package.path`",
"config.runtime.plugin": "(实验)插件路径。", "config.runtime.plugin": "(实验)插件路径。",
......
local json = require 'json-beautify' local json = require 'json-beautify'
local VERSION = "1.15.1" local VERSION = "1.16.0"
local package = require 'package.package' local package = require 'package.package'
local fsu = require 'fs-utility' local fsu = require 'fs-utility'
......
...@@ -203,9 +203,13 @@ for i = 5, 0, -1 do ...@@ -203,9 +203,13 @@ for i = 5, 0, -1 do
end end
local function shell(command) local function shell(command)
command.cwd = out
command.stdout = true command.stdout = true
command.stderr = 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) local p, err = subprocess.shell(command)
if not p then if not p then
error(err) error(err)
...@@ -219,6 +223,7 @@ local vsix = ROOT / 'publish' / ('lua-' .. version .. '.vsix') ...@@ -219,6 +223,7 @@ local vsix = ROOT / 'publish' / ('lua-' .. version .. '.vsix')
shell { shell {
'vsce', 'package', 'vsce', 'package',
'-o', vsix, '-o', vsix,
cwd = out,
} }
shell { shell {
...@@ -243,6 +248,7 @@ shell { ...@@ -243,6 +248,7 @@ shell {
shell { shell {
'vsce', 'publish', 'vsce', 'publish',
cwd = out,
} }
local ovsxToken = fsu.loadFile(ROOT / 'ovsx-token') local ovsxToken = fsu.loadFile(ROOT / 'ovsx-token')
......
Subproject commit 068c105b3347f37da940e61bcd7daa7e3d7d5a03 Subproject commit ebbf09bb27bf54168701f92af51ca774205b77d0
...@@ -1006,6 +1006,16 @@ ...@@ -1006,6 +1006,16 @@
"markdownDescription": "忽略 `.gitignore` 中列举的文件。", "markdownDescription": "忽略 `.gitignore` 中列举的文件。",
"scope": "resource", "scope": "resource",
"type": "boolean" "type": "boolean"
},
"lua.runtime.fileEncoding": {
"default": "utf8",
"enum": [
"utf8",
"ansi"
],
"markdownDescription": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。",
"scope": "resource",
"type": "string"
} }
}, },
"title": "setting", "title": "setting",
......
...@@ -1006,6 +1006,16 @@ ...@@ -1006,6 +1006,16 @@
"markdownDescription": "Ignore files list in `.gitignore` .", "markdownDescription": "Ignore files list in `.gitignore` .",
"scope": "resource", "scope": "resource",
"type": "boolean" "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", "title": "setting",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment