Skip to content

Commit 14ec58e

Browse files
committed
2.6.6
1 parent 3c56863 commit 14ec58e

File tree

8 files changed

+74
-4
lines changed

8 files changed

+74
-4
lines changed

changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
# changelog
22

3+
## 2.6.6
4+
`2022-2-21`
5+
* `NEW` formatter preview, use `--preview` to enable this feature, [read more](https://github.com/sumneko/lua-language-server/issues/960)
6+
* `FIX` [#958](https://github.com/sumneko/lua-language-server/issues/958)
7+
* `FIX` runtime errors
8+
39
## 2.6.5
410
`2022-2-17`
5-
* `FIX` telemetry is not disabled by default
11+
* `FIX` telemetry is not disabled by default (since 2.6.0)
612
* `FIX` [#934](https://github.com/sumneko/lua-language-server/issues/934)
713
* `FIX` [#952](https://github.com/sumneko/lua-language-server/issues/952)
814

package.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1087,6 +1087,17 @@
10871087
"scope": "resource",
10881088
"type": "integer"
10891089
},
1090+
"Lua.format.defaultConfig": {
1091+
"markdownDescription": "%config.format.defaultConfig%",
1092+
"scope": "resource",
1093+
"type": "object"
1094+
},
1095+
"Lua.format.enable": {
1096+
"default": "true",
1097+
"markdownDescription": "%config.format.enable%",
1098+
"scope": "resource",
1099+
"type": "boolean"
1100+
},
10901101
"Lua.hint.arrayIndex": {
10911102
"default": "Auto",
10921103
"enum": [
@@ -1473,6 +1484,9 @@
14731484
"default": null,
14741485
"markdownDescription": "%config.telemetry.enable%",
14751486
"scope": "resource",
1487+
"tags": [
1488+
"telemetry"
1489+
],
14761490
"type": [
14771491
"boolean",
14781492
"null"
@@ -1698,5 +1712,5 @@
16981712
"type": "git",
16991713
"url": "https://github.com/sumneko/lua-language-server"
17001714
},
1701-
"version": "2.6.5"
1715+
"version": "2.6.6"
17021716
}

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"config.diagnostics.severity": "Modified diagnostic severity.",
4242
"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.",
4343
"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.",
44+
"config.format.enable": "Enable code formatter.",
4445
"config.hint.arrayIndex": "Show hints of array index when constructing a table.",
4546
"config.hint.arrayIndex.Auto": "Show hints only when the table is greater than 3 items, or the table is a mixed table.",
4647
"config.hint.arrayIndex.Disable": "Disable hints of array index.",

package.nls.zh-cn.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
"config.diagnostics.unused-vararg": "未使用的不定参数",
5959
"config.diagnostics.workspaceDelay": "进行工作区诊断的延迟(毫秒)。当你启动工作区,或编辑了任意文件后,将会在后台对整个工作区进行重新诊断。设置为负数可以禁用工作区诊断。",
6060
"config.diagnostics.workspaceRate": "工作区诊断的运行速率(百分比)。降低该值会减少CPU占用,但是也会降低工作区诊断的速度。你当前正在编辑的文件的诊断总是全速完成,不受该选项影响。",
61+
"config.format.enable": "启用代码格式化程序。",
6162
"config.hint.arrayIndex": "在构造表时提示数组索引。",
6263
"config.hint.arrayIndex.Auto": "只有表大于3项,或者表是混合类型时才进行提示。",
6364
"config.hint.arrayIndex.Disable": "禁用数组索引提示。",

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

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

server

setting/schema-zh-cn.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,27 @@
11411141
"scope": "resource",
11421142
"type": "integer"
11431143
},
1144+
"format": {
1145+
"properties": {
1146+
"defaultConfig": {
1147+
"$ref": "#/properties/format.defaultConfig"
1148+
},
1149+
"enable": {
1150+
"$ref": "#/properties/format.enable"
1151+
}
1152+
}
1153+
},
1154+
"format.defaultConfig": {
1155+
"markdownDescription": "%config.format.defaultConfig%",
1156+
"scope": "resource",
1157+
"type": "object"
1158+
},
1159+
"format.enable": {
1160+
"default": "true",
1161+
"markdownDescription": "启用代码格式化程序。",
1162+
"scope": "resource",
1163+
"type": "boolean"
1164+
},
11441165
"hint": {
11451166
"properties": {
11461167
"arrayIndex": {
@@ -1636,6 +1657,9 @@
16361657
"default": null,
16371658
"markdownDescription": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。\n",
16381659
"scope": "resource",
1660+
"tags": [
1661+
"telemetry"
1662+
],
16391663
"type": [
16401664
"boolean",
16411665
"null"

setting/schema.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,27 @@
11411141
"scope": "resource",
11421142
"type": "integer"
11431143
},
1144+
"format": {
1145+
"properties": {
1146+
"defaultConfig": {
1147+
"$ref": "#/properties/format.defaultConfig"
1148+
},
1149+
"enable": {
1150+
"$ref": "#/properties/format.enable"
1151+
}
1152+
}
1153+
},
1154+
"format.defaultConfig": {
1155+
"markdownDescription": "%config.format.defaultConfig%",
1156+
"scope": "resource",
1157+
"type": "object"
1158+
},
1159+
"format.enable": {
1160+
"default": "true",
1161+
"markdownDescription": "Enable code formatter.",
1162+
"scope": "resource",
1163+
"type": "boolean"
1164+
},
11441165
"hint": {
11451166
"properties": {
11461167
"arrayIndex": {
@@ -1636,6 +1657,9 @@
16361657
"default": null,
16371658
"markdownDescription": "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",
16381659
"scope": "resource",
1660+
"tags": [
1661+
"telemetry"
1662+
],
16391663
"type": [
16401664
"boolean",
16411665
"null"

0 commit comments

Comments
 (0)