summaryrefslogtreecommitdiff
path: root/script/plugin.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-08-15 15:16:03 +0800
committerGitHub <noreply@github.com>2024-08-15 15:16:03 +0800
commit2c798703ca854d670fb28f51adc85c2b41f08f37 (patch)
treeaa192cf6d6ed02d02dda8c8b7a4c240dded64efb /script/plugin.lua
parentabd5daae1885cdf7a9e21a1cbdfea945385124fc (diff)
parentb71cb7aecd9337c9463a4dfbdb9d06cac7b825fd (diff)
downloadlua-language-server-2c798703ca854d670fb28f51adc85c2b41f08f37.zip
Merge branch 'master' into cast-table-to-class
Diffstat (limited to 'script/plugin.lua')
-rw-r--r--script/plugin.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/plugin.lua b/script/plugin.lua
index b8ecfb6a..ec55875e 100644
--- a/script/plugin.lua
+++ b/script/plugin.lua
@@ -195,7 +195,7 @@ local function initPlugin(uri)
m.showError(scp, err)
return
end
- if not client.isVSCode() and not checkTrustLoad(scp) then
+ if not client.getOption('trustByClient') and not checkTrustLoad(scp) then
return
end
local suc, err = xpcall(f, log.error, f, uri, myArgs)