How to compile project C++ on mac vscode

Hi,
I’m on mac M1 using vscode, I’m creating a class then I run build, but when I go back to unreal nothing happen, I need to restart my unreal project to see the change I make on vscode. It seems I miss something, because when my project is reopen I can see the change. But what I miss ? thanks you