Unity projects stuck on waiting for unity code in Unity.VisualStudio.Editor.dll

Is there a way to fix this. This has happened every time I have tried to open a project. Even if uninstall and reinstall the problem occurs.

It seems that if I don’t use visual studio it works.