Skip to content

Copilot - remove code that is not needed#308772

Merged
lszomoru merged 1 commit intomainfrom
lszomoru/double-sawfish
Apr 9, 2026
Merged

Copilot - remove code that is not needed#308772
lszomoru merged 1 commit intomainfrom
lszomoru/double-sawfish

Conversation

@lszomoru
Copy link
Copy Markdown
Member

@lszomoru lszomoru commented Apr 9, 2026

No description provided.

Copilot AI review requested due to automatic review settings April 9, 2026 13:07
@lszomoru lszomoru enabled auto-merge (squash) April 9, 2026 13:07
@lszomoru lszomoru self-assigned this Apr 9, 2026
@lszomoru lszomoru added this to the 1.116.0 milestone Apr 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

This PR removes the unused getRepositoryState API from the Copilot extension’s IGitService abstraction and cleans up the corresponding implementations and test mocks, simplifying the git service surface area.

Changes:

  • Removed getRepositoryState from IGitService.
  • Deleted getRepositoryState implementations from the real git service and test/mock git services.
  • Updated related imports and test stubs to drop the now-unused RepositoryState type.
Show a summary per file
File Description
extensions/copilot/src/platform/test/node/simulationWorkspaceServices.ts Removes RepositoryState import and drops the unused TestingGitService.getRepositoryState stub.
extensions/copilot/src/platform/ignore/node/test/mockGitService.ts Removes RepositoryState import and drops the unused MockGitService.getRepositoryState stub.
extensions/copilot/src/platform/git/vscode-node/gitServiceImpl.ts Removes RepositoryState import and deletes the GitServiceImpl.getRepositoryState method.
extensions/copilot/src/platform/git/common/gitService.ts Removes RepositoryState import and deletes getRepositoryState from the IGitService interface.
extensions/copilot/src/extension/prompt/node/test/repoInfoTelemetry.spec.ts Updates the test’s IGitService mock shape to no longer provide getRepositoryState.

Copilot's findings

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

@lszomoru lszomoru merged commit 6f424b9 into main Apr 9, 2026
27 checks passed
@lszomoru lszomoru deleted the lszomoru/double-sawfish branch April 9, 2026 13:53
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