Skip to content

Commit c674702

Browse files
committed
update config
1 parent 2642919 commit c674702

File tree

8 files changed

+87
-1
lines changed

8 files changed

+87
-1
lines changed

changelog.md

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

3+
## 1.8.0
4+
* `NEW` runtime: support nonstandard symbol
5+
36
## 1.7.4
47
`2020-12-20`
58
* `FIX` workspace: preload may failed

package.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,28 @@
802802
"scope": "resource",
803803
"type": "integer"
804804
},
805+
"Lua.runtime.nonstandardSymbol": {
806+
"items": {
807+
"enum": [
808+
"//",
809+
"/**/",
810+
"`",
811+
"+=",
812+
"-=",
813+
"*=",
814+
"/=",
815+
"||",
816+
"&&",
817+
"!",
818+
"!=",
819+
"continue"
820+
],
821+
"type": "string"
822+
},
823+
"markdownDescription": "%config.runtime.nonstandardSymbol%",
824+
"scope": "resource",
825+
"type": "array"
826+
},
805827
"Lua.runtime.path": {
806828
"default": [
807829
"?.lua",

package.nls.zh-cn.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"config.hover.viewStringMax": "悬停提示查看字符串内容时的最大长度。",
3535
"config.intelliSense.fastGlobal": "在对全局变量进行补全,及查看 `_G` 的悬浮提示时进行优化。这会略微降低类型推测的准确度,但是对于大量使用全局变量的项目会有大幅的性能提升。",
3636
"config.intelliSense.searchDepth": "设置智能感知的搜索深度。增大该值可以增加准确度,但会降低性能。不同的项目对该设置的容忍度差异较大,请自己调整为合适的值。",
37+
"config.runtime.nonstandardSymbol": "支持非标准的符号。请务必确认你的运行环境支持这些符号。",
3738
"config.runtime.path": "`package.path`",
3839
"config.runtime.special": "将自定义全局变量视为一些特殊的内置变量,语言服务将提供特殊的支持。\n下面这个例子表示将 `include` 视为 `require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
3940
"config.runtime.unicodeName": "允许在名字中使用 Unicode 字符。",

package/configuration.lua

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,21 @@ local config = {
5656
default = false,
5757
markdownDescription = "%config.runtime.unicodeName%"
5858
},
59+
["Lua.runtime.nonstandardSymbol"] = {
60+
scope = 'resource',
61+
type = 'array',
62+
items = {
63+
type = 'string',
64+
enum = {
65+
'//', '/**/',
66+
'`',
67+
'+=', '-=', '*=', '/=',
68+
'||', '&&', '!', '!=',
69+
'continue',
70+
}
71+
},
72+
markdownDescription = "%config.runtime.nonstandardSymbol%"
73+
},
5974
["Lua.diagnostics.enable"] = {
6075
scope = 'resource',
6176
type = 'boolean',

package/nls-zh-cn.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ return {
88
下面这个例子表示将 `include` 视为 `require` 。
99
]] .. example.special,
1010
["config.runtime.unicodeName"] = "允许在名字中使用 Unicode 字符。",
11+
["config.runtime.nonstandardSymbol"] = "支持非标准的符号。请务必确认你的运行环境支持这些符号。",
1112
["config.diagnostics.enable"] = "启用诊断。",
1213
["config.diagnostics.disable"] = "禁用的诊断(使用浮框括号内的代码)。\n",-- .. example.disable,
1314
["config.diagnostics.globals"] = "已定义的全局变量。\n",-- .. example.globals,

server

setting/schema-zh-cn.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,28 @@
786786
"scope": "resource",
787787
"type": "integer"
788788
},
789+
"Lua.runtime.nonstandardSymbol": {
790+
"items": {
791+
"enum": [
792+
"//",
793+
"/**/",
794+
"`",
795+
"+=",
796+
"-=",
797+
"*=",
798+
"/=",
799+
"||",
800+
"&&",
801+
"!",
802+
"!=",
803+
"continue"
804+
],
805+
"type": "string"
806+
},
807+
"markdownDescription": "支持非标准的符号。请务必确认你的运行环境支持这些符号。",
808+
"scope": "resource",
809+
"type": "array"
810+
},
789811
"Lua.runtime.path": {
790812
"default": [
791813
"?.lua",

setting/schema.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,28 @@
786786
"scope": "resource",
787787
"type": "integer"
788788
},
789+
"Lua.runtime.nonstandardSymbol": {
790+
"items": {
791+
"enum": [
792+
"//",
793+
"/**/",
794+
"`",
795+
"+=",
796+
"-=",
797+
"*=",
798+
"/=",
799+
"||",
800+
"&&",
801+
"!",
802+
"!=",
803+
"continue"
804+
],
805+
"type": "string"
806+
},
807+
"markdownDescription": "%config.runtime.nonstandardSymbol%",
808+
"scope": "resource",
809+
"type": "array"
810+
},
789811
"Lua.runtime.path": {
790812
"default": [
791813
"?.lua",

0 commit comments

Comments
 (0)