Skip to content

Commit 190a70b

Browse files
author
Lisa Ugray
committed
Support copilot hosts from env
1 parent 47eb231 commit 190a70b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

autoload/copilot.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ function! s:OAuthToken() abort
4141
if exists('s:github')
4242
return get(s:github, 'oauth_token', '')
4343
endif
44+
if len($GITHUB_COPILOT_HOSTS) > 0 && empty(glob(s:config_hosts))
45+
call writefile([$GITHUB_COPILOT_HOSTS], s:config_hosts)
46+
endif
4447
if getfsize(s:config_hosts) > 0
4548
try
4649
let s:github = get(json_decode(join(readfile(s:config_hosts))), 'github.com', {})

0 commit comments

Comments
 (0)