-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Copilot CLI - publish statistics for session using git worktree #1874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds a new diffWithHEADShortStats method to the git service for retrieving git diff statistics (files changed, insertions, deletions) including untracked files. The method is used in the Copilot CLI chat sessions feature to display statistics for worktree sessions.
- Adds
diffWithHEADShortStatsmethod to git service interface and implementations - Implements custom logic to include untracked files in statistics by counting their lines
- Updates Copilot CLI chat session items to display diff statistics and refactors tooltip/description generation
Reviewed Changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/platform/git/common/gitService.ts | Adds interface definition for diffWithHEADShortStats method |
| src/platform/git/vscode/git.d.ts | Adds type definition for repository diffWithHEADShortStats method |
| src/platform/git/vscode/gitServiceImpl.ts | Implements diffWithHEADShortStats with custom handling for untracked files |
| src/platform/test/node/simulationWorkspaceServices.ts | Adds stub implementation to testing git service |
| src/extension/prompt/node/test/repoInfoTelemetry.spec.ts | Adds mock method to test git service |
| src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts | Uses new method to display statistics for CLI sessions and refactors session item generation |
1bc7895 to
3787dd8
Compare
src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts
Outdated
Show resolved
Hide resolved
DonJayamanne
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question about work tree & Promise.all
No description provided.