Skip to content

Commit 63fa1f4

Browse files
committed
2.6.0
1 parent a1e97c3 commit 63fa1f4

File tree

9 files changed

+137
-68
lines changed

9 files changed

+137
-68
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
matrix:
2323
include:
2424
- { os: ubuntu-18.04, target: linux, platform: linux-x64 }
25-
- { os: ubuntu-18.04, target: linux, platform: linux-arm64 }
2625
- { os: macos-11, target: darwin, platform: darwin-x64 }
2726
- { os: macos-11, target: darwin, platform: darwin-arm64 }
2827
- { os: windows-latest, target: windows, platform: win32-ia32 }

changelog.md

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

3+
## 2.6.0
4+
`2022-1-13`
5+
* `NEW` supports multi-workspace in server side, for developers of language clients, please [read here](https://github.com/sumneko/lua-language-server/wiki/Multi-workspace-supports) to learn more.
6+
* `NEW` setting:
7+
+ `Lua.hint.arrayIndex`
8+
+ `Lua.semantic.enable`
9+
+ `Lua.semantic.variable`
10+
+ `Lua.semantic.annotation`
11+
+ `Lua.semantic.keyword`
12+
* `CHG` completion: improve response speed
13+
* `CHG` completion: can be triggered in `LuaDoc` and strings
14+
* `CHG` diagnostic: smoother
15+
* `CHG` settings `Lua.color.mode` removed
16+
* `FIX` [#876](https://github.com/sumneko/lua-language-server/issues/876)
17+
* `FIX` [#879](https://github.com/sumneko/lua-language-server/issues/879)
18+
* `FIX` [#884](https://github.com/sumneko/lua-language-server/issues/884)
19+
* `FIX` [#885](https://github.com/sumneko/lua-language-server/issues/885)
20+
* `FIX` [#886](https://github.com/sumneko/lua-language-server/issues/886)
21+
* `FIX` [#902](https://github.com/sumneko/lua-language-server/issues/902)
22+
323
## 2.5.6
424
`2021-12-27`
525
* `CHG` diagnostic: now syntax errors in `LuaDoc` are shown as `Warning`

package.json

Lines changed: 25 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,6 @@
5252
"scope": "resource",
5353
"type": "boolean"
5454
},
55-
"Lua.color.mode": {
56-
"default": "Semantic",
57-
"enum": [
58-
"Grammar",
59-
"Semantic",
60-
"SemanticEnhanced"
61-
],
62-
"markdownDescription": "%config.color.mode%",
63-
"markdownEnumDescriptions": [
64-
"%config.color.mode.Grammar%",
65-
"%config.color.mode.Semantic%",
66-
"%config.color.mode.SemanticEnhanced%"
67-
],
68-
"scope": "resource",
69-
"type": "string"
70-
},
7155
"Lua.completion.autoRequire": {
7256
"default": true,
7357
"markdownDescription": "%config.completion.autoRequire%",
@@ -1434,6 +1418,30 @@
14341418
"scope": "resource",
14351419
"type": "string"
14361420
},
1421+
"Lua.semantic.annotation": {
1422+
"default": true,
1423+
"markdownDescription": "%config.semantic.annotation%",
1424+
"scope": "resource",
1425+
"type": "boolean"
1426+
},
1427+
"Lua.semantic.enable": {
1428+
"default": true,
1429+
"markdownDescription": "%config.semantic.enable%",
1430+
"scope": "resource",
1431+
"type": "boolean"
1432+
},
1433+
"Lua.semantic.keyword": {
1434+
"default": false,
1435+
"markdownDescription": "%config.semantic.keyword%",
1436+
"scope": "resource",
1437+
"type": "boolean"
1438+
},
1439+
"Lua.semantic.variable": {
1440+
"default": true,
1441+
"markdownDescription": "%config.semantic.variable%",
1442+
"scope": "resource",
1443+
"type": "boolean"
1444+
},
14371445
"Lua.signatureHelp.enable": {
14381446
"default": true,
14391447
"markdownDescription": "%config.signatureHelp.enable%",
@@ -1669,5 +1677,5 @@
16691677
"type": "git",
16701678
"url": "https://github.com/sumneko/lua-language-server"
16711679
},
1672-
"version": "2.5.6"
1680+
"version": "2.6.0"
16731681
}

package.nls.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"config.hint.arrayIndex.Auto": "Show hints only when the table is greater than 3 items, or the table is a mixed table.",
4646
"config.hint.arrayIndex.Disable": "Disable hints of array index.",
4747
"config.hint.arrayIndex.Enable": "Show hints in all tables.",
48-
"config.hint.enable": "Enabel hint.",
48+
"config.hint.enable": "Enable inlay hint.",
4949
"config.hint.paramName": "Show hints of parameter name at the function call.",
5050
"config.hint.paramName.All": "All types of parameters are shown.",
5151
"config.hint.paramName.Disable": "Disable parameter hints.",
@@ -71,6 +71,10 @@
7171
"config.runtime.special": "The custom global variables are regarded as some special built-in variables, and the language server will provide special support\nThe following example shows that 'include' is treated as' require '.\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
7272
"config.runtime.unicodeName": "Allows Unicode characters in name.",
7373
"config.runtime.version": "Lua runtime version.",
74+
"config.semantic.annotation": "Semantic coloring of type annotations.",
75+
"config.semantic.enable": "Enable semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.",
76+
"config.semantic.keyword": "Semantic coloring of keywords/literals/operators. You only need to enable this feature if your editor cannot do syntax coloring.",
77+
"config.semantic.variable": "Semantic coloring of variables/fields/parameters.",
7478
"config.signatureHelp.enable": "Enable signature help.",
7579
"config.telemetry.enable": "Enable telemetry to send your editor information and error logs over the network. Read our privacy policy [here](https://github.com/sumneko/lua-language-server/wiki/Privacy-Policy).\n",
7680
"config.window.progressBar": "Show progress bar in status bar.",

package.nls.zh-cn.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@
8888
"config.runtime.special": "将自定义全局变量视为一些特殊的内置变量,语言服务将提供特殊的支持。\n下面这个例子表示将 `include` 视为 `require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
8989
"config.runtime.unicodeName": "允许在名字中使用 Unicode 字符。",
9090
"config.runtime.version": "Lua运行版本。",
91+
"config.semantic.annotation": "对类型注解进行语义着色。",
92+
"config.semantic.enable": "启用语义着色。你可能需要同时将 `editor.semanticHighlighting.enabled` 设置为 `true` 才能生效。",
93+
"config.semantic.keyword": "对关键字/字面量/运算符进行语义着色。只有当你的编辑器无法进行语法着色时才需要启用此功能。",
94+
"config.semantic.variable": "对变量/字段/参数进行语义着色。",
9195
"config.signatureHelp.enable": "启用参数提示。",
9296
"config.telemetry.enable": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。\n",
9397
"config.window.progressBar": "在状态栏显示进度条。",

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 = "2.5.6"
3+
local VERSION = "2.6.0"
44

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

server

setting/schema-zh-cn.json

Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,6 @@
4141
"scope": "resource",
4242
"type": "boolean"
4343
},
44-
"color": {
45-
"properties": {
46-
"mode": {
47-
"$ref": "#/properties/color.mode"
48-
}
49-
}
50-
},
51-
"color.mode": {
52-
"default": "Semantic",
53-
"enum": [
54-
"Grammar",
55-
"Semantic",
56-
"SemanticEnhanced"
57-
],
58-
"markdownDescription": "着色模式。",
59-
"markdownEnumDescriptions": [
60-
"语法着色。",
61-
"语义着色。你可能需要同时将 `editor.semanticHighlighting.enabled` 设置为 `true` 才能生效。",
62-
"增强的语义颜色。 类似于`Semantic`,但会进行额外的分析(也会带来额外的开销)。"
63-
],
64-
"scope": "resource",
65-
"type": "string"
66-
},
6744
"completion": {
6845
"properties": {
6946
"autoRequire": {
@@ -1574,6 +1551,46 @@
15741551
"scope": "resource",
15751552
"type": "string"
15761553
},
1554+
"semantic": {
1555+
"properties": {
1556+
"annotation": {
1557+
"$ref": "#/properties/semantic.annotation"
1558+
},
1559+
"enable": {
1560+
"$ref": "#/properties/semantic.enable"
1561+
},
1562+
"keyword": {
1563+
"$ref": "#/properties/semantic.keyword"
1564+
},
1565+
"variable": {
1566+
"$ref": "#/properties/semantic.variable"
1567+
}
1568+
}
1569+
},
1570+
"semantic.annotation": {
1571+
"default": true,
1572+
"markdownDescription": "对类型注解进行语义着色。",
1573+
"scope": "resource",
1574+
"type": "boolean"
1575+
},
1576+
"semantic.enable": {
1577+
"default": true,
1578+
"markdownDescription": "启用语义着色。你可能需要同时将 `editor.semanticHighlighting.enabled` 设置为 `true` 才能生效。",
1579+
"scope": "resource",
1580+
"type": "boolean"
1581+
},
1582+
"semantic.keyword": {
1583+
"default": false,
1584+
"markdownDescription": "对关键字/字面量/运算符进行语义着色。只有当你的编辑器无法进行语法着色时才需要启用此功能。",
1585+
"scope": "resource",
1586+
"type": "boolean"
1587+
},
1588+
"semantic.variable": {
1589+
"default": true,
1590+
"markdownDescription": "对变量/字段/参数进行语义着色。",
1591+
"scope": "resource",
1592+
"type": "boolean"
1593+
},
15771594
"signatureHelp": {
15781595
"properties": {
15791596
"enable": {

setting/schema.json

Lines changed: 41 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,6 @@
4141
"scope": "resource",
4242
"type": "boolean"
4343
},
44-
"color": {
45-
"properties": {
46-
"mode": {
47-
"$ref": "#/properties/color.mode"
48-
}
49-
}
50-
},
51-
"color.mode": {
52-
"default": "Semantic",
53-
"enum": [
54-
"Grammar",
55-
"Semantic",
56-
"SemanticEnhanced"
57-
],
58-
"markdownDescription": "Color mode.",
59-
"markdownEnumDescriptions": [
60-
"Grammar color.",
61-
"Semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.",
62-
"Enhanced semantic color. Like `Semantic`, but with additional analysis which might be more computationally expensive."
63-
],
64-
"scope": "resource",
65-
"type": "string"
66-
},
6744
"completion": {
6845
"properties": {
6946
"autoRequire": {
@@ -1180,7 +1157,7 @@
11801157
},
11811158
"hint.enable": {
11821159
"default": false,
1183-
"markdownDescription": "Enabel hint.",
1160+
"markdownDescription": "Enable inlay hint.",
11841161
"scope": "resource",
11851162
"type": "boolean"
11861163
},
@@ -1574,6 +1551,46 @@
15741551
"scope": "resource",
15751552
"type": "string"
15761553
},
1554+
"semantic": {
1555+
"properties": {
1556+
"annotation": {
1557+
"$ref": "#/properties/semantic.annotation"
1558+
},
1559+
"enable": {
1560+
"$ref": "#/properties/semantic.enable"
1561+
},
1562+
"keyword": {
1563+
"$ref": "#/properties/semantic.keyword"
1564+
},
1565+
"variable": {
1566+
"$ref": "#/properties/semantic.variable"
1567+
}
1568+
}
1569+
},
1570+
"semantic.annotation": {
1571+
"default": true,
1572+
"markdownDescription": "Semantic coloring of type annotations.",
1573+
"scope": "resource",
1574+
"type": "boolean"
1575+
},
1576+
"semantic.enable": {
1577+
"default": true,
1578+
"markdownDescription": "Enable semantic color. You may need to set `editor.semanticHighlighting.enabled` to `true` to take effect.",
1579+
"scope": "resource",
1580+
"type": "boolean"
1581+
},
1582+
"semantic.keyword": {
1583+
"default": false,
1584+
"markdownDescription": "Semantic coloring of keywords/literals/operators. You only need to enable this feature if your editor cannot do syntax coloring.",
1585+
"scope": "resource",
1586+
"type": "boolean"
1587+
},
1588+
"semantic.variable": {
1589+
"default": true,
1590+
"markdownDescription": "Semantic coloring of variables/fields/parameters.",
1591+
"scope": "resource",
1592+
"type": "boolean"
1593+
},
15771594
"signatureHelp": {
15781595
"properties": {
15791596
"enable": {

0 commit comments

Comments
 (0)