Skip to content

Commit 2ce8da6

Browse files
committed
0.7.2
1 parent 68b717a commit 2ce8da6

File tree

6 files changed

+471
-4
lines changed

6 files changed

+471
-4
lines changed

CHANGELOG.md

+42
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,48 @@
22

33
[English Change Log](CHANGELOG_EN.md)
44

5+
# 0.7.2
6+
7+
`NEW` 默认启用codelens功能
8+
9+
`NEW` 支持`.1`形式的小数
10+
11+
`NEW` 工作区代码诊断并行化会充分利用多核CPU的优势
12+
13+
`NEW` 文档诊断异步化, 并内置延迟1秒的防抖机制, 减少诊断对性能的影响
14+
15+
`NEW` 文档更新延迟0.1秒, 在快速键入时不会马上文档的内容
16+
17+
`NEW` 优化工作区内的文件监听更新机制, 支持批量更新(主要是git等版本管理工具的更新)
18+
19+
`NEW` 支持类的可调用推断, 例如:
20+
```lua
21+
---@class A
22+
---@overload fun(a, b, c): A
23+
A = {}
24+
25+
local a = A(1, 2, 3) -- A
26+
```
27+
28+
`NEW` 支持严格模式配置, 当前存在的严格模式配置是:
29+
```json
30+
{
31+
"strict": {
32+
"requirePath": true,
33+
"typeCall": true
34+
}
35+
}
36+
```
37+
在如果设置`requirePath: false`则允许require路径不从根目录开始, 如果设置`typeCall: false`则允许对任意类型的直接调用返回类型本身.
38+
39+
`FIX` 修复一些推断问题
40+
41+
`FIX` 修复工作区重叠时, 因为重复添加文件导致的崩溃
42+
43+
`FIX` 修复内联注释判断逻辑
44+
45+
`FIX` 优化泛型函数推断
46+
547
# 0.7.1
648

749
`FIX` 调试器回滚到1.7.1, 下个版本再更新调试器

CHANGELOG_EN.md

+42
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# Change Log
22

3+
# 0.7.2
4+
5+
`NEW` CodeLens feature is enabled by default
6+
7+
`NEW` Support for decimals in the form of `.1`
8+
9+
`NEW` Workspace code diagnostics are parallelized to take full advantage of multi-core CPUs
10+
11+
`NEW` Document diagnostics are asynchronous and include a built-in 1-second debounce mechanism to reduce the impact on performance
12+
13+
`NEW` Document updates are delayed by 0.1 seconds, so the document content is not immediately updated when typing quickly
14+
15+
`NEW` Optimized file monitoring update mechanism within the workspace, supporting batch updates (mainly updates from version control tools like git)
16+
17+
`NEW` Support for callable inference of classes, for example:
18+
```lua
19+
---@class A
20+
---@overload fun(a, b, c): A
21+
A = {}
22+
23+
local a = A(1, 2, 3) -- A
24+
```
25+
26+
`NEW` Support for strict mode configuration, the current strict mode configuration is:
27+
```json
28+
{
29+
"strict": {
30+
"requirePath": true,
31+
"typeCall": true
32+
}
33+
}
34+
```
35+
If `requirePath` is set to `false`, it allows require paths to not start from the root directory. If `typeCall` is set to `false`, it allows direct calls of any type to return the type itself.
36+
37+
`FIX` Fixed some inference issues
38+
39+
`FIX` Fixed crashes caused by duplicate file additions when workspaces overlap
40+
41+
`FIX` Fixed inline comment judgment logic
42+
43+
`FIX` Optimized generic function inference
44+
345
# 0.7.1
446

547
`FIX` Debugger rolled back to 1.7.1, the debugger will be updated in the next version

README.md

+14-1
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,17 @@ A: 附加调试会试图获取进程内的lua符号,判断当前的lua版本
2525

2626
Q: Emmy New Debug为什么连不上目标
2727

28-
A: 通常是由于插入代码require执行失败,或者`require("emmy_core")`返回true,这表明可执行文件没有导出lua符号
28+
A: 通常是由于插入代码require执行失败,或者`require("emmy_core")`返回true,这表明可执行文件没有导出lua符号
29+
30+
Q: 为什么打开项目后大量爆红
31+
32+
A: 这就是惊喜! 大部分爆红是因为emmylua检查到项目中有未定义的全局变量, 而大部分人没有给自己项目写annotation所以就会爆红了, 如果想快速修复它, 需要在创建.emmyrc.json之后填入
33+
```json
34+
{
35+
"diagnostics": {
36+
"disable": [
37+
"undefined-global"
38+
]
39+
},
40+
}
41+
```

build/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ exports.default = {
33
emmyDebuggerUrl: 'https://github.com/EmmyLua/EmmyLuaDebugger/releases/download',
44
lanServerVersion: "0.5.16",
55
lanServerUrl: 'https://github.com/EmmyLua/EmmyLua-LanguageServer/releases/download',
6-
newLanguageServerVersion: "0.2.3",
6+
newLanguageServerVersion: "0.2.4",
77
newLanguageServerUrl: "https://github.com/CppCXY/EmmyLuaAnalyzer/releases/download"
88
}

package.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "emmylua",
33
"displayName": "EmmyLua",
44
"description": "EmmyLua for vscode",
5-
"version": "0.7.1",
5+
"version": "0.7.2",
66
"icon": "res/icon.png",
77
"publisher": "tangzx",
88
"engines": {
@@ -439,6 +439,10 @@
439439
{
440440
"fileMatch": "emmy.config.json",
441441
"url": "./syntaxes/emmy.config.schema.json"
442+
},
443+
{
444+
"fileMatch": ".emmyrc.json",
445+
"url": "./syntaxes/schema.json"
442446
}
443447
],
444448
"colors": [],
@@ -475,4 +479,4 @@
475479
"vscode-languageclient": "9.0.1",
476480
"concat-map": "0.0.2"
477481
}
478-
}
482+
}

0 commit comments

Comments
 (0)