Can't open vscode:// URL

I’m trying to sign into VSCode with github and I get my authorization token url that starts with vscode:// but neither Firefox or Midori will forward the URL to VSCode, or even ask which application should be used to open the URL. On MacOS and Ubuntu this worked without changing anything. Is there a place where I need to enable vscode:// URLs?

If you are using KDE,try opening the file


and check if there is a association or application with vscode,if there is any,delete them,save and try again the URL with the authorization token,should automatically open vscode this time.

Sometimes the messed up file is:


happened to me once, sublime text opening git-cola instead of dolphin upon “Open containing folder”, turns out git-cola is listed before dolphin. Reversing the order fixes it.