mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-22 17:48:56 +01:00
Fix double-disposing edit session (#244395)
And fix inline chat 2 This is complicated. The way that I expect it to work now - The ChatModel creates the editing session for the right locations and based on the isGlobalEditingSession flag passed in - stop doesn't dispose the editing session, so it doesn't get disposed twice, but it gets disposed when the ChatModel is disposed
This commit is contained in:
@@ -1422,7 +1422,7 @@ export async function reviewEdits(accessor: ServicesAccessor, editor: ICodeEdito
|
||||
const chatEditingService = accessor.get(IChatEditingService);
|
||||
|
||||
const uri = editor.getModel().uri;
|
||||
const chatModel = chatService.startSession(ChatAgentLocation.Editor, token);
|
||||
const chatModel = chatService.startSession(ChatAgentLocation.Editor, token, false);
|
||||
|
||||
const editSession = await chatEditingService.createEditingSession(chatModel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user