Skip to content

Re-add inlined annotations a client removed from the annotation model - #4359

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:lv/inlined-annotation-reattach
Open

Re-add inlined annotations a client removed from the annotation model#4359
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:lv/inlined-annotation-reattach

Conversation

@vogella

@vogella vogella commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

InlinedAnnotationSupport kept every annotation of its last render in fInlinedAnnotations and treated all of them as attached. Once a client removed a code mining annotation from the annotation model directly, that annotation object was reused for every later render at the same position but never put back into the model, so the minings there stayed invisible for the rest of the editor session. Annotations the model no longer knows are now added again; the removal side is unchanged.

Found while working on the unified diff of org.eclipse.compare (eclipse-platform/eclipse.platform#2791).

InlinedAnnotationSupport treated every annotation in fInlinedAnnotations as
attached, so once a client removed a code mining annotation from the
annotation model directly, the annotation was reused for every later render
but never put back into the model and its minings stayed invisible.
Annotations the model no longer knows are now added again.

Discovered while working on the unified diff of org.eclipse.compare, see
eclipse-platform/eclipse.platform#2791

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Test Results

   858 files  ±0     858 suites  ±0   47m 35s ⏱️ - 4m 51s
 8 283 tests ±0   8 040 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 718 runs  ±0  20 048 ✅ ±0  670 💤 ±0  0 ❌ ±0 

Results for commit c7b78a2. ± Comparison against base commit c9996e4.

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