Skip to content

Copilot - scaffold method to eagerly refresh changes cache#315468

Merged
lszomoru merged 3 commits into
mainfrom
lszomoru/northern-chicken
May 9, 2026
Merged

Copilot - scaffold method to eagerly refresh changes cache#315468
lszomoru merged 3 commits into
mainfrom
lszomoru/northern-chicken

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented May 9, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 9, 2026 15:20
@lszomoru lszomoru enabled auto-merge (squash) May 9, 2026 15:20
@lszomoru lszomoru self-assigned this May 9, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds new “refresh changes cache” entry points for Copilot chat sessions and tightens Sessions UI actions to avoid state transitions while git operations are running.

Changes:

  • Disable “Mark as Done” in the Sessions window while a git operation is in progress.
  • Add refreshWorktreeChanges / refreshWorkspaceChanges methods to clear and eagerly re-populate cached change data.
  • Extend the corresponding service interfaces to expose these refresh APIs.
Show a summary per file
File Description
src/vs/sessions/contrib/sessions/browser/views/sessionsViewActions.ts Adds a context-key guard to hide/disable “Mark as Done” during git operations.
extensions/copilot/src/extension/chatSessions/vscode-node/chatSessionWorktreeServiceImpl.ts Implements refreshWorktreeChanges by clearing cached worktree changes and forcing a re-computation.
extensions/copilot/src/extension/chatSessions/vscode-node/chatSessionWorkspaceFolderServiceImpl.ts Implements refreshWorkspaceChanges by clearing cached workspace-folder changes and forcing a re-computation.
extensions/copilot/src/extension/chatSessions/common/chatSessionWorktreeService.ts Extends the worktree service interface with refreshWorktreeChanges.
extensions/copilot/src/extension/chatSessions/common/chatSessionWorkspaceFolderService.ts Extends the workspace-folder service interface with refreshWorkspaceChanges.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 2

@lszomoru lszomoru merged commit 6c4a7f8 into main May 9, 2026
25 checks passed
@lszomoru lszomoru deleted the lszomoru/northern-chicken branch May 9, 2026 17:16
@vs-code-engineering vs-code-engineering Bot added this to the 1.120.0 milestone May 9, 2026
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.

3 participants