Skip to content

Own editor AST caches and share Swing dispatch - #35

Merged
Pelotrio merged 4 commits into
codex/companion-applicationfrom
codex/companion-editor-cache
Sep 11, 2026
Merged

Own editor AST caches and share Swing dispatch#35
Pelotrio merged 4 commits into
codex/companion-applicationfrom
codex/companion-editor-cache

Conversation

@Pelotrio

Copy link
Copy Markdown
Member

AST models and change listeners now belong to EditorTabs instead of process-wide maps. Each Java editor passes that cache to parsing, highlighting, symbol navigation, code insight, status breadcrumbs and breakpoint completion. Closing project editors clears their cache; disposal also removes semantic highlighting subscriptions and rejects later document updates.

Equivalent nonblocking Swing dispatch uses UIUtils.onEdt. Synchronous application lifecycle handoffs and navigation callbacks retain their existing ownership guards and timing.

Validation: full Companion suite passed, including new tests for identical keys in independent caches and pending publication after clear. Root :check :localBundle --warning-mode fail passed with offline local Maven dependencies; source editor/runtime tree/resource-tab harness rendering inspected.

Stacked on #34. This completes the remaining editor-cache and EDT cleanup in revision 2 of the architecture plan.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-11T18:23:55.970750Z c7a9d53 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Pelotrio
Pelotrio added this pull request to stack #30 September 11, 2026 15:54
@Pelotrio
Pelotrio force-pushed the codex/companion-editor-cache branch from 33dc466 to 2d6bcde Compare September 11, 2026 16:25
@Pelotrio
Pelotrio force-pushed the codex/companion-editor-cache branch 2 times, most recently from 73ba99d to ffb71e7 Compare September 11, 2026 16:59
@Pelotrio
Pelotrio force-pushed the codex/companion-editor-cache branch from ffb71e7 to 49d4afc Compare September 11, 2026 17:23
@Pelotrio
Pelotrio force-pushed the codex/companion-editor-cache branch from 49d4afc to a2b64d6 Compare September 11, 2026 17:27
@Pelotrio
Pelotrio force-pushed the codex/companion-editor-cache branch from a2b64d6 to e505286 Compare September 11, 2026 17:46
@Pelotrio
Pelotrio force-pushed the codex/companion-editor-cache branch from e505286 to 55f437c Compare September 11, 2026 18:06
An inline-value mouse event queued before a project switch could reach the
window after closeProjectWindows() cleared the debugger window, dereferencing a
null or replaced project scope and recreating a window nobody disposes. The
callback now captures its originating scope and re-checks on the EDT that the
window is live and the scope is still current and active before showing the value.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M7DQH1k854dr2KVQXZmRqY

Took 2 minutes
@Pelotrio
Pelotrio merged commit 794a9a1 into 1.21.1 Sep 11, 2026
2 checks passed
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.

1 participant