My problem was from MacOs that VS code was not enabled to open xcode automatically!
privacy & security -> Automation -> enable VS Code or whatever code editor you're using.