Skip to content

Commit 40fcae7

Browse files
authored
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
2 parents 85cb445 + e21402a commit 40fcae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/plugin.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ local function initPlugin(uri)
156156
end
157157
for i, pluginConfigPath in ipairs(pluginConfigPaths) do
158158
local myArgs = args
159-
if args then
159+
if args and not args[1] then
160160
for k, v in pairs(args) do
161161
if pluginConfigPath:find(k, 1, true) then
162162
myArgs = v

0 commit comments

Comments
 (0)