Opening the folder as workspace in theia

How can we open a folder as workspace in electron app.

Is there any example.

@LOGAN do you have additional details, do you want to open it as a user (same as in vscode) or are you looking into how to open a folder programatically?

When I open a workspace in the browser-app, Theia allows me to open a folder but when I try to do the same in the electron app Theia expects a “theia-workspace” file to be present

@LOGAN I’m not sure which operating system you’re using but there are cases where the browser and electron have differences. In this case (Linux) open folder on electron allows you to open a folder, while open workspace allows you to open a multi-root workspace files (*.theia-workspace, *.code-workspace).