Skip to content

Commit

Permalink
release 0.9.9
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Feb 5, 2025
1 parent 8f06d2c commit aa1701a
Show file tree
Hide file tree
Showing 4 changed files with 122 additions and 2 deletions.
61 changes: 61 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,67 @@

[中文Log](CHANGELOG_CN.md)

# 0.9.9

`NEW` Support generic alias fold

`NEW` Support `code style check`, which powered by `emmyluacodestyle`

`NEW` Basic table declaration field names autocompletion.

`FIX` Fix possible panic due to integer overflow when calculating pows.

`NEW` Support compile by winodws mingw

`NEW` `emmylua_check` now supports `workspace.library`

`FIX` Fix std resource loaded for cli tools

`FIX` Fix `self` parameter regard as unuseful issue

`NEW` Add `emmylua_check` cli tool, you can use it to check lua code. you can install it by `cargo install emmylua_check`

`NEW` all the crates release to crates.io. now you can get `emmylua_parser`, `emmylua_code_analysis`, `emmylua_ls`, `emmylua_doc_cli` from crates.io.
```shell
cargo install emmylua_ls
cargo install emmylua_doc_cli
```

`CHG` refactor `template system`, optimize the generic infer

`FIX` now configurations are loaded properly in NeoVim in cases when no extra LSP configuration parameters are provided

`CHG` extended humanization of small constant table types

`NEW` Add configuration option `workspace.moduleMap` to map old module names to new ones. The `moduleMap` is a list of mappings, for example:

```json
{
"workspace": {
"moduleMap": [
{
"pattern": "^lib(.*)$",
"replace": "script$1"
}
]
}
}
```

This feature ensures that `require` works correctly. If you need to translate module names starting with `lib` to use `script`, add the appropriate mapping here.

`CHG` Refactor project structure, move all resources into executable binary

`NEW` Add Develop Guide

`NEW` support `workspace/didChangeConfiguration` notification for neovim

`CHG` refactor `semantic token`

`NEW` support simple generic type instantiation based on the passed functions

`FIX` Fix find generic class template parameter issue

# 0.9.8

`FIX` Fixed some multiple return value inference errors
Expand Down
59 changes: 59 additions & 0 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,64 @@
# Change Log

`NEW` 支持alias generic展开

`NEW` 支持由 `emmyluacodestyle` 提供支持的 `code style check`

`NEW` 基本表声明字段名自动补全

`FIX` 修正计算幂时可能因整数溢出而引发崩溃的问题

`NEW` 支持在 Windows 上使用 mingw 编译

`NEW` `emmylua_check` 现支持 `workspace.library`

`FIX` 修正 CLI 工具加载标准资源的问题

`FIX` 修正将 `self` 参数识别为未使用的问题

`NEW` 添加 `emmylua_check` CLI 工具,你可以使用该工具检查 Lua 代码,可通过 `cargo install emmylua_check` 进行安装

`NEW` 所有 crates 均已发布到 crates.io,现你可从 crates.io 获取 `emmylua_parser``emmylua_code_analysis``emmylua_ls``emmylua_doc_cli`
```shell
cargo install emmylua_ls
cargo install emmylua_doc_cli
```

`CHG` 重构 `template system`,优化泛型推断

`FIX` 现已在未提供额外 LSP 配置参数时正确加载 NeoVim 中的配置

`CHG` 扩展对小型常量表类型更友好的处理

`NEW` 添加配置选项 `workspace.moduleMap` 用于将旧模块名映射为新模块名。`moduleMap` 是一个映射列表,例如:

```json
{
"workspace": {
"moduleMap": [
{
"pattern": "^lib(.*)$",
"replace": "script$1"
}
]
}
}
```

此功能确保 `require` 能正确工作。如果你需要将以 `lib` 开头的模块名转换为 `script`,请在此处添加适当的映射。

`CHG` 重构项目结构,将所有资源移动到可执行二进制文件中

`NEW` 添加开发指南

`NEW` 支持 Neovim 的 `workspace/didChangeConfiguration` 通知

`CHG` 重构语义标记 `semantic token`

`NEW` 支持基于传入函数的简单泛型类型实例化

`FIX` 修复查找泛型类模板参数的问题

# 0.9.8

`FIX` 修复一些多返回值推断错误的问题
Expand Down
2 changes: 1 addition & 1 deletion build/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
exports.default = {
emmyDebuggerVersion: '1.8.2',
emmyDebuggerUrl: 'https://github.com/EmmyLua/EmmyLuaDebugger/releases/download',
newLanguageServerVersion: "0.3.2",
newLanguageServerVersion: "0.4.4",
newLanguageServerUrl: "https://github.com/CppCXY/emmylua-analyzer-rust/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.9.8",
"version": "0.9.9",
"icon": "res/icon.png",
"publisher": "tangzx",
"engines": {
Expand Down

0 comments on commit aa1701a

Please sign in to comment.