Skip to content

Commit a0128ff

Browse files
authored
Merge pull request #1382 from Nexela/PluginUri
Add uri to plugin call
2 parents 082b0bf + cb9b62f commit a0128ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

script/plugin.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ local function initPlugin(uri)
115115
if not client.isVSCode() and not checkTrustLoad(scp) then
116116
return
117117
end
118-
local suc, err = xpcall(f, log.error, f, config.get(scp.uri, 'Lua.runtime.pluginArgs'))
118+
local pluginArgs = config.get(scp.uri, 'Lua.runtime.pluginArgs')
119+
local suc, err = xpcall(f, log.error, f, uri, pluginArgs)
119120
if not suc then
120121
m.showError(scp, err)
121122
return

0 commit comments

Comments
 (0)