Skip to content

Conversation

@murataslan1
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 2, 2026 12:15
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 refactors the terminal tabbed view's focus handling to use the proper Event.once API instead of a manual lifecycle management hack. The change eliminates technical debt by leveraging VS Code's built-in event utility for one-time event listeners, ensuring the listener is automatically disposed after the first fire.

  • Replaced manual event registration with Event.once wrapper for the connection state change listener
  • Removed TODO comments about lifecycle management that are now resolved
  • Maintained the same functionality while improving code quality

@Tyriar Tyriar enabled auto-merge January 2, 2026 16:27
@Tyriar Tyriar merged commit 69d372b into microsoft:main Jan 2, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants