Skip to content

Consolidate duplicated UpdateTracker code#273858

Merged
jruales merged 2 commits intomainfrom
dev/jruales/2025.10-clean-up-updatetracker
Oct 29, 2025
Merged

Consolidate duplicated UpdateTracker code#273858
jruales merged 2 commits intomainfrom
dev/jruales/2025.10-clean-up-updatetracker

Conversation

@jruales
Copy link
Contributor

@jruales jruales commented Oct 29, 2025

UpdateTracker and PromptUpdateTracker were almost identical (after the latter was added in #271187), so this PR combines them together into a single class.

Copilot AI review requested due to automatic review settings October 29, 2025 01:38
@jruales jruales changed the title Consolidate duplicated UpdateTracker code in promptsServiceImpl.ts Consolidate duplicated UpdateTracker code Oct 29, 2025
@jruales jruales force-pushed the dev/jruales/2025.10-clean-up-updatetracker branch from b04b32c to 3d66fb9 Compare October 29, 2025 01:42
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 UpdateTracker class to be more generic and reusable by consolidating two similar tracker implementations. The main purpose is to eliminate code duplication and create a single unified tracker that can handle both prompts and agents.

Key changes:

  • Consolidates UpdateTracker and PromptUpdateTracker classes into a single parameterized UpdateTracker class
  • Standardizes naming conventions across types and methods (e.g., onDiDPromptChangeonDidPromptChange)
  • Removes unused import (AGENT_LANGUAGE_ID) and fixes a trailing backslash in a comment

@jruales jruales marked this pull request as ready for review October 29, 2025 01:57
@vs-code-engineering vs-code-engineering bot added this to the October 2025 milestone Oct 29, 2025
@jruales jruales merged commit 0e3668d into main Oct 29, 2025
28 checks passed
@jruales jruales deleted the dev/jruales/2025.10-clean-up-updatetracker branch October 29, 2025 08:36
@jruales jruales linked an issue Oct 29, 2025 that may be closed by this pull request
dmitrivMS pushed a commit that referenced this pull request Oct 29, 2025
Consolidate duplicated UpdateTracker code in promptsServiceImpl.ts
@vs-code-engineering vs-code-engineering bot locked and limited conversation to collaborators Dec 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consolidate duplicated UpdateTracker code

3 participants