microsoft / vscode-azurestaticwebapps

Azure Static Web Apps extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-azurestaticwebapps
MIT License
86 stars 33 forks source link

Activate RemoteRepo if local git is disabled. Also always use RemoteRepos for web #818

Closed nturinski closed 1 year ago

nturinski commented 1 year ago

In a web environment, if you had a local workspace opened without a repo (which is always the case in web since we don't have access to their git), the extension tries to use local git to create a new repo which fails.

This changes it so that it will always prompt the user to open a remote repository.

Honestly, the SWA extension could use a nice refactor. This is definitely something that I will revisit now that I know how webpack works a lot better. The codeflow is also not great to separate into desktop and web right now, so some work will have to be done for that as well.