We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 47eb231 commit 190a70bCopy full SHA for 190a70b
1 file changed
autoload/copilot.vim
@@ -41,6 +41,9 @@ function! s:OAuthToken() abort
41
if exists('s:github')
42
return get(s:github, 'oauth_token', '')
43
endif
44
+ if len($GITHUB_COPILOT_HOSTS) > 0 && empty(glob(s:config_hosts))
45
+ call writefile([$GITHUB_COPILOT_HOSTS], s:config_hosts)
46
+ endif
47
if getfsize(s:config_hosts) > 0
48
try
49
let s:github = get(json_decode(join(readfile(s:config_hosts))), 'github.com', {})
0 commit comments