Skip to content

Commit 1dcaf72

Browse files
committed
Copilot.vim 1.35.0
1 parent 53d3091 commit 1dcaf72

File tree

5 files changed

+266
-266
lines changed

5 files changed

+266
-266
lines changed

autoload/copilot.vim

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ function! copilot#Enabled() abort
172172
\ && empty(s:BufferDisabled())
173173
endfunction
174174

175-
let s:inline_automatic = 1
176-
let s:inline_invoked = 2
175+
let s:inline_invoked = 1
176+
let s:inline_automatic = 2
177177

178178
function! copilot#Complete(...) abort
179179
if exists('g:_copilot_timer')
@@ -401,13 +401,13 @@ function! s:Trigger(bufnr, timer) abort
401401
return copilot#Suggest()
402402
endfunction
403403

404-
function! copilot#Schedule(...) abort
404+
function! copilot#Schedule() abort
405405
if !s:has_ghost_text || !s:Running() || !copilot#Enabled()
406406
call copilot#Clear()
407407
return
408408
endif
409409
call s:UpdatePreview()
410-
let delay = a:0 ? a:1 : get(g:, 'copilot_idle_delay', 15)
410+
let delay = get(g:, 'copilot_idle_delay', 45)
411411
call timer_stop(get(g:, '_copilot_timer', -1))
412412
let g:_copilot_timer = timer_start(delay, function('s:Trigger', [bufnr('')]))
413413
endfunction

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.34.0'
2+
return '1.35.0'
33
endfunction

dist/language-server.js

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

dist/language-server.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.

syntax/copilot.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ endif
66

77
let s:subtype = matchstr(&l:filetype, '\<copilot\.\zs[[:alnum:]_-]\+')
88
if !empty(s:subtype) && s:subtype !=# 'copilot'
9-
exe 'syn include @copilotLanguageTop syntax/' . s:subtype . '.vim'
9+
silent! exe 'syn include @copilotLanguageTop syntax/' . s:subtype . '.vim'
1010
unlet! b:current_syntax
1111
endif
1212

0 commit comments

Comments
 (0)