eclipse-platform / eclipse-platform/eclipse.platform

Make Text Compare more smart

Open
#66 9 comments 4 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
165
Forks
174
Avg merge
2d 8h
Merged PRs (30d)
22

Description

I recently noticed that text-compare seems to present a undesirable changeset if the following happen:

1. You have some repeated code block with common start (e.g. `` in a pom.xml or `@Test` in a Unit test) and ending (e.g. `` in a pom.xml or `}` in a Unit test
2. You insert a new block in between
3. Now the change set spans into the next block

![grafik](https://user-images.githubusercontent.com/1331477/174729794-fad66f74-3d98-4e3e-aa90-05db79fd2e1e.png)

**What would be expected is that the whole block is marked as an insertion (here line 74 - 78)**

Github for example displays this more nice

![grafik](https://user-images.githubusercontent.com/1331477/174731417-3eaa11a0-aa9c-4e00-bb5b-e9f5ed582191.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.