If you encounter this error whilst setting up your Azure DevOps integration, you can follow these steps to resolve it.
Click on your avatar in the top right corner
Click Switch Directory
Ensure that the correct directory is selected. If the set up still fails, switch to another directory and then switch back to the desired directory.
Sign out and sign back in again