Remote Repositories lets users open GitHub repos in vscode.dev or in a virtual workspace. By leveraging their API, I was able to basically enable full SWA create support on vscode.dev with minimal refactoring.
There are a lot of files related to the git API, but I will move them in another PR since it would make reviewing changes a pain.
path.join won't work in vscode.dev, so I replaced it where relevant. createHttpFunction still uses it since it can only be used on desktop, though we can probably just remove it all eventually.
When there is no open folder in vscode.dev, the prompt still asks to open an existing projecting, which leads to your local directory. It should lead to a remote repo.
There is a Git Clone button that doesn't work
If you have a local folder opened in vscode.dev, it will fail with the error Cannot read properties of undefined (reading 'openRepository')
Remote Repositories lets users open GitHub repos in vscode.dev or in a virtual workspace. By leveraging their API, I was able to basically enable full SWA create support on vscode.dev with minimal refactoring.
There are a lot of files related to the git API, but I will move them in another PR since it would make reviewing changes a pain.
path.join
won't work in vscode.dev, so I replaced it where relevant.createHttpFunction
still uses it since it can only be used on desktop, though we can probably just remove it all eventually.