Skip to content

Commit 814e233

Browse files
authored
feat(api): add get_version (zbirenbaum#56)
1 parent c73dfdc commit 814e233

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lua/copilot/api.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,15 @@ function mod.sign_in_confirm(client, params, callback)
6464
return mod.request(client, "signInConfirm", params, callback)
6565
end
6666

67+
---@alias copilot_get_version_data { version: string }
68+
69+
---@return any|nil err
70+
---@return copilot_get_version_data data
71+
---@return table ctx
72+
function mod.get_version(client, callback)
73+
return mod.request(client, "getVersion", {}, callback)
74+
end
75+
6776
---@alias copilot_notify_accepted_params { uuid: string }
6877

6978
---@param params copilot_notify_accepted_params

0 commit comments

Comments
 (0)