Skip to content

Conversation

@lszomoru
Copy link
Member

No description provided.

Copilot AI review requested due to automatic review settings January 15, 2026 13:35
@lszomoru lszomoru enabled auto-merge January 15, 2026 13:35
@lszomoru lszomoru self-assigned this Jan 15, 2026
@vs-code-engineering vs-code-engineering bot added this to the January 2026 milestone Jan 15, 2026
Copy link
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

This PR updates the getRepository method in IGitCommitMessageService to be asynchronous and ensures the repository state is refreshed by calling repository.status() before returning. This ensures that callers receive up-to-date repository state information when committing changes.

Changes:

  • Changed getRepository method signature from synchronous to async in the interface and implementations
  • Added await repository.status() call in GitCommitMessageServiceImpl.getRepository() to refresh repository state
  • Updated all call sites to use await when calling getRepository()

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/platform/git/common/gitCommitMessageService.ts Updated interface and NoopGitCommitMessageService to make getRepository async
src/extension/prompt/vscode-node/gitCommitMessageServiceImpl.ts Implemented async getRepository with repository state refresh via status() call
src/extension/conversation/vscode-node/conversationFeature.ts Updated two call sites to use await when calling getRepository()
src/extension/chatSessions/vscode-node/chatSessionWorktreeServiceImpl.ts Updated call site to use await when calling getRepository()

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