Skip to content

Conversation

@osortega
Copy link
Contributor

@osortega osortega commented Dec 5, 2025

This change makes sure the model is restored before trying to open the diff changes

@osortega osortega self-assigned this Dec 5, 2025
@vs-code-engineering
Copy link

vs-code-engineering bot commented Dec 5, 2025

📬 CODENOTIFY

The following users are being notified based on files changed in this PR:

@bpasero

Matched files:

  • src/vs/workbench/contrib/chat/browser/agentSessions/agentSessionsActions.ts

@jrieken

Matched files:

  • src/vs/workbench/contrib/chat/browser/chatEditing/chatEditingSession.ts

await session?.editingSession?.show();
} else {
if (!session) {
await chatService.loadSessionForResource(resource, ChatAgentLocation.Chat, CancellationToken.None);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This returned a reference too, who owns it?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the command to show the changes implemented? I assume the session needs to stay alive as long as the diff editor is open, how are those two things associated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed it so that we keep a reference and dispose it accordingly.
This command is owned by the chat extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants