Skip to content

Commit

Permalink
0.6.10
Browse files Browse the repository at this point in the history
  • Loading branch information
CppCXY committed Apr 18, 2024
1 parent d62defd commit bf1714d
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 2 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,43 @@

[English Change Log](CHANGELOG_EN.md)

# 0.6.10

`NEW` 现在支持从配置文件配置语言服务, 你可以在工作区创建.emmyrc.json, 具体格式目前是:
```json
{
"completion": {
"autoRequire": true,
"callSnippet": false,
"postfix": "@"
},
"diagnostics": {
"disable": [],
"globals": []
},
"hint": {},
"runtime": {
"version": "Lua5.4"
},
"workspace": {
"ignoreDir": [
"test"
],
"library": [],
"workspaceRoots": [],
"preloadFileSize": 2048000
}
}
```

`NEW` 现在提供工作区诊断和工作区禁用诊断

`NEW` 支持在工作区内配置root路径, 这样require路径将会从root开始, root可以配置多个

`NEW` 支持配置第三方库目录

`NEW` 支持通过_G定义全局变量, 例如_G.aa = 123, 但是找不到引用目前

# 0.6.9

`FIX` 修复全局变量判断问题
Expand Down
37 changes: 37 additions & 0 deletions CHANGELOG_EN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,42 @@
# Change Log

# 0.6.10

`NEW` Now supports configuring the language service from the configuration file, you can create .emmyrc.json in the workspace, the specific format is currently:
```json
{
"completion": {
"autoRequire": true,
"callSnippet": false,
"postfix": "@"
},
"diagnostics": {
"disable": [],
"globals": []
},
"hint": {},
"runtime": {
"version": "Lua5.4"
},
"workspace": {
"ignoreDir": [
"test"
],
"library": [],
"workspaceRoots": [],
"preloadFileSize": 2048000
}
}
```

`NEW` Now provides workspace diagnostics and workspace disable diagnostics

`NEW` Supports configuring the root path within the workspace, so the require path will start from the root, and multiple roots can be configured

`NEW` Supports configuring third-party library directories

`NEW` Supports defining global variables through _G, for example _G.aa = 123, but the reference cannot be found currently

# 0.6.9

`FIX` Fixed global variable detection issue
Expand Down
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.1.8",
newLanguageServerVersion: "0.1.9",
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.9",
"version": "0.6.10",
"icon": "res/icon.png",
"publisher": "tangzx",
"engines": {
Expand Down

0 comments on commit bf1714d

Please sign in to comment.