'Go to File not working in Visual Studio Code

I have a problem with Visual Studio Code. When I Press Ctrl+P I get a message saying:

[UriError]: Scheme is missing: {scheme: "", authority: "", path: "undefined", query: "", fragment: ""}, then nothing happens.

I have tried restarting the computer and Code, adding proxy settings, reinstalling Code. But the problem still exists. I started a few days ago, not sure if it was in combination with an upgrade.

I have checked that ctrl+p is assigned to the Go to File shortcut.



Solution 1:[1]

After removing and re-cloning the project the error was gone.

Solution 2:[2]

If your ctrl+p shortcut does not open Go to file search then try ctrl+e VsCode also has this command to go to file search.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Magnus Erkenfelt
Solution 2 Muhammad Nadeem