mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
make sure hold a session-long reference to untitled documents (#210969)
This commit is contained in:
@@ -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);
|
||||
});
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user