Skip to content

Commit c2e75a3

Browse files
committed
Copilot.vim 1.4.2
1 parent 5e9d4dc commit c2e75a3

File tree

4 files changed

+32
-23
lines changed

4 files changed

+32
-23
lines changed

README.md

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
11
# Copilot.vim
22

3-
GitHub Copilot is an AI pair programmer which suggests line completions and
4-
entire function bodies as you type. GitHub Copilot is powered by the OpenAI
5-
Codex AI system, trained on public Internet text and billions of lines of
6-
code.
3+
GitHub Copilot uses OpenAI Codex to suggest code and entire functions in
4+
real-time right from your editor. Trained on billions of lines of public code,
5+
GitHub Copilot turns natural language prompts including comments and method
6+
names into coding suggestions across dozens of languages.
77

88
Copilot.vim is a Vim plugin for GitHub Copilot. For now, it requires Neovim
99
0.6 (for virtual lines support) and a Node.js installation.
1010

11-
To learn more about GitHub Copilot, visit https://copilot.github.com.
11+
To learn more, visit [aka.ms/copilot-learn-more](https://aka.ms/copilot-learn-more)
1212

13-
## Technical Preview
13+
## Subscription
1414

15-
Access to GitHub Copilot is limited to a small group of testers during the
16-
technical preview of GitHub Copilot. If you don’t have access to the technical
17-
preview, you will see an error when you try to use this extension.
18-
19-
Don’t have access yet? [Sign up for the
20-
waitlist](https://github.com/features/copilot/signup) for your chance to try
21-
it out. GitHub will notify you once you have access.
22-
23-
This technical preview is a Beta Preview under the [GitHub Terms of
24-
Service](https://docs.github.com/en/github/site-policy/github-terms-of-service#j-beta-previews).
15+
Once GitHub Copilot is generally available, it will require a subscription. It
16+
will be free for verified students and maintainers of popular open source
17+
projects on GitHub.
2518

2619
## Getting started
2720

@@ -43,3 +36,17 @@ Service](https://docs.github.com/en/github/site-policy/github-terms-of-service#j
4336

4437
Suggestions are displayed inline and can be accepted by pressing the tab key.
4538
See `:help copilot` for more information.
39+
40+
During the technical preview, GitHub Copilot is considered a Beta Preview
41+
under the [GitHub Terms of
42+
Service](https://docs.github.com/en/site-policy/github-terms/github-terms-of-service#j-beta-previews).
43+
Once GitHub Copilot is generally available, it will be subject to the [GitHub
44+
Additional Product
45+
Terms](https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features).
46+
47+
48+
## Troubleshooting
49+
50+
We’d love to get your help in making GitHub Copilot better! If you have
51+
feedback or encounter any problems, please reach out on our [Feedback
52+
forum](https://github.com/github-community/community/discussions/categories/copilot).

autoload/copilot.vim

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ function! s:commands.status(opts) abort
587587
endfunction
588588

589589
function! s:commands.signout(opts) abort
590-
let status = copilot#Call('checkStatus', {})
590+
let status = copilot#Call('checkStatus', {'options': {'localChecksOnly': v:true}})
591591
if has_key(status, 'user')
592592
echo 'Copilot: Signed out as GitHub user ' . status.user
593593
else
@@ -604,7 +604,8 @@ function! s:commands.setup(opts) abort
604604

605605
let browser = copilot#Browser()
606606

607-
if has_key(copilot#Call('checkStatus', {}), 'user')
607+
let status = copilot#Call('checkStatus', {})
608+
if has_key(status, 'user')
608609
let data = {}
609610
else
610611
let data = copilot#Call('signInInitiate', {})
@@ -651,11 +652,12 @@ function! s:commands.setup(opts) abort
651652
endtry
652653
if request.status ==# 'error'
653654
return 'echoerr ' . string('Copilot: Authentication failure: ' . request.error.message)
655+
else
656+
let status = request.result
654657
endif
655658
endif
656659

657-
let status = copilot#Call('checkStatus', {})
658-
let user = status.user
660+
let user = get(status, 'user', '<unknown>')
659661

660662
if status.status ==# 'NoTelemetryConsent'
661663
let terms_url = "https://github.co/copilot-telemetry-terms"
@@ -767,7 +769,7 @@ function! copilot#Command(line1, line2, range, bang, mods, arg) abort
767769
if !empty(err)
768770
return 'echo ' . string('Copilot: ' . string(err))
769771
endif
770-
let opts = copilot#Call('checkStatus', {})
772+
let opts = copilot#Call('checkStatus', {'options': {'localChecksOnly': v:true}})
771773
if empty(cmd)
772774
if opts.status !=# 'OK' && opts.status !=# 'MaybeOK'
773775
let cmd = 'setup'

autoload/copilot/agent.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ let g:autoloaded_copilot_agent = 1
55

66
scriptencoding utf-8
77

8-
let s:plugin_version = '1.4.1'
8+
let s:plugin_version = '1.4.2'
99

1010
let s:error_exit = -1
1111

copilot/dist/agent.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)