Skip to content

feat: add tests for NES annotation type mapping and update plugin.xml for foreign text marker#29

Merged
jdneo merged 1 commit intomainfrom
cs/issue-23
Apr 28, 2026
Merged

feat: add tests for NES annotation type mapping and update plugin.xml for foreign text marker#29
jdneo merged 1 commit intomainfrom
cs/issue-23

Conversation

@jdneo
Copy link
Copy Markdown
Member

@jdneo jdneo commented Apr 28, 2026

fix #23

Copilot AI review requested due to automatic review settings April 28, 2026 02:49
Copy link
Copy Markdown

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

Fixes the annotation-type mapping that caused Copilot’s Next Edit Suggestions (NES) delete annotation presentation (boxed red border) to be applied to unrelated third-party text markers (e.g., SonarQube), and adds regression tests to prevent reintroducing the generic marker mapping.

Changes:

  • Remove markerType="org.eclipse.core.resources.textmarker" from NES annotation type declarations to avoid mapping arbitrary text markers to Copilot NES annotations.
  • Add a UI test marker type (subtype of textmarker) and JUnit tests asserting NES annotations don’t map to root text markers / foreign text markers.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
com.microsoft.copilot.eclipse.ui/plugin.xml Removes root textmarker mapping for NES change/delete annotation types to prevent cross-plugin annotation conflicts.
com.microsoft.copilot.eclipse.ui.test/plugin.xml Adds a “foreign” text marker type (subtype of textmarker) used to simulate third-party markers in tests.
com.microsoft.copilot.eclipse.ui.test/src/com/microsoft/copilot/eclipse/ui/nes/NesAnnotationTypeMappingTest.java Adds regression tests verifying foreign markers don’t resolve to NES annotations and NES types don’t map to root textmarker.

Copy link
Copy Markdown
Member

@xinyi-gong xinyi-gong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you.

@jdneo jdneo merged commit d93a4e4 into main Apr 28, 2026
8 checks passed
@jdneo jdneo deleted the cs/issue-23 branch April 28, 2026 03:00
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.

[Bug] Eclipse red border annotations persist for SonarQube issue locations and conflict with Copilot NES delete annotations

3 participants