Skip to content

Commit a8bb571

Browse files
committed
0.9.16
1 parent bbce4f8 commit a8bb571

File tree

5 files changed

+144
-4
lines changed

5 files changed

+144
-4
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22

33
[中文Log](CHANGELOG_CN.md)
44

5+
# 0.9.16
6+
7+
`NEW` Disable re-index in default, need to enable by `workspace.enableReindex`
8+
9+
`NEW` Add New Diagnostics `inject_field`, `missing_fields`, `redefined_local`, `undefined_field`, `inject-field`, `missing-global-doc`,
10+
`incomplete-signature-doc`, `circle-doc-class`, `assign-type-mismatch`, `unbalanced_assignments`, `check_return_count`, `duplicate_require`, `circle_doc_class`, `incomplete_signature_doc`, `unnecessary_assert`
11+
12+
`NEW` Support `true` and `false` as type
13+
14+
`NEW` Compact luals fun return syntax like: `(name: string, age: number)`
15+
16+
`NEW` Aliases and overloads of iterator functions (i.e `fun(v: any): (K, V)` where `K` is the key type and `V` is the value type) are now used to infer types in `for` loops
17+
18+
`NEW` Compact luals string template syntax like: xxx`T`, `T`, `T`XXX, usage:
19+
```lua
20+
21+
---@generic T
22+
---@class aaa.`T`.bbb
23+
---@return T
24+
function get_type(a)
25+
end
26+
27+
local d = get_type('xxx') --- aaa.xxx.bbb
28+
```
29+
30+
`NEW` Support `@see` any thing
31+
32+
`NEW` Enhance module documentation export
33+
34+
`NEW` Support `@module` usage: `---@module "module path"`
35+
36+
`NEW` Debugger updated, fixed a potential crash issue fixed by `@mxyf`
37+
538
# 0.9.15
639

740
`NEW` Allow disable underline for mutable variable

CHANGELOG_CN.md

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

3+
# 0.9.16
4+
5+
`NEW` 默认禁用重新索引,需要通过 `workspace.enableReindex` 启用
6+
7+
`NEW` 添加新的诊断:`inject_field``missing_fields``redefined_local``undefined_field``inject-field``missing-global-doc`
8+
`incomplete-signature-doc``circle-doc-class``assign-type-mismatch``unbalanced_assignments``check_return_count``duplicate_require``circle_doc_class``incomplete_signature_doc``unnecessary_assert`
9+
10+
`NEW` 支持将 `true``false` 作为类型
11+
12+
`NEW` 兼容格式化 luals 函数返回语法,如:`(name: string, age: number)`
13+
14+
`NEW` 迭代器函数的别名和重载(例如 `fun(v: any): (K, V)`,其中 `K` 为键类型,`V` 为值类型)现用于推断 `for` 循环中的类型
15+
16+
`NEW` 兼容格式化 luals 字符串模板语法,如:xxx`T``T``T`XXX,示例用法:
17+
```lua
18+
---@generic T
19+
---@class aaa.`T`.bbb
20+
---@return T
21+
function get_type(a)
22+
end
23+
24+
local d = get_type('xxx') --- aaa.xxx.bbb
25+
```
26+
27+
`NEW` 支持 `@see` 任意内容
28+
29+
`NEW` 加强模块文档导出
30+
31+
`NEW` 支持 `@module` 用法:`---@module "module path"`
32+
33+
`NEW` 调试器更新, 修复一个可能的崩溃问题 fixed by `@mxyf`
34+
335
# 0.9.15
436

537
`NEW` 允许禁用可变变量的下划线

build/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exports.default = {
2-
emmyDebuggerVersion: '1.8.2',
2+
emmyDebuggerVersion: '1.8.4',
33
emmyDebuggerUrl: 'https://github.com/EmmyLua/EmmyLuaDebugger/releases/download',
4-
newLanguageServerVersion: "0.5.4",
4+
newLanguageServerVersion: "0.6.0",
55
newLanguageServerUrl: "https://github.com/CppCXY/emmylua-analyzer-rust/releases/download"
66
}

package.json

Lines changed: 1 addition & 1 deletion
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.9.15",
5+
"version": "0.9.16",
66
"icon": "res/icon.png",
77
"publisher": "tangzx",
88
"engines": {

syntaxes/schema.json

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@
8787
"references": {
8888
"default": {
8989
"enable": true,
90-
"fuzzySearch": true
90+
"fuzzySearch": true,
91+
"shortStringSearch": false
9192
},
9293
"allOf": [
9394
{
@@ -152,6 +153,7 @@
152153
},
153154
"workspace": {
154155
"default": {
156+
"enableReindex": false,
155157
"encoding": "utf-8",
156158
"ignoreDir": [],
157159
"ignoreGlobs": [],
@@ -393,6 +395,69 @@
393395
"enum": [
394396
"duplicate-doc-field"
395397
]
398+
},
399+
{
400+
"description": "Missing fields",
401+
"type": "string",
402+
"enum": [
403+
"missing-fields"
404+
]
405+
},
406+
{
407+
"description": "Inject Field",
408+
"type": "string",
409+
"enum": [
410+
"inject-field"
411+
]
412+
},
413+
{
414+
"description": "Circle Doc Class",
415+
"type": "string",
416+
"enum": [
417+
"circle-doc-class"
418+
]
419+
},
420+
{
421+
"description": "Incomplete signature doc",
422+
"type": "string",
423+
"enum": [
424+
"incomplete-signature-doc"
425+
]
426+
},
427+
{
428+
"description": "Missing global doc",
429+
"type": "string",
430+
"enum": [
431+
"missing-global-doc"
432+
]
433+
},
434+
{
435+
"description": "Assign type mismatch",
436+
"type": "string",
437+
"enum": [
438+
"assign-type-mismatch"
439+
]
440+
},
441+
{
442+
"description": "Duplicate require",
443+
"type": "string",
444+
"enum": [
445+
"duplicate-require"
446+
]
447+
},
448+
{
449+
"description": "non-literal-expressions-in-assert",
450+
"type": "string",
451+
"enum": [
452+
"non-literal-expressions-in-assert"
453+
]
454+
},
455+
{
456+
"description": "unnecessary-assert",
457+
"type": "string",
458+
"enum": [
459+
"unnecessary-assert"
460+
]
396461
}
397462
]
398463
},
@@ -678,6 +743,11 @@
678743
"description": "Determines whether to enable fuzzy searching for fields where references cannot be found.",
679744
"default": true,
680745
"type": "boolean"
746+
},
747+
"shortStringSearch": {
748+
"description": "Cache Short string for search",
749+
"default": false,
750+
"type": "boolean"
681751
}
682752
}
683753
},
@@ -776,6 +846,11 @@
776846
"EmmyrcWorkspace": {
777847
"type": "object",
778848
"properties": {
849+
"enableReindex": {
850+
"description": "Enable reindex.",
851+
"default": false,
852+
"type": "boolean"
853+
},
779854
"encoding": {
780855
"description": "Encoding. eg: \"utf-8\"",
781856
"default": "utf-8",

0 commit comments

Comments
 (0)