Close all windows on exit

The default behaviour for VSCode when hitting Ctrl+Q is closing and saving all application windows. Theia OTOH just closes focused window. Is there a way to achieve the same functionality as in VSCode?

Hi @trozen,

this is due to Theia not sharing backends across multiple windows. Window is it’s own isolated instance of Theia. You can override the onSecondInstance method on the ElectronMainApplication. See here. That should probably do the trick.

1 Like