Technologies:
Tolerim
17 hours ago
Launch the web version of VS Code and open a folder that has already been defined.
Answers(1)
Tolerim
17 hours ago
Verified Answer
Unfortunately, I'm not aware of a simple way to achieve this without taking a deep dive into the source code. The functionality you want to achieve would require modifying the source code of Visual Studio Code, or at least finding a publicly available API that exposes the necessary functionality, but this may not be possible.
However, if you're willing to modify the source code, you could try using the vscode.workspace.updateWorkspaceFolders API method to programmatically add the desired folder to Visual Studio Code's workspace. You can find more information on this method in the official Visual Studio Code extension API documentation.
Alternatively, you could look into using a headless browser such as Puppeteer to programmatically interact with the Visual Studio Code web app, but this approach may be more complex and less reliable than modifying the source code directly.