From e074f40d3ebf509c1d1ce0878495ecf7b2c54603 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= <sumneko@hotmail.com>
Date: Thu, 8 Jul 2021 17:35:29 +0800
Subject: [PATCH] update setting

---
 package/configuration.lua | 6 ++++++
 package/nls-zh-cn.lua     | 6 ++++++
 package/nls.lua           | 6 ++++++
 3 files changed, 18 insertions(+)

diff --git a/package/configuration.lua b/package/configuration.lua
index 10896b4..7ce927c 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 095b498..c22808c 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 ae80c73..d424c67 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.',
-- 
GitLab