Skip to content

refactor: Update ChangesetSessionCoordinator instantiation to use instantiationService#318483

Merged
DonJayamanne merged 1 commit into
mainfrom
don/ltd-lynx
May 27, 2026
Merged

refactor: Update ChangesetSessionCoordinator instantiation to use instantiationService#318483
DonJayamanne merged 1 commit into
mainfrom
don/ltd-lynx

Conversation

@DonJayamanne
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings May 27, 2026 01:19
@DonJayamanne DonJayamanne self-assigned this May 27, 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 refactors ChangesetSessionCoordinator construction to use VS Code’s dependency injection (instantiationService.createInstance) so its service dependencies are injected rather than manually plumbed through AgentService.

Changes:

  • Switch ChangesetSessionCoordinator instantiation to instantiationService.createInstance(...).
  • Convert ChangesetSessionCoordinator constructor dependencies (IAgentHostChangesetService, IAgentConfigurationService, IAgentHostFileMonitorService, IAgentHostGitService, ILogService) to DI-injected parameters via decorators.
Show a summary per file
File Description
src/vs/platform/agentHost/node/agentService.ts Uses the local strict InstantiationService to construct ChangesetSessionCoordinator, passing only the non-service AgentHostStateManager argument.
src/vs/platform/agentHost/node/agentHostChangesetCoordinator.ts Updates ChangesetSessionCoordinator constructor to receive its service dependencies via DI decorators instead of positional arguments.

Copilot's findings

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

@DonJayamanne DonJayamanne merged commit 180dc26 into main May 27, 2026
26 checks passed
@DonJayamanne DonJayamanne deleted the don/ltd-lynx branch May 27, 2026 02:12
@vs-code-engineering vs-code-engineering Bot added this to the 1.123.0 milestone May 27, 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