mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-10 00:27:05 -06:00
make sure hold a session-long reference to untitled documents (#210969)
This commit is contained in:
parent
ba65916262
commit
321938130d
@ -527,10 +527,17 @@ export class InlineChatSessionServiceImpl implements IInlineChatSessionService {
|
||||
e.request.id,
|
||||
e.request.response
|
||||
);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
session.addExchange(new SessionExchange(session.lastInput!, inlineResponse));
|
||||
|
||||
if (inlineResponse instanceof ReplyResponse && inlineResponse.untitledTextModel) {
|
||||
this._textModelService.createModelReference(inlineResponse.untitledTextModel.resource).then(ref => {
|
||||
store.add(ref);
|
||||
});
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user