Skip to content

Commit 124fa8a

Browse files
committed
3.2.3
1 parent ed1141e commit 124fa8a

File tree

10 files changed

+109
-89
lines changed

10 files changed

+109
-89
lines changed

changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# changelog
22

3+
## 3.2.3
4+
`2022-5-16`
5+
* `CHG` parse `.luarc.json` as jsonc. In order to please the editor, it also supports `.luarc.jsonc` as the file name.
6+
* `CHG` dose not load files in symbol links
7+
* `FIX` memory leak with symbol links
8+
* `FIX` diagnostic: send empty results to every file after startup
9+
* `FIX` [#1103](https://github.com/sumneko/lua-language-server/issues/1103)
10+
* `FIX` [#1107](https://github.com/sumneko/lua-language-server/issues/1107)
11+
312
## 3.2.2
413
`2022-4-26`
514
* `FIX` diagnostic: `unused-function` cannot handle recursion correctly

package.json

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1135,7 +1135,7 @@
11351135
"type": "object"
11361136
},
11371137
"Lua.format.enable": {
1138-
"default": "true",
1138+
"default": true,
11391139
"markdownDescription": "%config.format.enable%",
11401140
"scope": "resource",
11411141
"type": "boolean"
@@ -1610,10 +1610,21 @@
16101610
},
16111611
"jsonValidation": [
16121612
{
1613-
"fileMatch": ".luarc.json",
1613+
"fileMatch": [
1614+
".luarc.json",
1615+
".luarc.jsonc"
1616+
],
16141617
"url": "./setting/schema.json"
16151618
}
16161619
],
1620+
"languages": [
1621+
{
1622+
"filenames": [
1623+
".luarc.json"
1624+
],
1625+
"id": "jsonc"
1626+
}
1627+
],
16171628
"semanticTokenScopes": [
16181629
{
16191630
"language": "lua",
@@ -1752,5 +1763,5 @@
17521763
"type": "git",
17531764
"url": "https://github.com/sumneko/lua-language-server"
17541765
},
1755-
"version": "3.2.2"
1766+
"version": "3.2.3"
17561767
}

package.nls.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,33 +29,33 @@
2929
"config.develop.debuggerPort": "Listen port of debugger.",
3030
"config.develop.debuggerWait": "Suspend before debugger connects.",
3131
"config.develop.enable": "Developer mode. Do not enable, performance will be affected.",
32-
"config.diagnostics.ambiguity-1": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ",
32+
"config.diagnostics.ambiguity-1": "Enable ambiguous operator precedence diagnostics. For example, the `num or 0 + 1` expression will be suggested `(num or 0) + 1` instead.",
3333
"config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).",
34-
"config.diagnostics.duplicate-index": "在字面量表中重复定义了索引",
35-
"config.diagnostics.empty-block": "空代码块",
34+
"config.diagnostics.duplicate-index": "Enable duplicate table index diagnostics.",
35+
"config.diagnostics.empty-block": "Enable empty code block diagnostics.",
3636
"config.diagnostics.enable": "Enable diagnostics.",
3737
"config.diagnostics.files.Disable": "These files are not diagnosed.",
3838
"config.diagnostics.files.Enable": "Always diagnose these files.",
3939
"config.diagnostics.files.Opened": "Only when these files are opened will it be diagnosed.",
40-
"config.diagnostics.global-in-nil-env": "不能使用全局变量( `_ENV` 被设置为了 `nil`)",
40+
"config.diagnostics.global-in-nil-env": "Enable cannot use global variables ( `_ENV` is set to `nil`) diagnostics.",
4141
"config.diagnostics.globals": "Defined global variables.",
4242
"config.diagnostics.ignoredFiles": "How to diagnose ignored files.",
4343
"config.diagnostics.libraryFiles": "How to diagnose files loaded via `Lua.workspace.library`.",
44-
"config.diagnostics.lowercase-global": "首字母小写的全局变量定义",
44+
"config.diagnostics.lowercase-global": "Enable lowercase global variable definition diagnostics.",
4545
"config.diagnostics.neededFileStatus": "* Opened: only diagnose opened files\n* Any: diagnose all files\n* Disable: disable this diagnostic\n",
4646
"config.diagnostics.newfield-call": "在字面量表中,2行代码之间缺少分隔符,在语法上被解析为了一次索引操作",
47-
"config.diagnostics.newline-call": "`(` 开始的新行,在语法上被解析为了上一行的函数调用",
48-
"config.diagnostics.redefined-local": "重复定义的局部变量",
49-
"config.diagnostics.redundant-parameter": "函数调用时,传入了多余的参数",
50-
"config.diagnostics.redundant-value": "赋值操作时,值的数量比被赋值的对象多",
47+
"config.diagnostics.newline-call": "Enable newline call diagnostics. Is's raised when a line starting with `(` is encountered, which is syntactically parsed as a function call on the previous line.",
48+
"config.diagnostics.redefined-local": "Enable redefined local variable diagnostics.",
49+
"config.diagnostics.redundant-parameter": "Enable redundant function parameter diagnostics.",
50+
"config.diagnostics.redundant-value": "Enable the redundant values assigned diagnostics. It's raised during assignment operation, when the number of values is higher than the number of objects being assigned.",
5151
"config.diagnostics.severity": "Modified diagnostic severity.",
52-
"config.diagnostics.trailing-space": "后置空格",
53-
"config.diagnostics.undefined-env-child": "`_ENV` 被设置为了新的字面量表,但是试图获取的全局变量不再这张表中",
54-
"config.diagnostics.undefined-global": "未定义的全局变量",
55-
"config.diagnostics.unused-function": "未使用的函数",
56-
"config.diagnostics.unused-label": "未使用的标签",
57-
"config.diagnostics.unused-local": "未使用的局部变量",
58-
"config.diagnostics.unused-vararg": "未使用的不定参数",
52+
"config.diagnostics.trailing-space": "Enable trailing space diagnostics.",
53+
"config.diagnostics.undefined-env-child": "Enable undefined environment variable diagnostics. It's raised when `_ENV` table is set to a new literal table, but the used global variable is no longer present in the global environment.",
54+
"config.diagnostics.undefined-global": "Enable undefined global variable diagnostics.",
55+
"config.diagnostics.unused-function": "Enable unused function diagnostics.",
56+
"config.diagnostics.unused-label": "Enable unused label diagnostics.",
57+
"config.diagnostics.unused-local": "Enable unused local variable diagnostics.",
58+
"config.diagnostics.unused-vararg": "Enable unused vararg diagnostics.",
5959
"config.diagnostics.workspaceDelay": "Latency (milliseconds) for workspace diagnostics. When you start the workspace, or edit any file, the entire workspace will be re-diagnosed in the background. Set to negative to disable workspace diagnostics.",
6060
"config.diagnostics.workspaceRate": "Workspace diagnostics run rate (%). Decreasing this value reduces CPU usage, but also reduces the speed of workspace diagnostics. The diagnosis of the file you are currently editing is always done at full speed and is not affected by this setting.",
6161
"config.format.enable": "Enable code formatter.",

package.nls.zh-tw.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
"config.completion.callSnippet.Both": "顯示 `函式名` 與 `呼叫片段`。",
1313
"config.completion.callSnippet.Disable": "只顯示 `函式名`。",
1414
"config.completion.callSnippet.Replace": "只顯示 `呼叫片段`。",
15-
"config.completion.displayContext": "預覽建議的相關程式碼片段,可能可以幫助你瞭解這項建議的用法。設定的數字表示程式碼片段的截取行數,設定為`0`可以禁用此功能",
15+
"config.completion.displayContext": "預覽建議的相關程式碼片段,可能可以幫助你瞭解這項建議的用法。設定的數字表示程式碼片段的擷取行數,設定為`0`可以停用此功能",
1616
"config.completion.enable": "啟用自動完成。",
1717
"config.completion.keywordSnippet": "顯示關鍵字語法片段",
1818
"config.completion.keywordSnippet.Both": "顯示 `關鍵字` 與 `語法片段`。",
1919
"config.completion.keywordSnippet.Disable": "只顯示 `關鍵字`。",
2020
"config.completion.keywordSnippet.Replace": "只顯示 `語法片段`。",
2121
"config.completion.postfix": "用於觸發後綴建議的符號。",
2222
"config.completion.requireSeparator": "`require` 時使用的分隔符。",
23-
"config.completion.showParams": "在建議列表中顯示函式的參數訊息,函式擁有多個定義時會分開顯示。",
23+
"config.completion.showParams": "在建議列表中顯示函式的參數資訊,函式擁有多個定義時會分開顯示。",
2424
"config.completion.showWord": "在建議中顯示上下文單詞。",
2525
"config.completion.showWord.Disable": "不顯示上下文單詞。",
2626
"config.completion.showWord.Enable": "總是在建議中顯示上下文單詞。",
@@ -30,7 +30,7 @@
3030
"config.develop.debuggerWait": "除錯器連接之前懸置。",
3131
"config.develop.enable": "開發者模式。請勿開啟,會影響效能。",
3232
"config.diagnostics.ambiguity-1": "優先級歧義,如:`num or 0 + 1`,推測使用者的實際期望為 `(num or 0) + 1` ",
33-
"config.diagnostics.disable": "禁用的診斷(使用浮框括號內的程式碼)。",
33+
"config.diagnostics.disable": "停用的診斷(使用浮框括號內的程式碼)。",
3434
"config.diagnostics.duplicate-index": "在字面常數表中重複定義了索引",
3535
"config.diagnostics.empty-block": "空程式碼區塊",
3636
"config.diagnostics.enable": "啟用診斷。",
@@ -40,12 +40,12 @@
4040
"config.diagnostics.global-in-nil-env": "不能使用全域變數( `_ENV` 被設定為了 `nil`)",
4141
"config.diagnostics.globals": "已定義的全域變數。",
4242
"config.diagnostics.ignoredFiles": "如何診斷被忽略的檔案。",
43-
"config.diagnostics.libraryFiles": "如何診斷通過 `Lua.workspace.library` 載入的檔案。",
43+
"config.diagnostics.libraryFiles": "如何診斷透過 `Lua.workspace.library` 載入的檔案。",
4444
"config.diagnostics.lowercase-global": "首字母小寫的全域變數定義",
45-
"config.diagnostics.neededFileStatus": "* Opened: 只診斷打開的檔案\n* Any: 診斷任何檔案\n* Disable: 禁用此診斷\n",
45+
"config.diagnostics.neededFileStatus": "* Opened: 只診斷打開的檔案\n* Any: 診斷任何檔案\n* Disable: 停用此診斷\n",
4646
"config.diagnostics.newfield-call": "在字面常數表中,2行程式碼之間缺少分隔符,在語法上被解析為了一次索引操作",
4747
"config.diagnostics.newline-call": "以 `(` 開始的新行,在語法上被解析為了上一行的函式呼叫",
48-
"config.diagnostics.redefined-local": "重複定義的局部變數",
48+
"config.diagnostics.redefined-local": "重複定義的區域變數",
4949
"config.diagnostics.redundant-parameter": "函式呼叫時,傳入了多餘的參數",
5050
"config.diagnostics.redundant-value": "賦值操作時,值的數量比被賦值的對象多",
5151
"config.diagnostics.severity": "修改診斷等級。",
@@ -54,19 +54,19 @@
5454
"config.diagnostics.undefined-global": "未定義的全域變數",
5555
"config.diagnostics.unused-function": "未使用的函式",
5656
"config.diagnostics.unused-label": "未使用的標籤",
57-
"config.diagnostics.unused-local": "未使用的局部變數",
57+
"config.diagnostics.unused-local": "未使用的區域變數",
5858
"config.diagnostics.unused-vararg": "未使用的不定參數",
59-
"config.diagnostics.workspaceDelay": "進行工作區診斷的延遲(毫秒)。當你啟動工作區,或編輯了任意檔案後,將會在後台對整個工作區進行重新診斷。設定為負數可以禁用工作區診斷",
59+
"config.diagnostics.workspaceDelay": "進行工作區診斷的延遲(毫秒)。當你啟動工作區,或編輯了任意檔案後,將會在後台對整個工作區進行重新診斷。設定為負數可以停用工作區診斷",
6060
"config.diagnostics.workspaceRate": "工作區診斷的執行速率(百分比)。降低該值會減少CPU佔用,但是也會降低工作區診斷的速度。你目前正在編輯的檔案的診斷總是全速完成,不受該選項影響。",
6161
"config.format.enable": "啟用程式碼格式化程式。",
62-
"config.hint.arrayIndex": "在構造表時提示陣列索引",
62+
"config.hint.arrayIndex": "在建構表時提示陣列索引",
6363
"config.hint.arrayIndex.Auto": "只有表大於3項,或者表是混合類型時才進行提示。",
64-
"config.hint.arrayIndex.Disable": "禁用陣列索引提示",
64+
"config.hint.arrayIndex.Disable": "停用陣列索引提示",
6565
"config.hint.arrayIndex.Enable": "所有的表中都提示陣列索引。",
6666
"config.hint.enable": "啟用內嵌提示。",
6767
"config.hint.paramName": "在函式呼叫處提示參數名。",
6868
"config.hint.paramName.All": "所有類型的參數均進行提示。",
69-
"config.hint.paramName.Disable": "禁用參數提示",
69+
"config.hint.paramName.Disable": "停用參數提示",
7070
"config.hint.paramName.Literal": "只有字面常數類型的參數進行提示。",
7171
"config.hint.paramType": "在函式的參數位置提示類型。",
7272
"config.hint.setType": "在賦值操作位置提示類型。",
@@ -77,10 +77,10 @@
7777
"config.hover.viewNumber": "懸浮提示查看數字內容(僅當字面常數不是十進制時)。",
7878
"config.hover.viewString": "懸浮提示查看字串內容(僅當字面常數包含跳脫字元時)。",
7979
"config.hover.viewStringMax": "懸浮提示查看字串內容時的最大長度。",
80-
"config.intelliSense.fastGlobal": "在對全域變數進行補全,及查看 `_G` 的懸浮提示時進行最佳化。這會略微降低類型推測的準確度,但是對於大量使用全域變數的項目會有大幅的效能提升",
81-
"config.intelliSense.searchDepth": "設定智能感知的搜尋深度。增大該值可以增加準確度,但會降低效能。不同的項目對該設定的容忍度差異較大,請自己調整為合適的值。",
80+
"config.intelliSense.fastGlobal": "在對全域變數進行補全,及查看 `_G` 的懸浮提示時進行最佳化。這會略微降低類型推測的準確度,但是對於大量使用全域變數的專案會有大幅的效能提升",
81+
"config.intelliSense.searchDepth": "設定智慧感知的搜尋深度。增大該值可以增加準確度,但會降低效能。不同的工作區對該設定的容忍度差異較大,請自己調整為合適的值。",
8282
"config.misc.parameters": "VSCode中啟動語言服務時的[命令列參數](https://github.com/sumneko/lua-language-server/wiki/Command-line)。",
83-
"config.runtime.builtin": "調整內建庫的啟用狀態,你可以根據實際執行環境禁用掉不存在的庫(或重新定義)。\n\n* `default`: 表示庫會根據執行版本啟用或禁用\n* `enable`: 總是啟用\n* `disable`: 總是禁用\n",
83+
"config.runtime.builtin": "調整內建庫的啟用狀態,你可以根據實際執行環境停用不存在的庫(或重新定義)。\n\n* `default`: 表示庫會根據執行版本啟用或停用\n* `enable`: 總是啟用\n* `disable`: 總是停用\n",
8484
"config.runtime.fileEncoding": "檔案編碼,`ansi` 選項只在 `Windows` 平台下有效。",
8585
"config.runtime.nonstandardSymbol": "支援非標準的符號。請務必確認你的執行環境支援這些符號。",
8686
"config.runtime.path": "當使用 `require` 時,如何根據輸入的名字來查找檔案。\n此選項設定為 `?/init.lua` 意味著當你輸入 `require 'myfile'` 時,會從已載入的檔案中搜尋 `{workspace}/myfile/init.lua`。\n當 `runtime.pathStrict` 設定為 `false` 時,還會嘗試搜尋 `${workspace}/**/myfile/init.lua`。\n如果你想要載入工作區以外的檔案,你需要先設定 `Lua.workspace.library`。\n",
@@ -91,10 +91,10 @@
9191
"config.runtime.version": "Lua執行版本。",
9292
"config.semantic.annotation": "對類型註解進行語義著色。",
9393
"config.semantic.enable": "啟用語義著色。你可能需要同時將 `editor.semanticHighlighting.enabled` 設定為 `true` 才能生效。",
94-
"config.semantic.keyword": "對關鍵字/字面常數/運算符進行語義著色。只有當你的編輯器無法進行語法著色時才需要啟用此功能。",
94+
"config.semantic.keyword": "對關鍵字/字面常數/運算子進行語義著色。只有當你的編輯器無法進行語法著色時才需要啟用此功能。",
9595
"config.semantic.variable": "對變數/欄位/參數進行語義著色。",
9696
"config.signatureHelp.enable": "啟用參數提示。",
97-
"config.telemetry.enable": "啟用遙測,通過網路發送你的編輯器訊息與錯誤日誌。在[此處](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)閲讀我們的隱私聲明。\n",
97+
"config.telemetry.enable": "啟用遙測,透過網路發送你的編輯器資訊與錯誤日誌。在[此處](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%B1%E7%A7%81%E8%81%B2%E6%98%8E)閲讀我們的隱私聲明。\n",
9898
"config.window.progressBar": "在狀態欄顯示進度條。",
9999
"config.window.statusBar": "在狀態欄顯示延伸模組狀態。",
100100
"config.workspace.checkThirdParty": "自動檢測與適應第三方庫,目前支援的庫為:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",

package/build.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
local json = require 'json-beautify'
22

3-
local VERSION = "3.2.2"
3+
local VERSION = "3.2.3"
44

55
local package = require 'package.package'
66
local fsu = require 'fs-utility'

server

setting/schema-pt-br.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@
11991199
"type": "object"
12001200
},
12011201
"format.enable": {
1202-
"default": "true",
1202+
"default": true,
12031203
"markdownDescription": "Enable code formatter.",
12041204
"scope": "resource",
12051205
"type": "boolean"

setting/schema-zh-cn.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@
11991199
"type": "object"
12001200
},
12011201
"format.enable": {
1202-
"default": "true",
1202+
"default": true,
12031203
"markdownDescription": "启用代码格式化程序。",
12041204
"scope": "resource",
12051205
"type": "boolean"

0 commit comments

Comments
 (0)