Skip to content

Commit 0caafff

Browse files
committed
merge main, fix compile errors
1 parent 66ff1be commit 0caafff

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/vs/workbench/contrib/notebook/browser/view/cellParts/chat/cellChatController.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { IEditorWorkerService } from 'vs/editor/common/services/editorWorker';
2525
import { localize } from 'vs/nls';
2626
import { MenuId, registerAction2 } from 'vs/platform/actions/common/actions';
2727
import { 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';
2929
import { KeybindingWeight } from 'vs/platform/keybinding/common/keybindingsRegistry';
3030
import { AsyncProgress } from 'vs/platform/progress/common/progress';
3131
import { 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

Comments
 (0)