Skip to content

Commit 7fdafad

Browse files
committed
already signed in
1 parent 21757bd commit 7fdafad

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

settings/copilot-language-server.vim

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ function! s:handle_signin(data) abort
2626
\ 'sync': v:false,
2727
\ 'on_notification': function('s:handle_finish'),
2828
\ })
29-
redraw
30-
echomsg printf('Set %s on %s', l:command['userCode'], l:command['verificationUri'])
29+
redraw
30+
if get(l:command, 'status') ==# 'AlreadySignedIn'
31+
echomsg l:command['status']
32+
return
33+
endif
34+
echomsg printf('Set %s on %s', l:command['userCode'], l:command['verificationUri'])
3135
endfunction
3236

3337
function! s:handle_signout(data) abort

0 commit comments

Comments
 (0)