You could, you know, take advantage of Apple's best-in-class support and service?
Also: the 5 hours in vscode thing is almost certainly some extension you're running that is constantly spinning its wheels. This isn't hard to figure out - just look in Activity Monitor.