Skip to content

Commit 4214ac4

Browse files
committed
0.12.0
1 parent c88a84f commit 4214ac4

File tree

3 files changed

+74
-7
lines changed

3 files changed

+74
-7
lines changed

CHANGELOG.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
11
# Change Log
22

3+
## 0.12.0
4+
5+
`NEW` 当代码超过指定行宽时会自动折行,该行为可能会产生不如意的代码排版。这时候建议ctrl z之后手动排版再格式化。
6+
7+
`FIX` 修复索引表达式中涉及长字符串时,格式化导致的语法错误
8+
9+
## 0.11.4
10+
11+
`CHANGE` 更新基本词典
12+
13+
`NEW` 支持字符串中的拼写检查
14+
15+
## 0.11.3
16+
17+
`CHANGE` 更新词典
18+
19+
`CHANGE` 语言服务按lsp3.17版本重新设计, 诊断采用lsp规定的方式诊断。
20+
21+
## 0.11.2
22+
23+
`CHANGE` 更新lua常用词词典
24+
25+
## 0.11.0
26+
27+
`CHANGE` 重构了语言服务的代码组织,暂时移除插件对补全的影响,插件不在代码补全时提示模块了
28+
29+
`CHANGE` 优化了模块诊断时提示的内容
30+
31+
`NEW` 提供针对lua优化的标识符单词拼写检查算法
32+
33+
`NEW` 提供了新的格式化选项:
34+
* `remove_empty_header_and_footer_lines_in_function` 允许移除函数的上面和下面多余空行
35+
* `remove_expression_list_finish_comma` 允许移除函数调用时最后一个逗号(这本身是一个语法错误)
36+
37+
## 0.10.3
38+
39+
`NEW` 命令行工具支持使用通配符过滤
40+
41+
## 0.10.2
42+
43+
`CHANGE` 默认情况下namedef和attribute会有一个空格的距离
44+
45+
`NEW` 行布局支持使用`maxLine:$n`指定与下一行的最大行距
46+
47+
`NEW` 行宽允许设定为unset
48+
49+
`CHANGE` 函数调用的排版方式变更,更符合lua中的一些使用习惯
50+
51+
352
## 0.10.0
453

554
`NEW` vscode插件端实现配置EmmyluaCodeStyle开关`模块诊断`,`代码风格诊断`, `模块补全`.

README.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,18 @@
99
该项目主要追求的是合理的格式化,多样的代码风格诊断
1010

1111
该项目除了提供语言服务实例,也提供独立的命令行工具CodeFormat,他能用于批量的代码格式化和代码风格检查。
12+
## Feature
13+
14+
* 文档格式化
15+
* 范围格式化
16+
* 代码格式检查
17+
* 代码拼写检查
18+
* 可以作为lua库/cli工具/C++解析lua库/语言服务使用
19+
1220
## RoadMap
13-
* new linter[进度...新建文件夹]
14-
* code quality check[%0]
21+
22+
* 重写范围格式化[0%]
23+
* 重新实现type formatting[0%]
1524
* plugin[0%]
1625

1726
## 文档

README_EN.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,28 @@ This project is an example of Lua code analysis\formatting\code diagnosis algori
88

99
The main pursuit of this project is reasonable formatting and diagnosis of various code styles
1010

11-
In addition to providing language service examples, the project also provides an independent command line tool CodeFormat, which can be used for batch code formatting and code style checking.
11+
In addition to providing language service examples, the project also provides an independent command line tool CodeFormat, which can be used for batch code formatting and code style checking.
12+
13+
## Feature
14+
15+
* Document formatting
16+
* Range formatting
17+
* Code format check
18+
* Code spell check
19+
* Can be used as a lua library/cli tool/C++ parsing lua library/language server
20+
1221
## RoadMap
13-
* new linter[0%]
14-
* code quality check[0%]
22+
* reimplement range formatting[0%]
23+
* reimplement type formatting[0%]
1524
* plugin[0%]
25+
1626
## Document
1727
* [Usage](docs/usage_EN.md)
1828
* [Introduction to formatting behavior](docs/format_action_EN.md)
1929
* [How to configure formatting](docs/format_config_EN.md)
2030
* [Code diagnosis configuration](docs/diagnosis_config_EN.md)
2131
* [auto import configuration](docs/auto_import_config_EN.md)
22-
# Contribute
23-
32+
## Contribute
2433
Any pr or issue are welcome
2534

2635
## Build

0 commit comments

Comments
 (0)