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
[x] As an author, I have thoroughly tested my changes and carefully followed the review guidelines
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 whensingleInstance === 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 whensingleInstance
is off. I usetheia electron start
and start the electron back end in the debugger to verify the behavior.Follow-ups
Review checklist
Reminder for reviewers