Skip to content

Commit 2db6b9e

Browse files
committed
3.2.4
1 parent 9fc24e8 commit 2db6b9e

File tree

12 files changed

+174
-4
lines changed

12 files changed

+174
-4
lines changed

changelog.md

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

3+
## 3.2.4
4+
`2022-5-25`
5+
* `NEW` settings:
6+
+ `workspace.supportScheme`: `["file", "untitled", "git"]`
7+
+ `diagnostics.disableScheme`: `["git"]`
8+
* `NEW` folding: support folding `---@alias`
9+
* `CHG` if `rootUri` or `workspaceFolder` is set to `ROOT` or `HOME`, this extension will refuse to load these directories and show an error message.
10+
* `CHG` show warning message when scanning more than 100,000 files.
11+
* `CHG` upgrade [LSP](https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/) to `3.17`
12+
* `FIX` hover: can not union `table` with other basic types
13+
* `FIX` [#1125](https://github.com/sumneko/lua-language-server/issues/1125)
14+
* `FIX` [#1131](https://github.com/sumneko/lua-language-server/issues/1131)
15+
* `FIX` [#1134](https://github.com/sumneko/lua-language-server/issues/1134)
16+
* `FIX` [#1141](https://github.com/sumneko/lua-language-server/issues/1141)
17+
* `FIX` [#1144](https://github.com/sumneko/lua-language-server/issues/1144)
18+
* `FIX` [#1150](https://github.com/sumneko/lua-language-server/issues/1150)
19+
* `FIX` [#1155](https://github.com/sumneko/lua-language-server/issues/1155)
20+
321
## 3.2.3
422
`2022-5-16`
523
* `CHG` parse `.luarc.json` as jsonc. In order to please the editor, it also supports `.luarc.jsonc` as the file name.

package.json

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,17 @@
150150
"scope": "resource",
151151
"type": "array"
152152
},
153+
"Lua.diagnostics.disableScheme": {
154+
"default": [
155+
"git"
156+
],
157+
"items": {
158+
"type": "string"
159+
},
160+
"markdownDescription": "%config.diagnostics.disableScheme%",
161+
"scope": "resource",
162+
"type": "array"
163+
},
153164
"Lua.diagnostics.enable": {
154165
"default": true,
155166
"markdownDescription": "%config.diagnostics.enable%",
@@ -1590,6 +1601,19 @@
15901601
"scope": "resource",
15911602
"type": "integer"
15921603
},
1604+
"Lua.workspace.supportScheme": {
1605+
"default": [
1606+
"file",
1607+
"untitled",
1608+
"git"
1609+
],
1610+
"items": {
1611+
"type": "string"
1612+
},
1613+
"markdownDescription": "%config.workspace.supportScheme%",
1614+
"scope": "resource",
1615+
"type": "array"
1616+
},
15931617
"Lua.workspace.useGitIgnore": {
15941618
"default": true,
15951619
"markdownDescription": "%config.workspace.useGitIgnore%",
@@ -1747,7 +1771,7 @@
17471771
"description": "Lua Language Server coded by Lua",
17481772
"displayName": "Lua",
17491773
"engines": {
1750-
"vscode": "^1.61.0"
1774+
"vscode": "^1.67.0"
17511775
},
17521776
"icon": "images/logo.png",
17531777
"keywords": [
@@ -1763,5 +1787,5 @@
17631787
"type": "git",
17641788
"url": "https://github.com/sumneko/lua-language-server"
17651789
},
1766-
"version": "3.2.3"
1790+
"version": "3.2.4"
17671791
}

package.nls.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"config.develop.enable": "Developer mode. Do not enable, performance will be affected.",
3232
"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.disableScheme": "Do not diagnose Lua files that use the following scheme.",
3435
"config.diagnostics.duplicate-index": "Enable duplicate table index diagnostics.",
3536
"config.diagnostics.empty-block": "Enable empty code block diagnostics.",
3637
"config.diagnostics.enable": "Enable diagnostics.",
@@ -103,6 +104,7 @@
103104
"config.workspace.library": "In addition to the current workspace, which directories will load files from. The files in these directories will be treated as externally provided code libraries, and some features (such as renaming fields) will not modify these files.",
104105
"config.workspace.maxPreload": "Max preloaded files.",
105106
"config.workspace.preloadFileSize": "Skip files larger than this value (KB) when preloading.",
107+
"config.workspace.supportScheme": "Provide language server for the Lua files of the following scheme.",
106108
"config.workspace.useGitIgnore": "Ignore files list in `.gitignore` .",
107109
"config.workspace.userThirdParty": "Add private third-party library configuration file paths here, please refer to the built-in [configuration file path](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)"
108110
}

package.nls.pt-br.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"config.develop.enable": "Developer mode. Do not enable, performance will be affected.",
3232
"config.diagnostics.ambiguity-1": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ",
3333
"config.diagnostics.disable": "Disabled diagnostic (Use code in hover brackets).",
34+
"config.diagnostics.disableScheme": "Do not diagnose Lua files that use the following scheme.",
3435
"config.diagnostics.duplicate-index": "在字面量表中重复定义了索引",
3536
"config.diagnostics.empty-block": "空代码块",
3637
"config.diagnostics.enable": "Enable diagnostics.",
@@ -103,6 +104,7 @@
103104
"config.workspace.library": "In addition to the current workspace, which directories will load files from. The files in these directories will be treated as externally provided code libraries, and some features (such as renaming fields) will not modify these files.",
104105
"config.workspace.maxPreload": "Max preloaded files.",
105106
"config.workspace.preloadFileSize": "Skip files larger than this value (KB) when preloading.",
107+
"config.workspace.supportScheme": "Provide language server for the Lua files of the following scheme.",
106108
"config.workspace.useGitIgnore": "Ignore files list in `.gitignore` .",
107109
"config.workspace.userThirdParty": "Add private third-party library configuration file paths here, please refer to the built-in [configuration file path](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)"
108110
}

package.nls.zh-cn.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"config.develop.enable": "开发者模式。请勿开启,会影响性能。",
3232
"config.diagnostics.ambiguity-1": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ",
3333
"config.diagnostics.disable": "禁用的诊断(使用浮框括号内的代码)。",
34+
"config.diagnostics.disableScheme": "不诊断使用以下 scheme 的lua文件。",
3435
"config.diagnostics.duplicate-index": "在字面量表中重复定义了索引",
3536
"config.diagnostics.empty-block": "空代码块",
3637
"config.diagnostics.enable": "启用诊断。",
@@ -103,6 +104,7 @@
103104
"config.workspace.library": "除了当前工作区以外,还会从哪些目录中加载文件。这些目录中的文件将被视作外部提供的代码库,部分操作(如重命名字段)不会修改这些文件。",
104105
"config.workspace.maxPreload": "最大预加载文件数。",
105106
"config.workspace.preloadFileSize": "预加载时跳过大小大于该值(KB)的文件。",
107+
"config.workspace.supportScheme": "为以下 scheme 的lua文件提供语言服务。",
106108
"config.workspace.useGitIgnore": "忽略 `.gitignore` 中列举的文件。",
107109
"config.workspace.userThirdParty": "在这里添加私有的第三方库适配文件路径,请参考内置的[配置文件路径](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)"
108110
}

package.nls.zh-tw.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"config.develop.enable": "開發者模式。請勿開啟,會影響效能。",
3232
"config.diagnostics.ambiguity-1": "優先級歧義,如:`num or 0 + 1`,推測使用者的實際期望為 `(num or 0) + 1` ",
3333
"config.diagnostics.disable": "停用的診斷(使用浮框括號內的程式碼)。",
34+
"config.diagnostics.disableScheme": "不诊断使用以下 scheme 的lua文件。",
3435
"config.diagnostics.duplicate-index": "在字面常數表中重複定義了索引",
3536
"config.diagnostics.empty-block": "空程式碼區塊",
3637
"config.diagnostics.enable": "啟用診斷。",
@@ -103,6 +104,7 @@
103104
"config.workspace.library": "除了目前工作區以外,還會從哪些目錄中載入檔案。這些目錄中的檔案將被視作外部提供的程式碼庫,部分操作(如重命名欄位)不會修改這些檔案。",
104105
"config.workspace.maxPreload": "最大預載入檔案數。",
105106
"config.workspace.preloadFileSize": "預載入時跳過大小大於該值(KB)的檔案。",
107+
"config.workspace.supportScheme": "为以下 scheme 的lua文件提供语言服务。",
106108
"config.workspace.useGitIgnore": "忽略 `.gitignore` 中列舉的檔案。",
107109
"config.workspace.userThirdParty": "在這裡添加私有的第三方庫適應檔案路徑,請參考內建的[組態檔案路徑](https://github.com/sumneko/lua-language-server/tree/master/meta/3rd)"
108110
}

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

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

server

setting/schema-pt-br.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@
170170
"disable": {
171171
"$ref": "#/properties/diagnostics.disable"
172172
},
173+
"disableScheme": {
174+
"$ref": "#/properties/diagnostics.disableScheme"
175+
},
173176
"enable": {
174177
"$ref": "#/properties/diagnostics.enable"
175178
},
@@ -204,6 +207,17 @@
204207
"scope": "resource",
205208
"type": "array"
206209
},
210+
"diagnostics.disableScheme": {
211+
"default": [
212+
"git"
213+
],
214+
"items": {
215+
"type": "string"
216+
},
217+
"markdownDescription": "Do not diagnose Lua files that use the following scheme.",
218+
"scope": "resource",
219+
"type": "array"
220+
},
207221
"diagnostics.enable": {
208222
"default": true,
209223
"markdownDescription": "Enable diagnostics.",
@@ -1750,6 +1764,9 @@
17501764
"preloadFileSize": {
17511765
"$ref": "#/properties/workspace.preloadFileSize"
17521766
},
1767+
"supportScheme": {
1768+
"$ref": "#/properties/workspace.supportScheme"
1769+
},
17531770
"useGitIgnore": {
17541771
"$ref": "#/properties/workspace.useGitIgnore"
17551772
},
@@ -1801,6 +1818,19 @@
18011818
"scope": "resource",
18021819
"type": "integer"
18031820
},
1821+
"workspace.supportScheme": {
1822+
"default": [
1823+
"file",
1824+
"untitled",
1825+
"git"
1826+
],
1827+
"items": {
1828+
"type": "string"
1829+
},
1830+
"markdownDescription": "Provide language server for the Lua files of the following scheme.",
1831+
"scope": "resource",
1832+
"type": "array"
1833+
},
18041834
"workspace.useGitIgnore": {
18051835
"default": true,
18061836
"markdownDescription": "Ignore files list in `.gitignore` .",

setting/schema-zh-cn.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,9 @@
170170
"disable": {
171171
"$ref": "#/properties/diagnostics.disable"
172172
},
173+
"disableScheme": {
174+
"$ref": "#/properties/diagnostics.disableScheme"
175+
},
173176
"enable": {
174177
"$ref": "#/properties/diagnostics.enable"
175178
},
@@ -204,6 +207,17 @@
204207
"scope": "resource",
205208
"type": "array"
206209
},
210+
"diagnostics.disableScheme": {
211+
"default": [
212+
"git"
213+
],
214+
"items": {
215+
"type": "string"
216+
},
217+
"markdownDescription": "不诊断使用以下 scheme 的lua文件。",
218+
"scope": "resource",
219+
"type": "array"
220+
},
207221
"diagnostics.enable": {
208222
"default": true,
209223
"markdownDescription": "启用诊断。",
@@ -1750,6 +1764,9 @@
17501764
"preloadFileSize": {
17511765
"$ref": "#/properties/workspace.preloadFileSize"
17521766
},
1767+
"supportScheme": {
1768+
"$ref": "#/properties/workspace.supportScheme"
1769+
},
17531770
"useGitIgnore": {
17541771
"$ref": "#/properties/workspace.useGitIgnore"
17551772
},
@@ -1801,6 +1818,19 @@
18011818
"scope": "resource",
18021819
"type": "integer"
18031820
},
1821+
"workspace.supportScheme": {
1822+
"default": [
1823+
"file",
1824+
"untitled",
1825+
"git"
1826+
],
1827+
"items": {
1828+
"type": "string"
1829+
},
1830+
"markdownDescription": "为以下 scheme 的lua文件提供语言服务。",
1831+
"scope": "resource",
1832+
"type": "array"
1833+
},
18041834
"workspace.useGitIgnore": {
18051835
"default": true,
18061836
"markdownDescription": "忽略 `.gitignore` 中列举的文件。",

0 commit comments

Comments
 (0)