debt - simplify logic around lastInput (#226046)

This commit is contained in:
Johannes Rieken
2024-08-20 12:40:44 +02:00
committed by GitHub
parent ba3cdbc4b3
commit 5a8d73cebb
2 changed files with 0 additions and 13 deletions

View File

@@ -127,7 +127,6 @@ export class InlineChatSessionServiceImpl implements IInlineChatSessionService {
const { response } = e.request;
const prompt = new SessionPrompt(e.request, session.textModelN.getAlternativeVersionId());
session.addInput(prompt);
lastResponseListener.value = response.onDidChange(() => {
@@ -218,7 +217,6 @@ export class InlineChatSessionServiceImpl implements IInlineChatSessionService {
store.add(new HunkData(this._editorWorkerService, textModel0, textModelN)),
chatModel,
options.session?.exchanges, // @ulugbekna: very hacky: we pass exchanges by reference because an exchange is added only on `addRequest` event from chat model which the migrated inline chat misses
options.session?.lastInput
);
// store: key -> session