@@ -25,7 +25,7 @@ import { IEditorWorkerService } from 'vs/editor/common/services/editorWorker';
2525import { localize } from 'vs/nls' ;
2626import { MenuId , registerAction2 } from 'vs/platform/actions/common/actions' ;
2727import { ContextKeyExpr , IContextKey , IContextKeyService , RawContextKey } from 'vs/platform/contextkey/common/contextkey' ;
28- import { ServicesAccessor } from 'vs/platform/instantiation/common/instantiation' ;
28+ import { IInstantiationService , ServicesAccessor } from 'vs/platform/instantiation/common/instantiation' ;
2929import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry' ;
3030import { AsyncProgress } from 'vs/platform/progress/common/progress' ;
3131import { countWords } from 'vs/workbench/contrib/chat/common/chatWordCounter' ;
@@ -69,6 +69,7 @@ export class NotebookCellChatController extends Disposable {
6969 @IContextKeyService private readonly _contextKeyService : IContextKeyService ,
7070 @IInlineChatSessionService private readonly _inlineChatSessionService : IInlineChatSessionService ,
7171 @IEditorWorkerService private readonly _editorWorkerService : IEditorWorkerService ,
72+ @IInstantiationService private readonly _instaService : IInstantiationService ,
7273 ) {
7374 super ( ) ;
7475
@@ -239,7 +240,7 @@ export class NotebookCellChatController extends Disposable {
239240 }
240241
241242 const markdownContents = new MarkdownString ( '' , { supportThemeIcons : true , supportHtml : true , isTrusted : false } ) ;
242- const replyResponse = new ReplyResponse ( reply , markdownContents , this . _activeSession . textModelN . uri , this . _activeSession . textModelN . getAlternativeVersionId ( ) , progressEdits ) ;
243+ const replyResponse = this . _instaService . createInstance ( ReplyResponse , reply , markdownContents , this . _activeSession . textModelN . uri , this . _activeSession . textModelN . getAlternativeVersionId ( ) , progressEdits ) ;
243244 for ( let i = progressEdits . length ; i < replyResponse . allLocalEdits . length ; i ++ ) {
244245 await this . _makeChanges ( editor , replyResponse . allLocalEdits [ i ] , undefined ) ;
245246 }
0 commit comments