Skip to content

Commit 5a64e08

Browse files
committed
update 0.7.0
1 parent ef5e2b7 commit 5a64e08

File tree

6 files changed

+53
-17
lines changed

6 files changed

+53
-17
lines changed

CHANGELOG.md

+20-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,27 @@
22

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

5-
# next
5+
# 0.8.18
66

7-
会考虑在intellij平台重新发布一个插件, 集成vscode端的内容
7+
`FIX` 修复参数为enum和alias时的代码补全列表包含了过多的引号
8+
9+
`FIX` 修复调试时inlineValues没有生效的问题
10+
11+
`NEW` '_' 不被视为未使用变量
12+
13+
`NEW` 枚举类型可以作为key, 参与推断
14+
15+
`NEW` 添加新的doc片段补全`param;@return`在函数语句上选择时会自动补全参数和return的doc
16+
17+
`NEW` 修复在intellij平台上多根目录的错误
18+
19+
`NEW` 支持代码格式化, 该功能通过pinvoke引用`EmmyLuaCodeStyle`实现
20+
21+
`NEW` VScode-EmmyLua-Unity插件已经发布, 使用Xlua的用户可以试着安装使用
22+
23+
`NEW` Intellij-EmmyLua2插件已经发布, jetbrain平台的用户可以试着使用该插件, 该插件内部集成vscode中所用的`EmmyLuaAnalyzer`, `EmmyLuaCodeStyle``EmmyLuaDebugger`, 未来还会上架`intellij-emmylua2-unity``intellij-emmylua2-attachdebugger`
24+
25+
`NEW` 新增配置文档: https://github.com/CppCXY/EmmyLuaAnalyzer/blob/master/docs/.emmyrc.json_CN.md
826

927
# 0.8.17
1028

CHANGELOG_EN.md

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

3-
# next
3+
# 0.8.18
44

5-
Consider re-releasing a plugin on the IntelliJ platform, integrating the content from the VSCode side.
5+
`FIX` Fixed the issue where the code completion list for parameters with enum and alias included too many quotes.
6+
7+
`FIX` Fixed the issue where inlineValues did not work during debugging.
8+
9+
`NEW` '_' is not considered an unused variable.
10+
11+
`NEW` Enum types can be used as keys and participate in inference.
12+
13+
`NEW` Added new doc snippet completion. When selecting `param;@return` on a function statement, it will automatically complete the doc for parameters and return.
14+
15+
`NEW` Fixed the error with multiple root directories on the IntelliJ platform.
16+
17+
`NEW` Added support for code formatting, which is implemented through the pinvoke reference `EmmyLuaCodeStyle`.
18+
19+
`NEW` VScode-EmmyLua-Unity plugin has been released. Users of Xlua can try installing and using it.
20+
21+
`NEW` Intellij-EmmyLua2 plugin has been released. Users on the Jetbrains platform can try using this plugin, which internally integrates `EmmyLuaAnalyzer`, `EmmyLuaCodeStyle`, and `EmmyLuaDebugger` used in vscode. In the future, `intellij-emmylua2-unity` and `intellij-emmylua2-attachdebugger` will also be available.
22+
23+
`NEW` Added configuration documentation: https://github.com/CppCXY/EmmyLuaAnalyzer/blob/master/docs/.emmyrc.json_EN.md
624

725
# 0.8.17
826

@@ -17,12 +35,11 @@ Consider re-releasing a plugin on the IntelliJ platform, integrating the content
1735
`NEW` VSCode-EmmyLua-Unity will be released soon (August 8, 2024). The API exported using this plugin will follow the rules of xlua and support jumping to the corresponding C# implementation for fields.
1836

1937
`NEW` Enum annotation `@enum` supports `key` attribute, for example:
20-
```lua举注解`@enum` 支持`key` attribute, 例如:
38+
```lua
2139
---@enum (key) AAA
2240
---| CS.A.B.C AAA
23-
``` CS.A.B.C
41+
```
2442
This way, during code completion, it will automatically complete as `CS.A.B.C` instead of `AAA.CS.A.B.C`.
25-
这样在代码补全时, 会自动补全为`CS.A.B.C`而不是`AAA.CS.A.B.C`
2643

2744
# 0.8.16
2845

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ FAQ:
1818

1919
Q: vscode-emmylua全家桶还有哪些?
2020

21-
A: [EmmyLuaCodeStyle](https://marketplace.visualstudio.com/items?itemName=CppCXY.emmylua-codestyle), 暂时废弃的[EmmyLuaUnity](https://marketplace.visualstudio.com/items?itemName=CppCXY.emmylua-unity)
21+
A: [EmmyLuaCodeStyle](https://marketplace.visualstudio.com/items?itemName=CppCXY.emmylua-codestyle), [EmmyLuaUnity](https://marketplace.visualstudio.com/items?itemName=CppCXY.emmylua-unity)
2222

2323
Q: 为什么附加调试没有作用?
2424

@@ -55,4 +55,4 @@ A: 原本的基于java的语言服务内存占用比较大, 另外存在各种
5555

5656
Q: 为什么没有文档?
5757

58-
A: 说得好, 没有空写文档.
58+
A: 配置文件的文档见 https://github.com/CppCXY/EmmyLuaAnalyzer/blob/master/docs/.emmyrc.json_CN.md

build/config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
exports.default = {
22
emmyDebuggerVersion: '1.8.2',
33
emmyDebuggerUrl: 'https://github.com/EmmyLua/EmmyLuaDebugger/releases/download',
4-
newLanguageServerVersion: "0.6.3",
4+
newLanguageServerVersion: "0.7.0",
55
newLanguageServerUrl: "https://github.com/CppCXY/EmmyLuaAnalyzer/releases/download"
66
}

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

src/extension.ts

+7-6
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,13 @@ async function doStartServer() {
103103
const context = ctx.extensionContext;
104104
const clientOptions: LanguageClientOptions = {
105105
documentSelector: [{ scheme: 'file', language: ctx.LANGUAGE_ID }],
106-
synchronize: {
107-
configurationSection: ["emmylua", "files.associations"],
108-
fileEvents: [
109-
vscode.workspace.createFileSystemWatcher("**/*.lua")
110-
]
111-
},
106+
// synchronize: {
107+
// configurationSection: ["emmylua", "files.associations"],
108+
// fileEvents: [
109+
// vscode.workspace.createFileSystemWatcher("**/*.lua"),
110+
// vscode.workspace.createFileSystemWatcher("**/.editorconfig"),
111+
// ]
112+
// },
112113
initializationOptions: {}
113114
};
114115

0 commit comments

Comments
 (0)