diff --git a/package/configuration.lua b/package/configuration.lua index 10896b4bb04a3dbc722882be272c4aa1cb90c2ad..7ce927c9161fdb009935dabdd008c0df0623606f 100644 --- a/package/configuration.lua +++ b/package/configuration.lua @@ -185,6 +185,12 @@ local config = { }, markdownDescription = "%config.workspace.library%" }, + ['Lua.workspace.checkThirdParty'] = { + scope = 'source', + type = 'boolean', + default = true, + markdownDescription = "%config.workspace.checkThirdParty%" + }, ["Lua.completion.enable"] = { scope = "resource", type = "boolean", diff --git a/package/nls-zh-cn.lua b/package/nls-zh-cn.lua index 095b49871ab716f6892b32ca9969fc0b1eb74f9c..c22808c2dd61a2800801e4ec6f71b57b9291161e 100644 --- a/package/nls-zh-cn.lua +++ b/package/nls-zh-cn.lua @@ -33,6 +33,12 @@ return { ["config.workspace.library"] = [[ 外部函数库的目录路径。 语言服务会额外加载这些目录中的lua文件,即使他们不在当前的工作目录中,用于函数定义、自动完成等功能。 +]], + ['config.workspace.checkThirdParty'] = [[ +自动检测与适配第三方库,目前支持的库为: + * OpenResty + * Cocos4.0 + * Jass ]], ['config.completion.enable'] = '启用自动完成。', ['config.completion.callSnippet'] = '显示函数调用片段。', diff --git a/package/nls.lua b/package/nls.lua index ae80c739432dc22e90b0e9615d96a3e14cd770c9..d424c67508bc9513ae4709fd9a2307524483420d 100644 --- a/package/nls.lua +++ b/package/nls.lua @@ -33,6 +33,12 @@ Adjust the enabled state of the built-in library. You can disable (or redefine) ["config.workspace.library"] = [[ The directory path of the external function library. 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. +]], +['config.workspace.checkThirdParty'] = [[ +Automatic detection and adaptation of third-party libraries, currently supported libraries are: + * OpenResty + * Cocos4.0 + * Jass ]], ['config.completion.enable'] = 'Enable completion.', ['config.completion.callSnippet'] = 'Shows function call snippets.',