File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -193,8 +193,8 @@ function doc.runCLI()
193
193
194
194
print (' root uri = ' .. rootUri )
195
195
196
- --- If '--configpath' is specified, get the folder path of the '.luarc.doc.josn ' configuration file (without the file name)
197
- --- 如果指定了'--configpath',则获取`.luarc.doc.josn ` 配置文件的文件夹路径(不包含文件名)
196
+ --- If '--configpath' is specified, get the folder path of the '.luarc.doc.json ' configuration file (without the file name)
197
+ --- 如果指定了'--configpath',则获取`.luarc.doc.json ` 配置文件的文件夹路径(不包含文件名)
198
198
--- This option is passed into the callback function of the initialized method in provide.
199
199
--- 该选项会被传入到`provide`中的`initialized`方法的回调函数中
200
200
local luarcParentUri
@@ -212,7 +212,7 @@ function doc.runCLI()
212
212
213
213
client :initialize {
214
214
rootUri = rootUri ,
215
- luarcParentUri = luarcParentUri
215
+ luarcParentUri = luarcParentUri ,
216
216
}
217
217
io.write (lang .script (' CLI_DOC_INITING' ))
218
218
Original file line number Diff line number Diff line change @@ -141,7 +141,8 @@ m.register 'initialized'{
141
141
--- @async
142
142
function (_params )
143
143
local _ <close> = progress .create (workspace .getFirstScope ().uri , lang .script .WINDOW_INITIALIZING , 0.5 )
144
- m .updateConfig ((_params or {}).luarcParentUri )
144
+ --- 传递`.luarc.doc.json`文件所在的文件夹路径
145
+ m .updateConfig (_params and _params .luarcParentUri )
145
146
local registrations = {}
146
147
147
148
if client .getAbility ' workspace.didChangeConfiguration.dynamicRegistration' then
You can’t perform that action at this time.
0 commit comments