Skip to content

Commit 60bae87

Browse files
committed
0.7.7
1 parent 97189ae commit 60bae87

File tree

5 files changed

+88
-3
lines changed

5 files changed

+88
-3
lines changed

CHANGELOG.md

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

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

5+
# 0.7.7
6+
7+
`FIX` 修复\u{xxx}为UTF8编码无效区的时候语言服务报错的BUG
8+
9+
`FIX` 全局变量现在保持唯一, 如果某处全局变量的定义使用了emmylua doc, 则为优先定义, 否则为随机定义
10+
11+
`FIX` alias递归定义时, 避免无限递归推断
12+
13+
`FIX` 修复一些推断上的BUG
14+
15+
`FIX` 优化悬浮和补全项的文档提示
16+
17+
`CHG` 现在变量不会直接等同右侧表达式类型, 每个变量拥有一个匿名的独立类型, 防止从表达式返回的类型被修改
18+
19+
`FIX` 修复class类似的函数返回类型推断问题, 避免无数类型发生联合
20+
521
# 0.7.6
622

723
`FIX` 修复父类补全失效

CHANGELOG_EN.md

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

3+
# 0.7.7
4+
5+
`FIX` Fixed the bug where the language service reports an error when \u{xxx} is in the invalid area of UTF8 encoding
6+
7+
`FIX` Global variables are now kept unique. If a global variable definition uses emmylua doc somewhere, it is the priority definition, otherwise it is a random definition
8+
9+
`FIX` Avoid infinite recursive inference when alias is recursively defined
10+
11+
`FIX` Fixed some inference bugs
12+
13+
`FIX` Optimized document prompts for hover and completion items
14+
15+
`CHG` Now variables will not directly equal the type of the right-hand expression. Each variable has an anonymous independent type to prevent the type returned from the expression from being modified
16+
17+
`FIX` Fixed the inference problem of the return type of class-like functions to avoid countless types of unions
318

419
# 0.7.6
520

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.3.2",
6+
newLanguageServerVersion: "0.3.3",
77
newLanguageServerUrl: "https://github.com/CppCXY/EmmyLuaAnalyzer/releases/download"
88
}

package.json

+1-1
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.6",
5+
"version": "0.7.7",
66
"icon": "res/icon.png",
77
"publisher": "tangzx",
88
"engines": {

syntaxes/schema.json

+55-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,13 @@
7272
"undefined-global",
7373
"need-import",
7474
"deprecated",
75-
"access-private-member"
75+
"access-private-member",
76+
"access-protected-member",
77+
"access-package-member",
78+
"no-discard",
79+
"disable-global-define",
80+
"undefined-field",
81+
"local-const-reassign"
7682
]
7783
}
7884
},
@@ -154,10 +160,58 @@
154160
"access-private-member": {
155161
"$ref": "#/definitions/Diagnostics/properties/severity/properties/none"
156162
},
163+
"access-protected-member": {
164+
"$ref": "#/definitions/Diagnostics/properties/severity/properties/none"
165+
},
166+
"access-package-member": {
167+
"$ref": "#/definitions/Diagnostics/properties/severity/properties/none"
168+
},
169+
"no-discard": {
170+
"$ref": "#/definitions/Diagnostics/properties/severity/properties/none"
171+
},
172+
"disable-global-define": {
173+
"$ref": "#/definitions/Diagnostics/properties/severity/properties/none"
174+
},
175+
"undefined-field": {
176+
"$ref": "#/definitions/Diagnostics/properties/severity/properties/none"
177+
},
178+
"local-const-reassign": {
179+
"$ref": "#/definitions/Diagnostics/properties/severity/properties/none"
180+
},
157181
"*": {
158182
"$ref": "#/definitions/Diagnostics/properties/severity/properties/none"
159183
}
160184
}
185+
},
186+
"enables": {
187+
"type": [
188+
"array",
189+
"null"
190+
],
191+
"items": {
192+
"type": "string",
193+
"enum": [
194+
"none",
195+
"syntax-error",
196+
"type-not-found",
197+
"missing-return",
198+
"type-not-match",
199+
"missing-parameter",
200+
"inject-field-fail",
201+
"unreachable-code",
202+
"unused",
203+
"undefined-global",
204+
"need-import",
205+
"deprecated",
206+
"access-private-member",
207+
"access-protected-member",
208+
"access-package-member",
209+
"no-discard",
210+
"disable-global-define",
211+
"undefined-field",
212+
"local-const-reassign"
213+
]
214+
}
161215
}
162216
}
163217
},

0 commit comments

Comments
 (0)