Skip to content

Commit cb4e3bc

Browse files
resolving deprecation for lsp client.get call
1 parent 0d56d43 commit cb4e3bc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lua/copilot/api.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ end
2828
---@return boolean sent
2929
function mod.notify(client, method, params)
3030
logger.trace("api notify:", method, params)
31-
return client.notify(method, params)
31+
return client:notify(method, params)
3232
end
3333

3434
---@alias copilot_editor_info { name: string, version: string }

lua/copilot/client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ function M.add_workspace_folder(folder_path)
434434

435435
local client = M.get()
436436
if client and client.initialized then
437-
client.notify("workspace/didChangeWorkspaceFolders", {
437+
client:notify("workspace/didChangeWorkspaceFolders", {
438438
event = {
439439
added = { workspace_folder },
440440
removed = {},

0 commit comments

Comments
 (0)