Skip to content

Commit 5bbb190

Browse files
committed
2.4.9
1 parent 45165a3 commit 5bbb190

File tree

11 files changed

+157
-3
lines changed

11 files changed

+157
-3
lines changed

changelog.md

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

3+
## 2.4.9
4+
`2021-11-18`
5+
* `CHG` for performance reasons, some of the features that are not cost-effective in IntelliSense have been disabled by default, and you can re-enable them through the following settings:
6+
+ `Lua.IntelliSense.traceLocalSet`
7+
+ `Lua.IntelliSense.traceReturn`
8+
+ `Lua.IntelliSense.traceBeSetted`
9+
+ `Lua.IntelliSense.traceFieldInject`
10+
11+
[read more](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)
12+
313
## 2.4.8
414
`2021-11-15`
515
* `FIX` incorrect IntelliSense in specific situations

package.json

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,30 @@
2828
"contributes": {
2929
"configuration": {
3030
"properties": {
31+
"Lua.IntelliSense.traceBeSetted": {
32+
"default": false,
33+
"markdownDescription": "%config.IntelliSense.traceBeSetted%",
34+
"scope": "window",
35+
"type": "boolean"
36+
},
37+
"Lua.IntelliSense.traceFieldInject": {
38+
"default": false,
39+
"markdownDescription": "%config.IntelliSense.traceFieldInject%",
40+
"scope": "window",
41+
"type": "boolean"
42+
},
43+
"Lua.IntelliSense.traceLocalSet": {
44+
"default": false,
45+
"markdownDescription": "%config.IntelliSense.traceLocalSet%",
46+
"scope": "window",
47+
"type": "boolean"
48+
},
49+
"Lua.IntelliSense.traceReturn": {
50+
"default": false,
51+
"markdownDescription": "%config.IntelliSense.traceReturn%",
52+
"scope": "window",
53+
"type": "boolean"
54+
},
3155
"Lua.color.mode": {
3256
"default": "Semantic",
3357
"enum": [
@@ -1495,5 +1519,5 @@
14951519
"type": "git",
14961520
"url": "https://github.com/sumneko/lua-language-server"
14971521
},
1498-
"version": "2.4.8"
1522+
"version": "2.4.9"
14991523
}

package.nls.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"config.IntelliSense.traceBeSetted": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
3+
"config.IntelliSense.traceFieldInject": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
4+
"config.IntelliSense.traceLocalSet": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
5+
"config.IntelliSense.traceReturn": "Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.",
26
"config.awakened.cat": "PLAY WITH ME >_<\n\n(This will enable the beta version which is still in development. Feedback is welcome! Reload the window after changing this option!)",
37
"config.color.mode": "Color mode.",
48
"config.color.mode.Grammar": "Grammar color.",

package.nls.zh-cn.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
{
22
"ambiguity-1": "优先级歧义,如:`num or 0 + 1`,推测用户的实际期望为 `(num or 0) + 1` ",
3+
"config.IntelliSense.traceBeSetted": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
4+
"config.IntelliSense.traceFieldInject": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
5+
"config.IntelliSense.traceLocalSet": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
6+
"config.IntelliSense.traceReturn": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
37
"config.awakened.cat": "PLAY WITH ME >_<\n\n(这会启用还处于开发中的beta版,欢迎测试反馈!改变此选项需要重载窗口!)",
48
"config.color.mode": "着色模式。",
59
"config.color.mode.Grammar": "语法着色。",

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

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

package/configuration.lua

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -479,6 +479,30 @@ local config = {
479479
},
480480
markdownDescription = '%config.misc.parameters%',
481481
},
482+
['Lua.IntelliSense.traceLocalSet'] = {
483+
scope = 'window',
484+
type = "boolean",
485+
default = false,
486+
markdownDescription = '%config.IntelliSense.traceLocalSet%',
487+
},
488+
['Lua.IntelliSense.traceReturn'] = {
489+
scope = 'window',
490+
type = "boolean",
491+
default = false,
492+
markdownDescription = '%config.IntelliSense.traceReturn%',
493+
},
494+
['Lua.IntelliSense.traceBeSetted'] = {
495+
scope = 'window',
496+
type = "boolean",
497+
default = false,
498+
markdownDescription = '%config.IntelliSense.traceBeSetted%',
499+
},
500+
['Lua.IntelliSense.traceFieldInject'] = {
501+
scope = 'window',
502+
type = "boolean",
503+
default = false,
504+
markdownDescription = '%config.IntelliSense.traceFieldInject%',
505+
},
482506
}
483507

484508
local DiagSeverity = config["Lua.diagnostics.severity"].properties

package/nls-zh-cn.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ return {
101101
启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。
102102
]],
103103
['config.misc.parameters'] = 'VSCode中启动语言服务时的[命令行参数](https://github.com/sumneko/lua-language-server/wiki/Command-line)。',
104+
['config.IntelliSense.traceLocalSet'] = '请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。',
105+
['config.IntelliSense.traceReturn'] = '请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。',
106+
['config.IntelliSense.traceBeSetted'] = '请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。',
107+
['config.IntelliSense.traceFieldInject'] = '请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。',
104108

105109
-- TODO 英文翻译
106110
['config.diagnostics.unused-local'] = '未使用的局部变量',

package/nls.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,8 @@ Automatic detection and adaptation of third-party libraries, currently supported
101101
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).
102102
]],
103103
['config.misc.parameters'] = '[Command line parameters](https://github.com/sumneko/lua-telemetry-server/tree/master/method) when starting the language service in VSCode.',
104+
['config.IntelliSense.traceLocalSet'] = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.',
105+
['config.IntelliSense.traceReturn'] = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.',
106+
['config.IntelliSense.traceBeSetted'] = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.',
107+
['config.IntelliSense.traceFieldInject'] = 'Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features) to learn more.',
104108
}

server

setting/schema-zh-cn.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,46 @@
22
"$schema": "",
33
"description": "Setting of sumneko.lua",
44
"properties": {
5+
"IntelliSense": {
6+
"properties": {
7+
"traceBeSetted": {
8+
"$ref": "#/properties/IntelliSense.traceBeSetted"
9+
},
10+
"traceFieldInject": {
11+
"$ref": "#/properties/IntelliSense.traceFieldInject"
12+
},
13+
"traceLocalSet": {
14+
"$ref": "#/properties/IntelliSense.traceLocalSet"
15+
},
16+
"traceReturn": {
17+
"$ref": "#/properties/IntelliSense.traceReturn"
18+
}
19+
}
20+
},
21+
"IntelliSense.traceBeSetted": {
22+
"default": false,
23+
"markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
24+
"scope": "window",
25+
"type": "boolean"
26+
},
27+
"IntelliSense.traceFieldInject": {
28+
"default": false,
29+
"markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
30+
"scope": "window",
31+
"type": "boolean"
32+
},
33+
"IntelliSense.traceLocalSet": {
34+
"default": false,
35+
"markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
36+
"scope": "window",
37+
"type": "boolean"
38+
},
39+
"IntelliSense.traceReturn": {
40+
"default": false,
41+
"markdownDescription": "请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/IntelliSense-optional-features)了解用法。",
42+
"scope": "window",
43+
"type": "boolean"
44+
},
545
"color": {
646
"properties": {
747
"mode": {

0 commit comments

Comments
 (0)