@@ -15,7 +15,7 @@ if has('nvim')
1515 lua package.loaded._copilot = nil
1616endif
1717
18- function ! s: AgentClose () dict abort
18+ function ! s: VimClose () dict abort
1919 if ! has_key (self , ' job' )
2020 return
2121 endif
@@ -71,7 +71,7 @@ function! s:Send(agent, request) abort
7171 endtry
7272endfunction
7373
74- function ! s: AgentNotify (method, params) dict abort
74+ function ! s: VimNotify (method, params) dict abort
7575 let request = {' method' : a: method , ' params' : a: params }
7676 if has_key (self , ' initialization_pending' )
7777 call add (self .initialization_pending, request)
@@ -243,7 +243,7 @@ function! s:VimIsAttached(bufnr) dict abort
243243 return bufloaded (a: bufnr ) && has_key (self .open_buffers, a: bufnr ) ? v: true : v: false
244244endfunction
245245
246- function ! s: AgentRequest (method, params, ... ) dict abort
246+ function ! s: VimRequest (method, params, ... ) dict abort
247247 let s: id += 1
248248 let params = deepcopy (a: params )
249249 let [_, progress] = s: PreprocessParams (self , params)
@@ -611,9 +611,9 @@ function! copilot#agent#New(...) abort
611611 \ ' progress' : {},
612612 \ ' workspaceFolders' : {},
613613 \ ' status' : {' status' : ' Starting' , ' message' : ' ' },
614- \ ' Close' : function (' s:AgentClose ' ),
615- \ ' Notify' : function (' s:AgentNotify ' ),
616- \ ' Request' : function (' s:AgentRequest ' ),
614+ \ ' Close' : function (' s:VimClose ' ),
615+ \ ' Notify' : function (' s:VimNotify ' ),
616+ \ ' Request' : function (' s:VimRequest ' ),
617617 \ ' Attach' : function (' s:VimAttach' ),
618618 \ ' IsAttached' : function (' s:VimIsAttached' ),
619619 \ ' Call' : function (' s:AgentCall' ),
0 commit comments