Skip to content

Commit 56e3ce5

Browse files
committed
compile setting
1 parent f58efab commit 56e3ce5

File tree

5 files changed

+34
-8
lines changed

5 files changed

+34
-8
lines changed

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1269,6 +1269,12 @@
12691269
"scope": "window",
12701270
"type": "array"
12711271
},
1272+
"Lua.runtime.pathStrict": {
1273+
"default": false,
1274+
"markdownDescription": "%config.runtime.pathStrict%",
1275+
"scope": "window",
1276+
"type": "boolean"
1277+
},
12721278
"Lua.runtime.plugin": {
12731279
"default": "",
12741280
"markdownDescription": "%config.runtime.plugin%",

package.nls.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
"config.runtime.builtin": "Adjust the enabled state of the built-in library. You can disable (or redefine) the non-existent library according to the actual runtime environment.\n\n* `default`: Indicates that the library will be enabled or disabled according to the runtime version\n* `enable`: always enable\n* `disable`: always disable\n",
5858
"config.runtime.fileEncoding": "File encoding. The `ansi` option is only available under the `Windows` platform.",
5959
"config.runtime.nonstandardSymbol": "Supports non-standard symbols. Make sure that your runtime environment supports these symbols.",
60-
"config.runtime.path": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, all `**/myfile/init.lua` will be searched from the loaded files.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n",
60+
"config.runtime.path": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n",
61+
"config.runtime.pathStrict": "When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.",
6162
"config.runtime.plugin": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.",
6263
"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",
6364
"config.runtime.unicodeName": "Allows Unicode characters in name.",
@@ -66,7 +67,7 @@
6667
"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",
6768
"config.window.progressBar": "Show progress bar in status bar.",
6869
"config.window.statusBar": "Show extension status in status bar.",
69-
"config.workspace.checkThirdParty": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* Jass\n",
70+
"config.workspace.checkThirdParty": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* skynet\n* Jass\n",
7071
"config.workspace.ignoreDir": "Ignored files and directories (Use `.gitignore` grammar).\n",
7172
"config.workspace.ignoreSubmodules": "Ignore submodules.",
7273
"config.workspace.library": "In addition to the current workspace, which directories will load files from.",

package.nls.zh-cn.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@
6060
"config.runtime.builtin": "调整内置库的启用状态,你可以根据实际运行环境禁用掉不存在的库(或重新定义)。\n\n* `default`: 表示库会根据运行版本启用或禁用\n* `enable`: 总是启用\n* `disable`: 总是禁用\n",
6161
"config.runtime.fileEncoding": "文件编码,`ansi` 选项只在 `Windows` 平台下有效。",
6262
"config.runtime.nonstandardSymbol": "支持非标准的符号。请务必确认你的运行环境支持这些符号。",
63-
"config.runtime.path": "当使用 `require` 时,如何根据输入的名字来查找文件。\n此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索所有的 `**/myfile/init.lua`。\n如果你想要加载工作区以外的文件,你需要先设置 `Lua.workspace.library`。\n",
63+
"config.runtime.path": "当使用 `require` 时,如何根据输入的名字来查找文件。\n此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索 `{workspace}/myfile/init.lua`。\n当 `runtime.pathStrict` 设置为 `false` 时,还会尝试搜索 `${workspace}/**/myfile/init.lua`。\n如果你想要加载工作区以外的文件,你需要先设置 `Lua.workspace.library`。\n",
64+
"config.runtime.pathStrict": "启用后 `runtime.path` 将只搜索第一层目录,见 `runtime.path` 的说明。",
6465
"config.runtime.plugin": "插件路径,请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/Plugin)了解用法。",
6566
"config.runtime.special": "将自定义全局变量视为一些特殊的内置变量,语言服务将提供特殊的支持。\n下面这个例子表示将 `include` 视为 `require` 。\n```json\n\"Lua.runtime.special\" : {\n \"include\" : \"require\"\n}\n```\n",
6667
"config.runtime.unicodeName": "允许在名字中使用 Unicode 字符。",
@@ -69,7 +70,7 @@
6970
"config.telemetry.enable": "启用遥测,通过网络发送你的编辑器信息与错误日志。在[此处](https://github.com/sumneko/lua-language-server/wiki/%E9%9A%90%E7%A7%81%E5%A3%B0%E6%98%8E)阅读我们的隐私声明。\n",
7071
"config.window.progressBar": "在状态栏显示进度条。",
7172
"config.window.statusBar": "在状态栏显示插件状态。",
72-
"config.workspace.checkThirdParty": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* Jass\n",
73+
"config.workspace.checkThirdParty": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* skynet\n* Jass\n",
7374
"config.workspace.ignoreDir": "忽略的文件与目录(使用 `.gitignore` 语法)。\n",
7475
"config.workspace.ignoreSubmodules": "忽略子模块。",
7576
"config.workspace.library": "除了当前工作区以外,还会从哪些目录中加载文件。",

setting/schema-zh-cn.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,9 @@
11691169
"path": {
11701170
"$ref": "#/properties/runtime.path"
11711171
},
1172+
"pathStrict": {
1173+
"$ref": "#/properties/runtime.pathStrict"
1174+
},
11721175
"plugin": {
11731176
"$ref": "#/properties/runtime.plugin"
11741177
},
@@ -1381,10 +1384,16 @@
13811384
"items": {
13821385
"type": "string"
13831386
},
1384-
"markdownDescription": "当使用 `require` 时,如何根据输入的名字来查找文件。\n此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索所有的 `**/myfile/init.lua`。\n如果你想要加载工作区以外的文件,你需要先设置 `Lua.workspace.library`。\n",
1387+
"markdownDescription": "当使用 `require` 时,如何根据输入的名字来查找文件。\n此选项设置为 `?/init.lua` 意味着当你输入 `require 'myfile'` 时,会从已加载的文件中搜索 `{workspace}/myfile/init.lua`。\n当 `runtime.pathStrict` 设置为 `false` 时,还会尝试搜索 `${workspace}/**/myfile/init.lua`。\n如果你想要加载工作区以外的文件,你需要先设置 `Lua.workspace.library`。\n",
13851388
"scope": "window",
13861389
"type": "array"
13871390
},
1391+
"runtime.pathStrict": {
1392+
"default": false,
1393+
"markdownDescription": "启用后 `runtime.path` 将只搜索第一层目录,见 `runtime.path` 的说明。",
1394+
"scope": "window",
1395+
"type": "boolean"
1396+
},
13881397
"runtime.plugin": {
13891398
"default": "",
13901399
"markdownDescription": "插件路径,请查阅[文档](https://github.com/sumneko/lua-language-server/wiki/Plugin)了解用法。",
@@ -1514,7 +1523,7 @@
15141523
},
15151524
"workspace.checkThirdParty": {
15161525
"default": true,
1517-
"markdownDescription": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* Jass\n",
1526+
"markdownDescription": "自动检测与适配第三方库,目前支持的库为:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* skynet\n* Jass\n",
15181527
"scope": "window",
15191528
"type": "boolean"
15201529
},

