Skip to content

Commit 3955014

Browse files
committed
Copilot.vim 1.50.0
1 parent d1e8429 commit 3955014

File tree

10 files changed

+562
-469
lines changed

10 files changed

+562
-469
lines changed

autoload/copilot.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,7 @@ function! s:commands.setup(opts) abort
666666
call input(codemsg . "Press ENTER to open GitHub in your browser\n")
667667
let request = copilot#Request('workspace/executeCommand', data.command)
668668
endif
669-
call s:Echo("Waiting for " . data.userCode . " at " . uri . " (could take up to 10 seconds)")
669+
call s:Echo("Waiting for " . data.userCode . " at " . uri . " (could take up to 5 seconds)")
670670
call request.Wait()
671671
finally
672672
if exists('mouse')
@@ -789,7 +789,7 @@ function! copilot#Command(line1, line2, range, bang, mods, arg) abort
789789
if opts.status !=# 'OK' && opts.status !=# 'MaybeOK'
790790
let cmd = 'setup'
791791
else
792-
let cmd = 'panel'
792+
let cmd = 'status'
793793
endif
794794
catch
795795
call copilot#logger#Exception()

autoload/copilot/panel.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ endfunction
111111

112112
function! s:Initialize(state) abort
113113
try
114-
let &l:filetype = 'copilot' . (empty(a:state.filetype) ? '' : '.' . a:state.filetype)
114+
let &l:filetype = 'copilotpanel' . (empty(a:state.filetype) ? '' : '.' . a:state.filetype)
115115
catch
116-
let &l:filetype = 'copilot'
116+
let &l:filetype = 'copilotpanel'
117117
endtry
118118
let &l:tabstop = a:state.tabstop
119119
nmap <buffer><script> <CR> <Cmd>exe copilot#panel#Accept()<CR>

autoload/copilot/version.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
function! copilot#version#String() abort
2-
return '1.49.0'
2+
return '1.50.0'
33
endfunction

copilot-language-server/dist/main.js

Lines changed: 532 additions & 438 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

copilot-language-server/dist/main.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
3.05 MB
Binary file not shown.

copilot-language-server/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"url": "git+https://github.com/github/copilot-language-server-release.git"
1212
},
1313
"license": "https://docs.github.com/en/site-policy/github-terms/github-terms-for-additional-products-and-features",
14-
"version": "1.319.0",
14+
"version": "1.324.0",
1515
"bin": {
1616
"copilot-language-server": "../dist/language-server.js"
1717
},
@@ -31,6 +31,6 @@
3131
"dependencies": {
3232
"vscode-languageserver-protocol": "^3.17.5"
3333
},
34-
"build": "1559",
34+
"build": "1588",
3535
"buildType": "prod"
3636
}

doc/copilot.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ COMMANDS *:Copilot*
3030
:Copilot panel Open a window with up to 10 completions for the
3131
current buffer. Use <CR> to accept a completion.
3232
Maps are also provided for [[ and ]] to jump from
33-
completion to completion. This is the default command
34-
if :Copilot is called without an argument.
33+
completion to completion.
3534

3635
*:Copilot_version*
3736
:Copilot version Show version information.

syntax/copilot.vim

Lines changed: 0 additions & 19 deletions
This file was deleted.

syntax/copilotpanel.vim

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
scriptencoding utf-8
2+
3+
if exists("b:current_syntax")
4+
finish
5+
endif
6+
7+
let s:subtype = matchstr(&l:filetype, '\<copilotpanel\.\zs[[:alnum:]_-]\+')
8+
if !empty(s:subtype) && s:subtype !~# 'copilot'
9+
silent! exe 'syn include @copilotpanelLanguageTop syntax/' . s:subtype . '.vim'
10+
unlet! b:current_syntax
11+
endif
12+
13+
syn region copilotpanelHeader start="\%^" end="^─\@="
14+
syn region copilotpanelItem matchgroup=copilotpanelSeparator start="^─\{9,}$" end="\%(^─\{9,\}$\)\@=\|\%$" keepend contains=@copilotpanelLanguageTop
15+
16+
hi def link copilotpanelHeader PreProc
17+
hi def link copilotpanelSeparator Comment
18+
19+
let b:current_syntax = "copilotpanel"

0 commit comments

Comments
 (0)