Skip to content

Commit a1d6cb9

Browse files
committed
3.0.2
1 parent d27193d commit a1d6cb9

File tree

8 files changed

+2022
-39
lines changed

8 files changed

+2022
-39
lines changed

README.md

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -34,41 +34,7 @@ https://github.com/sumneko/lua-language-server/wiki
3434
- [x] EmmyLua Annotation
3535
- [x] Multi Workspace
3636
- [x] Semantic Tokens
37-
- [ ] Type Format
38-
39-
## Preview
40-
41-
### Goto Definition
42-
43-
![avatar](https://github.com/sumneko/vscode-lua/raw/master/images//Goto%20Definition.gif)
44-
45-
### Find All References
46-
47-
![avatar](https://github.com/sumneko/vscode-lua/raw/master/images//Find%20All%20References.gif)
48-
49-
### Hover
50-
51-
![avatar](https://github.com/sumneko/vscode-lua/raw/master/images/Hover.gif)
52-
53-
### Diagnostics
54-
55-
![avatar](https://github.com/sumneko/vscode-lua/raw/master/images/Diagnostics.gif)
56-
57-
### Rename
58-
59-
![avatar](https://github.com/sumneko/vscode-lua/raw/master/images/Rename.gif)
60-
61-
### Auto Completion
62-
63-
![avatar](https://github.com/sumneko/vscode-lua/raw/master/images/Auto%20Completion.gif)
64-
65-
### Signature Help
66-
67-
![avatar](https://github.com/sumneko/vscode-lua/raw/master/images/Signature%20Help.gif)
68-
69-
### Emmy Annotation
70-
71-
![avatar](https://github.com/sumneko/vscode-lua/raw/master/images/Emmy%20Annotation.gif)
37+
- [x] Formatter
7238

7339
## Version
7440

@@ -89,6 +55,7 @@ If you find any mistakes, please [tell me][issues] or use [Pull Requests][@meta]
8955

9056
- [x] en-us
9157
- [x] zh-cn
58+
- [x] zh-tw (thanks [AlexCai2019](https://github.com/AlexCai2019))
9259
- [x] pt-br (thanks [Jeferson Ferreira](https://github.com/jefersonf))
9360

9461
Please [help me][en-US] improve the quality of `en-US`.

changelog.md

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

3+
## 3.0.2
4+
`2022-4-15`
5+
* `FIX` `table<string, boolean>[string] -> boolean`
6+
* `FIX` goto `type definition`
7+
* `FIX` [#1050](https://github.com/sumneko/lua-language-server/issues/1050)
8+
39
## 3.0.1
410
`2022-4-11`
511
* `FIX` [#1033](https://github.com/sumneko/lua-language-server/issues/1033)

client/package-lock.json

Lines changed: 125 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1709,5 +1709,5 @@
17091709
"type": "git",
17101710
"url": "https://github.com/sumneko/lua-language-server"
17111711
},
1712-
"version": "3.0.1"
1712+
"version": "3.0.2"
17131713
}

package.nls.zh-tw.json

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
{
2+
"config.IntelliSense.traceBeSetted": "請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。 ",
3+
"config.IntelliSense.traceFieldInject": "請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。 ",
4+
"config.IntelliSense.traceLocalSet": "請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。 ",
5+
"config.IntelliSense.traceReturn": "請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。 ",
6+
"config.color.mode": "著色模式。 ",
7+
"config.color.mode.Grammar": "語法著色。 ",
8+
"config.color.mode.Semantic": "語義著色。你可能需要同時將`editor.semanticHighlighting.enabled` 設定為`true` 才能生效。 ",
9+
"config.color.mode.SemanticEnhanced": "增強的語義顏色。類似於`Semantic`,但會進行額外的分析(也會帶來額外的開銷)。 ",
10+
"config.completion.autoRequire": "輸入內容看起來是個檔名時,自動`require` 此檔案。 ",
11+
"config.completion.callSnippet": "顯示函式呼叫片段。",
12+
"config.completion.callSnippet.Both": "顯示`函式名` 與`呼叫片段`。 ",
13+
"config.completion.callSnippet.Disable": "只顯示`函式名`。 ",
14+
"config.completion.callSnippet.Replace": "只顯示`呼叫片段`。 ",
15+
"config.completion.displayContext": "預覽建議的相關程式碼片段,可能可以幫助你了解這項建議的用法。設定的數字表示程式碼片段的截取行數,設定為`0`可以禁用此功能。 ",
16+
"config.completion.enable": "啟用自動完成。",
17+
"config.completion.keywordSnippet": "顯示關鍵字語法片段",
18+
"config.completion.keywordSnippet.Both": "顯示`關鍵字` 與`語法片段`。 ",
19+
"config.completion.keywordSnippet.Disable": "只顯示`關鍵字`。 ",
20+
"config.completion.keywordSnippet.Replace": "只顯示`語法片段`。 ",
21+
"config.completion.postfix": "用於觸發後綴建議的符號。 ",
22+
"config.completion.requireSeparator": "`require` 時使用的分隔符。 ",
23+
"config.completion.showParams": "在建議列表中顯示函式的參數訊息,函式擁有多個定義時會分開顯示。 ",
24+
"config.completion.showWord": "在建議中顯示上下文單詞。 ",
25+
"config.completion.showWord.Disable": "不顯示上下文單詞。 ",
26+
"config.completion.showWord.Enable": "總是在建議中顯示上下文單詞。 ",
27+
"config.completion.showWord.Fallback": "無法根據語義提供建議時才顯示上下文單詞。 ",
28+
"config.completion.workspaceWord": "顯示的上下文單詞是否包含工作區中其他檔案的內容。 ",
29+
"config.develop.debuggerPort": "除錯器監聽埠。",
30+
"config.develop.debuggerWait": "除錯器連接之前掛起。",
31+
"config.develop.enable": "開發者模式。請勿開啟,會影響效能。",
32+
"config.diagnostics.ambiguity-1": "優先級歧義,如:`num or 0 + 1`,推測使用者的實際期望為`(num or 0) + 1` ",
33+
"config.diagnostics.disable": "禁用的診斷(使用浮框括號內的程式碼)。",
34+
"config.diagnostics.duplicate-index": "在字面常數表中重複定義了索引",
35+
"config.diagnostics.empty-block": "空程式碼區塊",
36+
"config.diagnostics.enable": "啟用診斷。",
37+
"config.diagnostics.files.Disable": "不診斷這些檔案。",
38+
"config.diagnostics.files.Enable": "總是診斷這些檔案。",
39+
"config.diagnostics.files.Opened": "只有打開這些檔案時才會診斷。",
40+
"config.diagnostics.global-in-nil-env": "不能使用全域變數( `_ENV` 被設定為了`nil`)",
41+
"config.diagnostics.globals": "已定義的全域變數。",
42+
"config.diagnostics.ignoredFiles": "如何診斷被忽略的檔案。",
43+
"config.diagnostics.libraryFiles": "如何診斷通過`Lua.workspace.library` 載入的檔案。",
44+
"config.diagnostics.lowercase-global": "首字母小寫的全域變數定義",
45+
"config.diagnostics.neededFileStatus": "* Opened: 只診斷打開的檔案\n* Any: 診斷任何檔案\n* Disable: 禁用此診斷\n",
46+
"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": "賦值操作時,值的數量比被賦值的對像多",
51+
"config.diagnostics.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": "未使用的不定參數",
59+
"config.diagnostics.workspaceDelay": "進行工作區診斷的延遲(毫秒)。當你啟動工作區,或編輯了任意檔案後,將會在後台對整個工作區進行重新診斷。設定為負數可以禁用工作區診斷。",
60+
"config.diagnostics.workspaceRate": "工作區診斷的執行速率(百分比)。降低該值會減少CPU佔用,但是也會降低工作區診斷的速度。你目前正在編輯的檔案的診斷總是全速完成,不受該選項影響。",
61+
"config.format.enable": "啟用程式碼格式化程式。",
62+
"config.hint.arrayIndex": "在構造表時提示數組索引。",
63+
"config.hint.arrayIndex.Auto": "只有表大於3項,或者表是混合類型時才進行提示。",
64+
"config.hint.arrayIndex.Disable": "禁用數組索引提示。",
65+
"config.hint.arrayIndex.Enable": "所有的表中都提示數組索引。",
66+
"config.hint.enable": "啟用內嵌提示。",
67+
"config.hint.paramName": "在函式呼叫處提示參數名。",
68+
"config.hint.paramName.All": "所有類型的參數均進行提示。",
69+
"config.hint.paramName.Disable": "禁用參數提示。",
70+
"config.hint.paramName.Literal": "只有字面常數類型的參數進行提示。",
71+
"config.hint.paramType": "在函式的參數位置提示類型。",
72+
"config.hint.setType": "在賦值操作位置提示類型。",
73+
"config.hover.enable": "啟用懸浮提示。 ",
74+
"config.hover.enumsLimit": "當值對應多個類型時,限制類型的顯示數量。 ",
75+
"config.hover.fieldInfer": "懸浮提示查看表時,會對錶的每個欄位進行類型推測,當類型推測的用時累計達到該設定值(毫秒)時,將跳過後續欄位的類型推測。 ",
76+
"config.hover.previewFields": "懸浮提示查看表時,限製表內欄位的最大預覽數量。 ",
77+
"config.hover.viewNumber": "懸浮提示查看數字內容(僅當字面常數不是十進制時)。 ",
78+
"config.hover.viewString": "懸浮提示查看字串內容(僅當字面常數包含轉義符時)。 ",
79+
"config.hover.viewStringMax": "懸浮提示查看字串內容時的最大長度。 ",
80+
"config.intelliSense.fastGlobal": "在對全域變數進行補全,及查看`_G` 的懸浮提示時進行最佳化。這會略微降低類型推測的準確度,但是對於大量使用全域變數的項目會有大幅的效能提升。",
81+
"config.intelliSense.searchDepth": "設定智慧感知的搜尋深度。增大該值可以增加準確度,但會降低效能。不同的項目對該設定的容忍度差異較大,請自己調整為合適的值。",
82+
"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",
84+
"config.runtime.fileEncoding": "檔案編碼,`ansi` 選項只在`Windows` 平台下有效。",
85+
"config.runtime.nonstandardSymbol": "支援非標準的符號。請務必確認你的執行環境支援這些符號。",
86+
"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",
87+
"config.runtime.pathStrict": "啟用後`runtime.path` 將只搜尋第一層目錄,見`runtime.path` 的說明。 ",
88+
"config.runtime.plugin": "延伸模組路徑,請查閱[文件](https://github.com/sumneko/lua-language-server/wiki/Plugin)了解用法。",
89+
"config.runtime.special": "將自定義全域變數視為一些特殊的內置變數,語言服務將提供特殊的支援。\n下面這個例子表示將`include` 視為`require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
90+
"config.runtime.unicodeName": "允許在名字中使用Unicode 字元。",
91+
"config.runtime.version": "Lua執行版本。",
92+
"config.semantic.annotation": "對類型註解進行語義著色。 ",
93+
"config.semantic.enable": "啟用語義著色。你可能需要同時將`editor.semanticHighlighting.enabled` 設定為`true` 才能生效。 ",
94+
"config.semantic.keyword": "對關鍵字/字面常數/運算符進行語義著色。只有當你的編輯器無法進行語法著色時才需要啟用此功能。 ",
95+
"config.semantic.variable": "對變數/欄位/參數進行語義著色。 ",
96+
"config.signatureHelp.enable": "啟用參數提示。 ",
97+
"config.telemetry.enable": "啟用遙測,通過網路發送你的編輯器訊息與錯誤日誌。在[此處](https://github.com/s umneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)閱讀我們的隱私聲明。\n",
98+
"config.window.progressBar": "在狀態欄顯示進度條。",
99+
"config.window.statusBar": "在狀態欄顯示延伸模組狀態。",
100+
"config.workspace.checkThirdParty": "自動檢測與適配第三方庫,目前支援的庫為:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* LÖVR\n* skynet\n* Jass\n",
101+
"config.workspace.ignoreDir": "忽略的檔案與目錄(使用`.gitignore` 語法)。",
102+
"config.workspace.ignoreSubmodules": "忽略子模組。",
103+
"config.workspace.library": "除了目前工作區以外,還會從哪些目錄中載入檔案。這些目錄中的檔案將被視作外部提供的程式碼庫,部分操作(如重命名欄位)不會修改這些檔案。 ",
104+
"config.workspace.maxPreload": "最大預載入檔案數。 ",
105+
"config.workspace.preloadFileSize": "預載入時跳過大小大於該值(KB)的檔案。 ",
106+
"config.workspace.useGitIgnore": "忽略`.gitignore` 中列舉的檔案。",
107+
"config.workspace.userThirdParty": "在這裡添加私有的第三方庫適配檔案路徑,請參考內置的[配置檔案路徑](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)"
108+
}

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.0.1"
3+
local VERSION = "3.0.2"
44

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

server

0 commit comments

Comments
 (0)