Skip to content

Cleanup ProcessConsoleManager implementation#2810

Merged
iloveeclipse merged 1 commit into
eclipse-platform:masterfrom
iloveeclipse:console_man_cleanup
Jul 10, 2026
Merged

Cleanup ProcessConsoleManager implementation#2810
iloveeclipse merged 1 commit into
eclipse-platform:masterfrom
iloveeclipse:console_man_cleanup

Conversation

@iloveeclipse

Copy link
Copy Markdown
Member
  • read extension registry only once, on startup, remove unneeded locks
  • get rid of shared fDefaultColorProvider which can't work per design

Fixes #2638
Fixes #2637

- read extension registry only once, on startup, remove unneeded locks
- get rid of shared `fDefaultColorProvider` which can't work per design

Fixes eclipse-platform#2638
Fixes eclipse-platform#2637
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ±0      54 suites  ±0   58m 9s ⏱️ - 1m 57s
 4 687 tests ±0   4 665 ✅ ±0   22 💤 ±0  0 ❌ ±0 
11 955 runs  ±0  11 802 ✅ ±0  153 💤 ±0  0 ❌ ±0 

Results for commit eee238c. ± Comparison against base commit 2743386.

Copilot AI left a comment

Copy link
Copy Markdown

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 Debug UI ProcessConsoleManager to eliminate races caused by lazy extension initialization and by sharing a single default ConsoleColorProvider across consoles.

Changes:

  • Initialize console color providers and line tracker extension caches eagerly (once) during ProcessConsoleManager construction.
  • Remove shared fDefaultColorProvider and return a fresh default ConsoleColorProvider when no contributed provider matches.
  • Simplify internal state by making caches/maps final and removing now-unneeded locking/nullable map patterns.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@iloveeclipse iloveeclipse merged commit b2ec9aa into eclipse-platform:master Jul 10, 2026
18 checks passed
@iloveeclipse iloveeclipse deleted the console_man_cleanup branch July 10, 2026 16:25
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.

Race condition in ConsoleColorProvider.connect() Race condition when initializing ProcessConsoleManager.fColorProviders

2 participants