Move or copy the Visual Studio Code application into the Applications folder works for me it was in downloads folder initiall