Skip to content

Commit e074f40

Browse files
committed
update setting
1 parent 8e4ead2 commit e074f40

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

package/configuration.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@ local config = {
185185
},
186186
markdownDescription = "%config.workspace.library%"
187187
},
188+
['Lua.workspace.checkThirdParty'] = {
189+
scope = 'source',
190+
type = 'boolean',
191+
default = true,
192+
markdownDescription = "%config.workspace.checkThirdParty%"
193+
},
188194
["Lua.completion.enable"] = {
189195
scope = "resource",
190196
type = "boolean",

package/nls-zh-cn.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ return {
3333
["config.workspace.library"] = [[
3434
外部函数库的目录路径。
3535
语言服务会额外加载这些目录中的lua文件,即使他们不在当前的工作目录中,用于函数定义、自动完成等功能。
36+
]],
37+
['config.workspace.checkThirdParty'] = [[
38+
自动检测与适配第三方库,目前支持的库为:
39+
* OpenResty
40+
* Cocos4.0
41+
* Jass
3642
]],
3743
['config.completion.enable'] = '启用自动完成。',
3844
['config.completion.callSnippet'] = '显示函数调用片段。',

package/nls.lua

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ Adjust the enabled state of the built-in library. You can disable (or redefine)
3333
["config.workspace.library"] = [[
3434
The directory path of the external function library.
3535
The language service will additionally load the lua files in these directories, even if they are not in the current workspace, for definition, completion and other features.
36+
]],
37+
['config.workspace.checkThirdParty'] = [[
38+
Automatic detection and adaptation of third-party libraries, currently supported libraries are:
39+
* OpenResty
40+
* Cocos4.0
41+
* Jass
3642
]],
3743
['config.completion.enable'] = 'Enable completion.',
3844
['config.completion.callSnippet'] = 'Shows function call snippets.',

0 commit comments

Comments
 (0)