Skip to content

Sessions - add support for all changes/last turn changes for cloud sessions#308224

Merged
lszomoru merged 5 commits intomainfrom
lszomoru/git-diff-service
Apr 7, 2026
Merged

Sessions - add support for all changes/last turn changes for cloud sessions#308224
lszomoru merged 5 commits intomainfrom
lszomoru/git-diff-service

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented Apr 7, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 7, 2026 14:42
@lszomoru lszomoru enabled auto-merge (squash) April 7, 2026 14:42
@lszomoru lszomoru self-assigned this Apr 7, 2026
@lszomoru lszomoru added this to the 1.116.0 milestone Apr 7, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

Screenshot Changes

Base: d1094dca Current: 2a8b3227

Changed (2)

editor/inlineCompletionsExtras/JumpToHint/Light
Before After
before after
editor/inlineCompletions/WordReplacementView/Light
Before After
before after

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 support for computing “All Changes” and “Last Turn” changes for Copilot Cloud (GitHub-backed) sessions by fetching changed files between refs via the GitHub compare API and wiring those results into the Sessions Changes UI.

Changes:

  • Introduces a new GitHub compare fetcher and IGitHubService.getChangedFiles() API to list changed files between two refs.
  • Updates the Sessions Changes view-model to compute all/last-turn changes for cloud sessions using GitHub compare results and copilot-pr URIs.
  • Replaces hardcoded 'copilot-pr' scheme usage in the Changes view with a shared constant and enables the UI modes for cloud sessions.
Show a summary per file
File Description
src/vs/sessions/services/sessions/common/session.ts Exports a constant for the copilot-pr scheme used by cloud-session diffs.
src/vs/sessions/contrib/github/common/utils.ts Adds helper to build copilot-pr URIs for PR file content based on compare results.
src/vs/sessions/contrib/github/common/types.ts Adds IGitHubChangedFile type representing compare “files changed” entries.
src/vs/sessions/contrib/github/browser/githubService.ts Extends IGitHubService with getChangedFiles and wires in a new fetcher.
src/vs/sessions/contrib/github/browser/fetchers/githubChangesFetcher.ts Implements REST call to GitHub compare API and maps response to IGitHubChangedFile[].
src/vs/sessions/contrib/changes/browser/changesViewModel.ts Uses GitHub compare for cloud-session all/last-turn change computation; keeps local-session behavior.
src/vs/sessions/contrib/changes/browser/changesView.ts Uses the shared PR-file scheme constant and enables All/Last Turn modes for cloud sessions.

Copilot's findings

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

@lszomoru lszomoru merged commit 5aa170f into main Apr 7, 2026
19 checks passed
@lszomoru lszomoru deleted the lszomoru/git-diff-service branch April 7, 2026 15:16
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