Adding to the other answers, it got fixed for me without updating portal settings,
- Deleted .vscode folder.
- Closed and reopened VS code.
- Clicked on "No" in the below popup which usually appears when I deploy from vscode(prviously clicked "Yes" and it resulted in an error posted here).
