@@ -111,8 +111,8 @@ export function registerChatCodeBlockActions() {
111111
112112 // Report copy to extensions
113113 if ( context . element . providerResponseId ) {
114- const interactiveSessionService = accessor . get ( IChatService ) ;
115- interactiveSessionService . notifyUserAction ( {
114+ const chatService = accessor . get ( IChatService ) ;
115+ chatService . notifyUserAction ( {
116116 providerId : context . element . providerId ,
117117 action : {
118118 kind : 'copy' ,
@@ -229,8 +229,8 @@ export function registerChatCodeBlockActions() {
229229 }
230230
231231 private notifyUserAction ( accessor : ServicesAccessor , context : IChatCodeBlockActionContext ) {
232- const interactiveSessionService = accessor . get ( IChatService ) ;
233- interactiveSessionService . notifyUserAction ( < IChatUserActionEvent > {
232+ const chatService = accessor . get ( IChatService ) ;
233+ chatService . notifyUserAction ( < IChatUserActionEvent > {
234234 providerId : context . element . providerId ,
235235 action : {
236236 kind : 'insert' ,
@@ -272,10 +272,10 @@ export function registerChatCodeBlockActions() {
272272 }
273273
274274 const editorService = accessor . get ( IEditorService ) ;
275- const interactiveSessionService = accessor . get ( IChatService ) ;
275+ const chatService = accessor . get ( IChatService ) ;
276276 editorService . openEditor ( < IUntitledTextResourceEditorInput > { contents : context . code , languageId : context . languageId , resource : undefined } ) ;
277277
278- interactiveSessionService . notifyUserAction ( < IChatUserActionEvent > {
278+ chatService . notifyUserAction ( < IChatUserActionEvent > {
279279 providerId : context . element . providerId ,
280280 action : {
281281 kind : 'insert' ,
@@ -323,7 +323,7 @@ export function registerChatCodeBlockActions() {
323323 }
324324 }
325325
326- const interactiveSessionService = accessor . get ( IChatService ) ;
326+ const chatService = accessor . get ( IChatService ) ;
327327 const terminalService = accessor . get ( ITerminalService ) ;
328328 const editorService = accessor . get ( IEditorService ) ;
329329 const terminalEditorService = accessor . get ( ITerminalEditorService ) ;
@@ -347,7 +347,7 @@ export function registerChatCodeBlockActions() {
347347
348348 terminal . sendText ( context . code , false , true ) ;
349349
350- interactiveSessionService . notifyUserAction ( < IChatUserActionEvent > {
350+ chatService . notifyUserAction ( < IChatUserActionEvent > {
351351 providerId : context . element . providerId ,
352352 action : {
353353 kind : 'runInTerminal' ,
@@ -361,8 +361,8 @@ export function registerChatCodeBlockActions() {
361361
362362 function navigateCodeBlocks ( accessor : ServicesAccessor , reverse ?: boolean ) : void {
363363 const codeEditorService = accessor . get ( ICodeEditorService ) ;
364- const interactiveSessionWidgetService = accessor . get ( IChatWidgetService ) ;
365- const widget = interactiveSessionWidgetService . lastFocusedWidget ;
364+ const chatWidgetService = accessor . get ( IChatWidgetService ) ;
365+ const widget = chatWidgetService . lastFocusedWidget ;
366366 if ( ! widget ) {
367367 return ;
368368 }
@@ -434,13 +434,13 @@ export function registerChatCodeBlockActions() {
434434}
435435
436436function getContextFromEditor ( editor : ICodeEditor , accessor : ServicesAccessor ) : IChatCodeBlockActionContext | undefined {
437- const interactiveSessionWidgetService = accessor . get ( IChatWidgetService ) ;
437+ const chatWidgetService = accessor . get ( IChatWidgetService ) ;
438438 const model = editor . getModel ( ) ;
439439 if ( ! model ) {
440440 return ;
441441 }
442442
443- const widget = interactiveSessionWidgetService . lastFocusedWidget ;
443+ const widget = chatWidgetService . lastFocusedWidget ;
444444 if ( ! widget ) {
445445 return ;
446446 }
0 commit comments