@@ -169,7 +169,7 @@ function M.use_client(callback)
169
169
return
170
170
end
171
171
172
- local timer , err , _ = vim .loop .new_timer ()
172
+ local timer , err , _ = vim .uv .new_timer ()
173
173
174
174
if not timer then
175
175
logger .error (string.format (" error creating timer: %s" , err ))
@@ -249,6 +249,8 @@ local function prepare_client_config(overrides)
249
249
end
250
250
end
251
251
252
+ local editor_info = util .get_editor_info ()
253
+
252
254
-- LSP config, not to be confused with config.lua
253
255
return vim .tbl_deep_extend (" force" , {
254
256
cmd = {
@@ -303,6 +305,11 @@ local function prepare_client_config(overrides)
303
305
handlers = handlers ,
304
306
init_options = {
305
307
copilotIntegrationId = " vscode-chat" ,
308
+ -- Fix LSP warning: editorInfo and editorPluginInfo will soon be required in initializationOptions
309
+ -- We are sending these twice for the time being as it will become required here and we get a warning if not set.
310
+ -- However if not passed in setEditorInfo, that one returns an error.
311
+ editorInfo = editor_info .editorInfo ,
312
+ editorPluginInfo = editor_info .editorPluginInfo ,
306
313
},
307
314
workspace_folders = workspace_folders ,
308
315
trace = config .get (" trace" ) or " off" ,
0 commit comments