eclipse-theia / theia

Eclipse Theia is a cloud & desktop IDE framework implemented in TypeScript.
http://theia-ide.org
Eclipse Public License 2.0
19.29k stars 2.45k forks source link

Switch single instance on per default. #13831

Closed tsmaeder closed 1 week ago

tsmaeder commented 2 weeks ago

What it does

Turn on the singleInstance application config on in the default case. Invoking theia a second time will open a new window in the first instance when singleInstance === true. If a workspace directory is given as the first position argument, this workspace is opened, otherwise an empty window is opened.

Fixes #10890

Contributed on behalf of STMicroelectronics

How to test

Invoke theia via theia electron start multiple times and with or without parameters. Make sure an independent instance is started when singleInstance is off. I use theia electron start and start the electron back end in the debugger to verify the behavior.

Follow-ups

Review checklist

Reminder for reviewers

tsmaeder commented 2 weeks ago

@sdirix have a look.