Skip to content

Add UnifiedDiff API to dispose the editor display - #3073

Open
tobiasmelcher wants to merge 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:unified-diff-dispose-api
Open

tobiasmelcher wants to merge 1 commit into
eclipse-platform:masterfrom
tobiasmelcher:unified-diff-dispose-api

Conversation

@tobiasmelcher

Copy link
Copy Markdown
Contributor

Callers need to remove a unified diff from an editor without supplying another baseline. Add UnifiedDiff.dispose(ITextEditor) to clear the display while preserving the current document and unrelated annotations, restore navigation actions, and prevent pending computations from bringing the diff back.

Allow callers to clear unified diff annotations, code minings, toolbars and listeners without changing the editor document or supplying a baseline. Restore navigation actions and diff folding, and prevent pending computations from reinstalling the display.
@github-actions

Copy link
Copy Markdown
Contributor

Test Results

    54 files  ± 0      54 suites  ±0   35m 13s ⏱️ - 2m 36s
 5 026 tests + 4   5 004 ✅ + 4   22 💤 ±0  0 ❌ ±0 
12 969 runs  +12  12 815 ✅ +12  154 💤 ±0  0 ❌ ±0 

Results for commit d810c92. ± Comparison against base commit 30dafa8.

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