Skip to content

Commit

Permalink
0.6.18
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed May 12, 2024
1 parent 29ff24b commit c722bd1
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 21 deletions.
47 changes: 47 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,53 @@

[English Change Log](CHANGELOG_EN.md)

# next-version

下个版本会升级到0.7.0, 届时java版本的语言服务会默认禁用

# 0.6.18

`NEW` 支持`---@verson`注解, 格式为: `---@version [>|<|>=|<=] [<framework>] <version>, ...`

`NEW` 支持配置`runtime.frameworkVersions`, 配置格式为:
```json
{
"runtime": {
"frameworkVersions": [
"openresty 1.2.0"
]
}
}
```

`NEW` 支持 diagnostic.globalsRegex, 用于配置全局变量的正则表达式, 例如:
```json
{
"diagnostics": {
"globalsRegex": [
"^ngx\\."
]
}
}
```

`NEW` 优化代码补全, 支持tablefield补全, 支持元字段补全

`NEW` 支持CodeLens功能, 通过配置codeLens.enable开启, 例如:
```json
{
"codeLens": {
"enable": true
}
}
```

`NEW` EmmyLuaAnalyzer项目新增EmmyLua.Cli工程, 用于生成文档, 代码检查等功能.

`NEW` 命令行工具支持生成文档目前实现非常简陋需要优化.

`FIX` 修复不少细节上的BUG

# 0.6.17

`NEW` 重构声明算法, 优化Hover时的提示, 现在hover时, 会展开alias的选项, 并且增加Go to 类型的跳转
Expand Down
43 changes: 43 additions & 0 deletions CHANGELOG_EN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,48 @@
# Change Log

# 0.6.18

`NEW` Support for `---@verson` annotation, format: `---@version [>|<|>=|<=] [<framework>] <version>, ...`

`NEW` Support for configuring `runtime.frameworkVersions`, configuration format is:
```json
{
"runtime": {
"frameworkVersions": [
"openresty 1.2.0"
]
}
}
```

`NEW` Support for diagnostic.globalsRegex, used to configure the regular expression for global variables, for example:
```json
{
"diagnostics": {
"globalsRegex": [
"^ngx\\."
]
}
}
```

`NEW` Optimized code completion, support for tablefield completion, support for metatable field completion

`NEW` Support for CodeLens feature, enabled by configuring codeLens.enable, for example:
```json
{
"codeLens": {
"enable": true
}
}
```

`NEW` The EmmyLuaAnalyzer project adds the EmmyLua.Cli project, used for generating documentation, code checking and other functions.

`NEW` The command line tool supports generating documentation, the current implementation is very rudimentary and needs optimization.

`FIX` Fixed many details of BUG

# 0.6.17

`NEW` Refactored the declaration algorithm, optimized the hover prompt. Now when hovering, alias options will be expanded, and a Go to type jump is added.
Expand Down
15 changes: 0 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,6 @@ Q: Emmy New Debug为什么连不上目标

A: 通常是由于插入代码require执行失败,或者`require("emmy_core")`返回true,这表明可执行文件没有导出lua符号

Q: 项目中有很多大文件并不想参与解析如何排除?

A: 在项目根目录创建`emmy.config.json`然后如下填写:
```json
{
"source": [
{
"dir": "./",
"exclude": [
"csv/**.lua"
]
}
]
}
```
Q: 全新的语言服务何时上线?

A: 现在已经上线, 去settings下搜索emmylua.new开启后重启vscode即可, 全新语言服务基于dotnet sdk 8, 需要自行下载
2 changes: 1 addition & 1 deletion build/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ exports.default = {
emmyDebuggerUrl: 'https://github.com/EmmyLua/EmmyLuaDebugger/releases/download',
lanServerVersion: "0.5.16",
lanServerUrl: 'https://github.com/EmmyLua/EmmyLua-LanguageServer/releases/download',
newLanguageServerVersion: "0.2.0",
newLanguageServerVersion: "0.2.1",
newLanguageServerUrl: "https://github.com/CppCXY/EmmyLuaAnalyzer/releases/download"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "emmylua",
"displayName": "EmmyLua",
"description": "EmmyLua for vscode",
"version": "0.6.17",
"version": "0.6.18",
"icon": "res/icon.png",
"publisher": "tangzx",
"engines": {
Expand Down
8 changes: 4 additions & 4 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ async function doStartServer() {
// TODO: 减少层级
'win32-x64',
'win32-x64',
'LanguageServer.exe'
'EmmyLua.LanguageServer.exe'
)
break;
case "linux":
Expand All @@ -260,7 +260,7 @@ async function doStartServer() {
// TODO
'linux-x64',
'linux-x64',
'LanguageServer'
'EmmyLua.LanguageServer'
)
fs.chmodSync(command, '777');
break;
Expand All @@ -271,15 +271,15 @@ async function doStartServer() {
'server',
'darwin-arm64',
'darwin-arm64',
'LanguageServer'
'EmmyLua.LanguageServer'
);
} else {
command = path.join(
context.extensionPath,
'server',
'darwin-x64',
'darwin-x64',
'LanguageServer'
'EmmyLua.LanguageServer'
);
}
fs.chmodSync(command, '777');
Expand Down

0 comments on commit c722bd1

Please sign in to comment.