diff --git a/script/provider/provider.lua b/script/provider/provider.lua index c1e9a0d20..8b988059e 100644 --- a/script/provider/provider.lua +++ b/script/provider/provider.lua @@ -139,10 +139,10 @@ m.register 'initialize' { m.register 'initialized'{ ---@async - function (_params) + function (params) local _ = progress.create(workspace.getFirstScope().uri, lang.script.WINDOW_INITIALIZING, 0.5) --- 传递`.luarc.doc.json`文件所在的文件夹路径 - m.updateConfig(_params and _params.luarcParentUri) + m.updateConfig(params and params.luarcParentUri) local registrations = {} if client.getAbility 'workspace.didChangeConfiguration.dynamicRegistration' then