summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-02-18 16:45:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-02-18 16:45:31 +0800
commit1d3698919f08ebd53ccdc76ba3eb301886eaddf4 (patch)
treee4513b77d3b3033fde5937c5657650ef046b093f /script
parent9606edaf4de6bf763ad20671e6b6313feeb13e9f (diff)
downloadlua-language-server-1d3698919f08ebd53ccdc76ba3eb301886eaddf4.zip
fix runtime error
Diffstat (limited to 'script')
-rw-r--r--script/client.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/client.lua b/script/client.lua
index 5095b772..f265cf9a 100644
--- a/script/client.lua
+++ b/script/client.lua
@@ -341,7 +341,7 @@ function m.setConfig(changes, onlyMemory)
xpcall(function ()
local ws = require 'workspace'
if #ws.folders == 0 then
- tryModifyClient(finalChanges)
+ tryModifyClient(nil, finalChanges)
return
end
tryModifyClientGlobal(finalChanges)