microsoft / vscode-remote-repositories-github

Quickly browse, search, edit, and commit to any GitHub or Azure Repos repository directly from within Visual Studio Code.
Creative Commons Attribution 4.0 International
206 stars 110 forks source link

Problem opening Azure repos when the Azure DevOps project name contains a space #469

Closed danstis closed 2 months ago

danstis commented 3 months ago

When I attempt to open an Azure DevOps repo using vscode.dev with the Azure Repos extension with a URL like this https://dev.azure.com/org/Project%20Name/_git/repo it fails with errors in the Azure Repos output like follows:

2024-08-21 18:07:57.274 [info] [  176] AzDO.createMetadata(vscode-vfs://azurerepos/org/Project%2520Name/repo, undefined) took 354 ms
2024-08-21 18:07:57.274 [info] [  178] AzDO.createMetadata(vscode-vfs://azurerepos/org/Project%2520Name/repo, undefined)
2024-08-21 18:07:57.655 [error] self.fetch
TypeError: Failed to fetch

It seems to be attempting to URL encode the space.

I attempted to try this with the following URLs, but they all failed as well:

I have also tried to use the Azure Repos button in the bottom left corner, then paste in the full URL as copied from Azure DevOps, with the same error.

Should vscode.dev support ADO projects with spaces in the name?

danstis commented 2 months ago

On testing this with further repos, it is not the space that is blocking this connection, rather the authentication was failing silently.