How does the terminal reconnect?

When Theia reconnects, its terminals (if it has) reconnect too. What i don’t want its terminals reconnect, can i do that? Could you show me the process of how the terminal reconnect?

  1. The app on startup tries to initialize the layout:
  1. When it is possible, the app restores the previous layout as part of the initialization:
  1. Each terminal session will create a terminal widget, when you start the app, the IDE tries restore the terminal widgets here:

Customize this method to avoid reconnecting the terminals.

That is cool, thank you very much, i will try it.