MacOS High Sierra VSCode "Writing login information to the keychain failed with error 'UNIX[No such file or directory]'." MacOS High Sierra 10.13.6 with new install of VSCode 1.50.0

Attempt to &quot;Sign-in to Sync Settings&quot;


web/browser-based SSO redirects to Microsoft and/or Github browser login

login fails - error message in VSCode:



Writing login information to the keychain failed with error 'UNIX[No such file or directory]'.

New install of VSCode on MacOS

And MacOS info:
This is a keychain error which look similar to some others upon Google search, but I didn't find this exact error... so, adding the solution here...
SOLUTION

Attempt to &quot;Sync Settings&quot; by logging into Microsoft or Github
this will fail as OP states... but
close ALL instances/windows of VSCode
RESTART VSCode
You should be prompted for Apple KeyChain permissions like this image shows:

Type in your MacOS root password
You will either immediately login without error(s) ... or....
RESTART VSCode AGAIN
&quot;Sync Settings&quot; / login once more