summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-06-19 10:30:52 +0800
committerGitHub <noreply@github.com>2024-06-19 10:30:52 +0800
commit40fcae7f4c90e4fba78d5ea44fc94b93b20e0c09 (patch)
treea7cc74752e28d75f387862fe9c6b71137d4a7c4a
parent85cb44556575f81a31267fe3c443822f3e97699e (diff)
parente21402aa4165f5dbddfef8bd97ff66bfbd8938b1 (diff)
downloadlua-language-server-40fcae7f4c90e4fba78d5ea44fc94b93b20e0c09.zip
Merge pull request #2716 from JanSharp/do-not-try-to-match-plugin-array-with-workspace-paths
Fix plugin arg arrays when paths contain numbers passing along only one argument
-rw-r--r--script/plugin.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/plugin.lua b/script/plugin.lua
index 80179633..b8ecfb6a 100644
--- a/script/plugin.lua
+++ b/script/plugin.lua
@@ -156,7 +156,7 @@ local function initPlugin(uri)
end
for i, pluginConfigPath in ipairs(pluginConfigPaths) do
local myArgs = args
- if args then
+ if args and not args[1] then
for k, v in pairs(args) do
if pluginConfigPath:find(k, 1, true) then
myArgs = v