diff options
| author | Robert Muir <rcmuir@gmail.com> | 2025-08-25 22:13:09 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-25 19:13:09 -0700 |
| commit | 44201a94c6b2031f53bdcf645d5de72489e806b9 (patch) | |
| tree | c27a348255b39da6cf7686826c4ffaebdca284d0 /lsp | |
| parent | fix(atopile): rename file, move to correct location #4039 (diff) | |
| download | nvim-lspconfig-44201a94c6b2031f53bdcf645d5de72489e806b9.tar nvim-lspconfig-44201a94c6b2031f53bdcf645d5de72489e806b9.tar.gz nvim-lspconfig-44201a94c6b2031f53bdcf645d5de72489e806b9.tar.bz2 nvim-lspconfig-44201a94c6b2031f53bdcf645d5de72489e806b9.tar.lz nvim-lspconfig-44201a94c6b2031f53bdcf645d5de72489e806b9.tar.xz nvim-lspconfig-44201a94c6b2031f53bdcf645d5de72489e806b9.tar.zst nvim-lspconfig-44201a94c6b2031f53bdcf645d5de72489e806b9.zip | |
fix(copilot): device flow authentication #4038
Current code will always trigger error (unless you are already authd),
because result.code is invalid. result.userCode must be used instead.
Diffstat (limited to 'lsp')
| -rw-r--r-- | lsp/copilot.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lsp/copilot.lua b/lsp/copilot.lua index 1184770b..5f216d53 100644 --- a/lsp/copilot.lua +++ b/lsp/copilot.lua @@ -32,7 +32,7 @@ local function sign_in(bufnr, client) vim.fn.setreg('+', code) vim.fn.setreg('*', code) local continue = vim.fn.confirm( - 'Copyied your one-time code to clipboard.\n' .. 'Open the browser to complete the sign-in process?', + 'Copied your one-time code to clipboard.\n' .. 'Open the browser to complete the sign-in process?', '&Yes\n&No' ) if continue == 1 then @@ -49,7 +49,7 @@ local function sign_in(bufnr, client) end if result.status == 'PromptUserDeviceFlow' then - vim.notify('Enter your one-time code ' .. result.code .. ' in ' .. result.verificationUri) + vim.notify('Enter your one-time code ' .. result.userCode .. ' in ' .. result.verificationUri) elseif result.status == 'AlreadySignedIn' then vim.notify('Already signed in as ' .. result.user .. '.') end |
