Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0754163

Browse files
committed
Copilot.vim 1.23.0
1 parent69455be commit0754163

File tree

5 files changed

+232
-221
lines changed

5 files changed

+232
-221
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#Copilot.vim
1+
#GitHubCopilot for Vim and Neovim
22

33
GitHub Copilot uses OpenAI Codex to suggest code and entire functions in
44
real-time right from your editor. Trained on billions of lines of public

‎autoload/copilot/agent.vim

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ function! s:PreprocessParams(agent, params) abort
196196
endfunction
197197

198198
function!s:VimSyncTextDocument(bufnr)dictabort
199+
if!bufloaded(a:bufnr)
200+
return {'uri':'','version':0}
201+
endif
199202
letbufnr=a:bufnr
200203
let doc= {
201204
\'uri':s:UriFromBufnr(bufnr),
@@ -363,6 +366,9 @@ function! copilot#agent#LspResponse(agent_id, opts, ...) abort
363366
endfunction
364367

365368
function!s:NvimSyncTextDocument(bufnr)dictabort
369+
if!bufloaded(a:bufnr)
370+
return {'uri':'','version':0}
371+
endif
366372
callluaeval('pcall(vim.lsp.buf_attach_client, _A[1], _A[2])', [a:bufnr,self.id])
367373
returnluaeval('{uri = vim.uri_from_bufnr(_A), version = vim.lsp.util.buf_versions[_A]}',a:bufnr)
368374
endfunction
@@ -627,6 +633,7 @@ function! copilot#agent#New(...) abort
627633
let instance.job=job_start(command, {
628634
\'cwd':copilot#job#Cwd(),
629635
\'noblock':1,
636+
\'stoponexit':'',
630637
\'in_mode':'lsp',
631638
\'out_mode':'lsp',
632639
\'out_cb': {j,d->timer_start(0,function('s:OnMessage', [instance,d])) },

‎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.22.0'
2+
return'1.23.0'
33
endfunction

‎dist/agent.js

Lines changed: 220 additions & 216 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎dist/agent.js.map

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp