File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ let g:autoloaded_copilot_agent = 1
55
66scriptencoding utf- 8
77
8- let s: plugin_version = ' 1.11.2 '
8+ let s: plugin_version = ' 1.11.3 '
99
1010let s: error_exit = -1
1111
@@ -58,18 +58,14 @@ function! s:AgentNotify(method, params) dict abort
5858 return v: true
5959endfunction
6060
61- function ! s: IsFinished (request) abort
62- return a: request .status !=# ' running' && empty (get (a: request , ' waiting' , {}))
63- endfunction
64-
6561function ! s: RequestWait () dict abort
66- if exists ( ' *wait ' )
67- call wait ( -1 , function ( ' s:IsFinished ' , [ self ]), 2 )
68- else
69- while ! s: IsFinished ( self )
70- sleep 2 m
71- endwhile
72- endif
62+ while self .status == # ' running '
63+ sleep 1 m
64+ endwhile
65+ while ! empty ( get ( self , ' waiting ' , {}) )
66+ sleep 1 m
67+ endwhile
68+ return self
7369endfunction
7470
7571function ! s: RequestAwait () dict abort
You can’t perform that action at this time.
0 commit comments