Skip to content

Allow disabling automatic reconstruction of terminals #2563 - #2850

Open
danthe1st wants to merge 1 commit into
eclipse-platform:masterfrom
danthe1st:allow-disabling-terminal-restore
Open

Allow disabling automatic reconstruction of terminals #2563#2850
danthe1st wants to merge 1 commit into
eclipse-platform:masterfrom
danthe1st:allow-disabling-terminal-restore

Conversation

@danthe1st

@danthe1st danthe1st commented Aug 3, 2026

Copy link
Copy Markdown

Summary

This PR adds a preference to disable automatically restoring the open terminals in the terminal view.

Demonstration steps:

  • Open Eclipse
  • Open a terminal view with multiple terminals
  • Close Eclipse while the terminal view is open
  • Open Eclipse again
  • After navigating to the terminal view, all terminals are restored.

This PR adds a new preference in Window > Preferences > Terminal named Reopen terminals after restart which is checked by default. If unchecked, no terminals will be restored.

image

Notes

  • The terminal preference screen is located in org.eclipse.terminal.control while the related logic is present in org.eclipse.terminal.view.ui. I don't know what the best way to expose these classes is as they are x-internal. For now, I added an x-friends (mainly for documentation) and marked the access with @SuppressWarnings("restriction").
  • If you want to have a working terminal from a local "Eclipse Application" run configuration, you might need to add the org.eclipse.cdt.core.native and org.eclipse.cdt.core.<your OS/arch> bundles. I got them from the update site https://download.eclipse.org/releases/2026-09. This PR can still be tested without that but local terminals might just be empty rectangles without those.
    image
    image
  • I assume a small preference addition like this doesn't need a N&N? If one is wanted, I can also create that.

Issues

Fixes #2563

…m#2563

This change adds a preference to disable automatically restoring the
open terminals in the terminal view.

Fixes eclipse-platform#2563
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.

Allow disabling automatic reconstruction of terminals

1 participant