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

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

  1. Attempt to "Sync Settings" by logging into Microsoft or Github
  2. this will fail as OP states... but
  3. close ALL instances/windows of VSCode
  4. RESTART VSCode
  5. You should be prompted for Apple KeyChain permissions like this image shows: enter image description here
  6. Type in your MacOS root password
  7. You will either immediately login without error(s) ... or....
  8. RESTART VSCode AGAIN
  9. "Sync Settings" / login once more