Skip to content

Commit

Permalink
0.6.12
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Apr 21, 2024
1 parent 220ade3 commit 47f9809
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 2 deletions.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,30 @@

[English Change Log](CHANGELOG_EN.md)

# 0.6.12

`NEW` 实现后缀补全功能, 输入标识符后输入 '@' 即可获得后缀补全

`FIX` 修复双倍全局变量的问题

`NEW` 兼容luals一些语法:
* 返回类型可以是 ... 或者 ...string,
* 兼容 doc attribute, 例如---@enum (partial) A, 但并未实现相关功能
* 兼容返回类型可空简化描述, 例如---@return string?, 但并未实现相关功能

`NEW` 支持可变模板参数声明, 主要用于实现unpack逻辑, 例如:
```lua
---@generic T...
---@param a [T...]
---@return T...
```

`FIX` 修复hover和inlayhint时, 表结构类型的字段提示问题

`FIX` 修复多返回值函数, 后续返回延续的前一个的问题

`NEW` 对无法推断类型的变量, 会默认给予一个匿名类型

# 0.6.10

`NEW` 现在支持从配置文件配置语言服务, 你可以在工作区创建.emmyrc.json, 具体格式目前是:
Expand Down
17 changes: 17 additions & 0 deletions CHANGELOG_EN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Change Log

# 0.6.12

`NEW` Implemented suffix completion feature, type '@' after an identifier to get suffix completion

`FIX` Fixed the issue of double global variables

`NEW` Compatible with some luals syntax:
* Return type can be ... or ...string,
* Compatible with doc attribute, for example---@enum (partial) A, but the related function is not implemented
* Compatible with simplified description of nullable return type, for example---@return string?, but the related function is not implemented

`NEW` Support for variable template parameter declaration, mainly used to implement unpack logic, for example:
```lua
---@generic T...
---@param a [T...]
---@return T...

# 0.6.10

`NEW` Now supports configuring the language service from the configuration file, you can create .emmyrc.json in the workspace, the specific format is currently:
Expand Down
2 changes: 1 addition & 1 deletion build/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ exports.default = {
emmyDebuggerUrl: 'https://github.com/EmmyLua/EmmyLuaDebugger/releases/download',
lanServerVersion: "0.5.16",
lanServerUrl: 'https://github.com/EmmyLua/EmmyLua-LanguageServer/releases/download',
newLanguageServerVersion: "0.1.9",
newLanguageServerVersion: "0.1.10",
newLanguageServerUrl: "https://github.com/CppCXY/EmmyLuaAnalyzer/releases/download"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "emmylua",
"displayName": "EmmyLua",
"description": "EmmyLua for vscode",
"version": "0.6.11",
"version": "0.6.12",
"icon": "res/icon.png",
"publisher": "tangzx",
"engines": {
Expand Down

0 comments on commit 47f9809

Please sign in to comment.