setting/schema.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,6 +1169,9 @@
11691169
"path": {
11701170
"$ref": "#/properties/runtime.path"
11711171
},
1172+
"pathStrict": {
1173+
"$ref": "#/properties/runtime.pathStrict"
1174+
},
11721175
"plugin": {
11731176
"$ref": "#/properties/runtime.plugin"
11741177
},
@@ -1381,10 +1384,16 @@
13811384
"items": {
13821385
"type": "string"
13831386
},
1384-
"markdownDescription": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, all `**/myfile/init.lua` will be searched from the loaded files.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n",
1387+
"markdownDescription": "When using `require`, how to find the file based on the input name.\nSetting this config to `?/init.lua` means that when you enter `require 'myfile'`, `${workspace}/myfile/init.lua` will be searched from the loaded files.\nif `runtime.pathStrict` is `false`, `${workspace}/**/myfile/init.lua` will also be searched.\nIf you want to load files outside the workspace, you need to set `Lua.workspace.library` first.\n",
13851388
"scope": "window",
13861389
"type": "array"
13871390
},
1391+
"runtime.pathStrict": {
1392+
"default": false,
1393+
"markdownDescription": "When enabled, `runtime.path` will only search the first level of directories, see the description of `runtime.path`.",
1394+
"scope": "window",
1395+
"type": "boolean"
1396+
},
13881397
"runtime.plugin": {
13891398
"default": "",
13901399
"markdownDescription": "Plugin path. Please read [wiki](https://github.com/sumneko/lua-language-server/wiki/Plugin) to learn more.",
@@ -1514,7 +1523,7 @@
15141523
},
15151524
"workspace.checkThirdParty": {
15161525
"default": true,
1517-
"markdownDescription": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* Jass\n",
1526+
"markdownDescription": "Automatic detection and adaptation of third-party libraries, currently supported libraries are:\n\n* OpenResty\n* Cocos4.0\n* LÖVE\n* skynet\n* Jass\n",
15181527
"scope": "window",
15191528
"type": "boolean"
15201529
},

0 commit comments

Comments
 (0)